Skip to content

Commit

Permalink
Merge 23.3 to 23.7
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-teamcity committed Feb 16, 2024
2 parents 065177a + d91de89 commit da8d64b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onprc_ehr/resources/queries/study/pregnancyGestation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ INNER JOIN ehr_lookups.species p on (m.Id.DataSet.demographics.species = p.commo
And m.date in (select max(s.date) AS d from study.pregnancyConfirmation s where s.id = m.id)
And m.Id.DataSet.demographics.calculated_status.code = 'Alive'
And p.Gestation is not null
And m.outcome.birthDate is null
And m.outcome.birthDate is null And (Select count(*) from ehr.snomed_tags stg where stg.code.code = 'F-30980' And stg.id = m.id
And stg.date >= m.date ) = 0
And m.gestation_days is not null

0 comments on commit da8d64b

Please sign in to comment.