FHIR Chat · Capturing FHIR resource(s) in PlanDefination>exprsn execu... · cds hooks

Stream: cds hooks

Topic: Capturing FHIR resource(s) in PlanDefination>exprsn execu...


view this post on Zulip Pankaj Grover (Aug 06 2019 at 18:19):

Hi-
Just as we capture String or other valueTypes outputs in PlanDefinition>action>dynamicValue>expression on CQL execution, can we capture FHIR resource(s) also if CQL returns a FHIR resource? I couldn't find a location or supporting valueType for PlanDefinition>action>dynamicValue. Please suggest.

view this post on Zulip Lloyd McKenzie (Aug 06 2019 at 18:25):

@Bryn Rhodes (Also - not clear how this question relates to CDS Hooks?)

view this post on Zulip Pankaj Grover (Aug 06 2019 at 19:16):

@Lloyd McKenzie : We, in turn, looking for a possibility to capture and send this response to CDSResonse via RequestGroup, when the request to trigger PlanDefinition/Related CQL came via CDSHooks request.

view this post on Zulip Pankaj Grover (Aug 06 2019 at 19:16):

(deleted)

view this post on Zulip Bryn Rhodes (Aug 07 2019 at 02:54):

Hi Pankaj, yes, you can return any value from a CQL expression, and so you can have the expression in a dynamicValue return a FHIR resource. For a dynamicValue, it just has to be a value of the type (or implicitly convertible to the type) of the element identified by the path in the dynamicValue.

view this post on Zulip Pankaj Grover (Aug 14 2019 at 23:23):

Thanks, @Bryn Rhodes for your inputs and suggestions. Can you give me an example of dynamic value/ action having dynamic values, where dynamic value(s) path(s) expect value from an expression of valuetype other than primitive(or implicitly convertible type(s))? Neither I could find any not have it running based on the valueType(s) or path(s) that I'm providing currrently. I would be really helpful to understand how API helps to capture different valueType(s) and a variety of valuetype(s) a CQL expression can return.


Last updated: Apr 12 2022 at 19:14 UTC