BD-Core-FHIR-IG/bd-national-template/liquid/related-artifact.html

47 lines
1.7 KiB
HTML

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