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 61cf0ca commit 82cc3b7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ private int getViralLoadConceptId() {
synchronized (ObsSelector.class) {
if (viralLoadConceptId == -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 @@ -54,9 +54,9 @@ private int getEarlyInfantDiagnosisConceptId() {
synchronized (ObsSelector.class) {
if (earlyInfantDiagnosisConceptId == -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 82cc3b7

Please sign in to comment.