{ "description": "This library is used as an example module definition in the FHIR Quality Measure Implementation Guide", "_filename": "example/Library-moduledefinition-example.json", "package_name": "hl7.fhir.uv.crmi", "date": "2019-09-03", "dataRequirement": [ { "type": "Patient", "profile": [ "http://example.org/fhir/us/qicore/StructureDefinition/qicore-patient" ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern", "valueString": "Patient?_id={{context.patientId}}" } ], "mustSupport": [ "extension('http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity')" ], "_mustSupport": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/rendered-value", "valueString": "ethnicity" } ] } ] }, { "type": "Encounter", "profile": [ "http://example.org/fhir/us/qicore/StructureDefinition/qicore-encounter" ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern", "valueString": "Encounter?status=finished&subject=Patient/{{context.patientId}}&type:in=http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-isSelective", "valueBoolean": true }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-valueFilter", "extension": [ { "url": "path", "valueString": "status" }, { "url": "comparator", "valueCode": "eq" }, { "url": "value", "valueString": "finished" } ] } ], "codeFilter": [ { "path": "type", "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292" } ] }, { "type": "Condition", "profile": [ "http://example.org/fhir/us/qicore/StructureDefinition/qicore-Condition" ], "codeFilter": [ { "path": "id" } ] }, { "type": "Coverage", "profile": [ "http://example.org/fhir/us/qicore/StructureDefinition/qicore-coverage" ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern", "valueString": "Coverage?policy-holder=Patient/{{context.patientId}}&type:in=http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591" } ], "codeFilter": [ { "path": "type", "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591" } ] } ], "meta": { "profile": [ "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary" ] }, "publisher": "HL7 International / Clinical Decision Support", "jurisdiction": [ { "coding": [ { "code": "001", "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "display": "World" } ] } ], "name": "EXMLogicModuleDefinition", "type": "{:coding [{:system \\\"http://terminology.hl7.org/CodeSystem/library-type\\\", :code \\\"module-definition\\\"}]}", "experimental": "true", "resourceType": "Library", "title": "Example Logic Library - Module Definition", "package_version": "1.0.0", "status": "active", "id": "5e8aa13c-b527-4aed-8695-2eef688f2654", "kind": null, "url": "http://hl7.org/fhir/uv/crmi/Library/moduledefinition-example", "identifier": [ { "use": "official", "value": "EXMLogic", "system": "http://example.org/fhir/cqi/ecqm/Library/Identifier" }, { "value": "urn:oid:2.16.840.1.113883.4.642.40.38.28.7", "system": "urn:ietf:rfc:3986" } ], "version": "1.0.0", "relatedArtifact": [ { "type": "depends-on", "display": "FHIR model information", "resource": "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1" }, { "type": "depends-on", "display": "Library FHIRHelpers", "resource": "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1" }, { "type": "depends-on", "display": "Code system Diagnosis Role", "resource": "http://terminology.hl7.org/CodeSystem/diagnosis-role" }, { "type": "depends-on", "display": "Value set Emergency Department Visit", "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292" }, { "type": "depends-on", "display": "Value set Psychiatric/Mental Health Patient", "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299" }, { "type": "depends-on", "display": "Value set Hospital Settings", "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.126" }, { "type": "depends-on", "display": "Value set ONC Administrative Sex", "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1" }, { "type": "depends-on", "display": "Value set Race", "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836" }, { "type": "depends-on", "display": "Value set Ethnicity", "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837" }, { "type": "depends-on", "display": "Value set Payer", "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591" } ], "contact": [ { "telecom": [ { "value": "http://www.hl7.org/Special/committees/dss", "system": "url" } ] } ], "parameter": [ { "max": "1", "min": 0, "use": "in", "name": "Measurement Period", "type": "Period" }, { "max": "1", "min": 0, "use": "out", "name": "Patient", "type": "Patient" }, { "max": "*", "min": 0, "use": "out", "name": "Inpatient Encounter", "type": "Encounter" }, { "max": "*", "min": 0, "use": "out", "name": "Initial Population", "type": "Encounter" }, { "max": "*", "min": 0, "use": "out", "name": "Measure Population", "type": "Encounter" }, { "max": "*", "min": 0, "use": "out", "name": "Stratifier 1", "type": "Encounter" }, { "max": "*", "min": 0, "use": "out", "name": "Stratifier 2", "type": "Encounter" }, { "max": "*", "min": 0, "use": "out", "name": "Stratifier 3", "type": "Encounter" }, { "max": "*", "min": 0, "use": "out", "name": "Stratifier 4", "type": "Encounter" }, { "max": "*", "min": 0, "use": "out", "name": "SDE Ethnicity", "type": "Coding" }, { "max": "*", "min": 0, "use": "out", "name": "SDE Payer", "type": "Resource" }, { "max": "*", "min": 0, "use": "out", "name": "SDE Race", "type": "Coding" }, { "max": "1", "min": 0, "use": "out", "name": "SDE Sex", "type": "Coding" } ] }