Stream: implementers
Topic: Applying a PlanDefinition or an ActivityDefinition ($apply )
Joel Francis (Dec 05 2019 at 17:45):
Hi,
Upon reading the FHIR specification - https://www.hl7.org/fhir/plandefinition.html, it is not quite clear where certain implementation logic (code) resides if one were to implement a FHIR server and provide the $apply operation.
For example, if the PlanDefinition contained activities (asynchronous and not real time) that needed to be executed consecutively, does the FHIR server need to provide logic to check trigger conditions to fire off activities? Or is it incumbent upon the client to retrieve a PlanDefinition check for triggers outside the FHIR Server and only apply once ready to receive an appropriate resource?
What is the approach that is recommend or currently compliant?
Thanks,
Joel, @Alex Goel
Lloyd McKenzie (Dec 05 2019 at 20:01):
The $apply operation simply generates a CarePlan. That CarePlan might point to RequestGroup instances that contain further pre-condition or other rules about when certain planned activities should occur. Monitoring of the patient and triggering specific orders or other actions at particular times based on the expectations of the CarePlan is outside the scope of $apply.
Last updated: Apr 12 2022 at 19:14 UTC