~dhis2-devs-core/dhis2/dhis2-patient-tz

« back to all changes in this revision

Viewing changes to local/tz/dhis-web-caseentry-tz/src/main/webapp/dhis-web-caseentry/responsePatient.vm

  • Committer: John Francis Mukulu
  • Date: 2011-08-09 06:36:18 UTC
  • mfrom: (4244.1.21 dhis2)
  • Revision ID: john.f.mukulu@gmail.com-20110809063618-wad1pcc9fd1mnc6k
[merge]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<patient>
3
 
  <id>$patient.id</id>  
4
 
  <fullName>$encoder.xmlEncode( $patient.getFullName() )</fullName>
5
 
  <gender>$encoder.xmlEncode( $patient.gender )</gender>
6
 
  <dobType>#if($!patient.dobType)$!patient.dobType#else $i18n.getString('none') #end</dobType>
7
 
  <dateOfBirth>$format.formatDate( $!patient.birthDate )</dateOfBirth>
8
 
  <age>$encoder.xmlEncode( $patient.getAge() )</age>
9
 
  <bloodGroup>#if($!patient.bloodGroup) $patient.bloodGroup #else $i18n.getString('none') #end</bloodGroup>
10
 
  #foreach( $patientIdentifier in $patient.identifiers )
11
 
    <identifier>        
12
 
        <identifierText>$encoder.xmlEncode( $patientIdentifier.identifier )</identifierText>
13
 
     </identifier>
14
 
  #end
15
 
  #foreach( $attribute in $patient.attributes )
16
 
    #set( $attributeValue = false )
17
 
    #set( $attributeValue = $patientAttributeValueMap.get( $attribute.id ) )             
18
 
    <attribute>
19
 
        <name>$encoder.xmlEncode( $attribute.name )</name>
20
 
        <value>$encoder.xmlEncode( $attributeValue )</value>
21
 
    </attribute> 
22
 
  #end  
23
 
  #foreach( $program in $patient.programs )
24
 
    <program>
25
 
        <name>$encoder.xmlEncode( $program.name )</name>
26
 
    </program> 
27
 
  #end         
28
 
</patient>