This is a single-page web app that:
- Loads a Questionnaire
- Extracts the Liquid template from extension
http://ontariohealth.ca/fhir/eforms/StructureDefinition/sdc-responseRenderingLiquid - Finds the referenced contained Library
- Decodes base64 Liquid markup
- Renders it against a QuestionnaireResponse
- Shows the generated Note
Open index.html in any browser.
Paste:
- A Questionnaire JSON (with contained Library)
- A QuestionnaireResponse JSON
Click Render.
- liquidjs (via CDN)
- Runs entirely client-side