Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop to Master update recent performance changes #185

Merged
merged 6 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions input/pagecontent/cql/OpioidCDSCommon.cql
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ define "Admitted/Referred/Discharged to Hospice Care":
)
union
(
[ServiceRequest: code in "Hospice Procedure Codes"] E
where E.status.value in { 'planned', 'arrived', 'in-progress', 'finished', 'onleave' }
"Service Requests" SR
where SR.code in "Hospice Procedure Codes"
and SR.status.value in { 'active', 'completed' }
)
union
(
Expand Down Expand Up @@ -355,3 +356,7 @@ define function ToRxNormCode(coding List<FHIR.Coding>):
singleton from (
coding C where C.system = 'http://www.nlm.nih.gov/research/umls/rxnorm'
)

define "Service Requests":
[ServiceRequest] SR
return SR
5 changes: 4 additions & 1 deletion input/pagecontent/cql/OpioidCDSREC08.cql
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,13 @@ define "Exclusion Criteria":
)
or Common."End of Life Assessment"

define "Active Ambulatory Opioid Rx":
Common."Active Ambulatory Opioid Rx"

define "Total MME":
MMECalculator.TotalMME(
"Chronic Pain Opioid Analgesic with Ambulatory Misuse Potential Prescriptions"
union Common."Active Ambulatory Opioid Rx"
union "Active Ambulatory Opioid Rx"
)

define "On Naloxone":
Expand Down
9 changes: 5 additions & 4 deletions input/pagecontent/cql/OpioidCDSRoutines.cql
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ define "Conditions Indicating End Of Life Present":

define "Order For Palliative Care In Past 90 Days":
exists (
[ServiceRequest: Common."Therapies indicating end of life care"] SR
where SR.status in { 'active', 'completed'}
and SR.intent != null
and FHIRHelpers.ToDateTime(SR.authoredOn) during day of "Palliative Care Lookback Period"
Common."Service Requests" SR
where SR.status in { 'active', 'completed'}
and SR.intent != null
and FHIRHelpers.ToDateTime(SR.authoredOn) during day of "Palliative Care Lookback Period"
and SR.code in Common."Therapies indicating end of life care"
)

define "Conditions Including Cancer To Exclude Opioid Management Indicating End-Stage Disease Present":
Expand Down