Skip to content

Commit

Permalink
Merge pull request #467 from njorocs/clinical-enc
Browse files Browse the repository at this point in the history
Bug fix in visit type for clinical encounter. Obs data not fetching
  • Loading branch information
patryllus authored Jul 5, 2024
2 parents 908bce4 + c809317 commit 0524f4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion omod/src/main/resources/sql/DML.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7974,7 +7974,7 @@ BEGIN
inner join person p on p.person_id=e.patient_id and p.voided=0
inner join form f on f.form_id = e.form_id and f.uuid = 'e958f902-64df-4819-afd4-7fb061f59308'
left outer join obs o on o.encounter_id = e.encounter_id and o.concept_id in
(164174,160632,165104,1651,1640,162477,1655,1000075,1896,1272,162724,160433)
(164174,160632,165104,1651,1640,162477,1655,1000075,1896,1272,162724,160433,164181)
and o.voided=0
where e.voided=0
group by e.patient_id,date(e.encounter_datetime);
Expand Down
2 changes: 1 addition & 1 deletion omod/src/main/resources/sql/Scheduled_Updates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8923,7 +8923,7 @@ from encounter e
inner join person p on p.person_id=e.patient_id and p.voided=0
inner join form f on f.form_id = e.form_id and f.uuid = 'e958f902-64df-4819-afd4-7fb061f59308'
left outer join obs o on o.encounter_id = e.encounter_id and o.concept_id in
(164174,160632,165104,1651,1640,162477,1655,1000075,1896,1272,162724,160433)
(164174,160632,165104,1651,1640,162477,1655,1000075,1896,1272,162724,160433,164181)
and o.voided=0
where e.voided=0
and e.date_created >= last_update_time
Expand Down
2 changes: 1 addition & 1 deletion omod/src/main/resources/sql/dwapi/DML.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7708,7 +7708,7 @@ from encounter e
inner join person p on p.person_id=e.patient_id and p.voided=0
inner join form f on f.form_id = e.form_id and f.uuid = 'e958f902-64df-4819-afd4-7fb061f59308'
left outer join obs o on o.encounter_id = e.encounter_id and o.concept_id in
(164174,160632,165104,1651,1640,162477,1655,1000075,1896,1272,162724,160433)
(164174,160632,165104,1651,1640,162477,1655,1000075,1896,1272,162724,160433,164181)
and o.voided=0
where e.voided=0
group by e.patient_id,date(e.encounter_datetime);
Expand Down

0 comments on commit 0524f4b

Please sign in to comment.