Your User Friendly Name for MyContentIG Here
0.5.3 - CI Build

Your User Friendly Name for MyContentIG Here, published by HL7 International - [Some] Work Group. This guide is not an authorized publication; it is the continuous build for version 0.5.3 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/sample-content-ig/ and changes regularly. See the Directory of published versions

## : QuestionnaireMeasureExample - TTL Representation

Draft as of 2025-12-10

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 "QuestionnaireMeasureExample"] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <table class=\"narrative-table\">\n    <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n\n<td class=\"content-container\">0.5.3</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Status</th>\n\n\n\n<td class=\"content-container\">Draft</td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Jurisdiction</th>\n\n\n\n<td class=\"content-container\">\n    001 from <a href=\"http://unstats.un.org/unsd/methods/m49/m49.htm\">http://unstats.un.org/unsd/methods/m49/m49.htm</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n\n<td class=\"content-container\">HL7 International - [Some] Work Group</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n    logic-library from <a href=\"http://terminology.hl7.org/7.0.0/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Library FHIRHelpers\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Library PHQ9Logic\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-PHQ9LogicExample.html\">PHQ9LogicExample</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://somewhere.org/fhir/uv/mycontentig/Library/PHQ9LogicExample</tt>\n    \n    \n    \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"parameters\"> </a>Parameters</th>\n\n\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\"/>\n\n\n  <td class=\"content-container\">\n    <table>\n      <thead>\n        <tr>\n          <td><em>Name</em></td>\n          <td><em>Use</em></td>\n          <td><em>Card.</em></td>\n          <td><em>Type</em></td>\n          <td><em>Documentation</em></td>\n        </tr>\n      </thead>\n      <tbody>\n      \n        <tr>\n          <td>Measurement Period</td>\n          <td>In</td>\n          <td>0..1</td>\n          <td>Period</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Patient</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>Patient</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Initial Population</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Measure Population</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n      </tbody>\n    </table>\n  </td>\n</tr>\n\n\n\n\n\n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Library Content</th>\n\n\n</tr>\n  \n    \n    <tr>\n      <th scope=\"row\" class=\"row-header\">CQL Content</th>\n      <td>\n        <a name=\"cql-content\"> </a>\n        <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">library QuestionnaireMeasureExample version '0.5.3-cibuild'#xD;\n#xD;\nusing FHIR version '4.0.1'#xD;\n#xD;\ninclude FHIRHelpers version '4.0.1'#xD;\n#xD;\ninclude PHQ9LogicExample called PHQ9Logic#xD;\n#xD;\nparameter \"Measurement Period\" Interval&lt;Date&gt; default Interval[@2021-01-01, @2021-12-31]#xD;\n#xD;\ncontext Patient#xD;\n#xD;\ndefine \"Initial Population\":#xD;\n  AgeInYearsAt(start of \"Measurement Period\") &gt;= 18#xD;\n#xD;\n// Likely some condition or other relevant characteristic such as a depression diagnosis#xD;\ndefine \"Measure Population\":#xD;\n  true#xD;\n#xD;\n/*#xD;\nMeasure observation is a function defined in terms of the types of members of the measure#xD;\npopulation, Patient in this case. In a population evaluation scenario, the measure#xD;\nobservation is evaluated for every member of the population.#xD;\n#xD;\nIn an individual report scenario, however, the measure observation is evaluated for#xD;\nthe current patient. Note that the patient context is flowing through the call here#xD;\n*/#xD;\ndefine function \"MeasureObservation\"(patient Patient):#xD;\n  PHQ9Logic.CalculateTotalScore#xD;\n</code></pre>\n      </td>\n    </tr>\n    \n  \n    \n    <tr>\n      <th scope=\"row\" class=\"row-header\">ELM XML Content</th>\n      <td>\n        <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code>Encoded data </code></pre>\n      </td>\n    </tr>\n    \n  \n    \n    <tr>\n      <th scope=\"row\" class=\"row-header\">ELM JSON Content</th>\n      <td>\n        <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code>Encoded data </code></pre>\n      </td>\n    </tr>\n    \n  \n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.3 of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:contained ( [
    a fhir:Parameters ;
    fhir:id [ fhir:v "options" ] ;
        ( fhir:parameter [
    fhir:name [ fhir:v "translatorVersion" ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "3.27.0"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "EnableAnnotations"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "EnableLocators"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "DisableListDemotion"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "DisableListPromotion"       ]     ] [
    fhir:name [ fhir:v "format" ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "JSON"       ]     ] [
    fhir:name [ fhir:v "format" ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "XML"       ]     ] [
    fhir:name [ fhir:v "analyzeDataRequirements" ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v false       ]     ] [
    fhir:name [ fhir:v "collapseDataRequirements" ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true       ]     ] [
    fhir:name [ fhir:v "compatibilityLevel" ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "1.5"       ]     ] [
    fhir:name [ fhir:v "enableCqlOnly" ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v false       ]     ] [
    fhir:name [ fhir:v "errorLevel" ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Info"       ]     ] [
    fhir:name [ fhir:v "signatureLevel" ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Overloads"       ]     ] [
    fhir:name [ fhir:v "validateUnits" ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true       ]     ] [
    fhir:name [ fhir:v "verifyOnly" ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v false       ]     ] )
      ] ) ; #
      fhir:extension ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions>     ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:l <#options> ;
    fhir:reference [ fhir:v "#options" ]     ]
      ] ) ; #
      fhir:url [
    fhir:v "http://somewhere.org/fhir/uv/mycontentig/Library/QuestionnaireMeasureExample"^^xsd:anyURI ;
    fhir:l <http://somewhere.org/fhir/uv/mycontentig/Library/QuestionnaireMeasureExample>
      ] ; #
      fhir:version [ fhir:v "0.5.3"] ; #
      fhir:name [ fhir:v "QuestionnaireMeasureExample"] ; #
      fhir:status [ fhir:v "draft"] ; #
      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-12-10T03:14:19+00:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "HL7 International - [Some] Work Group"] ; #
      fhir:contact ( [
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "http://hl7.org/Special/committees/[something]" ]     ] )
      ] ) ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [
    fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
    fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>       ] ;
    fhir:code [ fhir:v "001" ]     ] )
      ] ) ; #
      fhir:relatedArtifact ( [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library FHIRHelpers" ] ;
    fhir:resource [
    fhir:v "http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1"^^xsd:anyURI ;
    fhir:l <http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers?version=4.0.1>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library PHQ9Logic" ] ;
    fhir:resource [
    fhir:v "http://somewhere.org/fhir/uv/mycontentig/Library/PHQ9LogicExample"^^xsd:anyURI ;
    fhir:l <http://somewhere.org/fhir/uv/mycontentig/Library/PHQ9LogicExample>     ]
      ] ) ; #
      fhir:parameter ( [
    fhir:name [ fhir:v "Measurement Period" ] ;
    fhir:use [ fhir:v "in" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "Period" ]
      ] [
    fhir:name [ fhir:v "Patient" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "Patient" ]
      ] [
    fhir:name [ fhir:v "Initial Population" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "boolean" ]
      ] [
    fhir:name [ fhir:v "Measure Population" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "boolean" ]
      ] ) ; #
      fhir:dataRequirement ( [
    fhir:type [ fhir:v "Patient" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>     ] )
      ] ) ; #
      fhir:content ( [
    fhir:contentType [ fhir:v "text/cql" ] ;
    fhir:data [ fhir:v " "^^xsd:base64Binary ] ;
    fhir:url [
    fhir:v "http://somewhere.org/fhir/uv/mycontentig/QuestionnaireMeasureExample.cql"^^xsd:anyURI ;
    fhir:l <http://somewhere.org/fhir/uv/mycontentig/QuestionnaireMeasureExample.cql>     ]
      ] [
    fhir:contentType [ fhir:v "application/elm+xml" ] ;
    fhir:data [ fhir:v " "^^xsd:base64Binary ]
      ] [
    fhir:contentType [ fhir:v "application/elm+json" ] ;
    fhir:data [ fhir:v " "^^xsd:base64Binary ]
      ] ) . #