FHIR Chat · Definition of Tasks · implementers

Stream: implementers

Topic: Definition of Tasks


view this post on Zulip Parnesh Raniga (Oct 09 2018 at 04:42):

New to FHIR so please forgive my ignorance.

Just going through the example workflow models, it seems that task represents a unit of work a filler system can do. If the task to be performed was a long lived automated task with input and outputs, a ServiceDefinition/OperationDefinition seem to be better resources to describe such as task rather than ActivityDefinition which does not contain any formal description of inputs and outputs.

Am I missing something?

view this post on Zulip Lloyd McKenzie (Oct 09 2018 at 05:25):

Task is a mechanism of saying "please do". Tasks can reference a Request resource that represents the authorization to be acted on. If doing so, the Task might limit the amount of the authorization to act on. E.g. Dispense 30 days worth, perform only one repetition of the ordered monthly tests, etc.

view this post on Zulip Parnesh Raniga (Oct 09 2018 at 05:38):

I assume it is a mechanism of saying "please do x using inputs y to produce outputs z". But how do you formally describe what x,y & z are? We are particularly interested in the case where x is a computational workflow for example.

While Task has inputs and outputs, there are no matching definitions in ActivityDefinition.

view this post on Zulip Lloyd McKenzie (Oct 09 2018 at 14:10):

They can be set using the dynamicValue capabilities of both ActivityDefinition and PlanDefinition, though I agree that adding some examples of how this works would be useful. Can you submit a change request for that piece? The order that you point to (if any) is in Task.focus if the Task.code is saying "please fulfil". Task can also be used for things like "please cancel" or "please suspend", where the set of things allowed in Task.focus would be wider.

view this post on Zulip Parnesh Raniga (Oct 09 2018 at 21:54):

That should work and happy to submit change request. However that still feels clunky compared to say OperationDefinition which is also used in the CDS system. I wonder if there is room to merge some of these things together?

view this post on Zulip Lloyd McKenzie (Oct 09 2018 at 22:51):

OperationDefinition is about a RESTful capability. ActivityDefinition is about protocols and order sets. Fairly different worlds...

view this post on Zulip Parnesh Raniga (Oct 09 2018 at 23:48):

Gotcha, but that is why it is a bit confusing. ServiceDefinition, which I think of as short, interactive time frame, automated task (albeit for a specific use case of CDS) indeed wraps an operation definition with more meta-data. However the confusion might be due to my lack of familiarity with FHIR and the differentiation of the clinical workflow from the computational one. Will do more reading ...

view this post on Zulip Parnesh Raniga (Oct 10 2018 at 00:22):

I see that this has been raised in the STU notes for workflow overview:

https://www.hl7.org/fhir/workflow.html#issues


Last updated: Apr 12 2022 at 19:14 UTC