Any tools that can facilitate insertions of variable names in a template

Hi, @ian.mcnicoll. May I ask a question about the variable names in your snippet?
Such a variable name double-curly-braced is inserted automatically or manually?
When using a simplified template such as FLAT JSON to automatically populate/generate Composition instances, is there any tools that can facilitate insertions of variable names in the template? For a “template”, I mean a Composition instance to be populated.

Thanks.

For example, is there any tools that can automatically insert the vairiable name “{{bodyTemperature}}” in the Web Template JSON just like the REST API to GET an example Composition based on a specified OPT template?

{
"vital_signs/body_temperature/any_event/temperature|magnitude": "{{bodyTemperature}}"
,
"vital_signs/body_temperature/any_event/temperature|unit": "℃"

...
}

Hi Lin,

That example is a part of our Postman collection - Postman is a lovely tool and it has a fairly sophisticated way of allowing you to inject variables, including from test data csv files etc.

For more sophisticated use, there are a number of different templating engines, one of the more popular being Liquid templates - see GitHub - microsoft/FHIR-Converter: Conversion utility to translate legacy data formats into FHIR for some ideas.

1 Like

Thanks a lot, @ian.mcnicoll. It’s exactly what I want.