Skip to content

Commit

Permalink
Update onprc_ehr-24.004-24.005.sql
Browse files Browse the repository at this point in the history
Removeed withdrawn from the query where clause
  • Loading branch information
jonesgaohsu authored Dec 30, 2024
1 parent d8f50eb commit 0750996
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ WITH ApprovedProtocols AS (
FROM
onprc_ehr.eIACUC_PRIME_VIEW_PROTOCOLS
WHERE
Protocol_State IN ('approved','expired', 'terminated', 'withdrawn')
Protocol_State IN ('approved','expired', 'terminated')
GROUP BY
BaseProtocol
),
Expand Down Expand Up @@ -44,4 +44,4 @@ Update p
Set p.enddate = getDate() , p.contacts = 'EndDated based on Protocol_State ' + e.PROTOCOL_State

from ehr.protocol p inner join expiredProtocol e on p.external_id = e.BaseProtocol
END
END

0 comments on commit 0750996

Please sign in to comment.