{
"description": "This library is used as an example module definition in the FHIR Quality Measure Implementation Guide",
"_filename": "Library-effective-data-requirements-exm124.json",
"package_name": "hl7.fhir.us.cqfmeasures.r4b",
"date": "2022-02-22T10:37:03-07:00",
"dataRequirement": [ {
"type": "Coverage",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Coverage" ],
"codeFilter": [ {
"path": "type",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
} ],
"mustSupport": [ "period", "type" ]
}, {
"type": "Patient",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Patient" ],
"mustSupport": [ "extension", "value", "url" ]
}, {
"type": "Encounter",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
"codeFilter": [ {
"path": "type",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
} ],
"mustSupport": [ "type" ]
}, {
"type": "Encounter",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
"codeFilter": [ {
"path": "type",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"
} ],
"mustSupport": [ "type" ]
}, {
"type": "Encounter",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
"codeFilter": [ {
"path": "type",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"
} ],
"mustSupport": [ "type" ]
}, {
"type": "Encounter",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
"codeFilter": [ {
"path": "type",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"
} ],
"mustSupport": [ "type" ]
}, {
"type": "Encounter",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
"codeFilter": [ {
"path": "type",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"
} ],
"mustSupport": [ "type" ]
}, {
"type": "Encounter",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
"codeFilter": [ {
"path": "type",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"
} ],
"mustSupport": [ "period", "hospitalization", "hospitalization.dischargeDisposition", "type", "status" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"
} ],
"mustSupport": [ "code", "authoredOn", "intent" ]
}, {
"type": "Procedure",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Procedure" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"
} ],
"mustSupport": [ "code", "performed", "status" ]
}, {
"type": "Procedure",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Procedure" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1014"
} ],
"mustSupport": [ "code", "performed", "status" ]
}, {
"type": "Condition",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Condition" ],
"codeFilter": [ {
"code": [ {
"code": "37687000",
"system": "http://snomed.info/sct",
"display": "Congenital absence of cervix (disorder)",
"version": "http://snomed.info/sct/731000124108/version/201709"
} ],
"path": "code"
} ],
"mustSupport": [ "code", "onset" ]
}, {
"type": "Observation",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Observation" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1017"
} ],
"mustSupport": [ "effective", "code", "value", "status" ]
}, {
"type": "Observation",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Observation" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1059"
} ],
"mustSupport": [ "effective", "code", "value", "status" ]
} ],
"meta": {
"profile": [ "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary" ]
},
"publisher": "HL7 International / Clinical Quality Information",
"jurisdiction": [ {
"coding": [ {
"code": "US",
"system": "urn:iso:std:iso:3166"
} ]
} ],
"name": "EffectiveDataRequirements",
"type": "{:coding [{:system \\\"http://terminology.hl7.org/CodeSystem/library-type\\\", :code \\\"module-definition\\\"}]}",
"experimental": null,
"resourceType": "Library",
"title": "Module Definition Library - EXM124",
"package_version": "5.0.0-ballot2",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding": {
"code": "428361000124107",
"system": "http://snomed.info/sct",
"display": "Discharge to home for hospice care (procedure)",
"version": "http://snomed.info/sct/731000124108/version/201709"
}
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding": {
"code": "428371000124100",
"system": "http://snomed.info/sct",
"display": "Discharge to healthcare facility for hospice care (procedure)",
"version": "http://snomed.info/sct/731000124108/version/201709"
}
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding": {
"code": "37687000",
"system": "http://snomed.info/sct",
"display": "Congenital absence of cervix (disorder)",
"version": "http://snomed.info/sct/731000124108/version/201709"
}
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "SupplementalDataElements"
}, {
"url": "name",
"valueString": "SDE Sex"
}, {
"url": "statement",
"valueString": "define \"SDE Sex\":\n case\n when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n else null\n end"
}, {
"url": "displaySequence",
"valueInteger": 0
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "EXM124-FHIR"
}, {
"url": "name",
"valueString": "SDE Sex"
}, {
"url": "statement",
"valueString": "define \"SDE Sex\":\n SDE.\"SDE Sex\""
}, {
"url": "displaySequence",
"valueInteger": 1
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "EXM124-FHIR"
}, {
"url": "name",
"valueString": "Cervical Cytology Within 3 Years"
}, {
"url": "statement",
"valueString": "define \"Cervical Cytology Within 3 Years\":\n\t[Observation: \"Pap Test\"] CervicalCytology\n\t\twhere CervicalCytology.value is not null\n\t\t\tand CervicalCytology.status in { 'final', 'amended', 'corrected', 'preliminary' }\n\t\t and Global.\"Normalize Interval\"(CervicalCytology.effective) ends 3 years or less on or before end of \"Measurement Period\""
}, {
"url": "displaySequence",
"valueInteger": 2
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "EXM124-FHIR"
}, {
"url": "name",
"valueString": "HPV Test Within 5 Years for Women Age 30 and Older"
}, {
"url": "statement",
"valueString": "define \"HPV Test Within 5 Years for Women Age 30 and Older\":\n\t[Observation: \"HPV Test\"] HPVTest\n where HPVTest.value is not null\n and HPVTest.status in { 'final', 'amended', 'corrected', 'preliminary' }\n and Global.\"CalendarAgeInYearsAt\"(FHIRHelpers.ToDate(Patient.birthDate), start of Global.\"Normalize Interval\"(HPVTest.effective))>= 30\n and Global.\"Normalize Interval\"(HPVTest.effective) ends 5 years or less on or before end of \"Measurement Period\""
}, {
"url": "displaySequence",
"valueInteger": 3
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "EXM124-FHIR"
}, {
"url": "name",
"valueString": "Numerator"
}, {
"url": "statement",
"valueString": "// and NoCervixBirth.clinicalStatus ~ ToConcept(Global.\"active\") because this is an excluion, all statuses are acceptable\ndefine \"Numerator\":\n\texists \"Cervical Cytology Within 3 Years\"\n\t\tor exists \"HPV Test Within 5 Years for Women Age 30 and Older\""
}, {
"url": "displaySequence",
"valueInteger": 4
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "AdultOutpatientEncounters"
}, {
"url": "name",
"valueString": "Qualifying Encounters"
}, {
"url": "statement",
"valueString": "define \"Qualifying Encounters\":\n\t(\n [Encounter: \"Office Visit\"]\n \t\tunion [Encounter: \"Annual Wellness Visit\"]\n \t\tunion [Encounter: \"Preventive Care Services - Established Office Visit, 18 and Up\"]\n \t\tunion [Encounter: \"Preventive Care Services-Initial Office Visit, 18 and Up\"]\n \t\tunion [Encounter: \"Home Healthcare Services\"]\n ) ValidEncounter\n\t\twhere ValidEncounter.period during \"Measurement Period\"\n \t\tand ValidEncounter.status = 'finished'"
}, {
"url": "displaySequence",
"valueInteger": 5
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "EXM124-FHIR"
}, {
"url": "name",
"valueString": "Initial Population"
}, {
"url": "statement",
"valueString": "define \"Initial Population\":\n\tPatient.gender = 'female'\n\t\tand Global.\"CalendarAgeInYearsAt\"(FHIRHelpers.ToDate(Patient.birthDate), start of \"Measurement Period\") in Interval[23, 64]\n\t\tand exists AdultOutpatientEncounters.\"Qualifying Encounters\""
}, {
"url": "displaySequence",
"valueInteger": 6
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "EXM124-FHIR"
}, {
"url": "name",
"valueString": "Denominator"
}, {
"url": "statement",
"valueString": "define \"Denominator\":\n\t\"Initial Population\""
}, {
"url": "displaySequence",
"valueInteger": 7
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "SupplementalDataElements"
}, {
"url": "name",
"valueString": "SDE Payer"
}, {
"url": "statement",
"valueString": "define \"SDE Payer\":\n [Coverage: type in \"Payer\"] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }"
}, {
"url": "displaySequence",
"valueInteger": 8
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "EXM124-FHIR"
}, {
"url": "name",
"valueString": "SDE Payer"
}, {
"url": "statement",
"valueString": "define \"SDE Payer\":\n SDE.\"SDE Payer\""
}, {
"url": "displaySequence",
"valueInteger": 9
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "SupplementalDataElements"
}, {
"url": "name",
"valueString": "SDE Ethnicity"
}, {
"url": "statement",
"valueString": "define \"SDE Ethnicity\":\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding"
}, {
"url": "displaySequence",
"valueInteger": 10
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "EXM124-FHIR"
}, {
"url": "name",
"valueString": "SDE Ethnicity"
}, {
"url": "statement",
"valueString": "define \"SDE Ethnicity\":\n SDE.\"SDE Ethnicity\""
}, {
"url": "displaySequence",
"valueInteger": 11
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "Hospice"
}, {
"url": "name",
"valueString": "Has Hospice"
}, {
"url": "statement",
"valueString": "define \"Has Hospice\":\n\texists (\n [Encounter: \"Encounter Inpatient\"] DischargeHospice\n\t\t\twhere DischargeHospice.status = 'finished'\n\t\t and (\n\t DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to home for hospice care (procedure)\"\n\t\t\t\t or DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to healthcare facility for hospice care (procedure)\"\n\t \t)\n\t\t\t\tand DischargeHospice.period ends during \"Measurement Period\"\n\t)\n or exists (\n [ServiceRequest: \"Hospice care ambulatory\"] HospiceOrder\n where HospiceOrder.intent = 'order'\n and HospiceOrder.authoredOn in \"Measurement Period\"\n )\n or exists (\n [Procedure: \"Hospice care ambulatory\"] HospicePerformed\n where HospicePerformed.status = 'completed'\n and Global.\"Normalize Interval\"(HospicePerformed.performed) overlaps \"Measurement Period\"\n )"
}, {
"url": "displaySequence",
"valueInteger": 12
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "EXM124-FHIR"
}, {
"url": "name",
"valueString": "Absence of Cervix"
}, {
"url": "statement",
"valueString": "define \"Absence of Cervix\":\n ([Procedure: \"Hysterectomy with No Residual Cervix\"] NoCervixProcedure\n where Global.\"Normalize Interval\"(NoCervixProcedure.performed) ends on or before end of \"Measurement Period\"\n and NoCervixProcedure.status = 'completed'\n )\n union [Condition : \"Congenital absence of cervix (disorder)\"] NoCervixBirth\n\t\twhere Global.\"Normalize Interval\"(NoCervixBirth.onset) starts on or before end of \"Measurement Period\""
}, {
"url": "displaySequence",
"valueInteger": 13
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "EXM124-FHIR"
}, {
"url": "name",
"valueString": "Denominator Exclusion"
}, {
"url": "statement",
"valueString": "define \"Denominator Exclusion\":\n\tHospice.\"Has Hospice\"\n\t\tor exists \"Absence of Cervix\""
}, {
"url": "displaySequence",
"valueInteger": 14
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "SupplementalDataElements"
}, {
"url": "name",
"valueString": "SDE Race"
}, {
"url": "statement",
"valueString": "define \"SDE Race\":\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding"
}, {
"url": "displaySequence",
"valueInteger": 15
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "EXM124-FHIR"
}, {
"url": "name",
"valueString": "SDE Race"
}, {
"url": "statement",
"valueString": "define \"SDE Race\":\n SDE.\"SDE Race\""
}, {
"url": "displaySequence",
"valueInteger": 16
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode": "cqi"
} ],
"status": "active",
"id": "23178251-78cd-44a5-a6b2-534481e58ad8",
"kind": null,
"url": "http://hl7.org/fhir/us/cqfmeasures/Library/effective-data-requirements-exm124",
"version": "1.0.0",
"relatedArtifact": [ {
"type": "depends-on",
"display": "Library SDE",
"resource": "http://hl7.org/fhir/us/cqfmeasures/Library/SupplementalDataElements|2.0.000"
}, {
"type": "depends-on",
"display": "Library FHIRHelpers",
"resource": "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
}, {
"type": "depends-on",
"display": "Library Global",
"resource": "http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions|5.0.000"
}, {
"type": "depends-on",
"display": "Library AdultOutpatientEncounters",
"resource": "http://hl7.org/fhir/us/cqfmeasures/Library/AdultOutpatientEncounters|2.0.000"
}, {
"type": "depends-on",
"display": "Library Hospice",
"resource": "http://hl7.org/fhir/us/cqfmeasures/Library/Hospice|2.0.000"
}, {
"type": "depends-on",
"display": "Code system SNOMEDCT:2017-09",
"resource": "http://snomed.info/sct|http://snomed.info/sct/731000124108/version/201709"
}, {
"type": "depends-on",
"display": "Value set Pap Test",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1017"
}, {
"type": "depends-on",
"display": "Value set HPV Test",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1059"
}, {
"type": "depends-on",
"display": "Value set Office Visit",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
}, {
"type": "depends-on",
"display": "Value set Annual Wellness Visit",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"
}, {
"type": "depends-on",
"display": "Value set Preventive Care Services - Established Office Visit, 18 and Up",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"
}, {
"type": "depends-on",
"display": "Value set Preventive Care Services-Initial Office Visit, 18 and Up",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"
}, {
"type": "depends-on",
"display": "Value set Home Healthcare Services",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"
}, {
"type": "depends-on",
"display": "Value set Payer",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
}, {
"type": "depends-on",
"display": "Value set Encounter Inpatient",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"
}, {
"type": "depends-on",
"display": "Value set Hospice care ambulatory",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"
}, {
"type": "depends-on",
"display": "Value set Hysterectomy with No Residual Cervix",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1014"
} ],
"contact": [ {
"telecom": [ {
"value": "http://www.hl7.org/Special/committees/cqi",
"system": "url"
} ]
} ],
"parameter": [ {
"max": "1",
"min": 0,
"use": "in",
"name": "Measurement Period",
"type": "Period"
}, {
"max": "1",
"min": 0,
"use": "out",
"name": "SDE Sex",
"type": "Coding"
}, {
"max": "1",
"min": 0,
"use": "out",
"name": "Numerator",
"type": "boolean"
}, {
"max": "1",
"min": 0,
"use": "out",
"name": "Denominator",
"type": "boolean"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "SDE Payer",
"type": "Resource"
}, {
"max": "1",
"min": 0,
"use": "out",
"name": "Initial Population",
"type": "boolean"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "SDE Ethnicity",
"type": "Coding"
}, {
"max": "1",
"min": 0,
"use": "out",
"name": "Denominator Exclusion",
"type": "boolean"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "SDE Race",
"type": "Coding"
} ]
}