use of org.openmrs.module.reporting.data.patient.definition.EncountersForPatientDataDefinition 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));
}
use of org.openmrs.module.reporting.data.patient.definition.EncountersForPatientDataDefinition in project openmrs-module-pihcore by PIH.
the class PihPatientDataLibrary method getLastEncounter.
private PatientDataDefinition getLastEncounter(DataConverter... converters) {
EncountersForPatientDataDefinition visitEncounters = new EncountersForPatientDataDefinition();
visitEncounters.setOnlyInActiveVisit(true);
visitEncounters.setWhich(TimeQualifier.LAST);
return new ConvertedPatientDataDefinition(visitEncounters, converters);
}
use of org.openmrs.module.reporting.data.patient.definition.EncountersForPatientDataDefinition in project openmrs-module-pihcore by PIH.
the class PihPatientDataLibrary method getCheckinEncounter.
private PatientDataDefinition getCheckinEncounter(DataConverter... converters) {
EncountersForPatientDataDefinition checkinEncounters = new EncountersForPatientDataDefinition();
checkinEncounters.setTypes(Arrays.asList(Metadata.lookupEncounterType(PihEmrConfigConstants.ENCOUNTERTYPE_CHECK_IN_UUID)));
checkinEncounters.setOnlyInActiveVisit(true);
checkinEncounters.setWhich(TimeQualifier.FIRST);
return new ConvertedPatientDataDefinition(checkinEncounters, converters);
}
use of org.openmrs.module.reporting.data.patient.definition.EncountersForPatientDataDefinition in project openmrs-module-pihcore by PIH.
the class PihPatientDataLibrary method getAdmissionEncounter.
private PatientDataDefinition getAdmissionEncounter(DataConverter... converters) {
EncountersForPatientDataDefinition admissionEncounters = new EncountersForPatientDataDefinition();
admissionEncounters.setTypes(Arrays.asList(Metadata.lookupEncounterType(PihEmrConfigConstants.ENCOUNTERTYPE_ADMISSION_UUID)));
admissionEncounters.setOnlyInActiveVisit(true);
admissionEncounters.setWhich(TimeQualifier.FIRST);
return new ConvertedPatientDataDefinition(admissionEncounters, converters);
}
use of org.openmrs.module.reporting.data.patient.definition.EncountersForPatientDataDefinition in project openmrs-module-pihcore by PIH.
the class PihPatientDataLibrary method getAdmissionOrTransferEncounter.
private PatientDataDefinition getAdmissionOrTransferEncounter(DataConverter... converters) {
EncountersForPatientDataDefinition adtEncounters = new EncountersForPatientDataDefinition();
adtEncounters.setTypes(Arrays.asList(Metadata.lookupEncounterType(PihEmrConfigConstants.ENCOUNTERTYPE_ADMISSION_UUID), Metadata.lookupEncounterType(PihEmrConfigConstants.ENCOUNTERTYPE_TRANSFER_UUID)));
adtEncounters.setOnlyInActiveVisit(true);
adtEncounters.setWhich(TimeQualifier.LAST);
return new ConvertedPatientDataDefinition(adtEncounters, converters);
}
Aggregations