Skip to content

Commit

Permalink
Edited the nameTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
suubi-joshua committed Apr 3, 2024
1 parent 6d01f5f commit 52314ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions omod-2.0/src/test/resources/nameTemplate.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
<org.openmrs.layout.name.NameTemplate>
<codeName>customXmlTemplate</codeName>
<displayName>Custom Name Format</displayName>
<nameMappings class="properties">
<property name="givenName" value="PersonName.givenName"/>
<property name="middleName" value="PersonName.middleName"/>
<property name="familyName" value="PersonName.familyName"/>
</nameMappings>
<sizeMappings class="properties">
<property name="prefix" value="10"/>
<property name="givenName" value="40"/>
<property name="middleName" value="40"/>
<property name="familyName" value="40"/>
</sizeMappings>
<lineByLineFormat>
<string>prefix</string>
<string>givenName</string>
<string>middleName</string>
<string>familyName</string>
</lineByLineFormat>
<requiredElements>
<string>givenName</string>
<string>familyName</string>
</requiredElements>
</org.openmrs.layout.name.NameTemplate>

0 comments on commit 52314ca

Please sign in to comment.