-
Notifications
You must be signed in to change notification settings - Fork 2
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 #114 from cqframework/rec-backport
Rec Backport with new terminology
- Loading branch information
Showing
231 changed files
with
789,921 additions
and
210,906 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
#DO NOT EDIT WITH WINDOWS | ||
tooling_jar=tooling-1.1.0-SNAPSHOT-jar-with-dependencies.jar | ||
input_cache_path=./input-cache | ||
bundlegen_path=$PWD/bundlegen | ||
|
||
|
||
set -e | ||
echo Checking internet connection... | ||
wget -q --spider tx.fhir.org | ||
|
||
if [ $? -eq 0 ]; then | ||
echo "Online" | ||
fsoption="" | ||
#"-fs http://cqm-sandbox.alphora.com/cqf-ruler-r4/fhir/" | ||
else | ||
echo "Offline" | ||
fsoption="" | ||
fi | ||
|
||
echo "$fsoption" | ||
|
||
tooling=$input_cache_path/$tooling_jar | ||
if test -f "$tooling"; then | ||
JAVA -jar $tooling -BundleResources -ptd=$bundlegen_path op=$bundlegen_path -v=stu3 -e=json | ||
else | ||
tooling=../$tooling_jar | ||
echo $tooling | ||
if test -f "$tooling"; then | ||
JAVA -jar $tooling -BundleResources -ptd=$bundlegen_path op=$bundlegen_path -v=stu3 -e=json | ||
else | ||
echo IG Refresh NOT FOUND in input-cache or parent folder. Please run _updateCQFTooling. Aborting... | ||
fi | ||
fi |
34,753 changes: 34,753 additions & 0 deletions
34,753
bundles/OpioidCDSREC04/OpioidCDSREC04-bundle.json
Large diffs are not rendered by default.
Oops, something went wrong.
78 changes: 78 additions & 0 deletions
78
bundles/OpioidCDSREC04/OpioidCDSREC04-files/OpioidCDSREC04.cql
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
library OpioidCDSREC04 version '1.2.0' | ||
|
||
using FHIR version '3.0.0' | ||
|
||
include FHIRHelpers version '3.0.0' called FHIRHelpers | ||
include OpioidCDSCommon version '1.2.0' called Common | ||
include OpioidCDSRoutines version '1.2.0' called Routines | ||
|
||
/* | ||
** | ||
** Recommendation #4 | ||
** Prescribe immediate-release opioids instead of extended-release/long-acting (ER/LA) opioids | ||
** | ||
** When | ||
** Provider is prescribing an extended release opioid with ambulatory misuse potential in the outpatient setting | ||
** Prescription is for treating chronic pain. | ||
** Opioid review is useful for this patient: | ||
** Patient is 18 or over | ||
** Patient does not have findings indicating limited life expectancy | ||
** Patient does not have orders for therapies indicating end of life care | ||
** Patient is not undergoing active cancer treatment: | ||
** Patient has had at least 2 encounters within the past year with any diagnosis of cancer | ||
** Patient is opioid naive: | ||
** No indication of opioid use in the past 90 days from a prescription, self report, or a dispensing event | ||
** Then | ||
** Recommend use of immediate release opioids: | ||
** Will prescribe immediate release opioid analgesic with ambulatory misuse potential | ||
** Benefits outweigh risks, snooze 3 months | ||
** N/A - see comment, snooze 3 months | ||
** | ||
*/ | ||
|
||
// META: Plan Definition: http://fhir.org/guides/cdc/opioid-cds/PlanDefinition/opioid-cds-04 | ||
|
||
parameter ContextPrescriptions List<MedicationRequest> | ||
|
||
context Patient | ||
|
||
define "Inclusion Period": | ||
Interval[Today() - 91 days, Today() - 1 days] | ||
|
||
define "Encounter Period": | ||
Interval[Today() - 12 months - 1 days, Today() - 1 days] | ||
|
||
define "Chronic Pain Extended Release Opioid Analgesic with Ambulatory Misuse Potential Prescriptions": | ||
( Common."Is Opioid Analgesic with Ambulatory Misuse Potential?"( ContextPrescriptions ) ) AmbulatoryOpioidPrescription | ||
where Routines."Is Chronic Pain Prescription?"( AmbulatoryOpioidPrescription ) | ||
and AmbulatoryOpioidPrescription.medication in Common."Extended release opioid analgesics with ambulatory misuse potential" | ||
|
||
define "Patient Is Being Prescribed Extended Release Opioid Analgesic with Ambulatory Misuse Potential": | ||
exists( "Chronic Pain Extended Release Opioid Analgesic with Ambulatory Misuse Potential Prescriptions" ) | ||
|
||
define "Is Recommendation Applicable?": | ||
"Inclusion Criteria" | ||
and not "Exclusion Criteria" | ||
|
||
define "Inclusion Criteria": | ||
"Patient Is Being Prescribed Extended Release Opioid Analgesic with Ambulatory Misuse Potential" | ||
and Routines."Is Opioid Review Useful?" | ||
and Routines."Is Opioid Naive?" | ||
|
||
define "Exclusion Criteria": | ||
false | ||
|
||
define "Get Indicator": | ||
if "Is Recommendation Applicable?" | ||
then 'warning' | ||
else null | ||
|
||
define "Get Summary": | ||
if "Is Recommendation Applicable?" | ||
then 'Recommend use of immediate-release opioids instead of extended release/long acting opioids when starting patient on opioids.' | ||
else null | ||
|
||
define "Get Detail": | ||
if "Is Recommendation Applicable?" | ||
then 'The following medication requests(s) release rates should be re-evaluated: ' + Combine( flatten( Common.GetMedicationNames( "Chronic Pain Extended Release Opioid Analgesic with Ambulatory Misuse Potential Prescriptions" ) ), ', ' ) | ||
else null |
130 changes: 130 additions & 0 deletions
130
bundles/OpioidCDSREC04/OpioidCDSREC04-files/library-OpioidCDSREC04.json
Large diffs are not rendered by default.
Oops, something went wrong.
686 changes: 686 additions & 0 deletions
686
bundles/OpioidCDSREC04/OpioidCDSREC04-files/library-deps-OpioidCDSREC04-bundle.json
Large diffs are not rendered by default.
Oops, something went wrong.
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.