eCQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2025.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/ecqm-content-qicore-2025/ and changes regularly. See the Directory of published versions
Active as of 2025-04-15 |
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
a fhir:Library ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "Antibiotic"] ; #
fhir:meta [
( fhir:profile [
fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary> ] [
fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-computablelibrary"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-computablelibrary> ] [
fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary> ] [
fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-executablelibrary"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-executablelibrary> ] [
fhir:v "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library> ] [
fhir:v "http://hl7.org/fhir/uv/cql/StructureDefinition/elm-json-library"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/cql/StructureDefinition/elm-json-library> ] [
fhir:v "http://hl7.org/fhir/uv/cql/StructureDefinition/elm-xml-library"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/cql/StructureDefinition/elm-xml-library> ] )
] ; #
fhir:language [ fhir:v "en"] ; #
fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <table class=\"grid dict\">\n \n \n <tr>\n <th scope=\"row\"><b>Title: </b></th>\n <td style=\"padding-left: 4px;\">Antibiotic</td>\n </tr>\n \n\n \n \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">Antibiotic</td>\n </tr>\n \n\n \n \n <tr>\n <th scope=\"row\"><b>Version: </b></th>\n <td style=\"padding-left: 4px;\">1.9.000</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\">https://madie.cms.gov/Library/Antibiotic</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\">\n <b>\n \n official\n \n </b>\n </th>\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>67fd69295291b0360f7fbac8</span>\n </p>\n \n </td>\n </tr>\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Type: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span>http://terminology.hl7.org/CodeSystem/library-type</span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>logic-library</span>\n </p>\n \n \n \n \n \n </td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Date: </b></th>\n <td style=\"padding-left: 4px;\">2025-04-15T20:44:04+00:00</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Publisher: </b></th>\n <td style=\"padding-left: 4px;\">National Committee for Quality Assurance</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Description: </b></th>\n <td style=\"padding-left: 4px;\">This library contains functions used to exclude patients with a history of comorbid conditions, competing diagnoses, or antibiotic medications.</td>\n </tr>\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Related Artifacts: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n <p><b>Dependencies</b></p>\n <ul>\n \n <li>https://madie.cms.gov/Library/QICoreCommon|4.0.000</li>\n \n <li>https://madie.cms.gov/Library/FHIRHelpers|4.4.000</li>\n \n <li>https://madie.cms.gov/Library/CumulativeMedicationDuration|6.0.000</li>\n \n </ul>\n \n \n \n \n \n </td>\n </tr>\n \n\n \n\n \n\n \n \n <tr>\n <td colspan=\"2\">\n <table>\n <tr><th><a id=\"cql-content\"><b>Content: </b></a> text/cql</th></tr>\n <tr><td><pre><code class=\"language-cql\">library Antibiotic version '1.9.000'\n\nusing QICore version '6.0.0'\n\ninclude FHIRHelpers version '4.4.000' called FHIRHelpers\ninclude QICoreCommon version '4.0.000' called QICoreCommon\ninclude CumulativeMedicationDuration version '6.0.000' called CMD\n\nparameter \"Measurement Period\" Interval<DateTime>\n\ncontext Patient\n\ndefine function \"Has Comorbid Condition History\"(episodeDate List<Encounter>, comorbidConditions List<ConditionEncounterDiagnosis>):\n episodeDate eDate\n with comorbidConditions comcondition\n such that date from start of comcondition.prevalenceInterval() during Interval[date from start of eDate.period.toInterval() - 1 year, date from start of eDate.period.toInterval()]\n return eDate\n\ndefine function \"Has Competing Diagnosis History\"(episodeDate List<Encounter>, competingConditions List<ConditionEncounterDiagnosis>):\n episodeDate eDate\n with competingConditions competcondition\n such that competcondition.prevalenceInterval() starts 3 days or less on or after day of start of eDate.period\n return eDate\n\ndefine function \"Has Antibiotic Medication History\"(episodeDate List<Encounter>, antibioticMedications List<MedicationRequest>):\n episodeDate DateOfEpisode\n with antibioticMedications ActiveMedication\n such that ActiveMedication.medicationRequestPeriod() overlaps day of Interval[date from start of DateOfEpisode.period.toInterval() - 30 days, date from start of DateOfEpisode.period.toInterval() - 1 day]</code></pre></td></tr>\n </table>\n </td>\n </tr>\n \n \n \n </table>\n</div>"^^rdf:XMLLiteral
] ; #
fhir:contained ( [
a fhir:Parameters ;
fhir:id [ fhir:v "options" ] ;
( fhir:parameter [
fhir:name [ fhir:v "translatorVersion" ] ;
fhir:value [
a fhir:string ;
fhir:v "3.25.0" ] ] [
fhir:name [ fhir:v "option" ] ;
fhir:value [
a fhir:string ;
fhir:v "EnableAnnotations" ] ] [
fhir:name [ fhir:v "option" ] ;
fhir:value [
a fhir:string ;
fhir:v "EnableLocators" ] ] [
fhir:name [ fhir:v "option" ] ;
fhir:value [
a fhir:string ;
fhir:v "DisableListDemotion" ] ] [
fhir:name [ fhir:v "option" ] ;
fhir:value [
a fhir:string ;
fhir:v "DisableListPromotion" ] ] [
fhir:name [ fhir:v "format" ] ;
fhir:value [
a fhir:string ;
fhir:v "JSON" ] ] [
fhir:name [ fhir:v "format" ] ;
fhir:value [
a fhir:string ;
fhir:v "XML" ] ] [
fhir:name [ fhir:v "analyzeDataRequirements" ] ;
fhir:value [
a fhir:boolean ;
fhir:v false ] ] [
fhir:name [ fhir:v "collapseDataRequirements" ] ;
fhir:value [
a fhir:boolean ;
fhir:v false ] ] [
fhir:name [ fhir:v "compatibilityLevel" ] ;
fhir:value [
a fhir:string ;
fhir:v "1.5" ] ] [
fhir:name [ fhir:v "enableCqlOnly" ] ;
fhir:value [
a fhir:boolean ;
fhir:v false ] ] [
fhir:name [ fhir:v "errorLevel" ] ;
fhir:value [
a fhir:string ;
fhir:v "Info" ] ] [
fhir:name [ fhir:v "signatureLevel" ] ;
fhir:value [
a fhir:string ;
fhir:v "Overloads" ] ] [
fhir:name [ fhir:v "validateUnits" ] ;
fhir:value [
a fhir:boolean ;
fhir:v true ] ] [
fhir:name [ fhir:v "verifyOnly" ] ;
fhir:value [
a fhir:boolean ;
fhir:v false ] ] )
] ) ; #
fhir:extension ( [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "#options" ] ]
] ) ; #
fhir:url [ fhir:v "https://madie.cms.gov/Library/Antibiotic"^^xsd:anyURI] ; #
fhir:identifier ( [
fhir:use [ fhir:v "official" ] ;
fhir:system [ fhir:v "https://madie.cms.gov/login"^^xsd:anyURI ] ;
fhir:value [ fhir:v "67fd69295291b0360f7fbac8" ]
] ) ; #
fhir:version [ fhir:v "1.9.000"] ; #
fhir:name [ fhir:v "Antibiotic"] ; #
fhir:title [ fhir:v "Antibiotic"] ; #
fhir:status [ fhir:v "active"] ; #
fhir:experimental [ fhir:v false] ; #
fhir:type [
( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "logic-library" ] ] )
] ; #
fhir:date [ fhir:v "2025-04-15T20:44:04+00:00"^^xsd:dateTime] ; #
fhir:publisher [ fhir:v "National Committee for Quality Assurance"] ; #
fhir:description [ fhir:v "This library contains functions used to exclude patients with a history of comorbid conditions, competing diagnoses, or antibiotic medications."] ; #
fhir:content ( [
fhir:contentType [ fhir:v "text/cql" ] ;
fhir:data [ fhir:v "bGlicmFyeSBBbnRpYmlvdGljIHZlcnNpb24gJzEuOS4wMDAnCgp1c2luZyBRSUNvcmUgdmVyc2lvbiAnNi4wLjAnCgppbmNsdWRlIEZISVJIZWxwZXJzIHZlcnNpb24gJzQuNC4wMDAnIGNhbGxlZCBGSElSSGVscGVycwppbmNsdWRlIFFJQ29yZUNvbW1vbiB2ZXJzaW9uICc0LjAuMDAwJyBjYWxsZWQgUUlDb3JlQ29tbW9uCmluY2x1ZGUgQ3VtdWxhdGl2ZU1lZGljYXRpb25EdXJhdGlvbiB2ZXJzaW9uICc2LjAuMDAwJyBjYWxsZWQgQ01ECgpwYXJhbWV0ZXIgIk1lYXN1cmVtZW50IFBlcmlvZCIgSW50ZXJ2YWw8RGF0ZVRpbWU+Cgpjb250ZXh0I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lzb2RlRGF0ZSBMaXN0PEVuY291bnRlcj4sIGFudGliaW90aWNNZWRpY2F0aW9ucyBMaXN0PE1lZGljYXRpb25SZXF1ZXN0Pik6CiAgIGVwaXNvZGVEYXRlIERhdGVPZkVwaXNvZGUKICAgIHdpdGggYW50aWJpb3RpY01lZGljYXRpb25zIEFjdGl2ZU1lZGljYXRpb24KICAgICAgc3VjaCB0aGF0IEFjdGl2ZU1lZGljYXRpb24ubWVkaWNhdGlvblJlcXVlc3RQZXJpb2QoKSBvdmVybGFwcyBkYXkgb2YgSW50ZXJ2YWxbZGF0ZSBmcm9tIHN0YXJ0IG9mIERhdGVPZkVwaXNvZGUucGVyaW9kLnRvSW50ZXJ2YWwoKSAgLSAzMCBkYXlzLCBkYXRlIGZyb20gc3RhcnQgb2YgRGF0ZU9mRXBpc29kZS5wZXJpb2QudG9JbnRlcnZhbCgpIC0gMSBkYXld"^^xsd:base64Binary ]
] ) . #
IG © 2023+ cqframework. Package gov.healthit.ecqi.ecqms#2025.0.0 based on FHIR 4.0.1. Generated 2025-09-06
Links: Table of Contents |
QA Report
| Version History | License