Stream: cql
Topic: ActivityDefinition dynamicValue support?
Dave Carlson (Mar 09 2021 at 03:25):
I am using CQF Ruler (current master branch) to test a simple example of a PlanDefinition with two actions that reference ActivityDefinition, and using $apply to create a CarePlan. Following example from CPG-on-FHIR for "send a message". After much trial and error, I dug into the code and it appears that only Boolean values are support for any ActivityDefinition dynamicValue (see ActivityDefinitionApplyProvider, line 134). Any dynamic value other than Boolean will cause entire ActivityDefinition apply to fail. Would it be appropriate to expand the list of result types to DateTime, String and others?
Bryn Rhodes (Mar 09 2021 at 16:51):
Yes, that would definitely be appropriate.
Bryn Rhodes (Mar 09 2021 at 16:51):
It's likely only supporting boolean because the same machinery was used to evaluate the condition logic (and that expects boolean).
Bryn Rhodes (Mar 09 2021 at 16:51):
Should be easy to expand though. @Dave Carlson
Bryn Rhodes (Mar 09 2021 at 16:52):
If you submit a github issue we can track it, but absolutely feel free to submit a PR on it.
Dave Carlson (Mar 09 2021 at 16:53):
Thanks Bryn, I'll work on a PR. Also will look into initial support for Task resource by ActivityDefinition.
Last updated: Apr 12 2022 at 19:14 UTC