This page is part of the FHIR Specification (v1.0.0: DSTU 2 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions
KnowledgeModule used to expose a CQL library as a knowledge module (id = "knowledgemodule-library-example")
<Basic xmlns="http://hl7.org/fhir"> <!-- This example demonstrates the KnowledgeModule structure used to represent a CQL Library --> <id value="knowledgemodule-library-example"/> <meta> <profile value="http://hl7.org/fhir/StructureDefinition/cqif-knowledgemodule"/> </meta> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml">ChlamydiaScreening_Common</div> </text> <!-- Version --> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-moduleVersion"> <valueString value="2.0.0"/> </extension> <!-- Title --> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-title"> <valueCode value="Chlamydia Screening Common Library"/> </extension> <!-- Description --> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-description"> <valueString value="Common Logic for adherence to Chlamydia Screening guidelines"/> </extension> <!-- PublicationDate --> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-publicationDate"> <valueDate value="2015-07-22"/> </extension> <!-- Topic --> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-topic"> <valueCodeableConcept> <text value="Chlamydia Screening"/> </valueCodeableConcept> </extension> <!-- Keyword --> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-keyword"> <valueString value="Chlamydia Screening"/> </extension> <!-- Model --> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-model"> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-model#name"> <valueString value="QUICK"/> </extension> </extension> <!-- ValueSet --> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-valueSet"> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-valueSet#name"> <valueString value="Female Administrative Sex"/> </extension> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-valueSet#id"> <valueString value="2.16.840.1.113883.3.560.100.2"/> </extension> </extension> <!-- ... other value sets as defined in the library --> <!-- Data --> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-data"> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-data#type"> <valueCode value="Condition"/> </extension> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-data#codeFilter"> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-data#codeFilter.path"> <valueString value="code"/> </extension> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-data#codeFilter.valueSet"> <valueString value="Other Female Reproductive Conditions"/> </extension> </extension> </extension> <!-- ... other data requirements as defined in the library --> <!-- Content --> <extension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-content"> <valueAttachment> <contentType value="application/x-cql+text"/> <url value="http://cqlrepository.org/ChlamydiaScreening_Common.cql"/> </valueAttachment> </extension> <!-- Status --> <modifierExtension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-moduleStatus"> <valueCode value="draft"/> </modifierExtension> <!-- Evaluation Supported --> <modifierExtension url="http://hl7.org/fhir/StructureDefinition/cqif-basic-evaluationSupported"> <valueBoolean value="false"/> </modifierExtension> <!-- Identifier --> <identifier> <use value="official"/> <value value="ChalmydiaScreening_Common"/> </identifier> <!-- Code --> <code> <coding> <code value="library"/> </coding> </code> </Basic>
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.