Fixes to Library liquid template

This commit is contained in:
Bryn Rhodes 2020-06-16 11:20:45 -06:00
parent 9a0158a326
commit a9a19ad265

View File

@ -96,7 +96,7 @@
{% endif %} {% endif %}
{% if Library.subject.exists() %} {% if Library.subject.exists() %}
<tr> <tr>
<th scope="row"><b>Type: </b></th> <th scope="row"><b>Subject: </b></th>
{%if Library.subject is CodeableConcept %} {%if Library.subject is CodeableConcept %}
<td style="padding-left: 25px;"> <td style="padding-left: 25px;">
{% if Library.subject.coding.exists() %} {% if Library.subject.coding.exists() %}
@ -261,14 +261,14 @@
{% for cfilter in requirement.codeFilter %} {% for cfilter in requirement.codeFilter %}
<p style="margin-bottom: 5px;"> <p style="margin-bottom: 5px;">
<b>code filter: </b> <b>code filter: </b>
{% if cfilter.path.exists() or cfilter.valueSet.exists() %} {% if cfilter.path.exists() or cfilter.valueSet.exists() or cfilter.code.exists() %}
<br/> <br/>
{% endif %} {% endif %}
{% if cfilter.path.exists() %} {% if cfilter.path.exists() %}
<span style="padding-left: 25px;"> <span style="padding-left: 25px;">
<b>path: </b><span>{{cfilter.path}}</span> <b>path: </b><span>{{cfilter.path}}</span>
</span> </span>
{% if cfilter.valueSet.exists() %} {% if cfilter.valueSet.exists() or cfilter.code.exists() %}
<br/> <br/>
{% endif %} {% endif %}
{% endif %} {% endif %}
@ -277,6 +277,23 @@
<b>value set: </b><span>{{cfilter.valueSet.value}}</span> <b>value set: </b><span>{{cfilter.valueSet.value}}</span>
</span> </span>
{% endif %} {% 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 %}
</p> </p>
{% endfor %} {% endfor %}
</th> </th>