/
task_planning.html
9723 lines (9720 loc) · 584 KB
/
task_planning.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Asciidoctor 2.0.10">
<meta name="description" content="openEHR Task Planning Specification">
<meta name="keywords" content="workflow, task, planning, EHR, EMR, reference model, openehr">
<title>Task Planning Specification</title>
<link rel="stylesheet" href="https://specifications.openehr.org/styles/openehr.css">
</head>
<body class="book toc2 toc-left">
<div id="header">
<div id="toc" class="toc2">
<div id="toctitle">Table of Contents</div>
<ul class="sectlevel0">
<li><a href="#_task_planning_specification">Task Planning Specification</a>
<ul class="sectlevel1">
<li><a href="#_amendment_record">Amendment Record</a></li>
<li><a href="#_acknowledgements">Acknowledgements</a>
<ul class="sectlevel2">
<li><a href="#_primary_author">Primary Author</a></li>
<li><a href="#_contributors">Contributors</a></li>
<li><a href="#_support">Support</a></li>
<li><a href="#_intellectual_origins">Intellectual Origins</a></li>
<li><a href="#_trademarks">Trademarks</a></li>
</ul>
</li>
<li><a href="#_preface">1. Preface</a>
<ul class="sectlevel2">
<li><a href="#_purpose">1.1. Purpose</a></li>
<li><a href="#_related_documents">1.2. Related Documents</a></li>
<li><a href="#_status">1.3. Status</a></li>
<li><a href="#_feedback">1.4. Feedback</a></li>
<li><a href="#_conformance">1.5. Conformance</a></li>
</ul>
</li>
<li><a href="#_background">2. Background</a>
<ul class="sectlevel2">
<li><a href="#_survey_of_requirements">2.1. Survey of Requirements</a>
<ul class="sectlevel3">
<li><a href="#_how_can_computers_improve_clinical_care_process">2.1.1. How Can Computers Improve Clinical Care Process?</a></li>
<li><a href="#_cognitive_model">2.1.2. Cognitive Model</a>
<ul class="sectlevel4">
<li><a href="#_the_co_pilot_paradigm">2.1.2.1. The Co-pilot Paradigm</a></li>
<li><a href="#_voice_based_hci">2.1.2.2. Voice-based HCI</a></li>
</ul>
</li>
<li><a href="#_care_pathways">2.1.3. Care Pathways</a></li>
<li><a href="#_order_sets">2.1.4. Order Sets</a></li>
<li><a href="#_time_and_work_in_the_real_world">2.1.5. Time and Work in the Real World</a></li>
</ul>
</li>
<li><a href="#_execution_environment">2.2. Execution Environment</a>
<ul class="sectlevel3">
<li><a href="#_general_paradigm">2.2.1. General Paradigm</a></li>
<li><a href="#_distributed_plans">2.2.2. Distributed Plans</a></li>
</ul>
</li>
<li><a href="#_what_task_planning_does_not_do">2.3. What Task Planning Does Not Do</a>
<ul class="sectlevel3">
<li><a href="#_work_plans_versus_task_lists_todo_lists">2.3.1. Work Plans versus Task Lists (TODO Lists)</a></li>
<li><a href="#_appointment_booking_and_management">2.3.2. Appointment Booking and Management</a></li>
</ul>
</li>
<li><a href="#_clinical_decision_support_cds">2.4. Clinical Decision Support (CDS)</a></li>
<li><a href="#_relationship_to_workflow_formalisms_and_systems">2.5. Relationship to Workflow Formalisms and Systems</a></li>
<li><a href="#_limitations_of_the_openehr_standard_entry_model">2.6. Limitations of the openEHR standard Entry Model</a></li>
</ul>
</li>
<li><a href="#_technical_requirements">3. Technical Requirements</a>
<ul class="sectlevel2">
<li><a href="#_flexible_allocation_of_workers">3.1. Flexible Allocation of Workers</a></li>
<li><a href="#_coordinated_teamwork">3.2. Coordinated Teamwork</a></li>
<li><a href="#_planned_tasks_for_an_order">3.3. Planned Tasks for an Order</a></li>
<li><a href="#_tracking_orders_from_plans">3.4. Tracking Orders from Plans</a></li>
<li><a href="#_order_sets_and_protocols">3.5. Order Sets and Protocols</a></li>
<li><a href="#_lookahead_plan">3.6. Lookahead Plan</a></li>
<li><a href="#_recurring_repeatable_tasks">3.7. Recurring / Repeatable Tasks</a></li>
<li><a href="#_checklist_sign_off">3.8. Checklist & Sign-off</a></li>
<li><a href="#_sub_plans">3.9. Sub-plans</a></li>
<li><a href="#_task_grouping_optionality_and_execution_basis">3.10. Task Grouping, Optionality and Execution Basis</a></li>
<li><a href="#_decision_pathways">3.11. Decision Pathways</a></li>
<li><a href="#_different_types_of_cancellation">3.12. Different types of Cancellation</a></li>
<li><a href="#_changes_and_abandonment">3.13. Changes and Abandonment</a></li>
<li><a href="#_rationalising_unrelated_work_plans">3.14. Rationalising Unrelated Work Plans</a></li>
<li><a href="#_support_process_analytics">3.15. Support Process Analytics</a></li>
<li><a href="#_support_for_costing_and_billing_information">3.16. Support for Costing and Billing Information</a></li>
</ul>
</li>
<li><a href="#_design_principles">4. Design Principles</a>
<ul class="sectlevel2">
<li><a href="#_computational_basis">4.1. Computational Basis</a></li>
<li><a href="#_computation_context">4.2. Computation Context</a>
<ul class="sectlevel3">
<li><a href="#_separation_of_definition_and_execution">4.2.1. Separation of Definition and Execution</a></li>
</ul>
</li>
<li><a href="#_conceptual_elements">4.3. Conceptual Elements</a>
<ul class="sectlevel3">
<li><a href="#_work_plan">4.3.1. Work Plan</a></li>
<li><a href="#_task_plan">4.3.2. Task Plan</a>
<ul class="sectlevel4">
<li><a href="#_parallel_and_sequential_execution">4.3.2.1. Parallel and Sequential Execution</a></li>
<li><a href="#_conditional_structures">4.3.2.2. Conditional Structures</a></li>
<li><a href="#_summary">4.3.2.3. Summary</a></li>
</ul>
</li>
<li><a href="#_graph_structure">4.3.3. Graph Structure</a></li>
<li><a href="#_work_context">4.3.4. Work Context</a></li>
<li><a href="#_context_switch_and_fork">4.3.5. Context Switch and Fork</a></li>
<li><a href="#_context_continuity_over_worker_shifts">4.3.6. Context Continuity over Worker Shifts</a></li>
<li><a href="#_principal_performer">4.3.7. Principal Performer</a></li>
<li><a href="#_time_and_wait_states">4.3.8. Time and Wait States</a></li>
</ul>
</li>
<li><a href="#_levels_of_definition_and_representation">4.4. Levels of Definition and Representation</a>
<ul class="sectlevel3">
<li><a href="#_phases_of_work">4.4.1. Phases of Work</a></li>
</ul>
</li>
<li><a href="#_execution_concepts">4.5. Execution Concepts</a>
<ul class="sectlevel3">
<li><a href="#_plan_execution_lifecycle">4.5.1. Plan Execution Lifecycle</a></li>
<li><a href="#_allocation">4.5.2. Allocation</a></li>
<li><a href="#_task_lifecycle">4.5.3. Task Lifecycle</a></li>
<li><a href="#_availability">4.5.4. Availability</a></li>
<li><a href="#_adaptive_modification_and_exception_handling">4.5.5. Adaptive Modification and Exception-handling</a></li>
</ul>
</li>
<li><a href="#_relationship_of_tasks_with_existing_openehr_entry_types">4.6. Relationship of Tasks with existing openEHR Entry Types</a></li>
<li><a href="#_order_semantics_versus_plan_semantics">4.7. Order Semantics versus Plan Semantics</a></li>
</ul>
</li>
<li><a href="#_task_planning_model_overview">5. Task Planning Model Overview</a>
<ul class="sectlevel2">
<li><a href="#_identification_and_referencing">5.1. Identification and Referencing</a></li>
<li><a href="#_plan_data_context">5.2. Plan Data Context</a>
<ul class="sectlevel3">
<li><a href="#_class_descriptions">5.2.1. Class Descriptions</a>
<ul class="sectlevel4">
<li><a href="#_plan_data_context_class">5.2.1.1. PLAN_DATA_CONTEXT Class</a></li>
<li><a href="#_context_valuet_class">5.2.1.2. CONTEXT_VALUE<T> Class</a></li>
<li><a href="#_context_constanttt_class">5.2.1.3. CONTEXT_CONSTANT<TT> Class</a></li>
<li><a href="#_context_variablett_class">5.2.1.4. CONTEXT_VARIABLE<TT> Class</a></li>
<li><a href="#_external_variablett_class">5.2.1.5. EXTERNAL_VARIABLE<TT> Class</a></li>
<li><a href="#_local_variablett_class">5.2.1.6. LOCAL_VARIABLE<TT> Class</a></li>
<li><a href="#_event_variablett_class">5.2.1.7. EVENT_VARIABLE<TT> Class</a></li>
<li><a href="#_continuous_event_variablett_class">5.2.1.8. CONTINUOUS_EVENT_VARIABLE<TT> Class</a></li>
<li><a href="#_state_variablett_class">5.2.1.9. STATE_VARIABLE<TT> Class</a></li>
<li><a href="#_context_expressiontt_class">5.2.1.10. CONTEXT_EXPRESSION<TT> Class</a></li>
<li><a href="#_boolean_context_expression_class">5.2.1.11. BOOLEAN_CONTEXT_EXPRESSION Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_system_calls">5.3. System Calls</a>
<ul class="sectlevel3">
<li><a href="#_generic_api_calls">5.3.1. Generic API calls</a></li>
<li><a href="#_query_calls">5.3.2. Query Calls</a></li>
<li><a href="#_class_descriptions_2">5.3.3. Class Descriptions</a>
<ul class="sectlevel4">
<li><a href="#_system_call_class">5.3.3.1. SYSTEM_CALL Class</a></li>
<li><a href="#_parameter_def_class">5.3.3.2. PARAMETER_DEF Class</a></li>
<li><a href="#_parameter_mapping_class">5.3.3.3. PARAMETER_MAPPING Class</a></li>
<li><a href="#_api_call_class">5.3.3.4. API_CALL Class</a></li>
<li><a href="#_query_call_class">5.3.3.5. QUERY_CALL Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_variable_referencing">5.4. Variable Referencing</a></li>
<li><a href="#_specifying_time">5.5. Specifying Time</a>
<ul class="sectlevel3">
<li><a href="#_class_descriptions_3">5.5.1. Class Descriptions</a>
<ul class="sectlevel4">
<li><a href="#_time_specifier_class">5.5.1.1. TIME_SPECIFIER Class</a></li>
<li><a href="#_clock_time_class">5.5.1.2. CLOCK_TIME Class</a></li>
<li><a href="#_customary_time_class">5.5.1.3. CUSTOMARY_TIME Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_enumerated_types">5.6. Enumerated Types</a>
<ul class="sectlevel3">
<li><a href="#_class_descriptions_4">5.6.1. Class Descriptions</a>
<ul class="sectlevel4">
<li><a href="#_task_lifecycle_enumeration">5.6.1.1. TASK_LIFECYCLE Enumeration</a></li>
<li><a href="#_resume_type_enumeration">5.6.1.2. RESUME_TYPE Enumeration</a></li>
<li><a href="#_temporal_relation_enumeration">5.6.1.3. TEMPORAL_RELATION Enumeration</a></li>
<li><a href="#_execution_type_enumeration">5.6.1.4. EXECUTION_TYPE Enumeration</a></li>
<li><a href="#_plan_time_origin_enumeration">5.6.1.5. PLAN_TIME_ORIGIN Enumeration</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="#_definition_model">6. Definition Model</a>
<ul class="sectlevel2">
<li><a href="#_overview">6.1. Overview</a></li>
<li><a href="#_plan_structure">6.2. Plan Structure</a>
<ul class="sectlevel3">
<li><a href="#_the_plan_calendar">6.2.1. The Plan Calendar</a></li>
<li><a href="#_plan_items">6.2.2. Plan Items</a>
<ul class="sectlevel4">
<li><a href="#_wait_states">6.2.2.1. Wait States</a></li>
<li><a href="#_repetition">6.2.2.2. Repetition</a></li>
<li><a href="#_other_attributes">6.2.2.3. Other Attributes</a></li>
</ul>
</li>
<li><a href="#_lifecycle_state">6.2.3. Lifecycle State</a>
<ul class="sectlevel4">
<li><a href="#_task_availability">6.2.3.1. Task Availability</a></li>
<li><a href="#_aggregate_process_state">6.2.3.2. Aggregate Process State</a></li>
</ul>
</li>
<li><a href="#_references_to_clinical_quality_artefacts">6.2.4. References to Clinical Quality Artefacts</a></li>
<li><a href="#_class_definitions">6.2.5. Class Definitions</a>
<ul class="sectlevel4">
<li><a href="#_work_plan_class">6.2.5.1. WORK_PLAN Class</a></li>
<li><a href="#_plan_calendar_class">6.2.5.2. PLAN_CALENDAR Class</a></li>
<li><a href="#_plan_timeline_class">6.2.5.3. PLAN_TIMELINE Class</a></li>
<li><a href="#_calendar_entry_class">6.2.5.4. CALENDAR_ENTRY Class</a></li>
<li><a href="#_task_plan_class">6.2.5.5. TASK_PLAN Class</a></li>
<li><a href="#_task_participation_class">6.2.5.6. TASK_PARTICIPATION Class</a></li>
<li><a href="#_plan_item_class">6.2.5.7. PLAN_ITEM Class</a></li>
<li><a href="#_task_repeat_class">6.2.5.8. TASK_REPEAT Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_task_group_structure">6.3. Task Group Structure</a>
<ul class="sectlevel3">
<li><a href="#_sequential_task_groups">6.3.1. Sequential Task Groups</a></li>
<li><a href="#_parallel_task_groups_and_concurrency">6.3.2. Parallel Task Groups and Concurrency</a></li>
<li><a href="#_hierarchical_nesting">6.3.3. Hierarchical Nesting</a></li>
<li><a href="#_generic_execution_time_semantics">6.3.4. Generic Execution-time Semantics</a></li>
<li><a href="#_well_formedness">6.3.5. Well-formedness</a></li>
<li><a href="#_training_level">6.3.6. Training Level</a></li>
<li><a href="#_class_definitions_2">6.3.7. Class Definitions</a>
<ul class="sectlevel4">
<li><a href="#_task_group_class">6.3.7.1. TASK_GROUP Class</a></li>
<li><a href="#_execution_type_enumeration_2">6.3.7.2. EXECUTION_TYPE Enumeration</a></li>
<li><a href="#_concurrency_mode_enumeration">6.3.7.3. CONCURRENCY_MODE Enumeration</a></li>
<li><a href="#_execution_rule_class">6.3.7.4. EXECUTION_RULE Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_general_task_semantics">6.4. General Task Semantics</a>
<ul class="sectlevel3">
<li><a href="#_dispatchable_and_performable_tasks">6.4.1. Dispatchable and Performable Tasks</a></li>
<li><a href="#_class_definitions_3">6.4.2. Class Definitions</a>
<ul class="sectlevel4">
<li><a href="#_taskta_class">6.4.2.1. TASK<TA> Class</a></li>
<li><a href="#_dispatchable_taskta_class">6.4.2.2. DISPATCHABLE_TASK<TA> Class</a></li>
<li><a href="#_performable_taskta_class">6.4.2.3. PERFORMABLE_TASK<TA> Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_task_actions">6.5. Task Actions</a>
<ul class="sectlevel3">
<li><a href="#_performable_actions">6.5.1. Performable Actions</a>
<ul class="sectlevel4">
<li><a href="#_sub_plans_and_re_use">6.5.1.1. Sub-plans and Re-use</a></li>
<li><a href="#_inline_defined_actions">6.5.1.2. Inline Defined Actions</a></li>
</ul>
</li>
<li><a href="#_dispatchable_actions">6.5.2. Dispatchable Actions</a>
<ul class="sectlevel4">
<li><a href="#_hand_offs_and_coordinated_teamwork">6.5.2.1. Hand-offs and Coordinated Teamwork</a></li>
<li><a href="#_external_request">6.5.2.2. External Request</a></li>
<li><a href="#_system_request">6.5.2.3. System Request</a></li>
</ul>
</li>
<li><a href="#_class_definitions_4">6.5.3. Class Definitions</a>
<ul class="sectlevel4">
<li><a href="#_task_action_class">6.5.3.1. TASK_ACTION Class</a></li>
<li><a href="#_subject_precondition_class">6.5.3.2. SUBJECT_PRECONDITION Class</a></li>
<li><a href="#_performable_action_class">6.5.3.3. PERFORMABLE_ACTION Class</a></li>
<li><a href="#_resource_participation_class">6.5.3.4. RESOURCE_PARTICIPATION Class</a></li>
<li><a href="#_defined_action_class">6.5.3.5. DEFINED_ACTION Class</a></li>
<li><a href="#_sub_plan_class">6.5.3.6. SUB_PLAN Class</a></li>
<li><a href="#_dispatchable_action_class">6.5.3.7. DISPATCHABLE_ACTION Class</a></li>
<li><a href="#_hand_off_class">6.5.3.8. HAND_OFF Class</a></li>
<li><a href="#_external_request_class">6.5.3.9. EXTERNAL_REQUEST Class</a></li>
<li><a href="#_system_request_class">6.5.3.10. SYSTEM_REQUEST Class</a></li>
<li><a href="#_linked_plan_class">6.5.3.11. LINKED_PLAN Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_data_sets_and_application_interaction">6.6. Data-sets and Application Interaction</a>
<ul class="sectlevel3">
<li><a href="#_class_definitions_5">6.6.1. Class Definitions</a>
<ul class="sectlevel4">
<li><a href="#_dataset_spec_class">6.6.1.1. DATASET_SPEC Class</a></li>
<li><a href="#_capture_dataset_spec_class">6.6.1.2. CAPTURE_DATASET_SPEC Class</a></li>
<li><a href="#_review_dataset_spec_class">6.6.1.3. REVIEW_DATASET_SPEC Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_decision_structures">6.7. Decision Structures</a>
<ul class="sectlevel3">
<li><a href="#_overview_2">6.7.1. Overview</a></li>
<li><a href="#_condition_group_ifelseifelse">6.7.2. Condition Group (if/elseif/else)</a></li>
<li><a href="#_decision_group_switch">6.7.3. Decision Group (switch)</a></li>
<li><a href="#_event_group">6.7.4. Event Group</a></li>
<li><a href="#_class_definitions_6">6.7.5. Class Definitions</a>
<ul class="sectlevel4">
<li><a href="#_choice_group_class">6.7.5.1. CHOICE_GROUP Class</a></li>
<li><a href="#_override_type_enumeration">6.7.5.2. OVERRIDE_TYPE Enumeration</a></li>
<li><a href="#_choice_branch_class">6.7.5.3. CHOICE_BRANCH Class</a></li>
<li><a href="#_condition_group_class">6.7.5.4. CONDITION_GROUP Class</a></li>
<li><a href="#_condition_branch_class">6.7.5.5. CONDITION_BRANCH Class</a></li>
<li><a href="#_decision_group_class">6.7.5.6. DECISION_GROUP Class</a></li>
<li><a href="#_decision_branch_class">6.7.5.7. DECISION_BRANCH Class</a></li>
<li><a href="#_adhoc_group_class">6.7.5.8. ADHOC_GROUP Class</a></li>
<li><a href="#_adhoc_branch_class">6.7.5.9. ADHOC_BRANCH Class</a></li>
<li><a href="#_event_group_class">6.7.5.10. EVENT_GROUP Class</a></li>
<li><a href="#_event_branch_class">6.7.5.11. EVENT_BRANCH Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_order_tracking">6.8. Order Tracking</a>
<ul class="sectlevel3">
<li><a href="#_tracking_an_existing_order">6.8.1. Tracking an Existing Order</a></li>
<li><a href="#_creating_and_tracking_an_order">6.8.2. Creating and Tracking an Order</a></li>
<li><a href="#_class_definitions_7">6.8.3. Class Definitions</a>
<ul class="sectlevel4">
<li><a href="#_order_ref_class">6.8.3.1. ORDER_REF Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_events">6.9. Events</a>
<ul class="sectlevel3">
<li><a href="#_overview_3">6.9.1. Overview</a></li>
<li><a href="#_event_types">6.9.2. Event Types</a>
<ul class="sectlevel4">
<li><a href="#_timeline_moment">6.9.2.1. TIMELINE_MOMENT</a></li>
</ul>
</li>
<li><a href="#_general_facilities">6.9.3. General Facilities</a>
<ul class="sectlevel4">
<li><a href="#_event_wait_state">6.9.3.1. Event Wait State</a></li>
<li><a href="#_timers">6.9.3.2. Timers</a></li>
<li><a href="#_reminder">6.9.3.3. Reminder</a></li>
</ul>
</li>
<li><a href="#_task_wait_state">6.9.4. Task Wait State</a>
<ul class="sectlevel4">
<li><a href="#_time_outs">6.9.4.1. Time-outs</a></li>
<li><a href="#_reminder_2">6.9.4.2. Reminder</a></li>
<li><a href="#_lifecycle_transition_override">6.9.4.3. Lifecycle Transition Override</a></li>
</ul>
</li>
<li><a href="#_callbacks">6.9.5. Callbacks</a>
<ul class="sectlevel4">
<li><a href="#_callback_processing_for_blocking_tasks">6.9.5.1. Callback Processing for Blocking Tasks</a></li>
<li><a href="#_callback_processing_for_non_blocking_tasks">6.9.5.2. Callback Processing for Non-blocking Tasks</a></li>
<li><a href="#_callback_with_custom_resume_behaviour">6.9.5.3. Callback with Custom Resume Behaviour</a></li>
<li><a href="#_manually_notified_pseudo_callback">6.9.5.4. Manually-notified Pseudo-callback</a></li>
</ul>
</li>
<li><a href="#_class_definitions_8">6.9.6. Class Definitions</a>
<ul class="sectlevel4">
<li><a href="#_task_wait_class">6.9.6.1. TASK_WAIT Class</a></li>
<li><a href="#_event_waitp_class">6.9.6.2. EVENT_WAIT<P> Class</a></li>
<li><a href="#_timer_wait_class">6.9.6.3. TIMER_WAIT Class</a></li>
<li><a href="#_reminder_class">6.9.6.4. REMINDER Class</a></li>
<li><a href="#_callback_wait_class">6.9.6.5. CALLBACK_WAIT Class</a></li>
<li><a href="#_event_action_class">6.9.6.6. EVENT_ACTION Class</a></li>
<li><a href="#_resume_action_class">6.9.6.7. RESUME_ACTION Class</a></li>
<li><a href="#_plan_event_class">6.9.6.8. PLAN_EVENT<> Class</a></li>
<li><a href="#_timer_event_class">6.9.6.9. TIMER_EVENT Class</a></li>
<li><a href="#_calendar_event_class">6.9.6.10. CALENDAR_EVENT Class</a></li>
<li><a href="#_timeline_moment_class">6.9.6.11. TIMELINE_MOMENT Class</a></li>
<li><a href="#_task_transition_class">6.9.6.12. TASK_TRANSITION Class</a></li>
<li><a href="#_manual_notification_class">6.9.6.13. MANUAL_NOTIFICATION Class</a></li>
<li><a href="#_system_notification_class">6.9.6.14. SYSTEM_NOTIFICATION Class</a></li>
<li><a href="#_callback_notification_class">6.9.6.15. CALLBACK_NOTIFICATION Class</a></li>
<li><a href="#_state_trigger_class">6.9.6.16. STATE_TRIGGER Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_cost_tracking">6.10. Cost Tracking</a>
<ul class="sectlevel3">
<li><a href="#_class_definitions_9">6.10.1. Class Definitions</a>
<ul class="sectlevel4">
<li><a href="#_task_costing_class">6.10.1.1. TASK_COSTING Class</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="#_global_semantics">7. Global Semantics</a>
<ul class="sectlevel2">
<li><a href="#_control_flow">7.1. Control Flow</a>
<ul class="sectlevel3">
<li><a href="#_graph_structure_2">7.1.1. Graph Structure</a></li>
<li><a href="#_general_scheme">7.1.2. General Scheme</a></li>
<li><a href="#_conditional_nodes">7.1.3. Conditional Nodes</a></li>
</ul>
</li>
<li><a href="#_task_dispatching">7.2. Task Dispatching</a>
<ul class="sectlevel3">
<li><a href="#_hand_offs">7.2.1. Hand-offs</a></li>
<li><a href="#_external_requests">7.2.2. External Requests</a></li>
<li><a href="#_system_requests">7.2.3. System Requests</a></li>
<li><a href="#_resume_semantics">7.2.4. Resume Semantics</a></li>
</ul>
</li>
<li><a href="#_aggregate_lifecycle_state">7.3. Aggregate Lifecycle State</a>
<ul class="sectlevel3">
<li><a href="#_sequential_groups">7.3.1. Sequential Groups</a></li>
<li><a href="#_parallel_groups">7.3.2. Parallel Groups</a></li>
<li><a href="#_work_plan_2">7.3.3. Work Plan</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_execution">8. Execution</a>
<ul class="sectlevel2">
<li><a href="#_phases_of_processing">8.1. Phases of Processing</a>
<ul class="sectlevel3">
<li><a href="#_materialisation">8.1.1. Materialisation</a></li>
<li><a href="#_activation">8.1.2. Activation</a></li>
<li><a href="#_termination">8.1.3. Termination</a></li>
<li><a href="#_allowed_plan_modifications">8.1.4. Allowed Plan Modifications</a></li>
</ul>
</li>
<li><a href="#_execution_processing">8.2. Execution Processing</a>
<ul class="sectlevel3">
<li><a href="#_worker_allocation">8.2.1. Worker Allocation</a></li>
<li><a href="#_worker_de_allocation">8.2.2. Worker De-allocation</a></li>
<li><a href="#_resource_allocation">8.2.3. Resource Allocation</a></li>
</ul>
</li>
<li><a href="#_persistence">8.3. Persistence</a></li>
</ul>
</li>
<li><a href="#_materialised_model">9. Materialised Model</a>
<ul class="sectlevel2">
<li><a href="#_overview_4">9.1. Overview</a></li>
<li><a href="#_class_descriptions_5">9.2. Class Descriptions</a>
<ul class="sectlevel3">
<li><a href="#_m_work_plan_class">9.2.1. M_WORK_PLAN Class</a></li>
<li><a href="#_m_task_plan_class">9.2.2. M_TASK_PLAN Class</a></li>
<li><a href="#_m_performer_allocation_class">9.2.3. M_PERFORMER_ALLOCATION Class</a></li>
<li><a href="#_m_plan_item_class">9.2.4. M_PLAN_ITEM Class</a></li>
<li><a href="#_m_task_group_class">9.2.5. M_TASK_GROUP Class</a></li>
<li><a href="#_m_task_class">9.2.6. M_TASK Class</a></li>
<li><a href="#_m_task_action_class">9.2.7. M_TASK_ACTION Class</a></li>
<li><a href="#_m_dispatchable_action_class">9.2.8. M_DISPATCHABLE_ACTION Class</a></li>
<li><a href="#_m_performable_action_class">9.2.9. M_PERFORMABLE_ACTION Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_plan_execution_history">10. Plan Execution History</a>
<ul class="sectlevel2">
<li><a href="#_overview_5">10.1. Overview</a></li>
<li><a href="#_class_descriptions_6">10.2. Class Descriptions</a>
<ul class="sectlevel3">
<li><a href="#_task_plan_execution_history_class">10.2.1. TASK_PLAN_EXECUTION_HISTORY Class</a></li>
<li><a href="#_event_record_class">10.2.2. EVENT_RECORD Class</a></li>
<li><a href="#_task_plan_event_record_class">10.2.3. TASK_PLAN_EVENT_RECORD Class</a></li>
<li><a href="#_task_event_record_class">10.2.4. TASK_EVENT_RECORD Class</a></li>
<li><a href="#_task_notification_record_class">10.2.5. TASK_NOTIFICATION_RECORD Class</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_transactional_service_model">11. Transactional Service Model</a>
<ul class="sectlevel2">
<li><a href="#_overview_6">11.1. Overview</a></li>
<li><a href="#_definition_interface">11.2. Definition Interface</a></li>
<li><a href="#_execution_time_interface">11.3. Execution-time Interface</a></li>
<li><a href="#_class_descriptions_7">11.4. Class Descriptions</a>
<ul class="sectlevel3">
<li><a href="#_i_work_plan_definition_interface">11.4.1. I_WORK_PLAN_DEFINITION Interface</a></li>
<li><a href="#_i_task_plan_materialised_interface">11.4.2. I_TASK_PLAN_MATERIALISED Interface</a></li>
<li><a href="#_i_work_plan_definition_interface_2">11.4.3. I_WORK_PLAN_DEFINITION Interface</a></li>
<li><a href="#_i_task_plan_materialised_interface_2">11.4.4. I_TASK_PLAN_MATERIALISED Interface</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_relationship_with_other_openehr_ehr_artefacts">12. Relationship with other openEHR EHR Artefacts</a>
<ul class="sectlevel2">
<li><a href="#_overview_7">12.1. Overview</a></li>
<li><a href="#_execution_time_ehr_structures">12.2. Execution-time EHR Structures</a></li>
</ul>
</li>
<li><a href="#_references">References</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="imageblock text-center">
<div class="content">
<img src="https://specifications.openehr.org/images/openEHR_logo_RGB.svg" alt="openEHR logo">
</div>
</div>
</div>
</div>
<h1 id="_task_planning_specification" class="sect0"><a class="anchor" href="#_task_planning_specification"></a>Task Planning Specification</h1>
<div class="openblock partintro">
<div class="content">
<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
</colgroup>
<thead>
<tr>
<th class="tableblock halign-center valign-top" colspan="2"><strong>Issuer</strong>: <a href="https://www.openehr.org/programs/specification" target="_blank" rel="noopener">openEHR Specification Program</a></th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Release</strong>: PROC Release-1.5.0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Status</strong>: TRIAL</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Revision</strong>: <a href="#latest_issue">[latest_issue]</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Date</strong>: <a href="#latest_issue_date">[latest_issue_date]</a></p></td>
</tr>
<tr>
<td class="tableblock halign-center valign-top" colspan="2"><p class="tableblock"><strong>Keywords</strong>: workflow, task, planning, EHR, EMR, reference model, openehr</p></td>
</tr>
</tbody>
</table>
<div class="imageblock text-center">
<div class="content">
<object type="image/svg+xml" data="openehr_block_diagram.svg" width="60%"><span class="alt">openEHR components</span></object>
</div>
</div>
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 20%;">
<col style="width: 80%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-center valign-top" colspan="2">© 2017 - 2020 The openEHR Foundation</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-center valign-top" colspan="2"><p class="tableblock"><a href="https://www.openehr.org" target="_blank" rel="noopener">The openEHR Foundation</a> is an independent, non-profit foundation, facilitating the sharing of health records by consumers and clinicians via open specifications, clinical models and open platform implementations.</p></td>
</tr>
<tr>
<td class="tableblock halign-center valign-top"><p class="tableblock"><strong>Licence</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="https://specifications.openehr.org/images/cc-by-nd-88x31.png" alt="image"></span> Creative Commons Attribution-NoDerivs 3.0 Unported. <a href="https://creativecommons.org/licenses/by-nd/3.0/" class="bare">https://creativecommons.org/licenses/by-nd/3.0/</a></p></td>
</tr>
<tr>
<td class="tableblock halign-center valign-top"><p class="tableblock"><strong>Support</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Issues: <a href="https://specifications.openehr.org/components/PROC/open_issues" target="_blank" rel="noopener">Problem Reports</a><br>
Web: <a href="https://specifications.openehr.org" target="_blank" rel="noopener">specifications.openEHR.org</a></p></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="sect1">
<h2 id="_amendment_record"><a class="anchor" href="#_amendment_record"></a>Amendment Record</h2>
<div class="sectionbody">
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 9.0909%;">
<col style="width: 54.5454%;">
<col style="width: 18.1818%;">
<col style="width: 18.1819%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">Issue</th>
<th class="tableblock halign-left valign-top">Details</th>
<th class="tableblock halign-left valign-top">Raiser</th>
<th class="tableblock halign-left valign-top">Completed</th>
</tr>
</thead>
<tbody>
<tr>
<th class="tableblock halign-center valign-top" colspan="4"><p class="tableblock"><strong>PROC Release 1.5.0</strong></p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a id="latest_issue"></a>1.5.0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-34" target="_blank" rel="noopener">SPECPROC-34</a>. Clarify evaluate order and semantics of <code>REPEAT_SPEC</code>.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">M Polajnar,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a id="latest_issue_date"></a>05 May 2020</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-22" target="_blank" rel="noopener">SPECPROC-22</a>. Change method of 'manual notification' for callbacks; remove <code><em>manually_notified</em>: Boolean</code> from <code>CALLBACK_NOTIFICATION</code>.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">M Polajnar,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">16 Apr 2020</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-12" target="_blank" rel="noopener">SPECPROC-12</a>. Define lifecycle state for parallel Task Groups, including decision groups. Moved lifecycle state to 6.2.3; update 6.3.2; update Aggregate Lifecycle State section (7.3).</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">B Naess,<br>
M Polajnar,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">19 Mar 2020</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-32" target="_blank" rel="noopener">SPECPROC-32</a>. Improve Introduction and Requirements Discussion.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">D Santos Alves,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">26 Jan 2020</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-30" target="_blank" rel="noopener">SPECPROC-30</a>. Adjustments to Events model.<br>
change <code>TASK_WAIT.<em>start_window</em>: REMINDER[0..1]</code> to <code>PLAN_ITEM.<em>reminders</em>: REMINDER[*]</code>;<br>
add invariant to <code>TIMER_WAIT</code> to prevent it having a timeout;<br>
make <code>REMINDER</code> a generic <code>EVENT_WAIT</code> to allow it to be fired by any event, not just a timer event;<br>
remove <code>DELAY_EVENT</code>; move its <code><em>delay</em></code> attribute to <code>PLAN_EVENT</code>,<br>
<a href="https://specifications.openehr.org/tickets/SPECPROC-31" target="_blank" rel="noopener">SPECPROC-31</a>. Simplifications to Conditional structures: remove <code>BLOCKING_GROUP</code>, <code>BLOCKING_BRANCH</code>.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">M Polajnar,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">03 Jan 2020</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.4.2</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPUB-7" target="_blank" rel="noopener">SPECPUB-7</a>: Convert citations to bibtex form.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">15 Dec 2019</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-28" target="_blank" rel="noopener">SPECPROC-28</a>. Improve definition of <code>TIMELINE_MOMENT</code> and <code>TIMER_EVENT</code>; add <code>PLAN_TIME_ORIGIN</code> enum; remove <code>CALENDAR_TIME</code> class.
<a href="https://specifications.openehr.org/tickets/SPECPROC-29" target="_blank" rel="noopener">SPECPROC-29</a>. Add <code><em>guideline_step</em></code> to <code>PLAN_ITEM</code>; make Work Plan and Task Plan guideline refs more flexible.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">M Kejžar,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">09 Aug 2019</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.4.1</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-26" target="_blank" rel="noopener">SPECPROC-26</a>. Dataset improvements: make <code>DATASET_SPEC</code> inherit from <code>LOCATABLE</code>; support form sub-sections.
<a href="https://specifications.openehr.org/tickets/SPECPROC-27" target="_blank" rel="noopener">SPECPROC-27</a>. Add <code><em>classification</em></code> attribute to <code>WORK_PLAN</code> and <code>PLAN_ITEM</code>.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">M Kejžar,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">22 Jul 2019</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.4.0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-24" target="_blank" rel="noopener">SPECPROC-24</a>. Add Order tracking to model: add class <code>ORDER_REF</code>; add <code>WORK_PLAN.<em>order_list</em></code>; add <code>TASK_PLAN.<em>order_tags</em></code>.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">M Kejžar,<br>
M Polajnar,<br>
T Beale,<br>
B Naess</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">29 May 2019</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.3.0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-22" target="_blank" rel="noopener">SPECPROC-22</a>. Enable Callbacks to be manually notified - add <code><em>manually_notified</em>: Boolean</code> to <code>CALLBACK_NOTIFICATION</code>.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">01 May 2019</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-23" target="_blank" rel="noopener">SPECPROC-23</a>. Correct <code>CLOCK_TIME.<em>time</em></code> type to <code>Iso8601_time</code>.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">B Fabjan</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">25 Apr 2019</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-20" target="_blank" rel="noopener">SPECPROC-20</a>. Add <code><em>period</em></code> to <code>TASK_REPEAT</code> class.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">M Kejžar,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">12 Apr 2019</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-19" target="_blank" rel="noopener">SPECPROC-19</a>. Refine model of concurrency in <code>TASK_GROUP</code>: add class <code>CONCURRENCY_MODE</code>; improve explanation of <code>TASK_GROUP</code>;<br>
Add <code><em>concurrency_mode</em> = xor_one_path</code> invariant to <code>CHOICE_GROUP</code>.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">18 Mar 2019</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-18" target="_blank" rel="noopener">SPECPROC-18</a>. Support custom actions for callback receipt of events;<br>
Improve diagrams and explanation on Task wait states and Events;<br>
Add <code>CALLBACK_WAIT.<em>custom_actions</em></code>;<br>
Add <code>REMINDER.<em>repeats</em></code>;<br>
Add <code>TASK_WAIT.<em>next_state</em></code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale,<br>
B Naess</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">11 Mar 2019</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-17" target="_blank" rel="noopener">SPECPROC-17</a>. Specialise <code>DATASET_SPEC</code> into Capture and Review forms.<br>
<a href="https://specifications.openehr.org/tickets/SPECPROC-16" target="_blank" rel="noopener">SPECPROC-16</a>. Change <code>WORK_PLAN.<em>top_level_plans</em></code> and <code>LINKED_PLAN.<em>target</em></code> to direct links.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">M Kejžar,<br>
B Naess,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">04 Jan 2019</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.2.0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-15" target="_blank" rel="noopener">SPECPROC-15</a>. Convert <code>DELAY_EVENT.<em>source</em></code> to a direct reference.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">M Polajnar</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">21 Nov 2018</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.1.2</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-2" target="_blank" rel="noopener">SPECPROC-2</a>. Change date/time types to <code>Iso8601_xxx</code> types from Foundation Types spec.<br>
<a href="https://specifications.openehr.org/tickets/SPECPROC-11" target="_blank" rel="noopener">SPECPROC-11</a>. Add <code>WORK_PLAN.<em>indications</em></code>;<br>
Improve documentation of <code>TIMELINE_MOMENT</code>;<br>
<a href="https://specifications.openehr.org/tickets/SPECPROC-13" target="_blank" rel="noopener">SPECPROC-13</a>. Clarify Work Plan instantiation and distribution semantics:<br>
Add section 4.4.1 Phases of Work;<br>
Add subsection to section 2.5 on Distributed plans.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">B Naess,<br>
M Kejžar,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">31 Oct 2018</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.1.1</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-9" target="_blank" rel="noopener">SPECPROC-9</a>. Add sub-section on Time and Work in Background section.<br>
<a href="https://specifications.openehr.org/tickets/SPECPROC-10" target="_blank" rel="noopener">SPECPROC-10</a>. Add <code>BLOCKING_GROUP</code> and <code>BLOCKING_BRANCH</code> classes and <code>EVENT_ACTION.<em>receiver_thread_next_state</em></code>.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">21 Jun 2018</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.1.0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-6" target="_blank" rel="noopener">SPECPROC-6</a>. Adjust <code>SYSTEM_CALL</code> definition;<br>
Add <code>PARAMETER_DEF</code> and <code>PARAMETER_MAPPING</code> types.<br>
<a href="https://specifications.openehr.org/tickets/SPECPROC-7" target="_blank" rel="noopener">SPECPROC-7</a>. Provide support in decision structures for automated / decision support / ad hoc modes;<br>
Add <code>CHOICE_GROUP</code>, <code>CHOICE_BRANCH</code>, <code>ADHOC_GROUP</code>, <code>ADHOC_BRANCH</code> classes, and an attribute for marking any group as overridable at execution time.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale,<br>
M Kejžar</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">15 Jan 2018</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.0.4</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-3" target="_blank" rel="noopener">SPECPROC-3</a>. Context value model adjustments;<br>
Adjust <code>CONTEXT_EXPRESSION</code> type to have <code><em>name</em></code>;<br>
Add <code>CONTEXT_CONSTANT</code>, <code>EXTERNAL_VARIABLE</code> and <code>LOCAL_VARIABLE</code> types.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">04 Dec 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.0.3</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-5" target="_blank" rel="noopener">SPECPROC-5</a>. Correct <code>DECISION_BRANCH</code> method of specifying value.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">04 Dec 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.0.2</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-4" target="_blank" rel="noopener">SPECPROC-4</a>. Refine <code>SYSTEM_CALL</code> model, describe variable referencing.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">M Kejžar,<br>
M Polajnar,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">02 Dec 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.0.1</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-2" target="_blank" rel="noopener">SPECPROC-2</a> Fix various typos; add missed <code>BOOLEAN_CONTEXT_EXPRESSION</code>;
Remove duplicate attribute <code>WORK_PLAN.<em>events</em></code>.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">M Kejžar</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">24 Oct 2017</p></td>
</tr>
<tr>
<th class="tableblock halign-center valign-top" colspan="4"><p class="tableblock"><strong>PROC Release 1.0.0</strong></p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">1.0.0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-1" target="_blank" rel="noopener">SPECPROC-1</a>. Further documentation improvements;
Added explanations for resume semantics; added <code>RESUME_ACTION</code> class.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">17 Oct 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">0.9.0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-1" target="_blank" rel="noopener">SPECPROC-1</a>. Restructure document;
Various refactoring of Event classes; global calendar, timeline.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">12 Oct 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">0.8.2</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECPROC-1" target="_blank" rel="noopener">SPECPROC-1</a>. Workshop Sep 25-28 and follow-up calls;<br>
Significant updates to model;<br>
Include event-based design;<br>
Moved spec to new PROC openEHR component.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">B Fabjan,<br>
B Lah,<br>
B Naess,<br>
M Kejžar,<br>
E Leonov,<br>
V Makarov,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">10 Oct 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">0.8.1</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">New Task subtypes; re-design 'system request' concept; build out callback classes; remove explicit notifications from model.<br>
Improve performer model. Add more design material. Improved Task state machine.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">25 Aug 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">0.8.0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Incorporate changes from Workshop 28/29 July. Change principal performer to Group level; add specialised Task types; add system request.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">B Lah,<br>
B Naess,<br>
M Kejžar,<br>
E Leonov,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">06 Jul 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">0.7.2</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Incorporate review comments from Boštjan Lah.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">B Lah,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">20 Jun 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">0.7.1</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Rework runtime model.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">07 Jun 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Incorporate review comments from Pablo Pazos.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">P Pazos,<br>
T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">06 Jun 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">0.7.0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Major rewrite, incorporating structure, parallelism, decision paths, and execution history.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">31 May 2017</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">0.6.0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://specifications.openehr.org/tickets/SPECRM-58" target="_blank" rel="noopener">SPECRM-58</a>. Initial writing.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">T Beale,<br>
B Naess,<br>
I McNicoll</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">26 Jan 2017</p></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="sect1">
<h2 id="_acknowledgements"><a class="anchor" href="#_acknowledgements"></a>Acknowledgements</h2>
<div class="sectionbody">
<div class="sect2">
<h3 id="_primary_author"><a class="anchor" href="#_primary_author"></a>Primary Author</h3>
<div class="ulist">
<ul>
<li>
<p>Thomas Beale, Ars Semantica (UK); openEHR Foundation Management Board.</p>
</li>
</ul>
</div>
</div>
<div class="sect2">
<h3 id="_contributors"><a class="anchor" href="#_contributors"></a>Contributors</h3>
<div class="paragraph">
<p>This specification benefited from formal and informal input from the openEHR and wider health informatics community. The openEHR Foundation would like to recognise the following people for their contributions.</p>
</div>
<div class="ulist">
<ul>
<li>
<p>Danielle Santos Alves, RN, midwife, Federal University of Pernambuco (UFPE), Brazil</p>
</li>
<li>
<p>Borut Fabjan, Program Manager, Marand, Slovenia</p>
</li>
<li>
<p>Matija Kejžar, Marand, Slovenia</p>
</li>
<li>
<p>Bostjan Lah, Architect, Marand, Slovenia</p>
</li>
<li>
<p>Eugeny Leonov, Solit Clouds, Moscow, Russia</p>
</li>
<li>
<p>Ian McNicoll MD, FreshEHR, UK</p>
</li>
<li>
<p>Bjørn Næss, DIPS, Norway</p>
</li>
<li>
<p>Pablo Pazos Gutierrez, Senior engineer, CaboLabs, Uruguay</p>
</li>
<li>
<p>Pekka Pesola, Engineer, Tieto, Finland</p>
</li>
<li>
<p>Vladimir V Makarov, Department of Information Technologies, City of Moscow</p>
</li>
</ul>
</div>
</div>
<div class="sect2">
<h3 id="_support"><a class="anchor" href="#_support"></a>Support</h3>
<div class="paragraph">
<p>The work reported in this specification has been funded by the following organisations:</p>
</div>
<div class="ulist">
<ul>
<li>
<p>City of Moscow</p>
</li>
<li>
<p>Marand d.o.o., Slovenia</p>
</li>
<li>
<p>DIPS, Norway</p>
</li>
<li>
<p>Ars Semantica, UK</p>
</li>
</ul>
</div>
</div>
<div class="sect2">
<h3 id="_intellectual_origins"><a class="anchor" href="#_intellectual_origins"></a>Intellectual Origins</h3>
<div class="paragraph">
<p>Many of the design ideas presented in this specification came from analysis of use cases from industry sources. In particular, the openEHR implementers Marand and DIPS provided significant detailed requirements, use cases, and design ideas.</p>
</div>
<div class="paragraph">
<p>Additionally the Activity-Based Design (ABD) project at Intermountain Healthcare (2015-), on which the primary author worked part time proved an important source of cross-fertilisation. The latter project is led by David Edwards and Alan James (chief architect), within the clinical quality program, under Dr Brent James, Chief Quality Officer at Intermountain Healthcare. ABD has a sophisticated architecture based on a custom archetype / template framework, adaptive workflow concepts, application generation and real-time speech recognition. It has pioneered a number of concepts used in the current specification, including the separation of definition, materialised and runtime levels of representation.</p>
</div>
<div class="paragraph">
<p>Lastly, a review of research literature and standards was conducted. Many of the ideas in YAWL (<a href="#Hofstede_van_der_Aalst2009">Hofstede, van der Aalst, Adams, & Russell, 2010</a>) and its underlying research influenced this specification. The authors also reviewed various standards, including the OMG’s <a href="http://www.bpmn.org/" target="_blank" rel="noopener">BPMN</a> and <a href="https://www.omg.org/spec/CMMN/1.0/" target="_blank" rel="noopener">CMMN</a>.</p>
</div>
</div>
<div class="sect2">
<h3 id="_trademarks"><a class="anchor" href="#_trademarks"></a>Trademarks</h3>
<div class="ulist">
<ul>
<li>
<p>'openEHR' is a trademark of the openEHR Foundation.</p>
</li>
<li>
<p>'OMG' is a trademark of the Object Management Group.</p>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_preface"><a class="anchor" href="#_preface"></a>1. Preface</h2>
<div class="sectionbody">
<div class="sect2">
<h3 id="_purpose"><a class="anchor" href="#_purpose"></a>1.1. Purpose</h3>
<div class="paragraph">
<p>This specification of the openEHR Task Planning facility addresses requirements in the area of automated clinical process support in which some form of granular planning of clinical work is required. The central concept is that of a <em>plan</em> (or set of plans) designed to achieve a <em>goal</em> and that relate to an <em>active biological subject</em>.</p>
</div>
<div class="paragraph">
<p>The intended audience includes:</p>
</div>
<div class="ulist">
<ul>
<li>
<p>Standards bodies producing health informatics standards;</p>
</li>
<li>
<p>Academic groups using openEHR;</p>
</li>
<li>
<p>The open source healthcare community;</p>
</li>
<li>
<p>Solution vendors;</p>
</li>
<li>
<p>Medical informaticians and clinicians interested in health information.</p>
</li>
<li>