| Id: |
OpioidCDSREC10OrderSelect |
| Url: |
OpioidCDSREC10OrderSelect |
| Version: |
2022.1.0 |
| Name: |
OpioidCDSREC10OrderSelect |
| Status: |
draft |
| Type: |
system: http://terminology.hl7.org/CodeSystem/library-type
code: logic-library
|
| Date: |
2025-11-13 15:52:38+0000 |
| Publisher: |
Centers for Disease Control and Prevention (CDC) |
| Related Artifacts: |
Dependencies
|
| Parameters: |
| Name | Type | Min | Max | In/Out |
| ContextPrescriptions | MedicationRequest | 0 | * | In |
| Patient | Patient | 0 | 1 | Out |
| Is Perform Drug Screen Recommendation Applicable? | boolean | 0 | 1 | Out |
| Applicable Because of Unexpected Results | boolean | 0 | 1 | Out |
| Detail | string | 0 | 1 | Out |
|
| Data Requirements: |
| Type | Profile | MS | Code Filter |
| Patient |
http://hl7.org/fhir/StructureDefinition/Patient |
|
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;; |
code filter:
path: code
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/all-urine-drug-screening-tests
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
| MedicationRequest |
http://hl7.org/fhir/StructureDefinition/MedicationRequest |
;;;; |
code filter:
path: category
value set: http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community
|
|
| Content: text/cql |
library OpioidCDSREC10OrderSelect version '2022.1.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
include OpioidCDSCommon version '2022.1.0' called Common
include OpioidCDSCommonConfig version '2022.1.0' called Config
include OpioidCDSRoutines version '2022.1.0' called Routines
include OpioidCDSREC10Common version '2022.1.0' called Rec10Common
parameter ContextPrescriptions List<MedicationRequest>
context Patient
define "Is Perform Drug Screen Recommendation Applicable?":
Rec10Common."Inclusion Criteria For UDS Recommendation"
define "Applicable Because of Unexpected Results":
Rec10Common."Inclusion Criteria For Unexpected Results"
define "Detail":
Rec10Common."Get HTML Details"
|
|
| Content: application/elm+xml |
Encoded data (9704 characters)
|
|
| Content: application/elm+json |
Encoded data (14908 characters)
|
|