Stream: cql
Topic: Inline CQL embedded in Questionnaire
Yolanda (Feb 16 2022 at 18:43):
I am trying to understand the concept and processing of inline CQL.
E.g. I have a questionnaire and would like to embed a CQL statement like so:
{
"linkId": "8",
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql",
"expression": "Today() + 14"
}
}
],
"type": "date",
"text": "Form expiration date"
}
Is this the correct format in the "expression" element? Do I need to provide the FHIR version, context, etc? Is that possible to pass any parameters to the inline CQL? Would appreciate any pointers to some examples and the specs.
Bryn Rhodes (Feb 16 2022 at 20:46):
In SDC, there is discussion about this here: https://build.fhir.org/ig/HL7/sdc/behavior.html#calculations. There is also discussion about using expressions in general here, specifically the Evaluation Context discussion: https://hl7.org/fhir/clinicalreasoning-topics-using-expressions.html#evaluation-context
Yolanda (Feb 17 2022 at 13:14):
Thanks Bryn! Will check it out.
Last updated: Apr 12 2022 at 19:14 UTC