use of org.hl7.fhir.r4.model.codesystems.EncounterStatus in project hl7v2-fhir-converter by LinuxForHealth.
the class Hl7RelatedGeneralUtils method getEncounterStatus.
public static String getEncounterStatus(Object var1, Object var2, Object var3) {
LOGGER.info("Generating encounter status");
LOGGER.debug("Generating encounter status from var1{}, var2 {}, var3 {}", var1, var2, var3);
EncounterStatus status = EncounterStatus.UNKNOWN;
if (var1 != null) {
status = EncounterStatus.FINISHED;
} else if (var2 != null) {
status = EncounterStatus.ARRIVED;
} else if (var3 != null) {
status = EncounterStatus.CANCELLED;
}
return status.toCode();
}
Aggregations