use of org.apache.commons.collections.comparators.ComparableComparator in project openmrs-module-pihcore by PIH.
the class PihPatientDataLibrary method getAllDossierNumberIdentifiers.
@DocumentedDefinition("allDossierNumbers.identifier")
public PatientDataDefinition getAllDossierNumberIdentifiers() {
PatientIdentifierDataDefinition pdd = new PatientIdentifierDataDefinition();
pdd.setTypes(Arrays.asList(Metadata.lookup(PihHaitiPatientIdentifierTypes.DOSSIER_NUMBER)));
CollectionConverter cc = new CollectionConverter(new PropertyConverter(PatientIdentifier.class, "identifier"), false, new ComparableComparator());
return new ConvertedPatientDataDefinition(pdd, cc);
}
Aggregations