{
"description": "Example CQL Library illustrating the CQL Profile (a Library with only text/cql content)",
"_filename": "example/Library-CQLExample.json",
"package_name": "hl7.fhir.uv.cql.r4b",
"date": "2024-04-06T09:37:49+11:00",
"dataRequirement": [ {
"type": "Patient",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Patient" ]
}, {
"type": "Observation",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Observation" ],
"codeFilter": [ {
"code": [ {
"code": "2339-0",
"system": "http://loinc.org",
"display": "Glucose Bld-mCnc"
} ],
"path": "code"
} ],
"mustSupport": [ "code", "value" ]
} ],
"meta": {
"profile": [ "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" ]
},
"publisher": "HL7 International / Clinical Decision Support",
"jurisdiction": [ {
"coding": [ {
"code": "001",
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
"display": "World"
} ]
} ],
"content": [ {
"data": "bGlicmFyeSBDUUxFeGFtcGxlDQoNCnVzaW5nIEZISVIgdmVyc2lvbiAnNC4wLjEnDQoNCmluY2x1ZGUgRkhJUkhlbHBlcnMgdmVyc2lvbiAnNC4wLjEnDQoNCmNvZGVzeXN0ZW0gTE9JTkM6ICdodHRwOi8vbG9pbmMub3JnJw0KY29kZSAiQmxvb2QgR2x1Y29zZSI6ICcyMzM5LTAnIGZyb20gTE9JTkMgZGlzcGxheSAnR2x1Y29zZSBCbGQtbUNuYycNCg0KcGFyYW1ldGVyIEdsdWNvc2VUaHJlc2hvbGQgUXVhbnRpdHkNCg0KY29udGV4dCBQYXRpZW50DQoNCmRlZmluZSAiQmxvb2QgR2x1Y29zZSBPYnNlcnZhdGlvbnMiOg0KICBbT2JzZXJ2YXRpb246ICJCbG9vZCBHbHVjb3NlIl0gQkcNCiAgICB3aGVyZSBCRy52YWx1ZSA+IEdsdWNvc2VUaHJlc2hvbGQNCg==",
"contentType": "text/cql"
} ],
"name": "CQLExample",
"type": "{:coding [{:system \\\"http://terminology.hl7.org/CodeSystem/library-type\\\", :code \\\"logic-library\\\"}]}",
"experimental": "true",
"resourceType": "Library",
"title": "CQL Example",
"package_version": "1.0.0-snapshot",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions",
"valueReference": {
"reference": "#options"
}
} ],
"contained": [ {
"id": "options",
"parameter": [ {
"name": "translatorVersion",
"valueString": "3.9.0"
}, {
"name": "enableAnnotations",
"valueBoolean": true
}, {
"name": "enableLocators",
"valueBoolean": true
}, {
"name": "disableListDemotion",
"valueBoolean": true
}, {
"name": "disableListPromotion",
"valueBoolean": true
}, {
"name": "format",
"valueString": "JSON"
}, {
"name": "format",
"valueString": "XML"
}, {
"name": "analyzeDataRequirements",
"valueBoolean": false
}, {
"name": "collapseDataRequirements",
"valueBoolean": true
}, {
"name": "compatibilityLevel",
"valueString": "1.5"
}, {
"name": "enableCqlOnly",
"valueBoolean": false
}, {
"name": "errorLevel",
"valueString": "Info"
}, {
"name": "signatureLevel",
"valueString": "Overloads"
}, {
"name": "validateUnits",
"valueBoolean": true
}, {
"name": "verifyOnly",
"valueBoolean": false
} ],
"resourceType": "Parameters"
} ],
"status": "active",
"id": "c1c4c187-aa1a-499f-8cad-66aa9b29a643",
"kind": null,
"url": "http://hl7.org/fhir/uv/cql/Library/CQLExample",
"identifier": [ {
"value": "urn:oid:2.16.840.1.113883.4.642.40.37.28.2",
"system": "urn:ietf:rfc:3986"
} ],
"version": "1.0.0-snapshot",
"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 LOINC",
"resource": "http://loinc.org"
} ],
"contact": [ {
"telecom": [ {
"value": "http://www.hl7.org/Special/committees/dss",
"system": "url"
} ]
} ],
"parameter": [ {
"max": "1",
"min": 0,
"use": "in",
"name": "GlucoseThreshold",
"type": "Quantity"
}, {
"max": "1",
"min": 0,
"use": "out",
"name": "Patient",
"type": "Patient"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "Blood Glucose Observations",
"type": "Observation"
} ]
}