{% if Measure.id.exists() %} {% endif %} {% if Measure.url.exists() %} {% endif %} {% if Measure.version.exists() %} {% endif %} {% for identifier in Measure.identifier %} {% endfor %} {% if Measure.name.exists() %} {% endif %} {% if Measure.title.exists() %} {% endif %} {% if Measure.subtitle.exists() %} {% endif %} {% if Measure.status.exists() %} {% endif %} {% if Measure.experimental.exists() %} {% endif %} {% if Measure.scoring.exists() %} {% endif %} {% if Measure.improvementNotation.exists() %} {% endif %} {% if Measure.type.exists() %} {% endif %} {% if Measure.subject.exists() %} {%if Measure.subject is CodeableConcept %} {% endif %} {% if Measure.subject is Reference %} {% endif %} {% endif %} {% if Measure.date.exists() %} {% endif %} {% if Measure.publisher.exists() %} {% endif %} {% if Measure.description.exists() %} {% endif %} {% if Measure.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability').exists() %} {% endif %} {% if Measure.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel').exists() %} {% endif %} {% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter').exists() %} {% endif %} {% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement').exists() %} {% endif %} {% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode').exists() %} {% endif %} {% if Measure.supplementalData.exists() %} {% endif %} {% if Measure.useContext.exists() %} {% endif %} {% if Measure.jurisdiction.exists() %} {% endif %} {% if Measure.topic.exists() %} {% endif %} {% if Measure.purpose.exists() %} {% endif %} {% if Measure.usage.exists() %} {% endif %} {% if Measure.copyright.exists() %} {% endif %} {% if Measure.disclaimer.exists() %} {% endif %} {% if Measure.approvalDate.exists() %} {% endif %} {% if Measure.lastReviewDate.exists() %} {% endif %} {% if Measure.effectivePeriod.exists() %} {% endif %} {% if Measure.relatedArtifact.exists() %} {% endif %} {% if Measure.parameter.exists() %} {% endif %} {% if Measure.dataRequirement.exists() %} {% endif %} {% for c in Measure.content %} {% if c.contentType = 'text/cql' %} {% endif %} {% if c.contentType != 'text/cql' %} {% endif %} {% endfor %} {% if Measure.library.exists() %} {% endif %} {% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition').exists() %} {% endif %}
Id: {{Measure.id}}
Url: {{Measure.url}}
Version: {{Measure.version}}
Identifier: {% if identifier.type.exists() %}

type: {{identifier.type.value}}

{% endif %} {% if identifier.value.exists() %}

value: {{identifier.value}}

{% endif %}
Name: {{Measure.name}}
Title: {{Measure.title.escape('html')}}
Subtitle: {{Measure.subtitle.escape('html')}}
Status: {{Measure.status.value}}
Experimental: {{Measure.experimental.value}}
Scoring: {% if Measure.scoring.coding.exists() %} {% for coding in Measure.scoring.coding %} {% if coding.system.exists() %}

system: {{coding.system}}

{% endif %} {% if coding.code.exists() %}

code: {{coding.code}}

{% endif %} {% if coding.display.exists() %}

display: {{coding.display.escape('html')}}

{% endif %} {% endfor %} {% endif %} {% if Measure.scoring.coding.exists().not and Measure.scoring.text.exists() %} {{Measure.scoring.text}} {% endif %}
Improvement Notation: {% if Measure.improvementNotation.coding.exists() %} {% for coding in Measure.improvementNotation.coding %} {% if coding.system.exists() %}

system: {{coding.system}}

{% endif %} {% if coding.code.exists() %}

code: {{coding.code}}

{% endif %} {% if coding.display.exists() %}

display: {{coding.display.escape('html')}}

{% endif %} {% endfor %} {% endif %} {% if Measure.improvementNotation.coding.exists().not and Measure.improvementNotation.text.exists() %} {{Measure.improvementNotation.text}} {% endif %}
Type: {% if Measure.type.coding.exists() %} {% for coding in Measure.type.coding %} {% if coding.system.exists() %}

system: {{coding.system}}

{% endif %} {% if coding.code.exists() %}

code: {{coding.code}}

{% endif %} {% if coding.display.exists() %}

display: {{coding.display.escape('html')}}

{% endif %} {% endfor %} {% endif %} {% if Measure.type.coding.exists().not and Measure.type.text.exists() %} {{Measure.type.text}} {% endif %}
Subject: {% if Measure.subject.coding.exists() %} {% for coding in Measure.subject.coding %} {% if coding.system.exists() %}

system: {{coding.system}}

{% endif %} {% if coding.code.exists() %}

code: {{coding.code}}

{% endif %} {% if coding.display.exists() %}

display: {{coding.display.escape('html')}}

{% endif %} {% endfor %} {% endif %} {% if Measure.subject.coding.exists().not and Measure.subject.text.exists() %} {{Measure.subject.text}} {% endif %}
{% if Measure.subject.reference.exists() %}

reference: {{Measure.subject.reference}}

{% endif %} {% if Measure.subject.type.exists() %}

type: {{Measure.subject.type}}

{% endif %} {% if Measure.subject.display.exists() %}

code: {{Measure.subject.display.escape('html')}}

