use of org.openmrs.module.reporting.data.patient.definition.ConvertedPatientDataDefinition 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(getDossierNumberType()));
CollectionConverter cc = new CollectionConverter(new PropertyConverter(PatientIdentifier.class, "identifier"), false, new ComparableComparator());
return new ConvertedPatientDataDefinition(pdd, cc);
}
use of org.openmrs.module.reporting.data.patient.definition.ConvertedPatientDataDefinition 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.ConvertedPatientDataDefinition 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