FLC Implementation Guide
0.2.4 - stable [WIP]
This page is part of the FLC Implementation Guide (v0.2.4: Pre-Release Draft) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions
| Active as of 2025-07-14 |
<Library xmlns="http://hl7.org/fhir">
<id value="FLCLiquidTemplates"/>
<meta>
<profile
value="http://canonical.fhir.link/flc/base/StructureDefinition/flc-library"/>
</meta>
<text>
<status value="extensions"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<div>
<table class="grid dict">
<tr>
<th scope="row"><b>Title: </b></th>
<td style="padding-left: 4px;">FLC Liquid Templates</td>
</tr>
<tr>
<th scope="row"><b>Id: </b></th>
<td style="padding-left: 4px;">FLCLiquidTemplates</td>
</tr>
<tr>
<th scope="row"><b>Version: </b></th>
<td style="padding-left: 4px;">0.2.4</td>
</tr>
<tr>
<th scope="row"><b>Url: </b></th>
<td style="padding-left: 4px;"><a href="Library-FLCLiquidTemplates.html">FLC Liquid Templates</a></td>
</tr>
<tr>
<th scope="row"><b>Experimental: </b></th>
<td style="padding-left: 4px;">true</td>
</tr>
<tr>
<th scope="row"><b>Type: </b></th>
<td style="padding-left: 4px;">
<p style="margin-bottom: 5px;">
<b>system: </b> <span><a href="http://terminology.hl7.org/7.0.0/CodeSystem-library-type.html">http://terminology.hl7.org/CodeSystem/library-type</a></span>
</p>
<p style="margin-bottom: 5px;">
<b>code: </b> <span>logic-library</span>
</p>
</td>
</tr>
<tr>
<th scope="row"><b>Date: </b></th>
<td style="padding-left: 4px;">2025-07-14 07:00:22+0100</td>
</tr>
<tr>
<th scope="row"><b>Publisher: </b></th>
<td style="padding-left: 4px;">Service Well AB</td>
</tr>
<tr>
<th scope="row"><b>Description: </b></th>
<td style="padding-left: 4px;"><div><p>This library includes the LIQUID-templates and source sampledata used in this FLC-IG</p>
</div></td>
</tr>
<tr>
<th scope="row"><b>Topic: </b></th>
<td style="padding-left: 4px;"/>
</tr>
<tr>
<th scope="row"><b>Approval Date: </b></th>
<td style="padding-left: 4px;">2025-07-14</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr><th scope="row"><b>Content: </b></th><td style="padding-left: 4px;">text/liquid</td></tr>
<tr><th scope="row"><b>File Name: </b></th><td style="padding-left: 4px;">ExamplePatient.liquid</td></tr>
<tr><th scope="row"><b>Folder: </b></th><td style="padding-left: 4px;">templates</td></tr>
<tr><th scope="row"><b>Relative Path: </b></th><td style="padding-left: 4px;">templates/ExamplePatient.liquid</td></tr>
<tr><td colspan="2"><pre><code>{
"resourceType": "Patient",
"id": "{{ msg.PatientId | to_json_string | generate_uuid }}",
"identifier": [
{
"use": "usual",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
}
]
},
"system": "urn:oid:2.16.840.1.113883.19.5",
"value": "{{ msg.MRN }}"
},
{
"system": "http://fhir.purified.link/example/identifierSystem/ehr-source-system-demo",
"value": "{{ msg.PatientId }}"
},
],
"active": true,
"name": [
{
"family": "{{ msg.LastName }}",
"given": [
"{{ msg.FirstName }}"
]
}
],
"telecom": [
{% comment -%} use "[]" to access value if the key contains spaces or other special characters {% endcomment -%}
{% for p in msg["Phone Number"] -%}
{
"system": "phone",
"value": "{{ p }}",
},
{% endfor -%}
],
"gender": "{{ msg.Gender | get_property: 'CodeSystem/administrativegender', 'code' -}}",
"birthDate": "{{ msg.DOB | add_hyphens_date }}",
"deceasedDateTime": "{{ msg.TimeOfDeath }}"
}</code></pre></td></tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr><th><b>Content: </b> </th></tr>
<tr><td><pre><code>Encoded data ( characters)</code></pre></td></tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr><th scope="row"><b>Content: </b></th><td style="padding-left: 4px;">application/json</td></tr>
<tr><th scope="row"><b>File Name: </b></th><td style="padding-left: 4px;">ExamplePatient.json</td></tr>
<tr><th scope="row"><b>Folder: </b></th><td style="padding-left: 4px;">sampledata</td></tr>
<tr><th scope="row"><b>Relative Path: </b></th><td style="padding-left: 4px;">sampledata/ExamplePatient.json</td></tr>
<tr><td colspan="2"><pre><code>{
"PatientId": 12434,
"MRN": "M0R1N2",
"FirstName": "Jerry",
"LastName": "Smith",
"Phone Number": [
"0707-123456",
"0708-123456"
],
"Gender": "M",
"DOB": "19180110",
"TimeOfDeath": "2025-07-28T01:59:23.388+01:00",
"Email": "jerry.smith@fhir.link"
}</code></pre></td></tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr><th scope="row"><b>Content: </b></th><td style="padding-left: 4px;">application/json</td></tr>
<tr><th scope="row"><b>File Name: </b></th><td style="padding-left: 4px;">metadata.json</td></tr>
<tr><th scope="row"><b>Folder: </b></th><td style="padding-left: 4px;">templates</td></tr>
<tr><th scope="row"><b>Relative Path: </b></th><td style="padding-left: 4px;">templates/metadata.json</td></tr>
<tr><td colspan="2"><pre><code>{
"type": "json"
}</code></pre></td></tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</text>
<url
value="http://canonical.fhir.link/flc/base/Library/FLCLiquidTemplates"/>
<version value="0.2.4"/>
<name value="FLCLiquidTemplates"/>
<title value="FLC Liquid Templates"/>
<status value="active"/>
<experimental value="true"/>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/library-type"/>
<code value="logic-library"/>
</coding>
</type>
<date value="2025-07-14T07:00:22+01:00"/>
<publisher value="Service Well AB"/>
<contact>
<name value="Service Well AB"/>
<telecom>
<system value="url"/>
<value value="https://servicewell.se"/>
</telecom>
</contact>
<description
value="This library includes the LIQUID-templates and source sampledata used in this FLC-IG"/>
<approvalDate value="2025-07-14"/>
<lastReviewDate value="2025-07-14"/>
<topic>
<text value="FHIR"/>
</topic>
<topic>
<text value="LIQUID"/>
</topic>
<content>
<extension
url="http://canonical.fhir.link/flc/base/StructureDefinition/attachment-folder-structure">
<extension url="folder-path">
<valueString value="templates"/>
</extension>
<extension url="logical-filename">
<valueString value="ExamplePatient.liquid"/>
</extension>
</extension>
<data
value="ewogICAgInJlc291cmNlVHlwZSI6ICJQYXRpZW50IiwKICAgICJpZCI6ICJ7eyBtc2cuUGF0aWVudElkICB8IHRvX2pzb25fc3RyaW5nIHwgZ2VuZXJhdGVfdXVpZCAgfX0iLAogICAgImlkZW50aWZpZXIiOiBbCiAgICAgICAgewogICAgICAgICAgICAidXNlIjogInVzdWFsIiwKICAgICAgICAgICAgInR5cGUiOiB7CiAgICAgICAgICAgICAgICAiY29kaW5nIjogWwogICAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICAgICAgInN5c3RlbSI6ICJodHRwOi8vdGVybWlub2xvZ3kuaGw3Lm9yZy9Db2RlU3lzdGVtL3YyLTAyMDMiLAogICAgICAgICAgICAgICAgICAgICAgICAiY29kZSI6ICJNUiIKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBdCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJzeXN0ZW0iOiAidXJuOm9pZDoyLjE2Ljg0MC4xLjExMzg4My4xOS41IiwKICAgICAgICAgICAgInZhbHVlIjogInt7IG1zZy5NUk4gfX0iCiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAgICJzeXN0ZW0iOiAiaHR0cDovL2ZoaXIucHVyaWZpZWQubGluay9leGFtcGxlL2lkZW50aWZpZXJTeXN0ZW0vZWhyLXNvdXJjZS1zeXN0ZW0tZGVtbyIsCiAgICAgICAgICAgICJ2YWx1ZSI6ICJ7eyBtc2cuUGF0aWVudElkIH19IgogICAgICAgIH0sCgogICAgXSwKICAgICJhY3RpdmUiOiB0cnVlLAogICAgIm5hbWUiOiBbCiAgICAgICAgewogICAgICAgICAgICAiZmFtaWx5IjogInt7IG1zZy5MYXN0TmFtZSB9fSIsCiAgICAgICAgICAgICJnaXZlbiI6IFsKICAgICAgICAgICAgICAgICJ7eyBtc2cuRmlyc3ROYW1lIH19IgogICAgICAgICAgICBdCiAgICAgICAgfQogICAgXSwKICAgICJ0ZWxlY29tIjogWwogICAgICAgIHslIGNvbW1lbnQgLSV9IHVzZSAiW10iIHRvIGFjY2VzcyB2YWx1ZSBpZiB0aGUga2V5IGNvbnRhaW5zIHNwYWNlcyBvciBvdGhlciBzcGVjaWFsIGNoYXJhY3RlcnMgeyUgZW5kY29tbWVudCAtJX0KICAgICAgICB7JSBmb3IgcCBpbiBtc2dbIlBob25lIE51bWJlciJdIC0lfQogICAgICAgIHsKICAgICAgICAgICAgInN5c3RlbSI6ICJwaG9uZSIsCiAgICAgICAgICAgICJ2YWx1ZSI6ICJ7eyBwIH19IiwKICAgICAgICAgICAgfSwKICAgICAgICB7JSBlbmRmb3IgLSV9CiAgICBdLAogICAgImdlbmRlciI6ICJ7eyBtc2cuR2VuZGVyIHwgZ2V0X3Byb3BlcnR5OiAnQ29kZVN5c3RlbS9hZG1pbmlzdHJhdGl2ZWdlbmRlcicsICdjb2RlJyAtfX0iLAogICAgImJpcnRoRGF0ZSI6ICJ7eyBtc2cuRE9CIHwgYWRkX2h5cGhlbnNfZGF0ZSB9fSIsCiAgICAiZGVjZWFzZWREYXRlVGltZSI6ICJ7eyBtc2cuVGltZU9mRGVhdGggfX0iCn0="/>
</content>
<content>
<extension
url="http://canonical.fhir.link/flc/base/StructureDefinition/attachment-folder-structure">
<extension url="folder-path">
<valueString value="templates/codesystem"/>
</extension>
<extension url="logical-filename">
<valueString value="codesystem.json"/>
</extension>
<extension url="description">
<valueString value="Basic json conceptmap for FLC, NOT FHIR"/>
</extension>
</extension>
</content>
<content>
<extension
url="http://canonical.fhir.link/flc/base/StructureDefinition/attachment-folder-structure">
<extension url="folder-path">
<valueString value="sampledata"/>
</extension>
<extension url="logical-filename">
<valueString value="ExamplePatient.json"/>
</extension>
</extension>
<contentType value="application/json"/>
<data
value="ewogICAgIlBhdGllbnRJZCI6IDEyNDM0LAogICAgIk1STiI6ICJNMFIxTjIiLAogICAgIkZpcnN0TmFtZSI6ICJKZXJyeSIsCiAgICAiTGFzdE5hbWUiOiAiU21pdGgiLAogICAgIlBob25lIE51bWJlciI6IFsKICAgICAgICAiMDcwNy0xMjM0NTYiLAogICAgICAgICIwNzA4LTEyMzQ1NiIKICAgIF0sCiAgICAiR2VuZGVyIjogIk0iLAogICAgIkRPQiI6ICIxOTE4MDExMCIsCiAgICAiVGltZU9mRGVhdGgiOiAiMjAyNS0wNy0yOFQwMTo1OToyMy4zODgrMDE6MDAiLAogICAgIkVtYWlsIjogImplcnJ5LnNtaXRoQGZoaXIubGluayIKfQ=="/>
</content>
<content>
<extension
url="http://canonical.fhir.link/flc/base/StructureDefinition/attachment-folder-structure">
<extension url="folder-path">
<valueString value="templates"/>
</extension>
<extension url="logical-filename">
<valueString value="metadata.json"/>
</extension>
</extension>
<contentType value="application/json"/>
<data value="ewoJInR5cGUiOiAianNvbiIKfQ=="/>
</content>
</Library>