From b2ae16d3c74b71617c224cecce0c728dce89cbe8 Mon Sep 17 00:00:00 2001 From: Joseph Kotanchik Date: Tue, 14 Jan 2025 13:27:54 -0500 Subject: [PATCH] MAT-7981: Remove unused templates. --- src/main/resources/templates/Library.liquid | 394 ----------- src/main/resources/templates/Measure.liquid | 707 -------------------- 2 files changed, 1101 deletions(-) delete mode 100644 src/main/resources/templates/Library.liquid delete mode 100644 src/main/resources/templates/Measure.liquid diff --git a/src/main/resources/templates/Library.liquid b/src/main/resources/templates/Library.liquid deleted file mode 100644 index 0b34a7d..0000000 --- a/src/main/resources/templates/Library.liquid +++ /dev/null @@ -1,394 +0,0 @@ -
- - {% if Library.id.exists() %} - - - - - {% endif %} - {% if Library.url.exists() %} - - - - - {% endif %} - {% if Library.version.exists() %} - - - - - {% endif %} - {% for identifier in Library.identifier %} - - - - - {% endfor %} - {% if Library.name.exists() %} - - - - - {% endif %} - {% if Library.title.exists() %} - - - - - {% endif %} - {% if Library.subtitle.exists() %} - - - - - {% endif %} - {% if Library.status.exists() %} - - - - - {% endif %} - {% if Library.experimental.exists() %} - - - - - {% endif %} - {% if Library.type.exists() %} - - - - - {% endif %} - {% if Library.subject.exists() %} - - - {%if Library.subject is CodeableConcept %} - - {% endif %} - {% if Library.subject is Reference %} - - {% endif %} - - {% endif %} - {% if Library.date.exists() %} - - - - - {% endif %} - {% if Library.publisher.exists() %} - - - - - {% endif %} - {% if Library.description.exists() %} - - - - - {% endif %} - {% if Library.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability').exists() %} - - - - - {% endif %} - {% if Library.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel').exists() %} - - - - - {% endif %} - {% if Library.useContext.exists() %} - - - - - {% endif %} - {% if Library.jurisdiction.exists() %} - - - - - {% endif %} - {% if Library.purpose.exists() %} - - - - - {% endif %} - {% if Library.usage.exists() %} - - - - - {% endif %} - {% if Library.copyright.exists() %} - - - - - {% endif %} - {% if Library.approvalDate.exists() %} - - - - - {% endif %} - {% if Library.lastReviewDate.exists() %} - - - - - {% endif %} - {% if Library.effectivePeriod.exists() %} - - - - - {% endif %} - {% if Library.relatedArtifact.exists() %} - - - - - {% endif %} - {% if Library.parameter.exists() %} - - - - - {% endif %} - {% if Library.dataRequirement.exists() %} - - - - - {% endif %} - {% for c in Library.content %} - {% if c.contentType = 'text/cql' %} - - - - {% endif %} - {% if c.contentType != 'text/cql' %} - - - - {% endif %} - {% endfor %} -
Id: {{Library.id}}
Url: {{Library.url}}
Version: {{Library.version}}
Identifier: - {% if identifier.type.exists() %} -

- type: {{identifier.type.value}} -

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

- value: {{identifier.value}} -

- {% endif %} -
Name: {{Library.name}}
Title: {{Library.title.escape('html')}}
Subtitle: {{Library.subtitle.escape('html')}}
Status: {{Library.status.value}}
Experimental: {{Library.experimental.value}}
Type: - {% if Library.type.coding.exists() %} - {% for coding in Library.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 Library.type.coding.exists().not and Library.type.text.exists() %} - {{Library.type.text}} - {% endif %} -
Subject: - {% if Library.subject.coding.exists() %} - {% for coding in Library.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 Library.subject.coding.exists().not and Library.subject.text.exists() %} - {{Library.subject.text}} - {% endif %} -
- {% if Library.subject.reference.exists() %} -

- reference: {{Library.subject.reference}} -

- {% endif %} - {% if Library.subject.type.exists() %} -

