use of ch.elexis.core.findings.IObservation.ObservationCategory in project elexis-server by elexis.
the class ObservationResourceProvider method isObservationCategory.
private boolean isObservationCategory(IObservation iObservation, CodeType observationCode) {
Optional<String> codeCode = CodeTypeUtil.getCode(observationCode);
ObservationCategory category = iObservation.getCategory();
if (category == null) {
return false;
}
return category.name().equalsIgnoreCase(codeCode.orElse("").replaceAll("-", ""));
}
Aggregations