use of org.openmrs.module.reporting.definition.library.DocumentedDefinition in project openmrs-module-pihcore by PIH.
the class PihEncounterDataLibrary method getRequestedTransferLocationName.
@DocumentedDefinition
public EncounterDataDefinition getRequestedTransferLocationName() {
ObsForEncounterDataDefinition dd = new ObsForEncounterDataDefinition();
dd.setQuestion(dispositionService.getDispositionDescriptor().getInternalTransferLocationConcept());
return new ConvertedEncounterDataDefinition(dd, new ObsValueTextAsCodedConverter<Location>(Location.class), new ObjectFormatter());
}
use of org.openmrs.module.reporting.definition.library.DocumentedDefinition in project openmrs-module-pihcore by PIH.
the class PihPatientDataLibrary method getBiometricsIdentifierObject.
@DocumentedDefinition
public PatientDataDefinition getBiometricsIdentifierObject() {
PreferredIdentifierDataDefinition d = new PreferredIdentifierDataDefinition();
d.setIdentifierType(Metadata.getBiometricsReferenceNumberIdentifierType());
return d;
}
use of org.openmrs.module.reporting.definition.library.DocumentedDefinition 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.definition.library.DocumentedDefinition in project openmrs-module-pihcore by PIH.
the class PihPatientDataLibrary method getPreferredPrimaryIdentifierObject.
// Patient Identifier
@DocumentedDefinition
public PatientDataDefinition getPreferredPrimaryIdentifierObject() {
PreferredIdentifierDataDefinition d = new PreferredIdentifierDataDefinition();
d.setIdentifierType(emrApiProperties.getPrimaryIdentifierType());
return d;
}
Aggregations