2026 US Quality Core Implementation Guide
0.5.0 - cibuild US

2026 US Quality Core Implementation Guide, published by Office of the National Coordinator for Health Information Technology (ONC). This guide is not an authorized publication; it is the continuous build for version 0.5.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/FHIR/us-quality-core/ and changes regularly. See the Directory of published versions

## : US Quality Core CommonTests - TTL Representation

Active as of 2025-10-02

Raw ttl | Download

    @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 "USQualityCoreCommonTests"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary>     ] [
    fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-computablelibrary"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-computablelibrary>     ] [
    fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary>     ] [
    fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-executablelibrary"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-executablelibrary>     ] [
    fhir:v "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library>     ] [
    fhir:v "http://hl7.org/fhir/uv/cql/StructureDefinition/elm-json-library"^^xsd:anyURI ;
    fhir:l <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:l <http://hl7.org/fhir/uv/cql/StructureDefinition/elm-xml-library>     ] )
      ] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n    <table class=\"grid dict\">\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">US Quality Core CommonTests</td>\n        </tr>\n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">USQualityCoreCommonTests</td>\n        </tr>\n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">0.5.0</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><a href=\"Library-USQualityCoreCommonTests.html\">US Quality Core CommonTests</a></td>\n        </tr>\n        \n\n        \n\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Experimental: </b></th>\n            <td style=\"padding-left: 4px;\">true</td>\n        </tr>\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><a href=\"http://hl7.org/fhir/R4/codesystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a></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-10-02 13:51:38+0000</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Publisher: </b></th>\n            <td style=\"padding-left: 4px;\">Office of the National Coordinator for Health Information Technology (ONC)</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Description: </b></th>\n            <td style=\"padding-left: 4px;\"><div><p>Tests for the US Quality Core Common library</p>\n</div></td>\n        </tr>\n        \n\n        \n\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Jurisdiction: </b></th>\n            <td style=\"padding-left: 4px;\">US</td>\n        </tr>\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Topic: </b></th>\n                <td style=\"padding-left: 4px;\"/>\n            </tr>\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><a href=\"Library-USQualityCore-ModelInfo.html\">US Quality Core Model Definition</a> version: 0.5.0</li>\n                  \n                    <li><a href=\"Library-USQualityCoreCommon.html\">US Quality Core Common</a></li>\n                  \n                    <li><a href=\"http://hl7.org/fhir/R4/v3/MaritalStatus/cs.html\">v3 Code System MaritalStatus</a></li>\n                  \n                    <li><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-CDCREC.html\">CDC Race and Ethnicity</a></li>\n                  \n                    <li><a href=\"http://hl7.org/fhir/R4/codesystem-communication-category.html\">CommunicationCategory</a></li>\n                  \n                    <li><a href=\"http://hl7.org/fhir/R4/codesystem-snomedct.html\">SNOMED CT (all versions)</a></li>\n                  \n                    <li><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-CVX.html\">Vaccine Administered Code Set (CVX)</a></li>\n                  \n                    <li><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-loinc.html\">Logical Observation Identifiers, Names and Codes (LOINC)</a></li>\n                  \n                    <li><a href=\"http://hl7.org/fhir/R4/codesystem-task-code.html\">Task Codes</a></li>\n                  \n                    <li><a href=\"http://hl7.org/fhir/R4/valueset-marital-status.html\">MaritalStatus</a></li>\n                  \n                    <li><a href=\"http://hl7.org/fhir/R4/valueset-communication-category.html\">CommunicationCategory</a></li>\n                  \n                    <li><code>http://example.org/fhir/ValueSet/device-codes</code></li>\n                  \n                    <li><code>http://example.org/fhir/ValueSet/immunization-codes</code></li>\n                  \n                    <li><code>http://example.org/fhir/ValueSet/medication-codes</code></li>\n                  \n                    <li><code>http://example.org/fhir/ValueSet/observation-codes</code></li>\n                  \n                    <li><code>http://example.org/fhir/ValueSet/procedure-codes</code></li>\n                  \n                    <li><a href=\"http://hl7.org/fhir/R4/valueset-task-code.html\">Task Codes</a></li>\n                  \n                    <li><a href=\"ValueSet-us-quality-core-negation-reason.html\">USQualityCore Negation Reason Codes</a></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 USQualityCoreCommonTests version '0.5.0'\n\nusing USQualityCore version '0.5.0'\nusing USCore version '6.1.0-derived'\nusing FHIR version '4.0.1'\n\ninclude FHIRHelpers version '4.0.1'\ninclude USQualityCoreCommon\n\ncodesystem \"Marital Status Codes\": 'http://terminology.hl7.org/CodeSystem/v3-MaritalStatus'\ncodesystem \"CDC Race and Ethnicity Codes\": 'urn:oid:2.16.840.1.113883.6.238'\ncodesystem \"CommunicationCategoryCodeSystem\": 'http://terminology.hl7.org/CodeSystem/communication-category'\ncodesystem \"SNOMED-CT\": 'http://snomed.info/sct'\ncodesystem \"CVX\": 'http://hl7.org/fhir/sid/cvx'\ncodesystem \"LOINC\": 'http://loinc.org'\ncodesystem \"TaskCodeSystem\": 'http://hl7.org/fhir/CodeSystem/task-code'\n\nvalueset \"Marital Status\": 'http://hl7.org/fhir/ValueSet/marital-status'\nvalueset \"CommunicationCodes\": 'http://hl7.org/fhir/ValueSet/communication-category'\nvalueset \"DeviceCodes\": 'http://example.org/fhir/ValueSet/device-codes' // Random set of device codes from 'http://hl7.org/fhir/ValueSet/device-type'\nvalueset \"ImmunizationCodes\": 'http://example.org/fhir/ValueSet/immunization-codes' // Random set of immunization codes from 'http://hl7.org/fhir/us/core/ValueSet/us-core-vaccines-cvx'\nvalueset \"MedicationCodes\": 'http://example.org/fhir/ValueSet/medication-codes' // Random set of medication codes from 'http://hl7.org/fhir/ValueSet/medication-codes'\nvalueset \"ObservationCodes\": 'http://example.org/fhir/ValueSet/observation-codes' // Random set of observation codes from 'http://hl7.org/fhir/ValueSet/observation-codes'\nvalueset \"ProcedureCodes\": 'http://example.org/fhir/ValueSet/procedure-codes' // Random set of procedure codes from 'http://hl7.org/fhir/us/core/ValueSet/us-core-procedure-code'\nvalueset \"TaskCodes\": 'http://hl7.org/fhir/ValueSet/task-code'\nvalueset \"NegationReasonCodes\": 'http://fhir.org/guides/onc/us-quality-core/ValueSet/us-quality-core-negation-reason'\n\ncode \"Marital Status - Married\": 'M' from \"Marital Status Codes\"\ncode \"American Indian or Alaska Native\": '1002-5' from \"CDC Race and Ethnicity Codes\"\ncode \"Alaska Native\": '1735-0' from \"CDC Race and Ethnicity Codes\"\ncode \"CommunicationCode\": 'alert' from \"CommunicationCategoryCodeSystem\" display 'Alert'\ncode \"DeviceCode\": '156009' from \"SNOMED-CT\" display 'Spine board'\ncode \"ImmunizationCode\": '01' from \"CVX\" display 'diphtheria, tetanus toxoids and pertussis vaccine'\ncode \"MedicationCode\": '26100' from \"SNOMED-CT\" display 'Codeine phosphate'\ncode \"ObservationCode\": '1-8' from \"LOINC\" display 'Acyclovir [Susceptibility]'\ncode \"ProcedureCode\": '7138802' from \"SNOMED-CT\" display 'Procedure'\ncode \"TaskCode\": 'approve' from \"TaskCodeSystem\" display 'Activate/approve the focal resource'\n\ncontext Patient\n\ndefine TestAdverseEvent: [\"AdverseEvent\"]\ndefine TestAllergyIntolerance: [\"AllergyIntolerance\"]\ndefine TestBodyStructure: [\"BodyStructure\"]\ndefine TestCarePlan: [\"CarePlan\"]\ndefine TestCareTeam: [\"CareTeam\"]\ndefine TestClaim: [\"Claim\"]\ndefine TestClaimResponse: [\"ClaimResponse\"]\ndefine TestCommunication: [\"Communication\"]\ndefine TestCommunicationNotDone: [\"CommunicationNotDone\"]\ndefine TestCommunicationRequest: [\"CommunicationRequest\"]\ndefine TestConditionEncounterDiagnosis: [\"ConditionEncounterDiagnosis\"]\ndefine TestConditionProblemsHealthConcerns: [\"ConditionProblemsHealthConcerns\"]\ndefine TestCoverage: [\"Coverage\"]\ndefine TestDevice: [\"Device\"]\ndefine TestDeviceNotRequested: [\"DeviceNotRequested\"]\ndefine TestDeviceRequest: [\"DeviceRequest\"]\ndefine TestDeviceUseStatement: [\"DeviceUseStatement\"]\ndefine TestDiagnosticReportLab: [\"DiagnosticReportLab\"]\ndefine TestDiagnosticReportNote: [\"DiagnosticReportNote\"]\ndefine TestEncounter: [\"Encounter\"]\ndefine TestFamilyMemberHistory: [\"FamilyMemberHistory\"]\ndefine TestFlag: [\"Flag\"]\ndefine TestGoal: [\"Goal\"]\ndefine TestImagingStudy: [\"ImagingStudy\"]\ndefine TestImmunization: [\"Immunization\"]\ndefine TestImmunizationEvaluation: [\"ImmunizationEvaluation\"]\ndefine TestImmunizationNotDone: [\"ImmunizationNotDone\"]\ndefine TestImmunizationRecommendation: [\"ImmunizationRecommendation\"]\ndefine TestLaboratoryResultObservation: [\"LaboratoryResultObservation\"]\ndefine TestLocation: [\"Location\"]\ndefine TestMedication: [\"Medication\"]\ndefine TestMedicationAdministration: [\"MedicationAdministration\"]\ndefine TestMedicationAdministrationNotDone: [\"MedicationAdministrationNotDone\"]\ndefine TestMedicationDispense: [\"MedicationDispense\"]\ndefine TestMedicationDispenseDeclined: [\"MedicationDispenseDeclined\"]\ndefine TestMedicationNotRequested: [\"MedicationNotRequested\"]\ndefine TestMedicationRequest: [\"MedicationRequest\"]\ndefine TestMedicationStatement: [\"MedicationStatement\"]\ndefine TestObservation: [\"SimpleObservation\"]\ndefine TestObservationCancelled: [\"ObservationCancelled\"]\ndefine TestObservationClinicalTestResult: [\"ObservationClinicalResult\"]\ndefine TestObservationImagingResult: [\"NonPatientObservation\"]\ndefine TestObservationSurvey: [\"ObservationScreeningAssessment\"]\ndefine TestOrganization: [\"Organization\"]\ndefine TestPatient: [\"Patient\"]\ndefine TestVitalsPanel: [USCore.VitalSignsProfile]\ndefine TestRespRate: [USCore.RespiratoryRateProfile]\ndefine TestHeartRate: [USCore.HeartRateProfile]\ndefine TestBodyTemp: [USCore.BodyTemperatureProfile]\ndefine TestBodyHeight: [USCore.BodyHeightProfile]\ndefine TestHeadCircum: [USCore.HeadCircumferenceProfile]\ndefine TestBodyWeight: [USCore.BodyWeightProfile]\ndefine TestBMI: [USCore.BMIProfile]\ndefine TestBP: [USCore.BloodPressureProfile]\ndefine TestPractitioner: [\"Practitioner\"]\ndefine TestPractitionerRole: [\"PractitionerRole\"]\ndefine TestProcedure: [\"Procedure\"]\ndefine TestProcedureNotDone: [\"ProcedureNotDone\"]\ndefine TestRelatedPerson: [\"RelatedPerson\"]\ndefine TestServiceNotRequested: [\"ServiceNotRequested\"]\ndefine TestServiceRequest: [\"ServiceRequest\"]\ndefine TestSpecimen: [\"Specimen\"]\ndefine TestSubstance: [\"Substance\"]\ndefine TestTask: [\"Task\"]\ndefine TestTaskRejected: [\"TaskRejected\"]\ndefine TestUSCoreImplantableDevice: [USCore.ImplantableDeviceProfile]\ndefine TestUSCoreSmokingStatus: [USCore.SmokingStatusProfile]\ndefine TestUSCorePulseOximetry: [USCore.PulseOximetryProfile]\ndefine TestUSCorePediatricBMIForAge: [USCore.PediatricBMIforAgeObservationProfile]\ndefine TestUSCorePediatricWeightForHeight: [USCore.PediatricWeightForHeightObservationProfile]\ndefine TestUSCorePediatricHeadOccipitalFrontalCircumferencePercentileProfile: [USCore.PediatricHeadOccipitalFrontalCircumferencePercentileProfile]\n//define TestUSCoreObservationSDOHAssessment: [USCore.ObservationSDOHAssessment]\n//define TestUSCoreObservationSocialHistoryProfile: [USCore.ObservationSocialHistoryProfile]\ndefine TestUSCoreObservationSexualOrientationProfile: [USCore.ObservationSexualOrientationProfile]\n\n// Validate Encounter.diagnosis cardinality\ndefine TestEncounterDiagnosisCardinality:\n  exists (First([Encounter]).diagnosis)\n\n// Validate ProcedureNotDone elements\ndefine TestProcedureNotDoneElements:\n  [ProcedureNotDone] P\n    where P.recorded() on or before day of Today()\n      and exists (P.identifier)\n      and P.status = 'not-done'\n      and P.statusReason is not null\n      and P.category is not null\n      and P.code is not null\n      and P.performed is null\n\n// Validate NotDone...\n\n// CommunicationNotDone\ndefine TestSpecificCommunicationNotDone:\n  [\"CommunicationNotDone\": CommunicationCode]\n\n// TODO: Support this case, need to introduce a terminology contains operator\n// This operator is introduced in CQL R2\n//define TestSpecificCommunicationNotDoneActual:\n//    [\"CommunicationNotDone\": topic ~ CommunicationCode]\n//      union [\"CommunicationNotDone\": topic ~contains CommunicationCode]\n\ndefine TestSpecificCommunicationNotDoneExplicit:\n  [\"CommunicationNotDone\"] C\n    where C.topic() ~ CommunicationCode\n      or CommunicationCode in C.topic()\n\ndefine TestGeneralCommunicationNotDone:\n  [\"CommunicationNotDone\": CommunicationCodes]\n\n// NOTE: This warning should not be happening, logged a translator issue to investigate: https://github.com/cqframework/clinical_quality_language/issues/1714\ndefine TestGeneralCommunicationNotDoneActual:\n  [\"CommunicationNotDone\": topic in CommunicationCodes]\n    union [\"CommunicationNotDone\": topic ~ CommunicationCodes]\n\ndefine TestGeneralCommunicationNotDoneExplicit:\n  [\"CommunicationNotDone\"] C\n    where C.topic() in CommunicationCodes\n      or C.topic() ~ CommunicationCodes\n\n// DeviceNotRequested\ndefine TestSpecificDeviceNotRequested:\n  [\"DeviceNotRequested\": DeviceCode]\n\n// TODO: Support this use case\n//define TestSpecificDeviceNotRequestedActual:\n//    [\"DeviceNotRequested\": code ~ DeviceCode]\n//      union [\"DeviceNotRequested\": code ~contains DeviceCode]\n\ndefine TestSpecificDeviceNotRequestedExplicit:\n  [DeviceNotRequested] D\n    where D.code() ~ DeviceCode\n      or DeviceCode in D.code()\n\ndefine TestGeneralDeviceNotRequested:\n  [\"DeviceNotRequested\": DeviceCodes]\n\n// NOTE: This warning should not be happening, logged a translator issue to investigate: https://github.com/cqframework/clinical_quality_language/issues/1714\ndefine TestGeneralDeviceNotRequestedActual:\n  [\"DeviceNotRequested\": code in DeviceCodes]\n    union [\"DeviceNotRequested\": code ~ DeviceCodes]\n\ndefine TestGeneralDeviceNotRequestedExplicit:\n  [\"DeviceNotRequested\"] D\n    where D.code() in DeviceCodes\n      or D.code() ~ DeviceCodes\n\ndefine TestGeneralDeviceNotRequestedCodeExplicit:\n  [\"DeviceNotRequested\"] D\n    where D.code() in DeviceCodes\n\ndefine TestGeneralDeviceNotRequestedValueSetExplicit:\n  [\"DeviceNotRequested\"] D\n    where D.code() ~ DeviceCodes\n\n// ImmunizationNotDone\ndefine TestSpecificImmunizationNotDone:\n  [\"ImmunizationNotDone\": ImmunizationCode]\n\n// TODO: Support this use case\n//define TestSpecificImmunizationNotDoneActual:\n//    [\"ImmunizationNotDone\": vaccineCode ~ ImmunizationCode]\n//      union [\"ImmunizationNotDone\": vaccineCode ~contains ImmunizationCode]\n\ndefine TestSpecificImmunizationNotDoneExplicit:\n  [\"ImmunizationNotDone\"] I\n    where I.vaccineCode() ~ ImmunizationCode\n      or ImmunizationCode in I.vaccineCode()\n\ndefine TestGeneralImmunizationNotDone:\n  [\"ImmunizationNotDone\": ImmunizationCodes]\n\n// NOTE: This warning should not be happening, logged a translator issue to investigate: https://github.com/cqframework/clinical_quality_language/issues/1714\ndefine TestGeneralImmunizationNotDoneActual:\n  [\"ImmunizationNotDone\": vaccineCode in ImmunizationCodes]\n    union [\"ImmunizationNotDone\": vaccineCode ~ ImmunizationCodes]\n\ndefine TestGeneralImmunizationNotDoneExplicit:\n  [\"ImmunizationNotDone\"] I\n    where I.vaccineCode() in ImmunizationCodes\n      or I.vaccineCode() ~ ImmunizationCodes\n\n// MedicationAdministrationNotDone\ndefine TestSpecificMedicationAdministrationNotDone:\n  [\"MedicationAdministrationNotDone\": MedicationCode]\n\n// TODO: Support this use case\n//define TestSpecificMedicationAdministrationNotDoneActual:\n//    [\"MedicationAdministrationNotDone\": medication ~ MedicationCode]\n//      union [\"MedicationAdministrationNotDone\": medication ~contains MedicationCode]\n\ndefine TestSpecificMedicationAdministrationNotDoneExplicit:\n  [\"MedicationAdministrationNotDone\"] I\n    where I.medication() ~ MedicationCode\n      or MedicationCode in I.medication()\n\ndefine TestGeneralMedicationAdministrationNotDone:\n  [\"MedicationAdministrationNotDone\": MedicationCodes]\n\n// NOTE: This warning should not be happening, logged a translator issue to investigate: https://github.com/cqframework/clinical_quality_language/issues/1714\ndefine TestGeneralMedicationAdministrationNotDoneActual:\n  [\"MedicationAdministrationNotDone\": medication in MedicationCodes]\n    union [\"MedicationAdministrationNotDone\": medication ~ MedicationCodes]\n\ndefine TestGeneralMedicationAdministrationNotDoneExplicit:\n  [\"MedicationAdministrationNotDone\"] I\n    where I.medication() in MedicationCodes\n      or I.medication() ~ MedicationCodes\n\n// MedicationDispenseDeclined\ndefine TestSpecificMedicationDispenseDeclined:\n  [\"MedicationDispenseDeclined\": MedicationCode]\n\n// TODO: Support this use case\n//define TestSpecificMedicationDispenseDeclinedActual:\n//    [\"MedicationDispenseDeclined\": medication ~ MedicationCode]\n//      union [\"MedicationDispenseDeclined\": medication ~contains MedicationCode]\n\ndefine TestSpecificMedicationDispenseDeclinedExplicit:\n  [\"MedicationDispenseDeclined\"] I\n    where I.medication() ~ MedicationCode\n      or MedicationCode in I.medication()\n\ndefine TestGeneralMedicationDispenseDeclined:\n  [\"MedicationDispenseDeclined\": MedicationCodes]\n\n// NOTE: This warning should not be happening, logged a translator issue to investigate: https://github.com/cqframework/clinical_quality_language/issues/1714\ndefine TestGeneralMedicationDispenseDeclinedActual:\n  [\"MedicationDispenseDeclined\": medication in MedicationCodes]\n    union [\"MedicationDispenseDeclined\": medication ~ MedicationCodes]\n\ndefine TestGeneralMedicationDispenseDeclinedExplicit:\n  [\"MedicationDispenseDeclined\"] I\n    where I.medication() in MedicationCodes\n      or I.medication() ~ MedicationCodes\n\n// MedicationNotRequested\ndefine TestSpecificMedicationNotRequested:\n  [\"MedicationNotRequested\": MedicationCode]\n\n// TODO: Support this use case\n//define TestSpecificMedicationNotRequestedActual:\n//    [\"MedicationNotRequested\": medication ~ MedicationCode]\n//      union [\"MedicationNotRequested\": medication ~contains MedicationCode]\n\ndefine TestSpecificMedicationNotRequestedExplicit:\n  [\"MedicationNotRequested\"] I\n    where I.medication() ~ MedicationCode\n      or MedicationCode in I.medication()\n\ndefine TestGeneralMedicationNotRequested:\n  [\"MedicationNotRequested\": MedicationCodes]\n\n// NOTE: This warning should not be happening, logged a translator issue to investigate: https://github.com/cqframework/clinical_quality_language/issues/1714\ndefine TestGeneralMedicationNotRequestedActual:\n  [\"MedicationNotRequested\": medication in MedicationCodes]\n    union [\"MedicationNotRequested\": medication ~ MedicationCodes]\n\ndefine TestGeneralMedicationNotRequestedExplicit:\n  [\"MedicationNotRequested\"] I\n    where I.medication() in MedicationCodes\n      or I.medication() ~ MedicationCodes\n\n// ObservationCancelled\ndefine TestSpecificObservationCancelled:\n  [\"ObservationCancelled\": ObservationCode]\n\n// TODO: Support this use case\n//define TestSpecificObservationCancelledActual:\n//    [\"ObservationCancelled\": code ~ ObservationCode]\n//      union [\"ObservationCancelled\": code contains ObservationCode]\n\ndefine TestSpecificObservationCancelledExplicit:\n  [\"ObservationCancelled\"] I\n    where I.code() ~ ObservationCode\n      or ObservationCode in I.code()\n\ndefine TestGeneralObservationCancelled:\n  [\"ObservationCancelled\": ObservationCodes]\n\n// NOTE: This warning should not be happening, logged a translator issue to investigate: https://github.com/cqframework/clinical_quality_language/issues/1714\ndefine TestGeneralObservationCancelledActual:\n  [\"ObservationCancelled\": code in ObservationCodes]\n    union [\"ObservationCancelled\": code ~ ObservationCodes]\n\ndefine TestGeneralObservationCancelledExplicit:\n  [\"ObservationCancelled\"] I\n    where I.code() in ObservationCodes\n      or I.code() ~ ObservationCodes\n\n// ProcedureNotDone\ndefine TestSpecificProcedureNotDone:\n  [\"ProcedureNotDone\": ProcedureCode]\n\n// TODO: Support this use case\n//define TestSpecificProcedureNotDoneActual:\n//    [\"ProcedureNotDone\": code ~ ProcedureCode]\n//      union [\"ProcedureNotDone\": code ~contains ProcedureCode]\n\ndefine TestSpecificProcedureNotDoneExplicit:\n  [\"ProcedureNotDone\"] I\n    where I.code() ~ ProcedureCode\n      or ProcedureCode in I.code()\n\ndefine TestGeneralProcedureNotDone:\n  [\"ProcedureNotDone\": ProcedureCodes]\n\n// NOTE: This warning should not be happening, logged a translator issue to investigate: https://github.com/cqframework/clinical_quality_language/issues/1714\ndefine TestGeneralProcedureNotDoneActual:\n  [\"ProcedureNotDone\": code in ProcedureCodes]\n    union [\"ProcedureNotDone\": code ~ ProcedureCodes]\n\ndefine TestGeneralProcedureNotDoneExplicit:\n  [\"ProcedureNotDone\"] I\n    where I.code() in ProcedureCodes\n      or I.code() ~ ProcedureCodes\n\n// ServiceNotRequested\ndefine TestSpecificServiceNotRequested:\n  [\"ServiceNotRequested\": ProcedureCode]\n\n// TODO: Support this use case\n//define TestSpecificServiceNotRequestedActual:\n//    [\"ServiceNotRequested\": code ~ ProcedureCode]\n//      union [\"ServiceNotRequested\": code ~contains ProcedureCode]\n\ndefine TestSpecificServiceNotRequestedExplicit:\n  [\"ServiceNotRequested\"] I\n    where I.code() ~ ProcedureCode\n      or ProcedureCode in I.code()\n\ndefine TestGeneralServiceNotRequested:\n  [\"ServiceNotRequested\": ProcedureCodes]\n\n// NOTE: This warning should not be happening, logged a translator issue to investigate: https://github.com/cqframework/clinical_quality_language/issues/1714\ndefine TestGeneralServiceNotRequestedActual:\n  [\"ServiceNotRequested\": code in ProcedureCodes]\n    union [\"ServiceNotRequested\": code ~ ProcedureCodes]\n\ndefine TestGeneralServiceNotRequestedExplicit:\n  [\"ServiceNotRequested\"] I\n    where I.code() in ProcedureCodes\n      or I.code() ~ ProcedureCodes\n\n// TaskRejected\ndefine TestSpecificTaskRejected:\n  [\"TaskRejected\": TaskCode]\n\n// TODO: Support this use case\n//define TestSpecificTaskRejectedActual:\n//    [\"TaskRejected\": code ~ TaskCode]\n//      union [\"TaskRejected\": code contains TaskCode]\n\ndefine TestSpecificTaskNotDoneExplicit:\n  [\"TaskRejected\"] I\n    where I.code() ~ TaskCode\n      or TaskCode in I.code()\n\ndefine TestGeneralTaskRejected:\n  [\"TaskRejected\": TaskCodes]\n\n// NOTE: This warning should not be happening, logged a translator issue to investigate: https://github.com/cqframework/clinical_quality_language/issues/1714\ndefine TestGeneralTaskRejectedActual:\n  [\"TaskRejected\": code in TaskCodes]\n    union [\"TaskRejected\": code ~ TaskCodes]\n\ndefine TestGeneralTaskRejectedExplicit:\n  [\"TaskRejected\"] I\n    where I.code() in TaskCodes\n      or I.code() ~ TaskCodes\n</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><b>Content: </b> application/elm+xml</th></tr>\n              <tr><td><pre><code>Encoded data (316708 characters)</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><b>Content: </b> application/elm+json</th></tr>\n              <tr><td><pre><code>Encoded data (593504 characters)</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n    </table>\n</div>\n</div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:url [
    fhir:v "http://fhir.org/guides/onc/us-quality-core/Library/USQualityCoreCommonTests"^^xsd:anyURI ;
    fhir:l <http://fhir.org/guides/onc/us-quality-core/Library/USQualityCoreCommonTests>
      ] ; #
      fhir:version [ fhir:v "0.5.0"] ; #
      fhir:name [ fhir:v "USQualityCoreCommonTests"] ; #
      fhir:title [ fhir:v "US Quality Core CommonTests"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:experimental [ fhir:v true] ; #
      fhir:type [
        ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/library-type>       ] ;
    fhir:code [ fhir:v "logic-library" ]     ] )
      ] ; #
      fhir:date [ fhir:v "2025-10-02T13:51:38+00:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "Office of the National Coordinator for Health Information Technology (ONC)"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "Office of the National Coordinator for Health Information Technology (ONC)" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://www.healthit.gov/feedback" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "Tests for the US Quality Core Common library"] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [
    fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
    fhir:l <urn:iso:std:iso:3166>       ] ;
    fhir:code [ fhir:v "US" ] ;
    fhir:display [ fhir:v "United States of America" ]     ] ) ;
    fhir:text [ fhir:v "USA" ]
      ] ) ; #
      fhir:topic ( [
    fhir:text [ fhir:v "FHIR" ]
      ] [
    fhir:text [ fhir:v "CQL" ]
      ] ) ; #
      fhir:relatedArtifact ( [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Model USQualityCore" ] ;
    fhir:resource [
    fhir:v "http://fhir.org/guides/onc/us-quality-core/Library/USQualityCore-ModelInfo|0.5.0"^^xsd:anyURI ;
    fhir:l <http://fhir.org/guides/onc/us-quality-core/Library/USQualityCore-ModelInfo?version=0.5.0>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library USQualityCoreCommon" ] ;
    fhir:resource [
    fhir:v "http://fhir.org/guides/onc/us-quality-core/Library/USQualityCoreCommon"^^xsd:anyURI ;
    fhir:l <http://fhir.org/guides/onc/us-quality-core/Library/USQualityCoreCommon>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code System Marital Status Codes" ] ;
    fhir:resource [
    fhir:v "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/v3-MaritalStatus>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code System CDC Race and Ethnicity Codes" ] ;
    fhir:resource [
    fhir:v "urn:oid:2.16.840.1.113883.6.238"^^xsd:anyURI ;
    fhir:l <urn:oid:2.16.840.1.113883.6.238>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code System CommunicationCategoryCodeSystem" ] ;
    fhir:resource [
    fhir:v "http://terminology.hl7.org/CodeSystem/communication-category"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/communication-category>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code System SNOMED-CT" ] ;
    fhir:resource [
    fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
    fhir:l <http://snomed.info/sct>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code System CVX" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/sid/cvx"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/sid/cvx>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code System LOINC" ] ;
    fhir:resource [
    fhir:v "http://loinc.org"^^xsd:anyURI ;
    fhir:l <http://loinc.org>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code System TaskCodeSystem" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/CodeSystem/task-code"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/CodeSystem/task-code>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value Set Marital Status" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/ValueSet/marital-status"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/marital-status>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value Set CommunicationCodes" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/ValueSet/communication-category"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/communication-category>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value Set DeviceCodes" ] ;
    fhir:resource [
    fhir:v "http://example.org/fhir/ValueSet/device-codes"^^xsd:anyURI ;
    fhir:l <http://example.org/fhir/ValueSet/device-codes>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value Set ImmunizationCodes" ] ;
    fhir:resource [
    fhir:v "http://example.org/fhir/ValueSet/immunization-codes"^^xsd:anyURI ;
    fhir:l <http://example.org/fhir/ValueSet/immunization-codes>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value Set MedicationCodes" ] ;
    fhir:resource [
    fhir:v "http://example.org/fhir/ValueSet/medication-codes"^^xsd:anyURI ;
    fhir:l <http://example.org/fhir/ValueSet/medication-codes>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value Set ObservationCodes" ] ;
    fhir:resource [
    fhir:v "http://example.org/fhir/ValueSet/observation-codes"^^xsd:anyURI ;
    fhir:l <http://example.org/fhir/ValueSet/observation-codes>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value Set ProcedureCodes" ] ;
    fhir:resource [
    fhir:v "http://example.org/fhir/ValueSet/procedure-codes"^^xsd:anyURI ;
    fhir:l <http://example.org/fhir/ValueSet/procedure-codes>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value Set TaskCodes" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/ValueSet/task-code"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/task-code>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value Set NegationReasonCodes" ] ;
    fhir:resource [
    fhir:v "http://fhir.org/guides/onc/us-quality-core/ValueSet/us-quality-core-negation-reason"^^xsd:anyURI ;
    fhir:l <http://fhir.org/guides/onc/us-quality-core/ValueSet/us-quality-core-negation-reason>     ]
      ] ) ; #
      fhir:content ( [
    fhir:contentType [ fhir:v "text/cql" ] ;
    fhir:data [ fhir:v "[encoded data, 23844 characters]"^^xsd:base64Binary ]
      ] [
    fhir:contentType [ fhir:v "application/elm+xml" ] ;
    fhir:data [ fhir:v "[encoded data, 316708 characters]"^^xsd:base64Binary ]
      ] [
    fhir:contentType [ fhir:v "application/elm+json" ] ;
    fhir:data [ fhir:v "[encoded data, 593504 characters]"^^xsd:base64Binary ]
      ] ) . #