From b8ae68077cdc686b4a7faff9829ef2ecf52682f2 Mon Sep 17 00:00:00 2001 From: Mark Goodrich Date: Mon, 15 Jul 2024 13:54:30 -0400 Subject: [PATCH] EA-196: Add "org.openmrs.module.emrapi:Consult Free Text Comments" to EMR API properties --- .../main/java/org/openmrs/module/emrapi/EmrApiConstants.java | 2 ++ .../main/java/org/openmrs/module/emrapi/EmrApiProperties.java | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/api/src/main/java/org/openmrs/module/emrapi/EmrApiConstants.java b/api/src/main/java/org/openmrs/module/emrapi/EmrApiConstants.java index 19ae9406..b180c722 100644 --- a/api/src/main/java/org/openmrs/module/emrapi/EmrApiConstants.java +++ b/api/src/main/java/org/openmrs/module/emrapi/EmrApiConstants.java @@ -162,6 +162,8 @@ public class EmrApiConstants { public static final String CONCEPT_CODE_DENY_ADMISSION = "Deny Admission"; + public static final String CONCEPT_CODE_CONSULT_FREE_TEXT_COMMENTS = "Consult Free Text Comments"; + public static final String USER_PROPERTY_NAME_LAST_VIEWED_PATIENT_IDS = "emrapi.lastViewedPatientIds"; public static final String EVENT_TOPIC_NAME_PATIENT_VIEWED = "org.openmrs.module.emrapi.event.PatientViewed"; diff --git a/api/src/main/java/org/openmrs/module/emrapi/EmrApiProperties.java b/api/src/main/java/org/openmrs/module/emrapi/EmrApiProperties.java index ff22ab76..59c612b8 100644 --- a/api/src/main/java/org/openmrs/module/emrapi/EmrApiProperties.java +++ b/api/src/main/java/org/openmrs/module/emrapi/EmrApiProperties.java @@ -253,6 +253,10 @@ public Concept getPatientDiedConcept() { return getEmrApiConceptByMappingAllowUndefined(EmrApiConstants.CONCEPT_CODE_PATIENT_DIED); } + public Concept getConsultFreeTextCommentsConcept() { + return getEmrApiConceptByMapping(EmrApiConstants.CONCEPT_CODE_CONSULT_FREE_TEXT_COMMENTS); + } + public List getIdentifierTypesToSearch() { ArrayList types = new ArrayList(); types.add(getPrimaryIdentifierType());