Skip to content

Commit

Permalink
try obs
Browse files Browse the repository at this point in the history
  • Loading branch information
joofio committed May 27, 2024
1 parent 7d3326a commit 10ac071
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ig-template/package/content/assets/css/ips-viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ ul {

}


.results {

background: #d6aeff;

}

.patient {

Expand Down
30 changes: 30 additions & 0 deletions ig-template/package/includes/ips.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,34 @@
{% endif %}


{% if sec.title == "Relevant diagnostic tests &/or laboratory data" %}
{% assign obsr = bundle.entry | where: "resource.resourceType", "Observation" %}
<div class="results block">



{% assign obs = obsr.resource %}


<b>Code:</b>
{{ obs.code.text }} <br/>


{% if obs.status %}
<b>status:</b>
{{ obs.status }} <br/>{% endif %}

{% if obs.issued %}
<b>issued:</b>
{{ obs.issued }} <br/>{% endif %}

{% if obs.valueQuantity %}
<b>Result:</b>
{{ obs.valueQuantity.value }} " " {{obs.valueQuantity.unit}} <br/>{% endif %}


</div>
{% endif %}


{% endfor %}

0 comments on commit 10ac071

Please sign in to comment.