{% if include.relatedArtifact.exists() %} {% for relatedArtifact in include.relatedArtifact %} {% if relatedArtifact.where(type = 'documentation').exists() %} {%include row-header.html header='Documentation' %} {% endif %} {% if relatedArtifact.where(type = 'justification').exists() %} {%include row-header.html header='Justification' %} {% endif %} {% if relatedArtifact.where(type = 'citation').exists() %} {%include row-header.html header='Citation' %} {% endif %} {% if relatedArtifact.where(type = 'depends-on').exists() %} {%include row-header.html header='Dependency' %} {% endif %} {% if relatedArtifact.where(type = 'composed-of').exists() %} {%include row-header.html header='Component' %} {% endif %} {% if relatedArtifact.display.exists() %} Description: {{relatedArtifact.display}} {% if relatedArtifact.citation.exists() or relatedArtifact.url.exists() or relatedArtifact.document.exists() or relatedArtifact.resource.exists() %}
{% endif %} {% endif %} {% if relatedArtifact.citation.exists() %} {% if relatedArtifact.type = 'citation' %} {{relatedArtifact.citation}} {% else %} Citation: {{relatedArtifact.citation}} {% endif %} {% endif %} {% if relatedArtifact.url.exists() %} Content URL: {{relatedArtifact.url}} {% if relatedArtifact.document.exists() or relatedArtifact.resource.exists() %}
{% endif %} {% endif %} {% if relatedArtifact.document.exists() %} Document: {{relatedArtifact.document}} {% if relatedArtifact.citation.resource.exists() %}
{% endif %} {% endif %} {% if relatedArtifact.resource.exists() %} Resource: {{relatedArtifact.resource}}
Canonical URL: {{relatedArtifact.resource.toString()}} {% endif %} {% for group in extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-groupId' or url = 'http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-groupId') %} Group Id: {{group.value}} {% endfor %} {% for weight in extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-weight' or url = 'http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-weight') %} Weight: {{weight.value}} {% endfor %} {% endfor %} {% endif %}