diff --git a/input/examples/Library-example.json b/input/examples/Library-example.json
index 172e551..20f4135 100644
--- a/input/examples/Library-example.json
+++ b/input/examples/Library-example.json
@@ -3,13 +3,22 @@
"id": "example",
"url" : "http://somewhere.org/fhir/uv/myig/Library/example",
"version" : "1.0.0",
+ "name": "example",
+ "title": "Example CQL Library",
"status" : "draft",
+ "experimental": true,
"type" : {
"coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/library-type",
"code" : "logic-library"
}]
},
+ "subject": {
+ "coding": [{
+ "system": "hl7.org/fhir/resource-types",
+ "code": "Patient"
+ }]
+ },
"content" : [{
"id" : "ig-loader-example.cql"
}]
diff --git a/templates/liquid/Library.liquid b/templates/liquid/Library.liquid
index a0e587b..f9be5ae 100644
--- a/templates/liquid/Library.liquid
+++ b/templates/liquid/Library.liquid
@@ -18,7 +18,7 @@
{{Library.version}} |
{% endif %}
- {% for identifier in Library %}
+ {% for identifier in Library.identifier %}
| Identifier: |
@@ -291,7 +291,15 @@
|
| Content: {{c.contentType}} |
- {{c.data.decode('base64').escape('html')}}
+ {{c.data.decode('base64').escape('html')}}
|
+
+
+ {% endif %}
+ {% if c.contentType != 'text/cql' %}
+
+
+ | Content: {{c.contentType}} |
+ {{'Encoded data (' + c.data.length().toString() + ' characters)'}}
|
{% endif %}