Skip to content

Commit

Permalink
Merge pull request #1870 from patryllus/dmi-cholera-case-definition
Browse files Browse the repository at this point in the history
DMI: Updating cholera case definition from diarrhea to watery diarrhea concepts
  • Loading branch information
njorocs committed Apr 19, 2024
2 parents 9a6193f + c6ae8ae commit 1d7715b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public String getFlagMessage() {
return "Suspected Cholera case";
}

Integer VOMITING = 122983;
Integer DIARRHEA = 142412;
Integer VOMITING = 122983;
Integer WATERY_DIARRHEA = 161887;
Integer SCREENING_QUESTION = 5219;

@Override
Expand All @@ -71,7 +71,7 @@ public CalculationResultMap evaluate(Collection<Integer> cohort, Map<String, Obj
Encounter lastGreenCardEnc = EmrUtils.lastEncounter(patient, greenCardEncType, greenCardForm); //last greencard followup form
ConceptService cs = Context.getConceptService();
Concept vomitingResult = cs.getConcept(VOMITING);
Concept diarrheaResult = cs.getConcept(DIARRHEA);
Concept diarrheaResult = cs.getConcept(WATERY_DIARRHEA);
Concept screeningQuestion = cs.getConcept(SCREENING_QUESTION);
boolean patientVomitClinicalEncResult = lastClinicalEncounter != null ? EmrUtils.encounterThatPassCodedAnswer(lastClinicalEncounter, screeningQuestion, vomitingResult) : false;
boolean patientDiarrheaClinicalEncResult = lastClinicalEncounter != null ? EmrUtils.encounterThatPassCodedAnswer(lastClinicalEncounter, screeningQuestion, diarrheaResult) : false;
Expand Down Expand Up @@ -115,4 +115,4 @@ public CalculationResultMap evaluate(Collection<Integer> cohort, Map<String, Obj

return ret;
}
}
}

0 comments on commit 1d7715b

Please sign in to comment.