use of org.openmrs.module.reporting.data.converter.EarliestCreatedConverter in project openmrs-module-pihcore by PIH.
the class PihPatientDataLibrary method getRegistrationEncounter.
private PatientDataDefinition getRegistrationEncounter(DataConverter... converters) {
EncountersForPatientDataDefinition registrationEncounters = new EncountersForPatientDataDefinition();
registrationEncounters.setTypes(Arrays.asList(Metadata.lookupEncounterType(PihEmrConfigConstants.ENCOUNTERTYPE_PATIENT_REGISTRATION_UUID)));
return new ConvertedPatientDataDefinition(registrationEncounters, converters(new EarliestCreatedConverter(Encounter.class), converters));
}
Aggregations