{% endif %}
Date: {{Measure.date}}
Publisher: {{Measure.publisher.escape('html')}}
Description: {{Measure.description.escape('html')}}
Knowledge Capability: {% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability') %}{{extension.value}} {% endfor %}
Knowledge Representation Level: {% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel') %}{{extension.value}}{% endfor %}
Parameters: {% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter') %} {% endfor %}
nameuseminmaxtype
{{extension.valueParameterDefinition.name}} {{extension.valueParameterDefinition.use}} {{extension.valueParameterDefinition.min}} {{extension.valueParameterDefinition.max}} {{extension.valueParameterDefinition.type}}
Data Requirements: {% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement') %} {% if extension.valueDataRequirement.codeFilter.first().valueSet.exists() %} {% endif%} {% if extension.valueDataRequirement.codeFilter.first().code.exists() %} {% endif%} {% endfor %}
typepathvalueSet or systemcode
{{extension.valueDataRequirement.type}} {{extension.valueDataRequirement.codeFilter.first().path}}{{extension.valueDataRequirement.codeFilter.first().valueSet}} {{extension.valueDataRequirement.codeFilter.first().code.first().version}} {{extension.valueDataRequirement.codeFilter.first().code.first().code}}
Direct Reference Codes: {% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode') %} {% endfor %}
displaycodesystem
{{extension.valueCoding.display.escape('html')}} {{extension.valueCoding.code}} {{extension.valueCoding.version}}
Supplemental Data: {% for supplementalData in Measure.supplementalData %} {% endfor %}
expressionsystem
{{supplementalData.criteria.expression}} {{(supplementalData.usage.first() as CodeableConcept).coding.first().system}}
Use Context: {% for useContext in Measure.useContext %} {% endfor %}
codevalue
{{useContext.code.code}} {{(useContext.valueCodeableConcept).text}}
Jurisdiction: {{Measure.jurisdiction.first().coding.first().code}}
Topic: {{Measure.topic.first().coding.first().code}}
Purpose: {{Measure.purpose.escape('html')}}
Usage: {{Measure.usage.escape('html')}}
Copyright: {{Measure.copyright.escape('html')}}
Disclaimer: {{Measure.disclaimer.escape('html')}}
Approval Date: {{Measure.approvalDate}}
Last Review Date: {{Measure.lastReviewDate}}
Effective Period: {{Measure.effectivePeriod.start}}..{{Measure.effectivePeriod.end}}
Related Artifacts: {% if Measure.relatedArtifact.where(type = 'documentation' or type = 'justification').exists() %}

Documentation

{% endif %} {% if Measure.relatedArtifact.where(type = 'citation').exists() %}

References

    {% for artifact in Measure.relatedArtifact.where(type = 'citation') %}
  • {{artifact.citation}}
    {{artifact.url}}
  • {% endfor %}
{% endif %} {% if Measure.relatedArtifact.where(type = 'depends-on').exists() %}

Dependencies

    {% for artifact in Measure.relatedArtifact.where(type = 'depends-on') %}
  • {{artifact.resource}}
  • {% endfor %}
{% endif %} {% if Measure.relatedArtifact.where(type = 'composed-of').exists() %}

Components

    {% for artifact in Measure.relatedArtifact.where(type = 'composed-of') %}
  • {{artifact.resource}}
  • {% endfor %}
{% endif %} {% if Measure.relatedArtifact.where(type = 'derived-from').exists() %}

Derived From

    {% for artifact in Measure.relatedArtifact.where(type = 'derived-from') %}
  • {{artifact.resource}}
  • {% endfor %}
{% endif %} {% if Measure.relatedArtifact.where(type = 'successor').exists() %}

Successor

    {% for artifact in Measure.relatedArtifact.where(type = 'successor') %}
  • {{artifact.resource}}
  • {% endfor %}
{% endif %} {% if Measure.relatedArtifact.where(type = 'predecessor').exists() %}

Predecessor

    {% for artifact in Measure.relatedArtifact.where(type = 'predecessor') %}
  • {{artifact.resource}}
  • {% endfor %}
{% endif %}
Parameters: {% for param in Measure.parameter %} {% endfor %}
NameTypeMinMaxIn/Out
{{param.name}}{{param.type}}{{param.min}}{{param.max}}{{param.use}}
Data Requirements: {% for requirement in Measure.dataRequirement %} {% endfor %}
TypeProfileMSCode Filter
{{requirement.type.value}} {% for profile in requirement.profile %}{{profile.value}}{% endfor %} {% for support in requirement.mustSupport %}{{mustSupport}};{% endfor %} {% for cfilter in requirement.codeFilter %} code filter: {% if cfilter.path.exists() or cfilter.valueSet.exists() or cfilter.code.exists() %}
{% endif %} {% if cfilter.path.exists() %} path: {{cfilter.path}} {% if cfilter.valueSet.exists() or cfilter.code.exists() %}
{% endif %} {% endif %} {% if cfilter.valueSet.exists() %} value set: {{cfilter.valueSet.value}} {% endif %} {% for coding in cfilter.code %} {% if coding.system.exists() %}

system: {{coding.system}}

{% endif %} {% if coding.code.exists() %}

code: {{coding.code}}

{% endif %} {% if coding.display.exists() %}

display: {{coding.display}}

{% endif %} {% endfor %} {% endfor %}
Content: {{c.contentType}}
{{c.data.decode('base64').escape('html')}}
Content: {{c.contentType}}
{{'Encoded data (' + c.data.length().toString() + ' characters)'}}
Libraries: {% for library in Measure.library %} {% endfor %}
{{library}}
Logic Definitions: {% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition') %} {% for lNameExtension in extension.extension.where(url = 'libraryName') %} {% endfor %} {% for nameExtension in extension.extension.where(url = 'name') %} {% endfor %} {% for sequenceExtension in extension.extension.where(url = 'sequence') %} {% endfor %}
Library NameNamesequence
{{lNameExtension.value}}{{nameExtension.value}}{{sequenceExtension.value}}
{% for statementExtension in extension.extension.where(url = 'statement') %}
{{statementExtension.value.escape('html')}}
{% endfor %}

{% endfor %}