Branded UI Fixed

This commit is contained in:
2025-09-28 04:32:17 +00:00
parent 0f0087d756
commit 3c281adb2c
193 changed files with 19151 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,4 @@
{
"index-version" : 2,
"files" : []
}

View File

@@ -0,0 +1,418 @@
<!-- Liquid template version: 0.4.6 -->
<div>
<table class="grid dict">
{% if ActivityDefinition.title.exists() %}
<tr>
<th scope="row"><b>Title: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.title}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.id.exists() %}
<tr>
<th scope="row"><b>Id: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.id}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.version.exists() %}
<tr>
<th scope="row"><b>Version: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.version}}</td>
</tr>
{% endif %}
{% for identifier in ActivityDefinition.identifier %}
<tr>
<th scope="row">
<b>
{% if identifier.type.coding.exists() %}
{% if identifier.type.coding.display.exists() %}
{{identifier.type.coding.display}}{% if identifier.assigner.display.exists() %} ({{identifier.assigner.display}}){% endif %} Identifier:
{% else %}
{{identifier.type.coding.code}}{% if identifier.assigner.display.exists() %} ({{identifier.assigner.display}}){% endif %} identifier:
{% endif %}
{% else %}
{{identifier.use}}
{% endif %}
</b>
</th>
<td style="padding-left: 4px;">
{% if identifier.value.exists() %}
<p style="margin-bottom: 5px;">
<span>{{identifier.value}}</span>
</p>
{% endif %}
</td>
</tr>
{% endfor %}
{% if ActivityDefinition.effectivePeriod.exists() %}
<tr>
<th scope="row"><b>Effective Period: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.effectivePeriod.start}}..{{ActivityDefinition.effectivePeriod.end}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.status.exists() and ActivityDefinition.status.value != 'active' %}
<tr>
<th scope="row"><b>Status: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.status.value}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.experimental.exists() and ActivityDefinition.experimental.value = 'true' %}
<tr>
<th scope="row"><b>Experimental: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.experimental.value}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.date.exists() %}
<tr>
<th scope="row"><b>Date (date last changed): </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.date}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.approvalDate.exists() %}
<tr>
<th scope="row"><b>Approval date: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.approvalDate}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.publisher.exists() %}
<tr>
<th scope="row"><b>Publisher (steward): </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.publisher}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.author.exists() and ActivityDefinition.author.name.exists() %}
<tr>
<th scope="row"><b>Author: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.author.name}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.endorser.exists() and ActivityDefinition.endorser.name.exists() %}
<tr>
<th scope="row"><b>Endorsed by: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.endorser.name}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.description.exists() %}
<tr>
<th scope="row"><b>Description: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.description}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability').exists() %}
<tr>
<th scope="row"><b>Knowledge Capability: </b></th>
<td style="padding-left: 4px;">
{% for extension in ActivityDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability') %}
{{extension.value}}
{% endfor %}
</td>
</tr>
{% endif %}
{% if ActivityDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel').exists() %}
<tr>
<th scope="row"><b>Knowledge Representation Level: </b></th>
<td style="padding-left: 4px;">
{% for extension in ActivityDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel') %}
{{extension.value}}
{% endfor %}
</td>
</tr>
{% endif %}
{% if ActivityDefinition.useContext.exists() %}
<tr>
<th scope="row"><b>Use Context: </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
<tr>
<th><b>code</b></th>
<th><b>value</b></th>
</tr>
{% for useContext in ActivityDefinition.useContext %}
<tr>
<td>{{useContext.code.code}}</td>
<td>{{useContext.value.text}}</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endif %}
{% if ActivityDefinition.jurisdiction.exists() %}
<tr>
<th scope="row"><b>Jurisdiction: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.jurisdiction.first().coding.first().code}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.topic.exists() %}
<tr>
<th scope="row"><b>Topic: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.topic.first().coding.first().code}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.purpose.exists() %}
<tr>
<th scope="row"><b>Purpose: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.purpose.first().coding.first().code}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.usage.exists() %}
<tr>
<th scope="row"><b>Usage (Guidance): </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.usage.first().coding.first().code}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.copyright.exists() %}
<tr>
<th scope="row"><b>Copyright: </b></th>
<td style="padding-left: 4px;">{{ActivityDefinition.copyright}}</td>
</tr>
{% endif %}
{% if ActivityDefinition.relatedArtifact.exists() %}
<tr>
<th scope="row"><b>Reference: </b></th>
<td style="padding-left: 4px;">
{% for artifact in ActivityDefinition.relatedArtifact %}
{% if artifact.type == 'citation' %}
<p><b>Citation: </b>{{artifact.citation}} <br/><a href="{{artifact.url}}">{{artifact.url}}</a></p>
{% endif %}
{% endfor %}
</td>
</tr>
{% endif %}
{% if ActivityDefinition.library.exists() %}
<tr>
<th scope="row"><b>Libraries: </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
{% for library in ActivityDefinition.library %}
<tr>
<td>{{ library }}</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endif %}
{% if ActivityDefinition.relatedArtifact.exists() %}
<tr>
<th scope="row"><b>Terminology and Other Dependencies: </b></th>
<td style="padding-left: 4px;">
<ul>
{% for artifact in ActivityDefinition.relatedArtifact %}
{% if artifact.type == 'depends-on' %}
<li>{{ artifact.resource }}</li>
{% endif %}
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
{% if ActivityDefinition.code.exists() %}
<tr>
<th scope="row"><b>Code: </b></th>
<td style="padding-left: 4px;">
{% if ActivityDefinition.code.coding.exists() %}
{% for coding in ActivityDefinition.code.coding %}
{% if coding.system.exists() %}
<p><b>system: </b><span>{{ coding.system }}</span></p>
{% endif %}
{% if coding.code.exists() %}
<p><b>code: </b><span>{{ coding.code }}</span></p>
{% endif %}
{% if coding.display.exists() %}
<p><b>display: </b><span>{{ coding.display }}</span></p>
{% endif %}
{% endfor %}
{% endif %}
{% if ActivityDefinition.code.coding.exists().not() and ActivityDefinition.code.text.exists() %}
{{ ActivityDefinition.code.text }}
{% endif %}
</td>
</tr>
{% endif %}
{% if ActivityDefinition.logic.exists() %}
<tr>
<th scope="row"><b>Logic Definitions: </b></th>
<td style="padding-left: 4px;">{{ ActivityDefinition.logic }}</td>
</tr>
{% endif %}
{% if ActivityDefinition.relatedArtifact.where(type = 'derived-from').exists() %}
<tr>
<th scope="row"><b>Derived From: </b></th>
<td style="padding-left: 4px;">
<ul>
{% for artifact in ActivityDefinition.relatedArtifact.where(type = 'derived-from') %}
<li>{{ artifact.resource }}</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
{% if ActivityDefinition.relatedArtifact.where(type = 'successor').exists() %}
<tr>
<th scope="row"><b>Successor: </b></th>
<td style="padding-left: 4px;">
<ul>
{% for artifact in ActivityDefinition.relatedArtifact.where(type = 'successor') %}
<li>{{ artifact.resource }}</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
{% if ActivityDefinition.relatedArtifact.where(type = 'predecessor').exists() %}
<tr>
<th scope="row"><b>Predecessor: </b></th>
<td style="padding-left: 4px;">
<ul>
{% for artifact in ActivityDefinition.relatedArtifact.where(type = 'predecessor') %}
<li>{{ artifact.resource }}</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
{% if ActivityDefinition.kind.exists() %}
<tr>
<th scope="row"><b>Kind: </b></th>
<td style="padding-left: 4px;">{{ ActivityDefinition.kind.value }}</td>
</tr>
{% endif %}
{% if ActivityDefinition.profile.exists() %}
<tr>
<th scope="row"><b>Profile: </b></th>
<td style="padding-left: 4px;">{{ ActivityDefinition.profile.value }}</td>
</tr>
{% endif %}
{% if ActivityDefinition.intent.exists() %}
<tr>
<th scope="row"><b>Intent: </b></th>
<td style="padding-left: 4px;">{{ ActivityDefinition.intent.value }}</td>
</tr>
{% endif %}
{% if ActivityDefinition.priority.exists() %}
<tr>
<th scope="row"><b>Priority: </b></th>
<td style="padding-left: 4px;">{{ ActivityDefinition.priority.value }}</td>
</tr>
{% endif %}
{% if ActivityDefinition.doNotPerform.exists() %}
<tr>
<th scope="row"><b>doNotPerform: </b></th>
<td style="padding-left: 4px;">{{ ActivityDefinition.doNotPerform.value }}</td>
</tr>
{% endif %}
{% if ActivityDefinition.product.exists() %}
<tr>
<th scope="row"><b>Product: </b></th>
{% if ActivityDefinition.product is CodeableConcept %}
<td style="padding-left: 4px;">
{% if ActivityDefinition.product.coding.exists() %}
{% for coding in ActivityDefinition.product.coding %}
{% if coding.system.exists() %}
<p><b>system: </b><span>{{ coding.system }}</span></p>
{% endif %}
{% if coding.code.exists() %}
<p><b>code: </b><span>{{ coding.code }}</span></p>
{% endif %}
{% if coding.display.exists() %}
<p><b>display: </b><span>{{ coding.display }}</span></p>
{% endif %}
{% endfor %}
{% endif %}
{% if ActivityDefinition.product.coding.exists().not() and ActivityDefinition.product.text.exists() %}
{{ ActivityDefinition.product.text }}
{% endif %}
</td>
{% endif %}
{% if ActivityDefinition.product is Reference %}
<td style="padding-left: 4px;">
{% if ActivityDefinition.product.reference.exists() %}
<p><b>reference: </b><span>{{ ActivityDefinition.product.reference }}</span></p>
{% endif %}
{% if ActivityDefinition.product.type.exists() %}
<p><b>type: </b><span>{{ ActivityDefinition.product.type }}</span></p>
{% endif %}
{% if ActivityDefinition.product.display.exists() %}
<p><b>code: </b><span>{{ ActivityDefinition.product.display }}</span></p>
{% endif %}
</td>
{% endif %}
</tr>
{% endif %}
{% if ActivityDefinition.quantity.exists() %}
<tr>
<th scope="row"><b>Quantity: </b></th>
<td style="padding-left: 4px;">{{ ActivityDefinition.quantity.value }} <i>({{ ActivityDefinition.quantity.unit }})</i><br/></td>
</tr>
{% endif %}
{% if ActivityDefinition.bodySite.exists() %}
<tr>
<th scope="row"><b>Body Site(s): </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
<tr>
<th><b>code</b></th>
<th><b>display</b></th>
</tr>
{% for bodySite in ActivityDefinition.bodySite %}
<tr>
<td>{{ bodySite.coding.first().code }}</td>
<td>{{ bodySite.coding.first().display }}</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endif %}
{% if ActivityDefinition.dynamicValue.exists() %}
<tr>
<th scope="row"><b>Dynamic Values: </b></th>
<td style="padding-left: 4px;">
<ul>
{% for dynamicValue in ActivityDefinition.dynamicValue %}
<li>{{ dynamicValue.path }}: <i>({{ dynamicValue.expression.expression }})</i><br/></li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
</table>
</div>

