john wolfgang / frank van der kruijssen staf 2019 industry day · through radiation oncology...

23
1 John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day

Upload: others

Post on 09-Sep-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

1

John Wolfgang / Frank van der Kruijssen

STAF 2019 – Industry Day

Page 2: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Netherlands, Belgium, Germany, Bulgaria, Sweden

Page 3: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Frank van der Kruijssen MSc

3

System Architect

Page 4: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Radiation Oncology Physicist

John Wolfgang PhD

4

Page 5: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

MGH and Partners Healthcare

▪ Massachusetts General Hospital is part of the Partners Healthcare network

▪ Oncology

• Surgical

• Medical (Chemotherapy)

• Radiotherapy

▪ MGH Radiation Oncology

• 2500 patients/year

• Approx 64,000 treatments/year

• Photon

• Proton

• Brachytherapy

• Intra-operative radiotherapy

• Many different techniques for each

5

Page 6: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Patient’s Path Through Radiation Oncology

▪ Multiple activities, eachdependent on prior events

▪ Extended timeframe

• 1 week – 2 months

▪ Multiple actors / activity hand-off

6

▪ Radiation Oncologist

▪ CT Therapist

▪ Radiation Therapist

▪ Dosimetrist

▪ Physicist

Page 7: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Data and Workflow

Plan

QA

Tx

PlanRx

MD Dosimetrist PhysicistTherapist

CT

Image

ACTORS

ACTIONS

DATA

▪ Actors perform actions that generate data

▪ Data must be used by next step in workflow

▪ Require correct data for each operation

• Versioning, variations

• e.g. Many CT images taken, require one for planning

Page 8: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Daily Treatment Workflow▪ Treatment Workflow

• Image patient position

• Adjust patient position

• Verify patient position (re-image)

• Treat patient (delivery radiotherapy plan)Image

Position

Verify

Treat

Page 9: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

A Workflow and Data Management system

Workflow and Data

Management System

WorkstationWorkstation

ModalityModality

StorageStorageStorage

Workstation

ModalityWorkflow and Data

Management System

Page 10: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Session FSMSimplified

▪ Manages the workflow

• The scheduling and

• preparation part

• The execution part

• and exception handling

▪ 8 states in total

10

Page 11: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Domain-Driven Design

▪ Introduced in 2004 by Eric Evans

▪ Helps in structuring the discussion to find and define terminology

▪ which serves as the basis of a shared, ubiquitous language

▪ System engineer and domain expert both have the same understanding of the language

▪ which serves as the basis for the system design

▪ thereby tackling the complexity in the heart of the software

11

Page 12: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Domains of our system

▪ Patient

Patient identification and demographics

▪ Patient record

Departmental treatment record

▪ Treatment Definition

Specific information to manage a treatment

▪ Treatment Management

Workflow and Data flow

▪ ERP

Resource management and planning

▪ QA

Audit trailing

12

ERP

Generic /

Core

Page 13: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Treatment Management

▪ A Session now has only two simple states:

• Idle

• InProgress

13

Treatment

Management

Page 14: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Workflow Behaviors▪ Treatment Workflow

• Image patient position

• Adjust patient position

• Verify patient position (re-image)

• Treat patient (delivery radiotherapy plan)Image

Position

Verify

Treat

▪ But things do not always go according to plan …

• Patient gets sick during treatment

• Delivery system fails during treatment

▪ How to resume?

• Data continuity issues

• Activity continuity issues

Within session

Next session (tomorrow)

Page 15: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Treatment Management

▪ A Session has two simple states:

• Idle

• InProgress

▪ Continuation will introduce a new state:

• ToBeContinued

▪ We can go there from InProgress

▪ We can go back to InProgress

▪ Or we can immediately go to the end state

Simple… or maybe not?

15

Treatment

Management

Page 16: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Keeping domains clean

Introducing a new state increases complexity

• Larger state space

• All clients of this state machine will need to deal with the extra state

Instead,

• Adding a new domain, or

• combining the domains differently

will not (or hardly) increase complexity

16

Treatment

Management

ERP

InProgress

Appointment

Appointment

Page 17: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Workflow as DSL

17

Workflow Dataflow

Page 18: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Language through dialogue

The Engineering Design Process *

▪ Ask questions about the problem, approach and constraints

▪ Imagine the situation and brainstorm

▪ Plan the language. Start identifying elements

▪ Create the language

▪ Improve by considering alternative problem definitions, go back and ask questions

18

Imagine

Plan

Create

Improve

Ask

* Engineering is Elementary, Museum of Science, Boston, MA, USA

Page 19: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Shared language

▪ Domain expert and system engineer jointly develop a shared language

• No translations

• No loss of information

▪ This language is used to define the system and the algorithms

• New features are well understood by both the domain expert and the system engineer

19

Page 20: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

System and complexity

A system is a set of organized, interacting partswhich, when complete, exhibits properties or capabilities of the set as a whole which are not attributable exclusively to any of the parts *

▪ Set

▪ Organized

▪ Complete

▪ Undividable properties

▪ Interaction

▪ Holism, hierarchy

A system may be perceived as complex when it does not meet the above criteria

20

* Derek Hitchins, Getting Grips with Complexity, 2000, Derek Hitchins

Page 21: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Complexity reduced

Getting grips with complexity by

▪ Defining a set of domain-specific languages,

▪ each with a single purpose,

▪ contributing to the properties of the system as a whole

21

Page 22: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Conclusions & Recommendations

Tooling

▪ MDE Tooling is not the bottleneck, finding the right language (boundaries) is

Organizational

▪ Make sure the domain expert is available and keep the dialog open

▪ We need more system thinkers, and/or…

Process

▪ …we need to take more time to do proper language design

▪ We need to keep discipline in splitting-up domains and make them single-aspect

• Adding states to solve your problem is (temptingly) easy, but adds complexity

▪ Prevent increase of complexity where possible, e.g. by using cardinality instead of an extra state

Page 23: John Wolfgang / Frank van der Kruijssen STAF 2019 Industry Day · Through Radiation Oncology Multiple activities, each dependent on prior events Extended timeframe • 1 week –2

Q & A

23