This wiki has undergone a migration to Confluence found Here
<meta name="googlebot" content="noindex">

Difference between revisions of "201705 Workflow"

From HL7Wiki
Jump to navigation Jump to search
m (updated company names upon request)
(Added the tumor-board use case "Request Patient for Tumor Board" and adapted scripts accordingly)
Line 51: Line 51:
 
<!-- What will be the actions performed by participants? -->
 
<!-- What will be the actions performed by participants? -->
  
The following scenarios are based on the XXX use-case, with sample-resources detailed here. You are free to use any of the request / response resources as listed on the [http://build.fhir.org/workflow.html#list workflow page], but need to negotiate the used resources and detailes with a second partner for testing yourself. Note that the workflow-steps still stay the same, no matter what resource you use.
+
The following scenarios are based on the tumor-board use-case of assigning a patient to a tumor board discussion, with sample-resources detailed in the next section. The use-case is a part of the tumor-board preparation workflow ([https://ehealth.fh-hagenberg.at/wp-content/uploads/2016/09/multidisciplinary-team-meetings1.pdf details here]), where the discussion of a patient is requested for a planned tumor-board ([http://build.fhir.org/procedurerequest.html ProcedureRequest]) and results in the patient being discussed in the board (([http://build.fhir.org/task.html Task]) -> optional see scenarios), and finally resulting in a conducnted tumor-board where the patient was discussed([http://build.fhir.org/procedure.html Procedure]).
 +
 
 +
The scenario is one possible use case of many for manging workflows in healthcare. You are free to use any of the request / response resources as listed on the [http://build.fhir.org/workflow.html#list workflow page], but need to negotiate the used resources and details with a second partner for testing yourself. Note that the workflow-steps still stay the same, no matter what resource you use.
  
 
====Resources and Samples====
 
====Resources and Samples====
  
TODO: Which Use-Case do we use?
+
ProcedureRequest resource for discussing a patient in a tumor-board:
Option International: Workflow calls often revolve around Medication or lab-order.
+
TODO
TODO: Based on the use-case update the scripts to include event/state chains.
+
 
 +
Task to discuss the patient in the tumor-board:
 +
TODO
 +
 
 +
Procedure that details that the tumor-board has been conducted:
 +
TODO
  
 
===Scenario: Request without tasks handled by Workflow Broker===
 
===Scenario: Request without tasks handled by Workflow Broker===
Line 66: Line 73:
  
 
Basic script for the Placer
 
Basic script for the Placer
   - Placer creates a XXX request and posts it to the workflow broker
+
   - Placer creates a ProcedureRequest and posts it to the workflow broker
   - Placer polls the workflow broker to check if there is an XXX event to it's request
+
   - Placer polls the workflow broker to check if there is a Procedure to it's ProcedureRequest (Procedure.basedOn)
   - Placer gets the XXX event
+
   - Placer gets the Procedure
   - Placer updates/puts the XXX request to appropriate state
+
   - Placer updates/puts the ProcedureRequest to appropriate state
 
    
 
    
 
Basic script for Workflow Broker
 
Basic script for Workflow Broker
Line 75: Line 82:
 
   - broker creates requests based on request of Placer with fullfiller that can handle the request
 
   - broker creates requests based on request of Placer with fullfiller that can handle the request
 
   - Fullfillers either claim or reject request
 
   - Fullfillers either claim or reject request
   - On rejection broker goes to 1 with different fullfiller
+
   - On rejection broker goes to 2 with different fullfiller
 
    
 
    
 
Basic script for the Filler
 
Basic script for the Filler
   - Filler polls the workflow broker to check if there is an XXX request for them
+
   - Filler polls the workflow broker to check if there is a ProcedureRequest for them
   - Filler uses the content of the request to craft a XXX event as the response claiming or rejecting
+
   - Filler uses the content of the request to craft a Procedure as the response claiming or rejecting the request
 
   - On claim Filler also claims the based-on request and posts progress events to the workflow broker
 
   - On claim Filler also claims the based-on request and posts progress events to the workflow broker
  
Line 89: Line 96:
  
 
Basic script for the Placer
 
Basic script for the Placer
   - Placer creates a XXX request and posts it to the workflow broker
+
   - Placer creates a ProcedureRequest and posts it to the workflow broker
   - Placer polls the workflow broker to check if there is an XXX event to it's request
+
   - Placer polls the workflow broker to check if there is a Procedure to it's request
   - Placer gets the XXX event
+
   - Placer gets the Procedure
   - Placer updates/puts the XXX request to appropriate state
+
   - Placer updates/puts the ProcedureRequest to appropriate state
 
    
 
    
 
Basic script for Workflow Broker
 
Basic script for Workflow Broker
Line 98: Line 105:
 
   - broker creates tasks with fullfiller that can handle the request
 
   - broker creates tasks with fullfiller that can handle the request
 
   - Fullfillers either claim or reject task
 
   - Fullfillers either claim or reject task
   - On rejection broker goes to 1 with different fullfiller
+
   - On rejection broker goes to 2 with different fullfiller
 
    
 
    
 
Basic script for Workflow Broker Events on Task
 
Basic script for Workflow Broker Events on Task
Line 106: Line 113:
 
    
 
    
 
Basic script for the Filler
 
Basic script for the Filler
   - Filler polls the workflow broker to check if there is an XXX task for them
+
   - Filler polls the workflow broker to check if there is a Task for them
   - Filler uses the content of the request to craft a XXX event as the response claiming or rejecting
+
   - Filler rejects or accepts task
   - On claim Filler posts progress events for tasks to the workflow broker
+
   - Filler posts progress to the task accordingly, and upon fullfillment creates a Procedure, answering the original request (Task.basedOn)
  
 
===Bonus Scenario: Fullfiller registers with Workflow Broker===
 
===Bonus Scenario: Fullfiller registers with Workflow Broker===
 
Action: Fullfiller registers with broker and provides them with request-types they want to fullfill.
 
Action: Fullfiller registers with broker and provides them with request-types they want to fullfill.
Precondition: We discussed in the workflow-call how that works
+
Precondition: -
 
Success Criteria: Broker has fhir-resource that identifies fullfiller
 
Success Criteria: Broker has fhir-resource that identifies fullfiller
 
Bonus point: -
 
Bonus point: -
  
TODO: discuss in call how this works
+
Fullfillers can register according to the requested [http://build.fhir.org/request-definitions.html#Request.performerType PerformerType] (Procedure.performerType). For this they can register with the following two options:
 +
 
 +
A) [http://build.fhir.org/practitioner.html Practitioner] with an assigned [http://build.fhir.org/practitionerrole.html PractitionerRole] where Request.performerType must match PractitionerRole.speciality
 +
 
 +
B) [http://build.fhir.org/healthcareservice.html HealthcareService] where the Request.performerType must match teh HealthcareService.specialty
 +
 
 +
Basic script for Filler-registration
 +
- Filler creates Practitioner+PractitionerRole or HealthcareService and submits to broker
 +
 
 +
Adaption of scripts for placer based on bonus-scenario
 +
- Placer creates a ProcedureRequest WITH a set performerType
 +
 
  
 
==Test Scripts==
 
==Test Scripts==

Revision as of 12:08, 17 March 2017


Workflow

Submitting WG/Project/Implementer Group

The FHIR Workflow Project.

Justification

Workflow is an essential part of healthcare - orders, care protocols, referrals are the drivers of most activity within in-patient settings and a great deal of activity in community care as well. FHIR is concerned with workflow when there's a need to share information about workflow state or relationships, when there's a need to coordinate or drive the execution of workflow across systems and when there's a need to define allowed actions, dependencies and conditions on behavior.

This track aims to test, and familiarize implementers with the Workflow Management Patterns. Specifically towards sharing of the state of a workflow and requesting / fulfilling actions or information from a different organization or department. The need for standardization in this field comes from healthcare workflows that are traditionally outsorced by an organization (requesting lab-orders or diagnostic imaging), shared between departments (medication dispense and administration) or have participants from different organizations (tumor board).

Proposed Track Lead

Oliver Krauss

  • Email: oliver dot krauss at fh-hagenberg dot at
  • Zulip: Oliver Krauss
  • Skype: krauss_o

See Connectathon_Track_Lead_Responsibilities

Expected participants

Planning on attending the Connectathon and participating in the Workflow Track? Please drop a line in the Zulip chat!

  • CGM Clinical Austria
  • HL7 Austria
  • ITH Icoserve
  • Research & Development Upper Austria GmbH
  • University of Upper Austria

Roles

Note that any participant can choose to implement only a single or more roles listed. A workflow broker is already provided by the track organizers.

Placer

Is responsible for creating a request for an action they seek fullfillment for. Optionally the Placer can create tasks to detail processing details. Upon getting events from the Filler the Placer needs to update the request-state and possibly verify the actions set by the Filler.

Filler

Claims, rejects or fullfills a request made by the Placer. Optionally the Filler can create tasks for a request, or subtasks for tasks already associated with the request by the Placer. Notifies Placer of the task process by sending events.

Broker

Acts as an intermediary between Placer and Filler. It takes responsibilty to seek fullfillment from the Placer and handles issues such as prioritization or rejection by a possible fullfillment candidate. It needs to be aware of possible fullfillers and their capabilities beforehand.

Scenarios

The following scenarios are based on the tumor-board use-case of assigning a patient to a tumor board discussion, with sample-resources detailed in the next section. The use-case is a part of the tumor-board preparation workflow (details here), where the discussion of a patient is requested for a planned tumor-board (ProcedureRequest) and results in the patient being discussed in the board ((Task) -> optional see scenarios), and finally resulting in a conducnted tumor-board where the patient was discussed(Procedure).

The scenario is one possible use case of many for manging workflows in healthcare. You are free to use any of the request / response resources as listed on the workflow page, but need to negotiate the used resources and details with a second partner for testing yourself. Note that the workflow-steps still stay the same, no matter what resource you use.

Resources and Samples

ProcedureRequest resource for discussing a patient in a tumor-board: TODO

Task to discuss the patient in the tumor-board: TODO

Procedure that details that the tumor-board has been conducted: TODO

Scenario: Request without tasks handled by Workflow Broker

Action: Placer sends a request to the workflow broker. Workflow broker negotiates who fullfills. Assigned fullfiller acts accordingly, and sends events of the progress. Precondition: workflow broker is aware of fullfillers and their capabilities Success Criteria: request gets fullfilled Bonus point: States of request, tasks and events are handled correctly

Basic script for the Placer

 - Placer creates a ProcedureRequest and posts it to the workflow broker
 - Placer polls the workflow broker to check if there is a Procedure to it's ProcedureRequest (Procedure.basedOn)
 - Placer gets the Procedure
 - Placer updates/puts the ProcedureRequest to appropriate state
 

Basic script for Workflow Broker

 - broker polls for requests made by placers
 - broker creates requests based on request of Placer with fullfiller that can handle the request
 - Fullfillers either claim or reject request
 - On rejection broker goes to 2 with different fullfiller
 

Basic script for the Filler

 - Filler polls the workflow broker to check if there is a ProcedureRequest for them
 - Filler uses the content of the request to craft a Procedure as the response claiming or rejecting the request
 - On claim Filler also claims the based-on request and posts progress events to the workflow broker

Scenario: Request with Tasks defined by Placer handled by Workflow Broker

Action: Placer sends a request to the workflow broker. Workflow broker creates tasks and searches for appropriate fullfillers and negotiates who fullfills. Assigned fullfiller acts accordingly, and sends events of the progress. Precondition: workflow broker is aware of fullfillers and their capabilities Success Criteria: request gets fullfilled Bonus point: States of request, tasks and events are handled correctly

Basic script for the Placer

 - Placer creates a ProcedureRequest and posts it to the workflow broker
 - Placer polls the workflow broker to check if there is a Procedure to it's request
 - Placer gets the Procedure
 - Placer updates/puts the ProcedureRequest to appropriate state
 

Basic script for Workflow Broker

 - broker polls for requests made by placers
 - broker creates tasks with fullfiller that can handle the request
 - Fullfillers either claim or reject task
 - On rejection broker goes to 2 with different fullfiller
 

Basic script for Workflow Broker Events on Task

 - broker polls for events on the broker-generated tasks
 - broker handles according to state-machine to create events for request made by placers
   - eg. broker notifies in progress after first task starts, but only sends finished when all tasks finish.
 

Basic script for the Filler

 - Filler polls the workflow broker to check if there is a Task for them
 - Filler rejects or accepts task
 - Filler posts progress to the task accordingly, and upon fullfillment creates a Procedure, answering the original request (Task.basedOn)

Bonus Scenario: Fullfiller registers with Workflow Broker

Action: Fullfiller registers with broker and provides them with request-types they want to fullfill. Precondition: - Success Criteria: Broker has fhir-resource that identifies fullfiller Bonus point: -

Fullfillers can register according to the requested PerformerType (Procedure.performerType). For this they can register with the following two options:

A) Practitioner with an assigned PractitionerRole where Request.performerType must match PractitionerRole.speciality

B) HealthcareService where the Request.performerType must match teh HealthcareService.specialty

Basic script for Filler-registration

- Filler creates Practitioner+PractitionerRole or HealthcareService and submits to broker

Adaption of scripts for placer based on bonus-scenario

- Placer creates a ProcedureRequest WITH a set performerType


Test Scripts

TBD

Connectathon Summary

TBD after Connectathon