=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/person/AbstractPersonService.java' --- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/person/AbstractPersonService.java 2013-09-19 05:40:02 +0000 +++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/person/AbstractPersonService.java 2013-09-19 07:57:50 +0000 @@ -219,7 +219,18 @@ Identifier identifier = new Identifier( identifierType, patientIdentifier.getIdentifier() ); person.getIdentifiers().add( identifier ); } - + + Collection patientAttributeValues = patientAttributeValueService.getPatientAttributeValues( patient ); + + for ( PatientAttributeValue patientAttributeValue : patientAttributeValues ) + { + Attribute attribute = new Attribute(); + attribute.setType( patientAttributeValue.getPatientAttribute().getUid() ); + attribute.setValue( patientAttributeValue.getValue() ); + + person.getAttributes().add( attribute ); + } + return person; }