- type: {{Library.subject.type}} -

- {% endif %} - {% if Library.subject.display.exists() %} -

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

- {% endif %} -
Date: {{Library.date}}
Publisher: {{Library.publisher.escape('html')}}
Description: {{Library.description.escape('html')}}
Knowledge Capability: - {% for extension in Library.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability') %}{{extension.value}} {% endfor %} -
Knowledge Representation Level: - {% for extension in Library.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel') %}{{extension.value}}{% endfor %} -
Use Context: - - - {% for useContext in Library.useContext %} - - - - - - {% endfor %} -
codevaluedisplay
{{useContext.code.code}}{{useContext.value.coding.first().code}}{{useContext.value.coding.first().display.escape('html')}}
-
Jurisdiction: {{Library.jurisdiction.first().coding.first().code}}
Purpose: {{Library.purpose.escape('html')}}
Usage: {{Library.usage.escape('html')}}
Copyright: {{Library.copyright.escape('html')}}
Approval Date: {{Library.approvalDate}}
Last Review Date: {{Library.lastReviewDate}}
Effective Period: {{Library.effectivePeriod.start}}..{{Library.effectivePeriod.end}}
Related Artifacts: - {% if Library.relatedArtifact.where(type = 'documentation' or type = 'justification').exists() %} -

Documentation

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

References

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

Dependencies

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

Components

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

Derived From

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

Successor

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

Predecessor

-
    - {% for artifact in Library.relatedArtifact.where(type = 'predecessor') %} -
  • {{artifact.resource}}
  • - {% endfor %} -
- {% endif %} -
Parameters: - - - {% for param in Library.parameter %} - - {% endfor %} -
NameTypeMinMaxIn/Out
{{param.name}}{{param.type}}{{param.min}}{{param.max}}{{param.use}}
-
Data Requirements: - - - {% for requirement in Library.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.escape('html')}} -

- {% endif %} - {% endfor %} - {% endfor %} -
-
- - - -
Content: {{c.contentType}}
{{c.data.decode('base64').escape('html')}}
-
- - - -
Content: {{c.contentType}}
{{'Encoded data (' + c.data.length().toString() + ' characters)'}}
-
-
\ No newline at end of file diff --git a/src/main/resources/templates/Measure.liquid b/src/main/resources/templates/Measure.liquid deleted file mode 100644 index e366966..0000000 --- a/src/main/resources/templates/Measure.liquid +++ /dev/null @@ -1,707 +0,0 @@ -
- - {% 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.group.exists() %} - {% if Measure.group[0].population.description.exists() %} - - - - - {% endif %} - {% 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.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.library.exists() %} - - - - - {% endif %} - {% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements').exists() %} - {% for contained in Measure.contained.where(id = 'effective-data-requirements') %} - - - - - - - - - - - - - {% if contained.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode').exists() %} - - - - - {% endif %} - {% if contained.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition').exists() %} - - - - - {% endif %} - {% endfor %} - {% else %} - {% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement').exists() %} - {% 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.group.exists() %} - - - - - {% endif %} - {% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition').exists() %} - - - - - {% endif %} - {% endif %} - {% endif %} - {% if Measure.supplementalData.usage.coding.where(code = 'supplemental-data').exists() %} - - - - - {% endif %} - {% if Measure.supplementalData.usage.coding.where(code = 'risk-adjustment-factor').exists() %} - {% for supplementalData in Measure.supplementalData.where(usage.coding.where(code = 'risk-adjustment-factor').exists()) %} - - - - - {% endfor %} - {% endif %} -
Id: {{Measure.id}}
Download cql: Library-{{Measure.id}}.cql
Url: {{Measure.url}}
Version: {{Measure.version}}
Identifier: - {% if identifier.type.exists() %} -

- type: {{identifier.type.text}} -

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

- value: {{identifier.value}} -

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

- {{iif(coding.display.exists(), coding.display, coding.code)}} {{iif(coding.system != 'http://terminology.hl7.org/CodeSystem/measure-scoring', '(' + coding.system + ')', '')}} -

- {% 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 %} -

- {{iif(coding.display.exists(), coding.display, coding.code)}} {{iif(coding.system != 'http://terminology.hl7.org/CodeSystem/measure-improvement-notation', '(' + coding.system + ')', '')}} -

- {% 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 %} -

- {{iif(coding.display.exists(), coding.display, coding.code)}} {{iif(coding.system != 'http://terminology.hl7.org/CodeSystem/measure-type', '(' + coding.system + ')', '')}} -

- {% 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 %} -

- {{iif(coding.display.exists(), coding.display, coding.code)}} {{iif(coding.system.exists(), '(' + coding.system + ')', '')}} -

- {% 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}} -

