Skip to content

Commit

Permalink
Merge pull request #448 from jembi/COM-997
Browse files Browse the repository at this point in the history
COM-997 Include only patients with TB suspected in TB report
  • Loading branch information
tmvumbi2 authored Mar 18, 2021
2 parents bb0005c + a15df61 commit 9ceba2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ SELECT
FROM patient p, (SELECT @a:= 0) AS a
WHERE
getDateTBPosDiagnose(p.patient_id) IS NOT NULL AND
getObsCodedValue(p.patient_id, "f0447183-d13f-463d-ad0f-1f45b99d97cc") LIKE "Yes%";
getObsCodedValue(p.patient_id, "61931c8b-0637-40f9-97dc-07796431dd3b") = "Suspected / Probable";
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ public void patientThatIsScreenedAndTBPositive_shouldBeIncludedToTheReport() thr
ConceptEnum.YES,
encounterId);

testDataGenerator.tbForm.setTBScreeningResult(
patientId,
new LocalDateTime(2020, 1, 6, 10, 0),
ConceptEnum.SUSPECTED_PROBABLE,
encounterId);

testDataGenerator.tbForm.setMTBConfirmation(
patientId,
new LocalDateTime(2020, 1, 6, 10, 0),
Expand Down

0 comments on commit 9ceba2e

Please sign in to comment.