Skip to content

Commit

Permalink
Fix calls to getConceptByMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Jul 22, 2024
1 parent 1e4c89a commit 0280dcb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ private int getViralLoadConceptId() {
synchronized (EncounterEventListener.class) {
if (VIRAL_LOAD_CONCEPT_ID == -1) {
ConceptService conceptService = Context.getService(ConceptService.class);
Concept concept = conceptService.getConceptByMapping("CIEL", "856");
Concept concept = conceptService.getConceptByMapping("856", "CIEL");
if (concept == null) {
concept = conceptService.getConceptByMapping("LOINC", "25836-8");
concept = conceptService.getConceptByMapping("25836-8", "LOINC");
}

if (concept != null) {
Expand All @@ -197,9 +197,9 @@ private int getEarlyInfantDiagnosisConceptId() {
synchronized (EncounterEventListener.class) {
if (EARLY_INFANT_DIAGNOSIS_CONCEPT_ID == -1) {
ConceptService conceptService = Context.getService(ConceptService.class);
Concept concept = conceptService.getConceptByMapping("CIEL", "844");
Concept concept = conceptService.getConceptByMapping("844", "CIEL");
if (concept == null) {
concept = conceptService.getConceptByMapping("LOINC", "44871-2");
concept = conceptService.getConceptByMapping("44871-2", "LOINC");
}

if (concept != null) {
Expand Down

0 comments on commit 0280dcb

Please sign in to comment.