-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #449 from jembi/dev
Release 19 March 2021
- Loading branch information
Showing
18 changed files
with
147 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -473,6 +473,7 @@ BEGIN | |
"VISIT_TYPE_OPD", | ||
"Special OPD" | ||
) | ||
ORDER BY v.date_started DESC | ||
LIMIT 1; | ||
|
||
RETURN (result); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
...rts/GEORGETOWN_PATIENT_INFORMATION_REPORT/template/georgetownPatientInformationReport.xls
Binary file not shown.
25 changes: 14 additions & 11 deletions
25
openmrs/apps/reports/GEORGETOWN_PCR_REPORT/sql/georgetownPcrReport.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
SELECT | ||
CAST(@a:=@a+1 AS CHAR) as "serialNumber", | ||
getPatientIdentifier(r.person_b) as "uniquePatientId", | ||
getPatientBirthdate(r.person_b) as "dateOfBirth", | ||
getPatientAgeInMonthsAtDate(r.person_b, NOW()) as "ageInMonths", | ||
getPatientIdentifier(r.person_a) as "motherId", | ||
CONCAT(getPatientPreciseLocation(r.person_a),", ",getPatientVillage(r.person_a)) as "mothersAddress", | ||
getPatientPhoneNumber(r.person_a) as "mothersContact", | ||
getMostRecentTestResultDate(r.person_b,"a5239a85-6f75-4882-9b9b-60168e54b7da","9bb7b360-3790-4e1a-8aca-0d1341663040") as "resultDatePcr", | ||
getTestResultWithinReportingPeriod(r.person_b,"2000-01-01","2100-01-01","a5239a85-6f75-4882-9b9b-60168e54b7da","9bb7b360-3790-4e1a-8aca-0d1341663040") as "pcrResult", | ||
getProgramAttributeDateValueFromAttributeAndProgramName(r.person_b, "PROGRAM_MANAGEMENT_2_PATIENT_TREATMENT_DATE", "HIV_PROGRAM_KEY") as "artInitiationDate", | ||
getObsCodedValue(r.person_b, "3447254f-501f-4b07-815c-cd0f6da98158") as "reasonOfNonInitiation" | ||
getPatientIdentifier(r.person_a) as "uniquePatientId", | ||
getPatientBirthdate(r.person_a) as "dateOfBirth", | ||
getPatientAgeInMonthsAtDate(r.person_a, NOW()) as "ageInMonths", | ||
getPatientIdentifier(r.person_b) as "motherId", | ||
CONCAT(getPatientPreciseLocation(r.person_b),", ",getPatientVillage(r.person_b)) as "mothersAddress", | ||
getPatientPhoneNumber(r.person_b) as "mothersContact", | ||
getMostRecentTestResultDate(r.person_a,"a5239a85-6f75-4882-9b9b-60168e54b7da","9bb7b360-3790-4e1a-8aca-0d1341663040") as "resultDatePcr", | ||
getTestResultWithinReportingPeriod(r.person_a,"2000-01-01","2100-01-01","a5239a85-6f75-4882-9b9b-60168e54b7da","9bb7b360-3790-4e1a-8aca-0d1341663040") as "pcrResult", | ||
getProgramAttributeDateValueFromAttributeAndProgramName(r.person_a, "PROGRAM_MANAGEMENT_2_PATIENT_TREATMENT_DATE", "HIV_PROGRAM_KEY") as "artInitiationDate", | ||
getObsCodedValue(r.person_a, "3447254f-501f-4b07-815c-cd0f6da98158") as "reasonOfNonInitiation" | ||
FROM (SELECT @a:= 0) AS a, relationship r | ||
JOIN relationship_type rt ON rt.relationship_type_id = r.relationship AND rt.a_is_to_b = "RELATIONSHIP_BIO_MOTHER" | ||
JOIN patient_identifier pi ON pi.patient_id = r.person_a AND pi.preferred = 1; | ||
JOIN patient_identifier pi ON pi.patient_id = r.person_a AND pi.preferred = 1 | ||
WHERE | ||
getPatientAgeInMonthsAtDate(r.person_a, NOW()) <= 24 AND | ||
patientHasEnrolledIntoHivProgram(r.person_b) = "Yes"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+512 Bytes
(100%)
openmrs/apps/reports/GEORGETOWN_TB_REPORT/template/georgetownTbReport.xls
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.