View File

@@ -0,0 +1,431 @@
<!-- Liquid template version: 0.4.6 -->
<div>
<table class="grid dict">
{% if Library.title.exists() %}
<tr>
<th scope="row"><b>Title: </b></th>
<td style="padding-left: 4px;">{{Library.title}}</td>
</tr>
{% endif %}
{% if Library.id.exists() %}
<tr>
<th scope="row"><b>Id: </b></th>
<td style="padding-left: 4px;">{{Library.id}}</td>
</tr>
{% endif %}
{% if Library.version.exists() %}
<tr>
<th scope="row"><b>Version: </b></th>
<td style="padding-left: 4px;">{{Library.version}}</td>
</tr>
{% endif %}
{% if Library.url.exists() %}
<tr>
<th scope="row"><b>Url: </b></th>
<td style="padding-left: 4px;">{{Library.url}}</td>
</tr>
{% endif %}
{% for identifier in Library.identifier %}
<tr>
<th scope="row">
<b>
{% if identifier.type.coding.exists() %}
{% if identifier.type.coding.display.exists() %}
{{identifier.type.coding.display}}{% if identifier.assigner.display.exists() %} ({{identifier.assigner.display}}){% endif %} Identifier:
{% else %}
{{identifier.type.coding.code}}{% if identifier.assigner.display.exists() %} ({{identifier.assigner.display}}){% endif %} identifier:
{% endif %}
{% else %}
{{identifier.use}}
{% endif %}
</b>
</th>
<td style="padding-left: 4px;">
{% if identifier.value.exists() %}
<p style="margin-bottom: 5px;">
<span>{{identifier.value}}</span>
</p>
{% endif %}
</td>
</tr>
{% endfor %}
{% if Library.subtitle.exists() %}
<tr>
<th scope="row"><b>Subtitle: </b></th>
<td style="padding-left: 4px;">{{Library.subtitle}}</td>
</tr>
{% endif %}
{% if Library.status.exists() and Library.status.value != 'active' %}
<tr>
<th scope="row"><b>Status: </b></th>
<td style="padding-left: 4px;">{{Library.status.value}}</td>
</tr>
{% endif %}
{% if Library.experimental.exists() and Library.experimental.value = 'true' %}
<tr>
<th scope="row"><b>Experimental: </b></th>
<td style="padding-left: 4px;">{{Library.experimental.value}}</td>
</tr>
{% endif %}
{% if Library.type.exists() %}
<tr>
<th scope="row"><b>Type: </b></th>
<td style="padding-left: 4px;">
{% if Library.type.coding.exists() %}
{% for coding in Library.type.coding %}
{% if coding.system.exists() %}
<p style="margin-bottom: 5px;">
<b>system: </b> <span>{{coding.system}}</span>
</p>
{% endif %}
{% if coding.code.exists() %}
<p style="margin-bottom: 5px;">
<b>code: </b> <span>{{coding.code}}</span>
</p>
{% endif %}
{% if coding.display.exists() %}
<p style="margin-bottom: 5px;">
<b>display: </b> <span>{{coding.display}}</span>
</p>
{% endif %}
{% endfor %}
{% endif %}
{% if Library.type.coding.exists().not() and Library.type.text.exists() %}
{{Library.type.text}}
{% endif %}
</td>
</tr>
{% endif %}
{% if Library.subject.exists() %}
<tr>
<th scope="row"><b>Subject: </b></th>
{%if Library.subject is CodeableConcept %}
<td style="padding-left: 4px;">
{% if Library.subject.coding.exists() %}
{% for coding in Library.subject.coding %}
{% if coding.system.exists() %}
<p style="margin-bottom: 5px;">
<b>system: </b> <span>{{coding.system}}</span>
</p>
{% endif %}
{% if coding.code.exists() %}
<p style="margin-bottom: 5px;">
<b>code: </b> <span>{{coding.code}}</span>
</p>
{% endif %}
{% if coding.display.exists() %}
<p style="margin-bottom: 5px;">
<b>display: </b> <span>{{coding.display}}</span>
</p>
{% endif %}
{% endfor %}
{% endif %}
{% if Library.subject.coding.exists().not() and Library.subject.text.exists() %}
{{Library.subject.text}}
{% endif %}
</td>
{% endif %}
{% if Library.subject is Reference %}
<td style="padding-left: 4px;">
{% if Library.subject.reference.exists() %}
<p style="margin-bottom: 5px;">
<b>reference: </b> <span>{{Library.subject.reference}}</span>
</p>
{% endif %}
{% if Library.subject.type.exists() %}
<p style="margin-bottom: 5px;">
<b>type: </b> <span>{{Library.subject.type}}</span>
</p>
{% endif %}
{% if Library.subject.display.exists() %}
<p style="margin-bottom: 5px;">
<b>code: </b> <span>{{Library.subject.display}}</span>
</p>
{% endif %}
</td>
{% endif %}
</tr>
{% endif %}
{% if Library.date.exists() %}
<tr>
<th scope="row"><b>Date: </b></th>
<td style="padding-left: 4px;">{{Library.date}}</td>
</tr>
{% endif %}
{% if Library.publisher.exists() %}
<tr>
<th scope="row"><b>Publisher: </b></th>
<td style="padding-left: 4px;">{{Library.publisher}}</td>
</tr>
{% endif %}
{% if Library.description.exists() %}
<tr>
<th scope="row"><b>Description: </b></th>
<td style="padding-left: 4px;">{{Library.description}}</td>
</tr>
{% endif %}
{% if Library.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability').exists() %}
<tr>
<th scope="row"><b>Knowledge Capability: </b></th>
<td style="padding-left: 4px;">
{% for extension in Library.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability') %}
{{extension.value}}
{% endfor %}
</td>
</tr>
{% endif %}
{% if Library.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel').exists() %}
<tr>
<th scope="row"><b>Knowledge Representation Level: </b></th>
<td style="padding-left: 4px;">
{% for extension in Library.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel') %}
{{extension.value}}
{% endfor %}
</td>
</tr>
{% endif %}
{% if Library.useContext.exists() %}
<tr>
<th scope="row"><b>Use Context: </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
<tr>
<th><b>code</b></th>
<th><b>value</b></th>
</tr>
{% for useContext in Library.useContext %}
<tr>
<td>{{useContext.code.code}}</td>
<td>{{useContext.value.text}}</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endif %}
{% if Library.jurisdiction.exists() %}
<tr>
<th scope="row"><b>Jurisdiction: </b></th>
<td style="padding-left: 4px;">{{Library.jurisdiction.first().coding.first().code}}</td>
</tr>
{% endif %}
{% if Library.topic.exists() %}
<tr>
<th scope="row"><b>Topic: </b></th>
<td style="padding-left: 4px;">{{Library.topic.first().coding.first().code}}</td>
</tr>
{% endif %}
{% if Library.purpose.exists() %}
<tr>
<th scope="row"><b>Purpose: </b></th>
<td style="padding-left: 4px;">{{Library.purpose}}</td>
</tr>
{% endif %}
{% if Library.usage.exists() %}
<tr>
<th scope="row"><b>Usage: </b></th>
<td style="padding-left: 4px;">{{Library.usage}}</td>
</tr>
{% endif %}
{% if Library.copyright.exists() %}
<tr>
<th scope="row"><b>Copyright: </b></th>
<td style="padding-left: 4px;">{{Library.copyright}}</td>
</tr>
{% endif %}
{% if Library.approvalDate.exists() %}
<tr>
<th scope="row"><b>Approval Date: </b></th>
<td style="padding-left: 4px;">{{Library.approvalDate}}</td>
</tr>
{% endif %}
{% if Library.effectivePeriod.exists() %}
<tr>
<th scope="row"><b>Effective Period: </b></th>
<td style="padding-left: 4px;">{{Library.effectivePeriod.start}}..{{Library.effectivePeriod.end}}</td>
</tr>
{% endif %}
{% if Library.relatedArtifact.exists() %}
<tr>
<th scope="row"><b>Related Artifacts: </b></th>
<td style="padding-left: 4px;">
{% if Library.relatedArtifact.where(type = 'documentation' or type = 'justification').exists() %}
<p><b>Documentation</b></p>
<ul>
{% for artifact in Library.relatedArtifact.where(type = 'documentation' or type = 'justification') %}
<li><a href="{{artifact.url}}">{{artifact.label}} {{artifact.display}}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if Library.relatedArtifact.where(type = 'citation').exists() %}
<p><b>References</b></p>
<ul>
{% for artifact in Library.relatedArtifact.where(type = 'citation') %}
<li>{{artifact.citation}}<br/><a href="{{artifact.url}}">{{artifact.url}}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if Library.relatedArtifact.where(type = 'depends-on').exists() %}
<p><b>Dependencies</b></p>
<ul>
{% for artifact in Library.relatedArtifact.where(type = 'depends-on') %}
<li>{{artifact.resource}}</li>
{% endfor %}
</ul>
{% endif %}
{% if Library.relatedArtifact.where(type = 'composed-of').exists() %}
<p><b>Components</b></p>
<ul>
{% for artifact in Library.relatedArtifact.where(type = 'composed-of') %}
<li>{{artifact.resource}}</li>
{% endfor %}
</ul>
{% endif %}
{% if Library.relatedArtifact.where(type = 'derived-from').exists() %}
<p><b>Derived From</b></p>
<ul>
{% for artifact in Library.relatedArtifact.where(type = 'derived-from') %}
<li>{{artifact.resource}}</li>
{% endfor %}
</ul>
{% endif %}
{% if Library.relatedArtifact.where(type = 'successor').exists() %}
<p><b>Successor</b></p>
<ul>
{% for artifact in Library.relatedArtifact.where(type = 'successor') %}
<li>{{artifact.resource}}</li>
{% endfor %}
</ul>
{% endif %}
{% if Library.relatedArtifact.where(type = 'predecessor').exists() %}
<p><b>Predecessor</b></p>
<ul>
{% for artifact in Library.relatedArtifact.where(type = 'predecessor') %}
<li>{{artifact.resource}}</li>
{% endfor %}
</ul>
{% endif %}
</td>
</tr>
{% endif %}
{% if Library.parameter.exists() %}
<tr>
<th scope="row"><b>Parameters: </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
<tr><th><b>Name</b></th><th><b>Type</b></th><th><b>Min</b></th><th><b>Max</b></th><th><b>In/Out</b></th></tr>
{% for param in Library.parameter %}
<tr><th>{{param.name}}</th><th>{{param.type}}</th><th>{{param.min}}</th><th>{{param.max}}</th><th>{{param.use}}</th></tr>
{% endfor %}
</table>
</td>
</tr>
{% endif %}
{% if Library.dataRequirement.exists() %}
<tr>
<th scope="row"><b>Data Requirements:</b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
<tr><th><b>Type</b></th><th><b>Profile</b></th><th><b>MS</b></th><th><b>Code Filter</b></th></tr>
{% for requirement in Library.dataRequirement %}
<tr>
<th>{{requirement.type.value}}</th>
<th>{% for profile in requirement.profile %}{{profile.value}}{% endfor %}</th>
<th>{% for support in requirement.mustSupport %}{{mustSupport}};{% endfor %}</th>
<th>
{% for cfilter in requirement.codeFilter %}
<b>code filter: </b>
{% if cfilter.path.exists() or cfilter.valueSet.exists() or cfilter.code.exists() %}
<br/>
{% endif %}
{% if cfilter.path.exists() %}
<span style="padding-left: 4px;">
<b>path: </b><span>{{cfilter.path}}</span>
</span>
{% if cfilter.valueSet.exists() or cfilter.code.exists() %}
<br/>
{% endif %}
{% endif %}
{% if cfilter.valueSet.exists() %}
<span style="padding-left: 4px;">
<b>value set: </b><span>{{cfilter.valueSet.value}}</span>
</span>
{% endif %}
{% for coding in cfilter.code %}
{% if coding.system.exists() %}
<p style="margin-bottom: 5px;">
<b>system: </b> <span>{{coding.system}}</span>
</p>
{% endif %}
{% if coding.code.exists() %}
<p style="margin-bottom: 5px;">
<b>code: </b> <span>{{coding.code}}</span>
</p>
{% endif %}
{% if coding.display.exists() %}
<p style="margin-bottom: 5px;">
<b>display: </b> <span>{{coding.display}}</span>
</p>
{% endif %}
{% endfor %}
{% endfor %}
</th>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endif %}
{% for c in Library.content %}
{% if c.contentType = 'text/cql' %}
<tr>
<td colspan="2">
<table>
<tr><th><a id="cql-content"><b>Content: </b></a> {{c.contentType}}</th></tr>
<tr><td><pre><code class="language-cql">{{c.data.decode('base64')}}</code></pre></td></tr>
</table>
</td>
</tr>
{% endif %}
{% if c.contentType != 'text/cql' %}
<tr>
<td colspan="2">
<table>
<tr><th><b>Content: </b> {{c.contentType}}</th></tr>
<tr><td><pre><code>{{'Encoded data (' + c.data.length().toString() + ' characters)'}}</code></pre></td></tr>
</table>
</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>

