Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent...

41
HL7®, FHIR® and the flame Design mark are the registered trademarks of Health Level Seven International and are used with per mission. November 20-22, Amsterdam | @HL7 @FirelyTeam | #fhirdevdays | www.devdays.com Workflow José Costa Teixeira

Transcript of Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent...

Page 1: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

HL7®, FHIR® and the flame Design mark are the registered trademarks of Health Level Seven International and are used with per mission.

November 20-22, Amsterdam | @HL7 @FirelyTeam | #fhirdevdays | www.devdays.com

Workflow

José Costa Teixeira

Page 2: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Who am I

• José Costa Teixeira

• Consultant

• IMEC, Belgium

• Background:

• Implementer

• Volunteer within SDOs (IHE, HL7, ISO)

• Data Management and Healthcare Operations

• Medication, Supply, Care coordination, Privacy

Page 3: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Why Workflow on FHIR?

Page 4: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Why Workflow

• A common implementation challenge (explicit or underlying)

• A patient safety concern

• Hard to standardize, but must interoperate

• Simple or complex

• Lots of business variance

• Design variance (prescriptive or ad-hoc; even when prescriptive, regional variations exist)

• Runtime (in real life, things happen)

https://www.ecri.org/EmailResources/PSRQ/T

op10/2016_Top10_ExecutiveBrief_final.pdf

Page 5: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow in HL7 v2 / v3

• Messaging requires mostly pre-negotiated workflow • 1 sender, 1 or more receivers

• Expected responder / filler is usually identified

• Expected action dictated by event code

• (or “action codes” within the message) • Results are sent as a response message or

• (or future message linked by business identifier)

• Behavior could be synchronous or asynchronous

• Status was hard to manage… e.g. “Status of a prescription”

Page 6: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow in CDA

• No intrinsic support for workflow

• No delivery mechanism

• No expectation to start action when reading a document

• Can be wrapped by other specifications to enable workflow

• E.g. IHE profiles define workflow (XDS, CATH, etc.).

• IHE XDW even provides a CDA mechanism for workflow

Page 7: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow in other standards

• OASIS Task

• OMG BPMN

Page 8: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Requirements for Workflow

• Keep the simple things simple, but allow complex cases

• Allow ‘filler’ to say “yes” or “no”

• Allow ‘filler’ to negotiate

• Allow ‘placer’ to see progress and status

• Allow complex status management

• Allow ‘placer’ to change/revoke authorization

• Allow ‘placer’ to receive “results” as linked to initial request • Allow routing and re-routing to more ‘fillers’

Page 9: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Requirements for Workflow on FHIR

• Support REST, Messaging and Documents…

• If workflow behavior is to be consistent in FHIR, need consistent resources…

• Workflow is just in the early stages in FHIR – most implementations focusing on exposing base data

• Interoperability at the workflow level is an advanced feature, but it impacts data needs

Page 10: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Patterns

Page 11: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow patterns and relationships

http://build.fhir.org/patterns.html

Page 12: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow Patterns and Resources

Page 13: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Request

Page 14: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Event

Page 15: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Definition

Page 16: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Request vs. Task

• Request represents intention/authorization

• Request does not (by itself) represent “request to act”

• i.e. Everyone who sees a MedicationRequest doesn’t start counting pills/injecting the patient

• Even if the request “has your name on it”

• Task lets you say “please do X” / “this needs to be done”

• And “this has been done”…

• Please fulfill; Please change status; Please tell me current progress; etc.

Page 17: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Task

Page 18: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow State

Page 19: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Request State Machine

Page 20: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Task state machine

+ Business Status

Page 21: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow (execution) patterns

Page 22: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow execution patterns

• FHIR provides some examples (not exhaustive) to show the workflow mechanisms

• Each pattern contains: • What are the steps of the pattern

• What benefits does the pattern provide

• What are the limitations

• Recommendations for use of this pattern

http://build.fhir.org/workflow.html

Page 23: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Direct post to filler

1. POST Request + “actionable” tag

2. 201 Created

1. POST Event (basedOn request)

2. 201 Created

Page 24: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow Broker

Plan

Definition

Page 25: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow Definition

• Can be a protocol, a standard procedure,..

• Can also be a requirement

• Supporting variation but providing anchors

“Workflow Conformance”

Page 26: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Resource Updates

Page 27: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow updates - resources

• Revamped patterns based on feedback

• Use PractitionerRole instead of “onBehalfOf” pattern

• Improved some names

• “partOf“ rather than “parent”, “instantiates” rather than “definition”

• Added Event.location

• Made Event.notDone into a status, added statusReason in place of notDoneReason

• Add additional resources to choices (e.g. CareTeam to performer)

Page 28: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Workflow updates - others

• ExampleScenario resource

• Allows describing a full workflow “instance”

• Moving pattern alignment reporting into the build infrastructure

• Looking to map and explore mutual alignment between workflow patterns and CIMI patterns

• Seeking implementer feedback (and volunteers) to improve usefulness of workflow content

Page 29: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Process

Page 30: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Process

• Bi-weekly calls since 2016

• New section in the specification for “Workflow”

• Resource patterns (Definition, Request and Event)

• Workflow execution

• How do we say “please do”, “done”, manage tracking…?

• Product pattern

• (Workflow definition)

Page 31: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Adherence to patterns

• Patterns are patterns, not rules

• Some elements may not be relevant in all resources

• Some elements may be “extensions” for some resources

• Some elements may use domain-specific names

• Some elements may constrain data types, cardinalities or simplify structures

• Focus is keeping simple things simple

• Look for alignment where we don’t have reason to be distinct

Page 32: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Future of patterns

• Ask workgroups to “try” to follow patterns and to include hand-wavy mappings

• We have a report showing where misalignment exists

• Future: patterns misalignment reported as part of publication process

• In the future, may:

• Make mappings more formal

• Expose patterns in reference implementations (interfaces)

• Introduce additional patterns

• Will be driven by implementer feedback

Page 33: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

What’s next

• Try to get all artifacts aligned by publication of R4 (we’re behind…) • Support publishing ExampleScenarios in both the main publication

and implementation guides (we might have 1 for R4?)

• Try to have at least one ExampleScenario for each FHIR focal area

• Eventually try to have a few for each workflow pattern – R5 target

• Continue to exercise at connectathons

• Are you doing something workflow related at DevDays?

• Continue to improve/clarify documentation

• Suggestions/volunteers welcome

Page 34: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

More workflow-related resources

• Everything product-related (Ordering, delivering…)

• Medication

• Device

• Nutrition

• Blood

Page 35: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Scenarios

Page 36: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Scenario 1

• Pharmacy is sent two prescriptions

• Both are active

• Both are for a patient that uses the pharmacy

• Both are digitally signed

• One is “to be filled”

• One is “for your information”

• Use in drug-drug interaction checking

• How does the pharmacy know what to do with each?

Page 37: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Scenario 2

• Download Med Schedule to tablet

• Search MedRequests (intent=instance-order)

• Upon notification, give meds to patient

• Send(update) medAdministration

Page 38: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

Scenario 3

• System informs of blood collection

• Nurse reports patient has impediment

• GP asks for reschedule, is accepted

• New appointment and reminder

• Photo is taken then forwarded

Page 41: Workflow - devdays.com€¦ · If workflow behavior is to be consistent in FHIR, need consistent }µ Y Workflow is just in the early stages in FHIR t most implementations focusing

www.devdays.com