Search in sources :

Example 1 with EarliestCreatedConverter

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));
}
Also used : EncountersForPatientDataDefinition(org.openmrs.module.reporting.data.patient.definition.EncountersForPatientDataDefinition) EarliestCreatedConverter(org.openmrs.module.reporting.data.converter.EarliestCreatedConverter) ConvertedPatientDataDefinition(org.openmrs.module.reporting.data.patient.definition.ConvertedPatientDataDefinition)

Aggregations

EarliestCreatedConverter (org.openmrs.module.reporting.data.converter.EarliestCreatedConverter)1 ConvertedPatientDataDefinition (org.openmrs.module.reporting.data.patient.definition.ConvertedPatientDataDefinition)1 EncountersForPatientDataDefinition (org.openmrs.module.reporting.data.patient.definition.EncountersForPatientDataDefinition)1