View File

@@ -0,0 +1,8 @@
{%include narrative-start.html %}
{%include knowledge-artifact-metadata.html %}
{%include measure-metadata.html measure=Measure %}
{%include measure-population-criteria.html measure=Measure %}
{%include measure-supplementaldata.html measure=Measure %}
{%include measure-logic.html measure=Measure %}
{%include version.html %}
{%include narrative-end.html %}

View File

@@ -0,0 +1,450 @@
<!-- Liquid template version: 0.4.6 -->
<div>
<table class="grid dict">
{% if PlanDefinition.id.exists() %}
<tr>
<th scope="row"><b>Id: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.id}}</td>
</tr>
{% endif %}
{% if PlanDefinition.url.exists() %}
<tr>
<th scope="row"><b>Url: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.url}}</td>
</tr>
{% endif %}
{% if PlanDefinition.version.exists() %}
<tr>
<th scope="row"><b>Version: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.version}}</td>
</tr>
{% endif %}
{% for identifier in PlanDefinition.identifier %}
<tr>
<th scope="row">
<b>
{% if identifier.type.coding.exists() %}
{% if identifier.type.coding.display.exists() %}
{{identifier.type.coding.display}}{% if identifier.assigner.display.exists() %} ({{identifier.assigner.display}}){% endif %} Identifier:
{% else %}
{{identifier.type.coding.code}}{% if identifier.assigner.display.exists() %} ({{identifier.assigner.display}}){% endif %} identifier:
{% endif %}
{% else %}
{{identifier.use}}
{% endif %}
</b>
</th>
<td style="padding-left: 4px;">
{% if identifier.value.exists() %}
<p style="margin-bottom: 5px;">
<span>{{identifier.value}}</span>
</p>
{% endif %}
</td>
</tr>
{% endfor %}
{% if PlanDefinition.title.exists() %}
<tr>
<th scope="row"><b>Title: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.title}}</td>
</tr>
{% endif %}
{% if PlanDefinition.subtitle.exists() %}
<tr>
<th scope="row"><b>Subtitle: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.subtitle}}</td>
</tr>
{% endif %}
{% if PlanDefinition.status.exists() and PlanDefinition.status.value != 'active' %}
<tr>
<th scope="row"><b>Status: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.status.value}}</td>
</tr>
{% endif %}
{% if PlanDefinition.experimental.exists() and PlanDefinition.experimental.value = 'true' %}
<tr>
<th scope="row"><b>Experimental: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.experimental.value}}</td>
</tr>
{% endif %}
{% if PlanDefinition.type.exists() %}
<tr>
<th scope="row"><b>Type: </b></th>
<td style="padding-left: 4px;">
{% if PlanDefinition.type.coding.exists() %}
{% for coding in PlanDefinition.type.coding %}
{% if coding.system.exists() %}
<p style="margin-bottom: 5px;">
<b>system: </b> <span>{{coding.system}}</span>
</p>
{% endif %}
{% if coding.code.exists() %}
<p style="margin-bottom: 5px;">
<b>code: </b> <span>{{coding.code}}</span>
</p>
{% endif %}
{% if coding.display.exists() %}
<p style="margin-bottom: 5px;">
<b>display: </b> <span>{{coding.display}}</span>
</p>
{% endif %}
{% endfor %}
{% endif %}
{% if PlanDefinition.type.coding.exists().not() and PlanDefinition.type.text.exists() %}
{{PlanDefinition.type.text}}
{% endif %}
</td>
</tr>
{% endif %}
{% if PlanDefinition.subject.exists() %}
<tr>
<th scope="row"><b>Subject: </b></th>
{% if PlanDefinition.subject is CodeableConcept %}
<td style="padding-left: 4px;">
{% if PlanDefinition.subject.coding.exists() %}
{% for coding in PlanDefinition.subject.coding %}
{% if coding.system.exists() %}
<p style="margin-bottom: 5px;">
<b>system: </b> <span>{{coding.system}}</span>
</p>
{% endif %}
{% if coding.code.exists() %}
<p style="margin-bottom: 5px;">
<b>code: </b> <span>{{coding.code}}</span>
</p>
{% endif %}
{% if coding.display.exists() %}
<p style="margin-bottom: 5px;">
<b>display: </b> <span>{{coding.display}}</span>
</p>
{% endif %}
{% endfor %}
{% endif %}
{% if PlanDefinition.subject.coding.exists().not() and PlanDefinition.subject.text.exists() %}
{{PlanDefinition.subject.text}}
{% endif %}
</td>
{% endif %}
{% if PlanDefinition.subject is Reference %}
<td style="padding-left: 4px;">
{% if PlanDefinition.subject.reference.exists() %}
<p style="margin-bottom: 5px;">
<b>reference: </b> <span>{{PlanDefinition.subject.reference}}</span>
</p>
{% endif %}
{% if PlanDefinition.subject.type.exists() %}
<p style="margin-bottom: 5px;">
<b>type: </b> <span>{{PlanDefinition.subject.type}}</span>
</p>
{% endif %}
{% if PlanDefinition.subject.display.exists() %}
<p style="margin-bottom: 5px;">
<b>code: </b> <span>{{PlanDefinition.subject.display}}</span>
</p>
{% endif %}
</td>
{% endif %}
</tr>
{% endif %}
{% if PlanDefinition.date.exists() %}
<tr>
<th scope="row"><b>Date: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.date}}</td>
</tr>
{% endif %}
{% if PlanDefinition.publisher.exists() %}
<tr>
<th scope="row"><b>Publisher: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.publisher}}</td>
</tr>
{% endif %}
{% if PlanDefinition.description.exists() %}
<tr>
<th scope="row"><b>Description: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.description}}</td>
</tr>
{% endif %}
{% if PlanDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability').exists() %}
<tr>
<th scope="row"><b>Knowledge Capability: </b></th>
<td style="padding-left: 4px;">
{% for extension in PlanDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability') %}
{{extension.value}} {% endfor %}
</td>
</tr>
{% endif %}
{% if PlanDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel').exists() %}
<tr>
<th scope="row"><b>Knowledge Representation Level: </b></th>
<td style="padding-left: 4px;">
{% for extension in PlanDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel') %}
{{extension.value}}{% endfor %}
</td>
</tr>
{% endif %}
{% if PlanDefinition.useContext.exists() %}
<tr>
<th scope="row"><b>Use Context: </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
<tr>
<th><b>code</b></th>
<th><b>value</b></th>
</tr>
{% for useContext in PlanDefinition.useContext %}
<tr>
<td>{{useContext.code.code}}</td>
<td>{{useContext.value.text}}</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endif %}
{% if PlanDefinition.jurisdiction.exists() %}
<tr>
<th scope="row"><b>Jurisdiction: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.jurisdiction.first().coding.first().code}}</td>
</tr>
{% endif %}
{% if PlanDefinition.topic.exists() %}
<tr>
<th scope="row"><b>Topic: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.topic.first().coding.first().code}}</td>
</tr>
{% endif %}
{% if PlanDefinition.purpose.exists() %}
<tr>
<th scope="row"><b>Purpose: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.purpose}}</td>
</tr>
{% endif %}
{% if PlanDefinition.usage.exists() %}
<tr>
<th scope="row"><b>Usage: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.usage}}</td>
</tr>
{% endif %}
{% if PlanDefinition.copyright.exists() %}
<tr>
<th scope="row"><b>Copyright: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.copyright}}</td>
</tr>
{% endif %}
{% if PlanDefinition.approvalDate.exists() %}
<tr>
<th scope="row"><b>Approval Date: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.approvalDate}}</td>
</tr>
{% endif %}
{% if PlanDefinition.effectivePeriod.exists() %}
<tr>
<th scope="row"><b>Effective Period: </b></th>
<td style="padding-left: 4px;">{{PlanDefinition.effectivePeriod.start}}..{{PlanDefinition.effectivePeriod.end}}</td>
</tr>
{% endif %}
{% if PlanDefinition.relatedArtifact.exists() %}
<tr>
<th scope="row"><b>Related Artifacts: </b></th>
<td style="padding-left: 4px;">
{% if PlanDefinition.relatedArtifact.where(type = 'documentation' or type = 'justification').exists() %}
<p><b>Documentation</b></p>
<ul>
{% for artifact in PlanDefinition.relatedArtifact.where(type = 'documentation' or type = 'justification') %}
<li><a href="{{artifact.url}}">{{artifact.label}} {{artifact.display}}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if PlanDefinition.relatedArtifact.where(type = 'citation').exists() %}
<p><b>References</b></p>
<ul>
{% for artifact in PlanDefinition.relatedArtifact.where(type = 'citation') %}
<li>{{artifact.citation}}<br/><a href="{{artifact.url}}">{{artifact.url}}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if PlanDefinition.relatedArtifact.where(type = 'depends-on').exists() %}
<p><b>Dependencies</b></p>
<ul>
{% for artifact in PlanDefinition.relatedArtifact.where(type = 'depends-on') %}
<li>{{artifact.resource}}</li>
{% endfor %}
</ul>
{% endif %}
{% if PlanDefinition.relatedArtifact.where(type = 'composed-of').exists() %}
<p><b>Components</b></p>
<ul>
{% for artifact in PlanDefinition.relatedArtifact.where(type = 'composed-of') %}
<li>{{artifact.resource}}</li>
{% endfor %}
</ul>
{% endif %}
{% if PlanDefinition.relatedArtifact.where(type = 'derived-from').exists() %}
<p><b>Derived From</b></p>
<ul>
{% for artifact in PlanDefinition.relatedArtifact.where(type = 'derived-from') %}
<li>{{artifact.resource}}</li>
{% endfor %}
</ul>
{% endif %}
{% if PlanDefinition.relatedArtifact.where(type = 'successor').exists() %}
<p><b>Successor</b></p>
<ul>
{% for artifact in PlanDefinition.relatedArtifact.where(type = 'successor') %}
<li>{{artifact.resource}}</li>
{% endfor %}
</ul>
{% endif %}
{% if PlanDefinition.relatedArtifact.where(type = 'predecessor').exists() %}
<p><b>Predecessor</b></p>
<ul>
{% for artifact in PlanDefinition.relatedArtifact.where(type = 'predecessor') %}
<li>{{artifact.resource}}</li>
{% endfor %}
</ul>
{% endif %}
</td>
</tr>
{% endif %}
{% if PlanDefinition.library.exists() %}
<tr>
<th scope="row"><b>Libraries: </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
{% for library in PlanDefinition.library %}
<tr>
<td>{{library}}</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endif %}
{% if PlanDefinition.action.exists() %}
<tr>
<th scope="row"><b>Actions: </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
{% for action in PlanDefinition.action %}
<tr>
<td>
{% if action.textEquivalent.exists() %}
{{action.textEquivalent}}
{% else %}
<b>{{action.prefix}} {{action.title}}:</b> {{action.description}}
{% endif %}
<br/>
{% if action.trigger.exists() %}
<b>When:</b>
{% for trigger in action.trigger %}
<i>{{trigger.type}}:</i> {{trigger.name}}
<br/>
{% endfor %}
{% endif %}
{% if action.condition.exists() %}
<b>If:</b>
{% for condition in action.condition %}
<i>{{condition.kind}}:</i>
{% if condition.expression.description.exists() %}
{{condition.expression.description}}
{% endif %}
<i>({{condition.expression.expression}})</i>
<br/>
{% endfor %}
{% endif %}
{% if action.action.exists() %}
<b>Then:</b>
<table class="grid-dict">
{% for action in action.action %}
<tr>
<td>
{% if action.textEquivalent.exists() %}
{{action.textEquivalent}}
{% else %}
<b>{{action.prefix}} {{action.title}}:</b>
{{action.description}}
{% endif %}
<br/>
{% if action.trigger.exists() %}
<b>When:</b>
{% for trigger in action.trigger %}
<i>{{trigger.type}}:</i>
{{trigger.name}}
<br/>
{% endfor %}
{% endif %}
{% if action.condition.exists() %}
<b>If:</b>
{% for condition in action.condition %}
<i>{{condition.kind}}:</i>
{% if condition.expression.description.exists() %}
{{condition.expression.description}}
{% endif %}
<i>({{condition.expression.expression}})</i>
<br/>
{% endfor %}
{% endif %}
{% if action.action.exists() %}
<b>Then:</b> <i>Additional sub-actions not displayed</i>
{% else %}
{% if action.definition.exists() %}
<b>Then:</b> <i>Definition:</i> {{action.definition}}<br/>
{% if action.dynamicValue.exists() %}
<i>Dynamic Values:</i><br/>
{% for dynamicValue in action.dynamicValue %}
{{dynamicValue.path}}: <i>({{dynamicValue.expression.expression}})</i>
<br/>
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
</td>
</tr>
{% endfor %}
</table>
{% else %}
{% if action.definition.exists() %}
<b>Then:</b> <i>Definition:</i> {{action.definition}}<br/>
{% if action.dynamicValue.exists() %}
<i>Dynamic Values:</i><br/>
{% for dynamicValue in action.dynamicValue %}
{{dynamicValue.path}}: <i>({{dynamicValue.expression.expression}})</i>
<br/>
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endif %}
</table>
</div>

