dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27368
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13616: expose programPersonIdentifierTypes in Program as json/xml
------------------------------------------------------------
revno: 13616
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-01-07 16:23:25 +0100
message:
expose programPersonIdentifierTypes in Program as json/xml
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java 2014-01-07 15:02:45 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/Program.java 2014-01-07 15:23:25 +0000
@@ -367,8 +367,11 @@
this.patientValidationCriteria = patientValidationCriteria;
}
+ @JsonProperty( value = "programPersonIdentifierTypes" )
+ @JsonView( { DetailedView.class, ExportView.class, WithoutOrganisationUnitsView.class } )
+ @JacksonXmlElementWrapper( localName = "programPersonIdentifierTypes", namespace = DxfNamespaces.DXF_2_0 )
+ @JacksonXmlProperty( localName = "programPersonIdentifierType", namespace = DxfNamespaces.DXF_2_0 )
public List<ProgramPatientIdentifierType> getProgramPatientIdentifierTypes()
-
{
return programPatientIdentifierTypes;
}