OMTKLogicMK2020
type: Library
node role: treeRoot
id:
  v: OMTKLogicMK2020
text:
  status:
    v: extensions
  div:
    v: Id: OMTKLogicMK2020 Url: Library - OMTK Data (2020) Version: 2022.1.0 Name: OMTKLogicMK2020 Title: Library - OMTK Data (2020) Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2026-04-27 16:35:01+0000 Publisher: CDC / Security Risk Solutions, Inc. (SRS) Copyright: Centers for Disease Control and Prevention (CDC) Related Artifacts: Dependencies http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 Library - OMTK Data (2020) version: 2022.1.0 RxNorm Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Content: text/cql library OMTKLogicMK2020 version '2022.1.0' /* This version of the OMTKLogic library uses the FHIR MedicationKnowledge Resource as the source for drug ingredient and strength information, rather than the OMTK data source. */ using FHIR version '4.0.1' include OMTKData2020 version '2022.1.0' called OMTKData codesystem RxNorm: 'http://www.nlm.nih.gov/research/umls/rxnorm' context Patient /* Normalizes the input units to UCUM units Note guidance for UCUM presentation of medication units from SNOMED here: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwjU3vLpicPTAhWFMGMKHRpOBUAQFggiMAA&url=https%3A%2F%2Fconfluence.ihtsdotools.org%2Fdownload%2Fattachments%2F17859188%2FExpressing%2520Units%2520of%2520Measure%2520for%2520Medicinal%2520Products.doc%3Fapi%3Dv2&usg=AFQjCNE5sboicqvJDUyXJ2im8VzBpgHE8A The values listed here are the only ones currently present in the OMTK data Based on the HL7 UCUM subset here: http://download.hl7.de/documents/ucum/ucumdata.html */ define function ToUCUM(unit System.String): case unit when 'MG' then 'mg' when 'MG/ACTUAT' then 'mg/{actuat}' when 'MG/HR' then 'mg/h' when 'MG/ML' then 'mg/mL' else 'Error: unknown{' + unit + '}' end /* Calculates daily frequency given frequency within a period */ define …
contained: Parameters
  id:
    v: options
  parameter:
    name:
      v: translatorVersion
    value: String
      v: 3.25.0
  parameter:
    name:
      v: option
    value: String
      v: EnableAnnotations
  parameter:
    name:
      v: option
    value: String
      v: EnableLocators
  parameter:
    name:
      v: option
    value: String
      v: DisableListDemotion
  parameter:
    name:
      v: option
    value: String
      v: DisableListPromotion
  parameter:
    name:
      v: format
    value: String
      v: JSON
  parameter:
    name:
      v: format
    value: String
      v: XML
  parameter:
    name:
      v: analyzeDataRequirements
    value: Boolean
      v: false
  parameter:
    name:
      v: collapseDataRequirements
    value: Boolean
      v: true
  parameter:
    name:
      v: compatibilityLevel
    value: String
      v: 1.5
  parameter:
    name:
      v: enableCqlOnly
    value: Boolean
      v: false
  parameter:
    name:
      v: errorLevel
    value: String
      v: Info
  parameter:
    name:
      v: signatureLevel
    value: String
      v: Overloads
  parameter:
    name:
      v: validateUnits
    value: Boolean
      v: true
  parameter:
    name:
      v: verifyOnly
    value: Boolean
      v: false
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions
    l: cqf-cqlOptions
  value: Reference
    l: options
    reference:
      v: #options
extension:
  url:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
    l: crmi-softwaresystem
  value: Reference
    l: cqf-tooling
    reference:
      v: Device/cqf-tooling
url:
  v: http://fhir.org/guides/cdc/opioid-cds/Library/OMTKLogicMK2020
  l: OMTKLogicMK2020
version:
  v: 2022.1.0
name:
  v: OMTKLogicMK2020
title:
  v: Library - OMTK Data (2020)
status:
  v: active
experimental:
  v: false
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2026-04-27T16:35:01+00:00
publisher:
  v: CDC / Security Risk Solutions, Inc. (SRS)
contact:
  telecom:
    system:
      v: url
    value:
      v: https://www.securityrisksolutions.com
copyright:
  v: Centers for Disease Control and Prevention (CDC)
related artifact:
  type:
    v: depends-on
  display:
    v: FHIR model information
  resource:
    v: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
    l: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library OMTKData
  resource:
    v: http://fhir.org/guides/cdc/opioid-cds/Library/OMTKData2020|2022.1.0
    l: http://fhir.org/guides/cdc/opioid-cds/Library/OMTKData2020
related artifact:
  type:
    v: depends-on
  display:
    v: Code system RxNorm
  resource:
    v: http://www.nlm.nih.gov/research/umls/rxnorm
    l: rxnorm
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
data requirement:
  type:
    v: Patient
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json