SanteonNL / shared-care-planning

https://santeonnl.github.io/shared-care-planning/
GNU General Public License v3.0
4 stars 3 forks source link

clarify relationship between task and request resources #45

Open joostholslag opened 2 months ago

joostholslag commented 2 months ago

creation of a task from an edit/create of a request resource is the most sensible pattern, now it seems to be the revers. Maybe there are good reasons for this pattern?

jorritspee commented 1 month ago

A good starting point for clarification is the Request Resource Pattern as defined by HL7: https://www.hl7.org/fhir/workflow.html#request

A couple of lines from that paragraph:

All of these apply more (solely) to the Request-resource, and not (not so much) to the Task resource.

The common pattern is:

  1. Requester wants something to be done for a specific patient (e.g. telemonitoring)
  2. This Request is represented in a Request-resource
  3. The Requester will then ask people and/or organizations to do this
  4. This asking is represented in a Task-resource, that points (via Task.focus) to the Request-resource

Do you agree with this answer @bramwesselo?

bramwesselo commented 1 month ago

Yes; the (Service-)request is used to determine what should/could be done. The Task is used to manage the workflow-state of the request (or part of the request) and assign it to an owner (or 'filler').