FHIR Chat · PlanDefinition Trigger · implementers

Stream: implementers

Topic: PlanDefinition Trigger


view this post on Zulip Benjamin Langley (Nov 01 2019 at 17:06):

Are there any examples of PlanDefinition using a data event trigger? I can only find examples using named event triggers. I am trying to understand exactly how the data event trigger compares to a conditional

view this post on Zulip Lloyd McKenzie (Nov 01 2019 at 17:52):

@Bryn Rhodes

view this post on Zulip Bryn Rhodes (Nov 01 2019 at 18:42):

<trigger>
    <type value="data-changed"/>
    <data>
        <type value="Condition"/>
        <codeFilter>
            <path value="code"/>
            <valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279"/>
        </codeFilter>
    </data>
</trigger>

view this post on Zulip Bryn Rhodes (Nov 01 2019 at 18:43):

That's an example of a data trigger that says "trigger on every change to a Condition in the Venous Thromboembolism value set". Note that the TriggerDefinition type will be updated to align with ongoing subscription work in R5.

view this post on Zulip John Moehrke (Nov 01 2019 at 18:51):

@Emma Jones

view this post on Zulip Benjamin Langley (Nov 01 2019 at 18:58):

Thank you @Bryn Rhodes!

view this post on Zulip Alex Goel (Dec 02 2019 at 13:54):

<trigger>
<type value="data-changed"/>
<data>
<type value="Condition"/>
<codeFilter>
<path value="code"/>
<valueSet value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.279"/>
</codeFilter>
</data>
</trigger>


@Bryn Rhodes How would you check if that activity triggered by that PlanDefinition.action.trigger had been met if you had a subsequent step?

view this post on Zulip Bryn Rhodes (Dec 03 2019 at 21:01):

Hi @Alex Goel, I'm not sure I understand the question, can you elaborate?

view this post on Zulip Alex Goel (Dec 03 2019 at 21:09):

If you have 3 ActivityDefinitions in a PlanDefinition, how do you know that you have completed ActivityDefinition1 and are ready to do ActivityDefinition2. Where do you specify the condition that tells you ActivityDefinition1 has been completed?

view this post on Zulip Lloyd McKenzie (Dec 03 2019 at 21:12):

ActivityDefinition is a 'definition'. It never gets completed. You could instantiate a CarePlan based on a set of ActivityDefinitions and mark those activities as complete (and link to the ActivityDefinitions using 'basedOn')


Last updated: Apr 12 2022 at 19:14 UTC