View File

@@ -0,0 +1,42 @@
{% for dataRequirement in include.dataRequirement.distinct() %}
<tr>
<th scope="row" class="row-header">{{include.header}}</th>
<td class="content-container">
<em>Type</em>: {{dataRequirement.type}}
<br />
{% if dataRequirement.profile.exists() %}
<em>Profile(s)</em>:
{% for profile in dataRequirement.profile %}
{{profile}}
<br />
{% endfor %}
{% endif %}
{% if dataRequirement.mustSupport.exists() %}
<em>Must Support Elements</em>: {{dataRequirement.mustSupport.join(', ')}}
<br />
{% endif %}
{% if dataRequirement.codeFilter.exists() %}
<em>Code Filter(s)</em>:
<br />
{% for codeFilter in dataRequirement.codeFilter %}
{% if codeFilter.path.exists() %}
<span class="tab-one"><em>Path</em>: {{codeFilter.path}}</span>
<br />
{% endif %}
{% if codeFilter.searchParam.exists() %}
<span class="tab-one"><em>Search Parameter</em>: {{codeFilter.searchParam}}</span>
<br />
{% endif %}
{% if codeFilter.valueSet.exists() %}
<span class="tab-one"><em>ValueSet</em>:</span> {{codeFilter.valueSet}}
<br />
{% endif %}
{% if codeFilter.code.exists() %}
<span class="tab-one"><em>Code</em>: {{codeFilter.code.join(', ')}}</span>
<br />
{% endif %}
{% endfor %}
{% endif %}
</td>
</tr>
{% endfor %}