- {% endif %} -
Date: {{Measure.date}}
Publisher: {{Measure.publisher.escape('html')}}
Description: {{Measure.description.escape('html')}}
Population Criteria: - {% for group in Measure.group %} - - {% if group.id.exists() %} - - - - {% endif %} - {% for population in group.population %} - - - - - {% endfor %} -
{{group.id}}
{{population.code.coding[0].display}}: {{population.description.escape('html')}}
- {% endfor %} -
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 %} -
Use Context: - - - {% for useContext in Measure.useContext %} - - - - - {% endfor %} -
codevalue
{{useContext.code.code}}{{useContext.value.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() and - Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements').exists().not %} -

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 %} -
Libraries: - - {% for library in Measure.library %} - - {% endfor %} -
{{library}}
-
Related Artifact Dependencies: - {% for relatedArtifact in contained.relatedArtifact.where(type= 'depends-on') %} -
  • {{relatedArtifact.resource}}
  • - {% endfor %} -
    Parameters: - - - {% for parameter in contained.parameter %} - - - - - - - - {% endfor %} -
    nameuseminmaxtype
    {{parameter.name}}{{parameter.use}}{{parameter.min}}{{parameter.max}}{{parameter.type}}
    -
    DataRequirements: - - - {% for dataRequirement in contained.dataRequirement %} - - - - - - - {% endfor %} -
    TypeMust SupportValueset NameValueset
    {{dataRequirement.type}} - {% for mustSupport in dataRequirement.mustSupport %} - {{ mustSupport }} - {% endfor %} - - {% for relatedArtifact in contained.relatedArtifact.where(resource = dataRequirement.codeFilter.first().valueSet) %} - {% if relatedArtifact.display.startsWith("Value set ") %} - {{ relatedArtifact.display.substring(9).replace(' &', ',') }} - {% else %} - {{ relatedArtifact.display.replace(' &', ',') }} - {% endif %} - {% endfor %} - {{dataRequirement.codeFilter.first().valueSet}}
    -
    Direct Reference Codes: - - - {% for extension in contained.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode') %} - - - - - - {% endfor %} -
    displaycodesystem
    {{extension.value.display}}{{extension.value.code}}{{extension.value.system}}
    -
    Logic Definitions: - {% if Measure.group.exists() %} - - - - - - {% for group in Measure.group %} - - - {% for population in group.population %} - - - - - {% endfor %} - - {% endfor %} - -
    GroupScoringPopulation CriteriaExpression
    {{ group.id }} - {% if group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring').exists() %} - Group scoring: - {% for extension in group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring') %} - {{ extension.value.coding.code }} - {% endfor %} - {% endif %} - {% if Measure.scoring.exists() %} - Measure scoring: - {% for coding in Measure.scoring.coding %} -

    - {{iif(coding.display.exists(), coding.display, coding.code)}} -

    - {% endfor %} - {% endif %} -
    - - {{ population.code.first().coding.first().display }} - {% if population.criteria.expression %} -
    {{ (Measure.contained.where(id = 'effective-data-requirements').extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition' and extension.where(url = 'name' and value = population.criteria.expression)).extension.where(url = 'statement').value).escape('html') }}
    - {% endif %} -
    - {% endif %} - - {% for extension in contained.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 statementExtension in extension.extension.where(url = 'statement') %} - - - {% endfor %} - - {% endfor %} -
    Library NameName
    {{lNameExtension.value}}{{nameExtension.value}}
    {{statementExtension.value.escape('html')}}
    -
    Parameters: - - - {% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter') %} - - - - - - - - {% endfor %} -
    nameuseminmaxtype
    {{extension.value.name}}{{extension.value.use}}{{extension.value.min}}{{extension.value.max}}{{extension.value.type}}
    -
    Data Requirements: - - - {% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement') %} - - - - {% if extension.value.codeFilter.first().valueSet.exists() %} - - - {% endif%} - {% if extension.value.codeFilter.first().code.exists() %} - - - {% endif%} - - {% endfor %} -
    typepathvalueSet or systemcode
    {{extension.value.type}}{{extension.value.codeFilter.first().path}}{{extension.value.codeFilter.first().valueSet}}{{extension.value.codeFilter.first().code.first().system}}{{extension.value.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.value.display}}{{extension.value.code}}{{extension.value.system}}
    -
    Populations: - - - {% for group in Measure.group %} - - - {% for population in group.population %} - - - - - {% endfor %} - - {% endfor %} -
    GroupPopulationDescription
    {{group.id}}
    - {{population.code.first().coding.first().display}} - {% if population.description %} - {{(population.description.escape('html'))}} - {% endif %} -
    -
    Logic Definitions: - {% if Measure.group.exists() %} - - - - - - {% for group in Measure.group %} - - - {% for population in group.population %} - - - - - {% endfor %} - - {% endfor %} - -
    GroupScoringPopulation CriteriaExpression
    {{ group.id }} - {% if group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring').exists() %} - Group scoring: - {% for extension in group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring') %} - {{ extension.value.coding.code }} - {% endfor %} - {% endif %} - {% if Measure.scoring.exists() %} - Measure scoring: - {% for coding in Measure.scoring.coding %} -

    - {{iif(coding.display.exists(), coding.display, coding.code)}} -

    - {% endfor %} - {% endif %} -
    - - {{ population.code.first().coding.first().display }} - {% if population.criteria.expression %} -
    {{ (Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition' and extension.where(url = 'name' and value = population.criteria.expression)).extension.where(url = 'statement').value) }}
    - {% endif %} -
    - {% endif %} - {% 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 %} - -
    Library NameName
    {{lNameExtension.value}}{{nameExtension.value}}
    - {% for statementExtension in extension.extension.where(url = 'statement') %} -
    {{statementExtension.value.escape('html')}}
    - {% endfor %} -

    - {% endfor %} -
    Supplemental Data Elements: - {% for supplementalData in Measure.supplementalData.where(usage.coding.where(code = 'supplemental-data').exists()) %} - {% if supplementalData.code.exists() %} - {{iif(supplementalData.code.text.exists(), supplementalData.code.text, iif(supplementalData.code.coding.first().display.exists(), supplementalData.code.coding.first().display, supplementalData.code.coding.first().code))}} - {% else %} - {%if supplementalData.description.exists() %} - {{supplementalData.description.escape('html')}} - {% else %} - {%if supplementalData.criteria.description.exists() %} - {{supplementalData.criteria.description.escape('html')}} - {% else %} - {{supplementalData.criteria.expression}} - {% endif %} - {% endif %} - {% endif %} - {% endfor %} -
    Risk Adjustment Factor: -

    - {% if supplementalData.code.exists() %} - {{iif(supplementalData.code.text.exists(), supplementalData.code.text, iif(supplementalData.code.coding.first().display.exists(), supplementalData.code.coding.first().display, supplementalData.code.coding.first().code))}} - {% else %} - {%if supplementalData.description.exists() %} - {{supplementalData.description.escape('html')}} - {% else %} - {%if supplementalData.criteria.description.exists() %} - {{supplementalData.criteria.description.escape('html')}} - {% else %} - {{supplementalData.criteria.expression}} - {% endif %} - {% endif %} - {% endif %} -

    -
    -
    \ No newline at end of file