Search in sources :

Example 1 with ObservationCategory

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("-", ""));
}
Also used : ObservationCategory(ch.elexis.core.findings.IObservation.ObservationCategory)

Aggregations

ObservationCategory (ch.elexis.core.findings.IObservation.ObservationCategory)1