use of org.openmrs.module.reporting.data.encounter.definition.ConvertedEncounterDataDefinition in project openmrs-module-pihcore by PIH.
the class PihEncounterDataLibrary method getAdmissionStatus.
@DocumentedDefinition
public EncounterDataDefinition getAdmissionStatus() {
ObsForEncounterDataDefinition dd = new ObsForEncounterDataDefinition();
// concept with synonyms "Type of Patient" and "Admission Status", possible answers are Ambulatory and Hospitalized
dd.setQuestion(conceptService.getConceptByMapping("3289", "PIH"));
return new ConvertedEncounterDataDefinition(dd, new PropertyConverter(Obs.class, "valueCoded"), new ObjectFormatter());
}
use of org.openmrs.module.reporting.data.encounter.definition.ConvertedEncounterDataDefinition in project openmrs-module-pihcore by PIH.
the class PihEncounterDataLibrary method getRequestedAdmissionLocationName.
@DocumentedDefinition
public EncounterDataDefinition getRequestedAdmissionLocationName() {
ObsForEncounterDataDefinition dd = new ObsForEncounterDataDefinition();
dd.setQuestion(dispositionService.getDispositionDescriptor().getAdmissionLocationConcept());
return new ConvertedEncounterDataDefinition(dd, new ObsValueTextAsCodedConverter<Location>(Location.class), new ObjectFormatter());
}
use of org.openmrs.module.reporting.data.encounter.definition.ConvertedEncounterDataDefinition 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());
}
Aggregations