From 00a09ee91427d8eb2bd71e0ec22b018231fcba3f Mon Sep 17 00:00:00 2001 From: Bryn Rhodes Date: Mon, 27 Apr 2020 15:51:53 -0600 Subject: [PATCH 1/8] Library liquid template --- input/cql/TestingURL.cql | 7 ++ input/examples/Library-example.json | 1 + input/examples/Library-testingid.json | 16 +++ input/myig.xml | 4 + templates/liquid/Library.liquid | 146 ++++++++++++++++++++++++++ 5 files changed, 174 insertions(+) create mode 100644 input/cql/TestingURL.cql create mode 100644 input/examples/Library-testingid.json create mode 100644 templates/liquid/Library.liquid diff --git a/input/cql/TestingURL.cql b/input/cql/TestingURL.cql new file mode 100644 index 0000000..330cd09 --- /dev/null +++ b/input/cql/TestingURL.cql @@ -0,0 +1,7 @@ +library TestingURL + +using FHIR version '4.0.1' + +context Patient + +define Test: 2 + 2 diff --git a/input/examples/Library-example.json b/input/examples/Library-example.json index a667928..172e551 100644 --- a/input/examples/Library-example.json +++ b/input/examples/Library-example.json @@ -1,5 +1,6 @@ { "resourceType" : "Library", + "id": "example", "url" : "http://somewhere.org/fhir/uv/myig/Library/example", "version" : "1.0.0", "status" : "draft", diff --git a/input/examples/Library-testingid.json b/input/examples/Library-testingid.json new file mode 100644 index 0000000..37edf28 --- /dev/null +++ b/input/examples/Library-testingid.json @@ -0,0 +1,16 @@ +{ + "resourceType" : "Library", + "id": "testingid", + "url" : "http://somewhere.org/fhir/uv/myig/Library/TestingURL", + "version" : "1.0.0", + "status" : "draft", + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/library-type", + "code" : "logic-library" + }] + }, + "content" : [{ + "id" : "ig-loader-TestingURL.cql" + }] +} diff --git a/input/myig.xml b/input/myig.xml index a4a951e..104b96b 100644 --- a/input/myig.xml +++ b/input/myig.xml @@ -111,6 +111,10 @@ + + + +