Additional updates to template and library example

This commit is contained in:
Bryn Rhodes 2020-06-08 20:42:17 -06:00
parent a37abbda58
commit 837a69e037
2 changed files with 19 additions and 2 deletions

View File

@ -3,13 +3,22 @@
"id": "example", "id": "example",
"url" : "http://somewhere.org/fhir/uv/myig/Library/example", "url" : "http://somewhere.org/fhir/uv/myig/Library/example",
"version" : "1.0.0", "version" : "1.0.0",
"name": "example",
"title": "Example CQL Library",
"status" : "draft", "status" : "draft",
"experimental": true,
"type" : { "type" : {
"coding" : [{ "coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/library-type", "system" : "http://terminology.hl7.org/CodeSystem/library-type",
"code" : "logic-library" "code" : "logic-library"
}] }]
}, },
"subject": {
"coding": [{
"system": "hl7.org/fhir/resource-types",
"code": "Patient"
}]
},
"content" : [{ "content" : [{
"id" : "ig-loader-example.cql" "id" : "ig-loader-example.cql"
}] }]

View File

@ -18,7 +18,7 @@
<td style="padding-left: 25px;">{{Library.version}}</td> <td style="padding-left: 25px;">{{Library.version}}</td>
</tr> </tr>
{% endif %} {% endif %}
{% for identifier in Library %} {% for identifier in Library.identifier %}
<tr> <tr>
<th scope="row"><b>Identifier: </b></th> <th scope="row"><b>Identifier: </b></th>
<td style="padding-left: 25px;"> <td style="padding-left: 25px;">
@ -291,7 +291,15 @@
<tr> <tr>
<table> <table>
<tr><th><b>Content: </b> {{c.contentType}}</th></tr> <tr><th><b>Content: </b> {{c.contentType}}</th></tr>
<tr><pre><code>{{c.data.decode('base64').escape('html')}}</code></pre></tr> <tr><td><pre><code>{{c.data.decode('base64').escape('html')}}</code></pre></td></tr>
</table>
</tr>
{% endif %}
{% if c.contentType != 'text/cql' %}
<tr>
<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> </table>
</tr> </tr>
{% endif %} {% endif %}