templates.Measure.liquid Maven / Gradle / Ivy
{% if Measure.id.exists() %}
Id:
{{Measure.id}}
{% endif %}
{% if Measure.url.exists() %}
Url:
{{Measure.url}}
{% endif %}
{% if Measure.version.exists() %}
Version:
{{Measure.version}}
{% endif %}
{% for identifier in Measure.identifier %}
Identifier:
{% if identifier.type.exists() %}
type: {{identifier.type.value}}
{% endif %}
{% if identifier.value.exists() %}
value: {{identifier.value}}
{% endif %}
{% endfor %}
{% if Measure.name.exists() %}
Name:
{{Measure.name}}
{% endif %}
{% if Measure.title.exists() %}
Title:
{{Measure.title}}
{% endif %}
{% if Measure.subtitle.exists() %}
Subtitle:
{{Measure.subtitle}}
{% endif %}
{% if Measure.status.exists() %}
Status:
{{Measure.status.value}}
{% endif %}
{% if Measure.experimental.exists() %}
Experimental:
{{Measure.experimental.value}}
{% endif %}
{% if Measure.scoring.exists() %}
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}}
{% endif %}
{% endfor %}
{% endif %}
{% if Measure.scoring.coding.exists().not and Measure.scoring.text.exists() %}
{{Measure.scoring.text}}
{% endif %}
{% endif %}
{% if Measure.improvementNotation.exists() %}
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}}
{% endif %}
{% endfor %}
{% endif %}
{% if Measure.improvementNotation.coding.exists().not and Measure.improvementNotation.text.exists() %}
{{Measure.improvementNotation.text}}
{% endif %}
{% endif %}
{% if Measure.type.exists() %}
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}}
{% endif %}
{% endfor %}
{% endif %}
{% if Measure.type.coding.exists().not and Measure.type.text.exists() %}
{{Measure.type.text}}
{% endif %}
{% endif %}
{% if Measure.subject.exists() %}
Subject:
{%if Measure.subject is CodeableConcept %}
{% 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}}
{% endif %}
{% endfor %}
{% endif %}
{% if Measure.subject.coding.exists().not and Measure.subject.text.exists() %}
{{Measure.subject.text}}
{% endif %}
{% endif %}
{% if Measure.subject is Reference %}
{% 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}}
{% endif %}
{% endif %}
{% endif %}
{% if Measure.date.exists() %}
Date:
{{Measure.date}}
{% endif %}
{% if Measure.publisher.exists() %}
Publisher:
{{Measure.publisher}}
{% endif %}
{% if Measure.description.exists() %}
Description:
{{Measure.description}}
{% endif %}
{% if Measure.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability').exists() %}
Knowledge Capability:
{% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability') %}{{extension.value}} {% endfor %}
{% endif %}
{% if Measure.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel').exists() %}
Knowledge Representation Level:
{% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel') %}{{extension.value}}{% endfor %}
{% endif %}
{% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter').exists() %}
Parameters:
name use min max type
{% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter') %}
{{extension.valueParameterDefinition.name}}
{{extension.valueParameterDefinition.use}}
{{extension.valueParameterDefinition.min}}
{{extension.valueParameterDefinition.max}}
{{extension.valueParameterDefinition.type}}
{% endfor %}
{% endif %}
{% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement').exists() %}
Data Requirements:
type path valueSet or system code
{% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement') %}
{{extension.valueDataRequirement.type}}
{{extension.valueDataRequirement.codeFilter.first().path}}
{% if extension.valueDataRequirement.codeFilter.first().valueSet.exists() %}
{{extension.valueDataRequirement.codeFilter.first().valueSet}}
{% endif%}
{% if extension.valueDataRequirement.codeFilter.first().code.exists() %}
{{extension.valueDataRequirement.codeFilter.first().code.first().version}}
{{extension.valueDataRequirement.codeFilter.first().code.first().code}}
{% endif%}
{% endfor %}
{% endif %}
{% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode').exists() %}
Direct Reference Codes:
display code system
{% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode') %}
{{extension.valueCoding.display}}
{{extension.valueCoding.code}}
{{extension.valueCoding.version}}
{% endfor %}
{% endif %}
{% if Measure.supplementalData.exists() %}
Supplemental Data:
expression system
{% for supplementalData in Measure.supplementalData %}
{{supplementalData.criteria.expression}}
{{(supplementalData.usage.first() as CodeableConcept).coding.first().system}}
{% endfor %}
{% endif %}
{% if Measure.useContext.exists() %}
Use Context:
code value
{% for useContext in Measure.useContext %}
{{useContext.code.code}}
{{(useContext.valueCodeableConcept).text}}
{% endfor %}
{% endif %}
{% if Measure.jurisdiction.exists() %}
Jurisdiction:
{{Measure.jurisdiction.first().coding.first().code}}
{% endif %}
{% if Measure.topic.exists() %}
Topic:
{{Measure.topic.first().coding.first().code}}
{% endif %}
{% if Measure.purpose.exists() %}
Purpose:
{{Measure.purpose}}
{% endif %}
{% if Measure.usage.exists() %}
Usage:
{{Measure.usage}}
{% endif %}
{% if Measure.copyright.exists() %}
Copyright:
{{Measure.copyright}}
{% endif %}
{% if Measure.disclaimer.exists() %}
Disclaimer:
{{Measure.disclaimer}}
{% endif %}
{% if Measure.approvalDate.exists() %}
Approval Date:
{{Measure.approvalDate}}
{% endif %}
{% if Measure.lastReviewDate.exists() %}
Last Review Date:
{{Measure.lastReviewDate}}
{% endif %}
{% if Measure.effectivePeriod.exists() %}
Effective Period:
{{Measure.effectivePeriod.start}}..{{Measure.effectivePeriod.end}}
{% endif %}
{% if Measure.relatedArtifact.exists() %}
Related Artifacts:
{% if Measure.relatedArtifact.where(type = 'documentation' or type = 'justification').exists() %}
Documentation
{% for artifact in Measure.relatedArtifact.where(type = 'documentation' or type = 'justification') %}
- {{artifact.label}} {{artifact.display}}
{% endfor %}
{% 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 %}
{% endif %}
{% if Measure.parameter.exists() %}
Parameters:
Name Type Min Max In/Out
{% for param in Measure.parameter %}
{{param.name}} {{param.type}} {{param.min}} {{param.max}} {{param.use}}
{% endfor %}
{% endif %}
{% if Measure.dataRequirement.exists() %}
Data Requirements:
Type Profile MS Code Filter
{% for requirement in Measure.dataRequirement %}
{{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 %}
{% endfor %}
{% endif %}
{% for c in Measure.content %}
{% if c.contentType = 'text/cql' %}
Content: {{c.contentType}}
{{c.data.decode('base64').escape('html')}}
{% endif %}
{% if c.contentType != 'text/cql' %}
Content: {{c.contentType}}
{{'Encoded data (' + c.data.length().toString() + ' characters)'}}
{% endif %}
{% endfor %}
{% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition').exists() %}
Logic Definitions:
{% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition') %}
Library Name Name sequence
{% for lNameExtension in extension.extension.where(url = 'libraryName') %}
{{lNameExtension.value}}
{% endfor %}
{% for nameExtension in extension.extension.where(url = 'name') %}
{{nameExtension.value}}
{% endfor %}
{% for sequenceExtension in extension.extension.where(url = 'sequence') %}
{{sequenceExtension.value}}
{% endfor %}
{% for statementExtension in extension.extension.where(url = 'statement') %}
{{statementExtension.value}}
{% endfor %}
{% endfor %}
{% endif %}