View File

@@ -0,0 +1,3 @@
{% for item in include.content %}
{%include row-new.html header=include.header content=item %}
{% endfor %}

View File

@@ -0,0 +1,3 @@
{% if include.content.exists() %}
{%include row-new.html header=include.header content=include.content %}
{% endif %}

View File

@@ -0,0 +1,14 @@
{% for directReferenceCode in include.contained.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode' or url = 'http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode') %}
<tr>
<th scope="row" class="row-header">Direct Reference Code</th>
<td class="content-container">
{% if directReferenceCode.value.display.exists() %}
<em>Display</em>: {{directReferenceCode.value.display}}
<br />
{% endif %}
<em>Code</em>: {{directReferenceCode.value.code}}
<br />
<em>System</em>: <tt>{{directReferenceCode.value.system.toString()}}</tt>
</td>
</tr>
{% endfor %}

View File

@@ -0,0 +1,22 @@
{% for cqfmComment in include.resource.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-artifactComment') %}
{% if cqfmComment.extension.where(url = 'text').exists() %}
{%include default.html header='Comment' content=cqfmComment.extension.where(url = 'text').value %}
{% endif %}
{% endfor %}
{% for cqfComment in include.resource.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/cqf-artifactComment') %}
{% if cqfComment.extension.where(url = 'text').exists() %}
{%include default.html header='Comment' content=cqfComment.extension.where(url = 'text').value %}
{% endif %}
{% endfor %}
{% for cqfKnowledgeCap in include.resource.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability') %}
{%include default.html header='Knowledge Capability' content=cqfKnowledgeCap.value %}
{% endfor %}
{% for cpgKnowledgeCap in include.resource.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability') %}
{%include default.html header='Knowledge Capability' content=cpgKnowledgeCap.value %}
{% endfor %}
{% for cpgKnowledgeRepLevel in include.resource.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel') %}
{%include default.html header='Knowledge Representation Level' content=cpgKnowledgeRepLevel.value %}
{% endfor %}
{% for cqfKnowledgeRepLevel in include.resource.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/cqf-knowledgeRepresentationLevel') %}
{%include default.html header='Knowledge Representation Level' content=cqfKnowledgeRepLevel.value %}
{% endfor %}

View File

@@ -0,0 +1,22 @@
{%include section-header.html header='Knowledge Artifact Metadata' %}
{%include default.html header='Name (machine-readable)' content=Resource.name %}
{%include default.html header='Title (human-readable)' content=Resource.title %}
{%include default.html header='Subtitle' content=Resource.subtitle %}
{%include default.html header='Status' content=Resource.status %}
{%include default.html header='Experimental' content=Resource.experimental %}
{%include default.html header='Description' content=Resource.description %}
{%include default.html header='Purpose' content=Resource.purpose %}
{%include default.html header='Clinical Usage' content=Resource.usage %}
{%include default.html header='Approval Date' content=Resource.approvalDate %}
{%include period.html header='Effective Period' period=Resource.effectivePeriod %}
{%include default-list.html header='Use Context' content=Resource.useContext %}
{%include default-list.html header='Topic' content=Resource.topic %}
{%include default-list.html header='Measure Developer' content=Resource.author %}
{%include default-list.html header='Measure Editor' content=Resource.editor %}
{%include default-list.html header='Measure Reviewer' content=Resource.reviewer %}
{%include default-list.html header='Measure Endorser' content=Resource.endorser %}
{%include default.html header='Measure Steward' content=Resource.publisher %}
{%include default-list.html header='Steward Contact Details' content=Resource.contact %}
{%include default.html header='Copyright' content=Resource.copyright %}
{%include related-artifact.html relatedArtifact=Resource.relatedArtifact %}
{%include knowledge-artifact-metadata-extensions.html resource=Resource %}

View File

@@ -0,0 +1,21 @@
{% for extension in include.contained.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition' or url = 'http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition') %}
<tr>
<th scope="row" class="row-header" rowspan="2">
{% if extension.extension.where(url = 'name').exists() and extension.extension.where(url = 'libraryName') %}
{% assign logicDefUrl = extension.extension.where(url = 'libraryName').value.lower().replace(' ', '-') + '-' + extension.extension.where(url = 'name').value.lower().replace(' ', '-') %}
<a name="{{logicDefUrl}}"> </a>
{% endif %}
Logic Definition
</th>
{% for lNameExtension in extension.extension.where(url = 'libraryName') %}
<td class="content-container"><em>Library Name:</em> {{lNameExtension.value}}</td>
{% endfor %}
</tr>
<tr>
{% for statementExtension in extension.extension.where(url = 'statement') %}
<td>
<pre class="content-container highlight language-cql" style="border: none;"><code class="language-cql">{{statementExtension.value}}</code></pre>
</td>
{% endfor %}
</tr>
{% endfor %}

View File

@@ -0,0 +1,20 @@
{% for identifier in include.measure.identifier.where(type.coding.where(code = 'short-name').exists()) %}
{%include default.html header='Short Name Identifier' content=identifier.value %}
{% endfor %}
{% for identifier in include.measure.identifier.where(type.coding.where(code = 'version-independent').exists()) %}
{%include default.html header='Version Independent Identifier' content=identifier.value %}
{% endfor %}
{% for identifier in include.measure.identifier.where(type.coding.where(code = 'version-specific').exists()) %}
{%include default.html header='Version Specific Identifier' content=identifier.value %}
{% endfor %}
{% for identifier in include.measure.identifier.where(type.coding.where(code = 'publisher').exists()) %}
{% if identifier.assigner.display.exists() %}
{%assign pheader = 'Publisher (' + identifier.assigner.display.value + ') Identifier' %}
{%include default.html header=pheader content=identifier.value %}
{% else %}
{%include default.html header='Publisher Identifier' content=identifier.value %}
{% endif %}
{% endfor %}
{% for identifier in include.measure.identifier.where(type.coding.where(code != 'short-name' and code != 'version-independent' and code != 'version-specific' and code != 'publisher').exists()) %}
{%include default.html header='Identifier' content=identifier %}
{% endfor %}

View File

@@ -0,0 +1,24 @@
{% if include.measure.library.exists() %}
{%include section-header.html header='Measure Logic' %}
{%include default.html header='Primary Library' content=include.measure.library %}
{% endif %}
{% if include.measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements' or url = 'http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements').exists() %}
{% for contained in include.measure.contained.where(id.contains('effective-data-requirements')) %}
{%include related-artifact.html relatedArtifact=contained.relatedArtifact %}
{%include direct-reference-code.html contained=contained %}
{% for parameter in contained.parameter %}
{%include parameter.html header='Parameter' parameter=parameter %}
{% endfor %}
{% if contained.dataRequirement.exists() %}
<tr>
<th class="section-header" colspan="2" scope="row"><a name="effective-data-requirements"> </a>Measure Logic Data Requirements</th>
</tr>
{% endif %}
{%include datarequirement.html header='Data Requirement' dataRequirement=contained.dataRequirement %}
{% if contained.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition' or url = 'http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition').exists() %}
{%include section-header.html header='Measure Logic Definitions' %}
{% endif %}
{%include logic-definition.html header='Data Requirement' contained=contained %}
{% endfor %}
{% endif %}

View File

@@ -0,0 +1,11 @@
{% for supplementalDataGuidance in include.measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance') %}
{% if supplementalDataGuidance.extension.where(url = 'guidance').exists() %}
{%include default.html header='Supplemental Data Guidance' content=supplementalDataGuidance.extension.where(url = 'guidance').value %}
{% endif %}
{% endfor %}
{% for populationBasis in include.measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis') %}
{%include default.html header='Population Basis' content=populationBasis.value %}
{% endfor %}
{% for scoringUnit in include.measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoringUnit') %}
{%include default.html header='Scoring Unit' content=scoringUnit.value %}
{% endfor %}

View File

@@ -0,0 +1,19 @@
{% if include.measure.identifier.exists() or include.measure.version.exists() or include.measure.scoring.exists() or
include.measure.compositeScoring.exists() or include.measure.type.exists() or include.measure.riskAdjustment.exists() or
include.measure.rateAggregation.exists() or include.measure.rationale.exists() or include.measure.clinicalRecommendationStatement.exists() or
include.measure.improvementNotation.exists() or include.measure.definition.exists() or include.measure.guidance.exists() %}
{%include section-header.html header='Measure Metadata' %}
{%include measure-identifier.html measure=include.measure %}
{%include default.html header='Version Number' content=include.measure.version %}
{%include default.html header='Measure Scoring' content=include.measure.scoring %}
{%include default.html header='Measure Composite Scoring' content=include.measure.compositeScoring %}
{%include default-list.html header='Measure Type' content=include.measure.type %}
{%include default.html header='Risk Adjustment' content=include.measure.riskAdjustment %}
{%include default.html header='Rate Aggregation' content=include.measure.rateAggregation %}
{%include default.html header='Rationale' content=include.measure.rationale %}
{%include default.html header='Clinical Recommendation Statement' content=include.measure.clinicalRecommendationStatement %}
{%include default.html header='Improvement Notation' content=include.measure.improvementNotation %}
{%include default.html header='Definition' content=include.measure.definition %}
{%include default.html header='Guidance' content=include.measure.guidance %}
{%include measure-metadata-extensions.html measure=include.measure %}
{% endif %}

View File

@@ -0,0 +1,30 @@
{% for populationBasis in include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis') %}
{%include default.html header='Population Basis' content=populationBasis.value %}
{% endfor %}
{% for scoring in include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring') %}
{%include default.html header='Scoring' content=scoring.value %}
{% endfor %}
{% for scoringUnit in include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoringUnit') %}
{%include default.html header='Scoring Unit' content=scoringUnit.value %}
{% endfor %}
{% for scoringPrecision in include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoringPrecision') %}
{%include default.html header='Scoring Precision' content=scoringPrecision.value %}
{% endfor %}
{% for compositeScoring in include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-compositeScoring') %}
{%include default.html header='Composite Scoring' content=compositeScoring.value %}
{% endfor %}
{% if include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-component').exists() %}
{%include related-artifact.html relatedArtifact=include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-component').value %}
{% endif %}
{% if include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type').exists() %}
{%include default-list.html header='Type' content=include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type').value %}
{% endif %}
{% for riskAdjustment in include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-riskAdjustment') %}
{%include default.html header='Risk Adjustment' content=riskAdjustment.value %}
{% endfor %}
{% for rateAggregation in include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-rateAggregation') %}
{%include default.html header='Rate Aggregation' content=rateAggregation.value %}
{% endfor %}
{% for improvementNotation in include.group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation') %}
{%include default.html header='Improvement Notation' content=improvementNotation.value %}
{% endfor %}

View File

@@ -0,0 +1,59 @@
{% for population in include.group.population %}
{% if population.code.exists() and population.code.coding.exists() %}
<tr>
{% if population.code.coding.first().display.exists() %}
{%include row-header.html header=population.code.coding.first().display %}
{% else %}
{% if population.code.coding.where(code = 'initial-population') or population.code.coding.where(code = 'numerator') or population.code.coding.where(code = 'numerator-exclusion') or population.code.coding.where(code = 'denominator') or population.code.coding.where(code = 'denominator-exclusion') or population.code.coding.where(code = 'denominator-exception') or population.code.coding.where(code = 'measure-population') or population.code.coding.where(code = 'measure-population-exclusion') or population.code.coding.where(code = 'measure-observation') %}
{% if population.code.coding.where(code = 'initial-population') %}
{%include row-header.html header='Initial Population' %}
{% endif %}
{% if population.code.coding.where(code = 'numerator') %}
{%include row-header.html header='Numerator' %}
{% endif %}
{% if population.code.coding.where(code = 'numerator-exclusion') %}
{%include row-header.html header='Numerator Exclusion' %}
{% endif %}
{% if population.code.coding.where(code = 'denominator') %}
{%include row-header.html header='Denominator' %}
{% endif %}
{% if population.code.coding.where(code = 'denominator-exclusion') %}
{%include row-header.html header='Denominator Exclusion' %}
{% endif %}
{% if population.code.coding.where(code = 'denominator-exception') %}
{%include row-header.html header='Denominator Exception' %}
{% endif %}
{% if population.code.coding.where(code = 'measure-population') %}
{%include row-header.html header='Measure Population' %}
{% endif %}
{% if population.code.coding.where(code = 'measure-population-exclusion') %}
{%include row-header.html header='Measure Population Exclusion' %}
{% endif %}
{% if population.code.coding.where(code = 'measure-observation') %}
{%include row-header.html header='Measure Observation' %}
{% endif %}
{% else %}
{%include row-header.html header='Unknown Population Type' %}
{% endif %}
{% endif %}
<td class="content-container">
{% if population.id.exists() %}
<em>ID</em>: {{population.id}}
<br />
{% endif %}
{% if population.description.exists() %}
<em>Description</em>:
<p class="tab-one" style="white-space: pre-line">{{population.description}}</p>
{% else %}
<em>Description</em>: No description provided
{% endif %}
{% if population.criteria.exists() %}
{% if population.criteria.language.startsWith('text/cql') and population.criteria.expression.exists() and include.library.exists() %}
{% assign logicDefAnchor = '#' + include.library.first().replaceMatches('.*/Library/', '').lower().replace(' ', '-') + '-' + population.criteria.expression.lower().replace(' ', '-') %}
<em>Logic Definition</em>: <a href="{{logicDefAnchor}}">{{population.criteria.expression}}</a>
{% endif %}
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}

View File

@@ -0,0 +1,26 @@
{% for stratifier in include.group.stratifier %}
<tr>
{%include row-header.html header='Stratifier' %}
<td class="content-container">
{% if stratifier.id.exists() %}
<em>ID</em>: {{stratifier.id}}
{% if stratifier.code.exists() or stratifier.description.exists() %}
<br />
{% endif %}
{% endif %}
{% if stratifier.code.exists() %}
{% if stratifier.code.coding.first().display.exists() %}
<em>Code</em>: {{stratifier.code.coding.first().display}}
{% else %}
<em>Code</em>: {{stratifier.code}}
{% endif %}
{% if stratifier.description.exists() %}
<br />
{% endif %}
{% endif %}
{% if stratifier.description.exists() %}
<em>Description</em>: {{stratifier.description}}
{% endif %}
</td>
</tr>
{% endfor %}

View File

@@ -0,0 +1,14 @@
{% for group in include.measure.group %}
{% if group.id.exists() %}
{%assign groupid = 'Measure Population Criteria' + ' (ID: ' + group.id + ')' %}
{%include section-header.html header=groupid %}
{% else %}
{%include section-header.html header='Measure Population Criteria' %}
{% endif %}
{% if group.description.exists() %}
{%include default.html header='Summary' content=group.description %}
{% endif %}
{%include measure-population-criteria-population.html group=group library=include.measure.library %}
{%include measure-population-criteria-stratifier.html group=group %}
{%include measure-population-criteria-extensions.html group=group %}
{% endfor %}

View File

@@ -0,0 +1,38 @@
{% if include.measure.supplementalData.exists() %}
{%include section-header.html header='Supplemental Data Elements' %}
{% endif %}
{% for sde in include.measure.supplementalData %}
<tr>
{%include row-header.html header='Supplemental Data Element' %}
<td class="content-container">
{% if sde.id.exists() %}
<em>ID</em>: {{sde.id}}
{% if sde.usage.exists() or sde.description.exists() %}
<br />
{% endif %}
{% endif %}
{% if sde.usage.exists() %}
{% for usage in sde.usage %}
{% if usage.coding.first().display.exists() %}
<em>Usage Code</em>: {{usage.coding.first().display}}
{% else %}
<em>Usage Code</em>: {{usage}}
{% endif %}
<br />
{% endfor %}
{% endif %}
{% if sde.description.exists() %}
<em>Description</em>: {{sde.description}}
{% else %}
<em>Description</em>: No description provided
{% endif %}
{% if sde.criteria.exists() %}
{% if sde.criteria.language.startsWith('text/cql') and sde.criteria.expression.exists() and include.measure.library.exists() %}
<br />
{% assign logicDefAnchor = '#' + include.measure.library.first().replaceMatches('.*/Library/', '').lower().replace(' ', '-') + '-' + sde.criteria.expression.lower().replace(' ', '-') %}
<em>Logic Definition</em>: <a href="{{logicDefAnchor}}">{{sde.criteria.expression}}</a>
{% endif %}
{% endif %}
</td>
</tr>
{% endfor %}

View File

@@ -0,0 +1,3 @@
</tbody>
</table>
</div>

View File

@@ -0,0 +1,3 @@
<div class="col-12">
<table class="narrative-table">
<tbody>

View File

@@ -0,0 +1,14 @@
<tr>
{%include row-header.html header=include.header %}
<td class="content-container">
<em>Name</em>: {{include.parameter.name}}
<br />
<em>Use</em>: {{include.parameter.use}}
<br />
<em>Min Cardinality</em>: {{include.parameter.min}}
<br />
<em>Max Cardinality</em>: {{include.parameter.max}}
<br />
<em>Type</em>: {{include.parameter.type}}
</td>
</tr>

View File

@@ -0,0 +1,4 @@
{% if include.period.exists() %}
{%assign period = include.period.start.toString() + '..' + include.period.end.toString() %}
{%include default.html header=include.header content=period %}
{% endif %}

View File

@@ -0,0 +1,47 @@
{% if include.relatedArtifact.exists() %}
{% for relatedArtifact in include.relatedArtifact %}
<tr>
{% 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 %}
<td class="content-container">
{% if relatedArtifact.display.exists() %}
<em>Description</em>: {{relatedArtifact.display}}
{% if relatedArtifact.citation.exists() or relatedArtifact.url.exists() or relatedArtifact.document.exists() or
relatedArtifact.resource.exists() %}
<br />
{% endif %}
{% endif %}
{% if relatedArtifact.citation.exists() %}
<em>Citation</em>: {{relatedArtifact.citation}}
{% endif %}
{% if relatedArtifact.url.exists() %}
<em>Content URL</em>: {{relatedArtifact.url}}
{% if relatedArtifact.document.exists() or relatedArtifact.resource.exists() %}
<br />
{% endif %}
{% endif %}
{% if relatedArtifact.document.exists() %}
<em>Document</em>: {{relatedArtifact.document}}
{% if relatedArtifact.citation.resource.exists() %}
<br />
{% endif %}
{% endif %}
{% if relatedArtifact.resource.exists() %}
<em>Resource</em>: {{relatedArtifact.resource}}
<br />
<em>Canonical URL</em>: <tt>{{relatedArtifact.resource.toString()}}</tt>
{% endif %}
</td>
</tr>
{% endfor %}
{% endif %}

View File

@@ -0,0 +1 @@
<td class="content-container">{{include.content}}</td>

View File

@@ -0,0 +1 @@
</tr>

View File

@@ -0,0 +1,5 @@
{% if include.colspan.exists() %}
<th scope="row" colspan="{{include.colspan}}" class="row-header">{{include.header}}</th>
{% else %}
<th scope="row" class="row-header">{{include.header}}</th>
{% endif %}

View File

@@ -0,0 +1,4 @@
{%include row-start.html %}
{%include row-header.html header=include.header %}
{%include row-content.html content=include.content %}
{%include row-end.html %}

View File

@@ -0,0 +1 @@
<tr>

View File

@@ -0,0 +1,3 @@
{%include row-start.html %}
{%include row-header.html colspan='2' header=include.header %}
{%include row-end.html %}

View File

@@ -0,0 +1,3 @@
<tr>
<th scope="row" colspan="2" class="row-header">Generated using version 0.4.6 of the sample-content-ig Liquid templates</th>
</tr>