@memoarchitect/ontology 0.16.2 → 0.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/examples/functional-logical-physical/model/catalog/functional_logical_physical.sysml +1 -1
- package/examples/gastric-bypass-variants/README.md +20 -0
- package/examples/gastric-bypass-variants/memo.identity.yaml +337 -0
- package/examples/gastric-bypass-variants/memo.package.yaml +5 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/NOTICE.md +7 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma.sysml +56 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_alimentary.sysml +1376 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_body_proper.sysml +45 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_cardiovascular_material_anatomical_entity.sysml +7 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_cardiovascular_segment_of_blood_vessel_tree_organ.sysml +27 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_cardiovascular_segment_of_hollow_tree_organ.sysml +21 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core.sysml +11 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_anatomical_boundary_entity.sysml +10 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_anatomical_cluster.sysml +45 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_anatomical_set.sysml +30 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_anatomical_space.sysml +60 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_anatomical_structure.sysml +10 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_anatomical_surface.sysml +10 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_arborial_segment_of_arterial_tree_organ.sysml +27 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_arborial_segment_of_venous_tree_organ.sysml +23 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_blood_vessel.sysml +13 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_bona_fide_anatomical_surface.sysml +15 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_cardinal_organ_part.sysml +10 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_cardinal_tissue_part.sysml +16 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_cell_part_cluster.sysml +10 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_developmental_structure.sysml +15 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_immaterial_anatomical_entity.sysml +10 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_material_anatomical_entity.sysml +27 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_nerve.sysml +11 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_organ.sysml +65 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_organ_component.sysml +27 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_organ_component_layer.sysml +54 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_organ_component_of_lymphatic_tree_organ.sysml +15 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_organ_region.sysml +10 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_organ_segment.sysml +46 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_organ_zone.sysml +34 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_physical_anatomical_entity.sysml +10 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_portion_of_tissue.sysml +106 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_postnatal_anatomical_structure.sysml +27 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_region_of_organ_component.sysml +55 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_region_of_surface_of_organ.sysml +13 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_segment_of_blood_vessel_tree_organ.sysml +10 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_segment_of_hollow_tree_organ.sysml +11 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_segment_of_neural_tree_organ.sysml +10 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_segment_of_vascular_tree_organ.sysml +39 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_core_surface_of_organ_region.sysml +19 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_fascial.sysml +7 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_musculoskeletal_anatomical_structure.sysml +7 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_musculoskeletal_cardinal_organ_part.sysml +11 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_musculoskeletal_organ.sysml +7 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_nervous_anatomical_cluster.sysml +9 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_nervous_nerve.sysml +13 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_nervous_postnatal_anatomical_structure.sysml +8 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/gastric_bypass_variants_anatomy_fma_respiratory.sysml +14 -0
- package/examples/gastric-bypass-variants/memo_packages/gastric-bypass-variants-anatomy-fma/memo.package.yaml +8 -0
- package/examples/gastric-bypass-variants/model/catalog/gastric_bypass_variants.sysml +416 -0
- package/examples/gastric-bypass-variants/model/catalog/viewpoints/operational/viewpoint.sysml +8 -0
- package/examples/gastric-bypass-variants/model/catalog/viewpoints/operational/views/bypass_flows.sysml +53 -0
- package/examples/gastric-bypass-variants/model/methodology/project.sysml +26 -0
- package/examples/gpca-pump/model/catalog/gpca_operational.sysml +13 -20
- package/examples/reusable-instrument/model/catalog/reusable_instrument.sysml +1 -2
- package/examples/robot-cell-family/model/catalog/sos/chains.sysml +1 -2
- package/examples/surgical-closure-workflow/model/catalog/surgical_closure_workflow.sysml +1 -2
- package/extensions/aadl/memo.package.yaml +1 -1
- package/extensions/anatomy/LICENSES/CC-BY-4.0.txt +395 -0
- package/extensions/anatomy/NOTICE.md +20 -0
- package/extensions/anatomy/data/fma-index.json.gz +0 -0
- package/extensions/anatomy/memo.package.yaml +18 -0
- package/extensions/anatomy/src/anatomy_extension.sysml +9 -0
- package/extensions/anatomy/src/presets/memo_extension_anatomy_presets.sysml +12 -0
- package/extensions/anatomy/src/selector/memo_extension_anatomy_selector.sysml +17 -0
- package/extensions/anatomy/src/vocabulary/memo_extension_anatomy_vocabulary.sysml +115 -0
- package/extensions/clinical/memo.package.yaml +1 -1
- package/extensions/clinical/src/clinical_extension.sysml +3 -1
- package/extensions/clinical/src/procedures/memo_clinical_procedures.sysml +11 -5
- package/extensions/cloud/memo.package.yaml +1 -1
- package/extensions/container/memo.package.yaml +1 -1
- package/extensions/messaging/memo.package.yaml +1 -1
- package/extensions/ros/memo.package.yaml +1 -1
- package/memo.manifest.yaml +1 -0
- package/methodologies/default/memo.package.yaml +1 -1
- package/methodologies/gpca/memo.package.yaml +1 -1
- package/ontology/memo.package.yaml +1 -1
- package/package.json +1 -1
- package/profile/memo.package.yaml +1 -1
- package/src/architecture/functional/functions/memo_functions.sysml +10 -5
- package/src/architecture/operational/activities/memo_activities.sysml +20 -1
- package/src/architecture/operational/context/actors/memo_actors.sysml +3 -1
- package/src/architecture/operational/memo_architecture_operational.sysml +1 -0
- package/src/architecture/operational/rollups/memo_rollups.sysml +109 -0
- package/src/architecture/operational/scenarios/memo_scenarios.sysml +16 -5
- package/src/architecture/operational/use_cases/memo_use_cases.sysml +11 -0
- package/src/architecture/operational/workflows/memo_workflows.sysml +62 -27
- package/src/assurance/requirements/needs/memo_needs.sysml +8 -0
- package/src/core/common/memo_common.sysml +19 -0
- package/src/core/relationships/memo_workspace_membership.sysml +1 -0
- package/src/core/stdlib/analysis/analysis.sysml +11 -0
- package/src/core/stdlib/functions/functions.sysml +2 -0
- package/src/core/stdlib/money/money.sysml +53 -0
- package/src/core/stdlib/quantities/quantities.sysml +2 -0
- package/src/memo_namespaces.sysml +16 -0
- package/src/methodology/profiles/memo_profiles.sysml +10 -9
- package/src/methodology/workflow/memo_workflow.sysml +16 -6
- package/src/rules/ontology/ontology_invariants.sysml +116 -0
- package/src/viewpoints/definitions/memo_view_layout.sysml +9 -0
- package/stage1/opensysml-14b923f7fe63f4062aa23208.json.gz +0 -0
- package/stage1/opensysml-23e5a5f26f7b25370edc4f26.json.gz +0 -0
- package/stage1/syside-27179e19589cf7a97f4dd15a.ids.gz +0 -0
- package/stage1/syside-27179e19589cf7a97f4dd15a.json.gz +0 -0
- package/stage1/syside-67f92dc96ba75cd05b5c8d13.ids.gz +0 -0
- package/stage1/syside-67f92dc96ba75cd05b5c8d13.json.gz +0 -0
- package/stage1/syside-eb527547500a60b508b4578c.ids.gz +0 -0
- package/stage1/syside-eb527547500a60b508b4578c.json.gz +0 -0
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
// Illustrative operational model of a Roux-en-Y gastric bypass done three ways: laparoscopic
|
|
2
|
+
// instruments (current practice), a robot of ours, and a competitor's robot. It is a modelling
|
|
3
|
+
// example with invented numbers, not a clinical protocol or a cost study.
|
|
4
|
+
//
|
|
5
|
+
// Three workflows, one per level. The clinical workflow (level 1) uses each clinical action once, in
|
|
6
|
+
// order, and carries no number. A system workflow (level 2) per platform uses the SAME action
|
|
7
|
+
// definitions again as usages and sets the time, success probability and instruments on its own
|
|
8
|
+
// usage, so an action is defined once and never copied for the platform that does it; who does it
|
|
9
|
+
// is a `perform` from the platform part. The functional workflow (level 3) is a functional flow of
|
|
10
|
+
// our robot's functions, which a level-2 usage performs. Every occurrence of an action is a usage,
|
|
11
|
+
// so how often a step is repeated is the number of its usages.
|
|
12
|
+
//
|
|
13
|
+
// The platforms are the variants of one variation, so "current", "ours" and "a competitor's" are
|
|
14
|
+
// variants and not a state. The roll-ups of memo_architecture_operational_rollups derive each
|
|
15
|
+
// workflow's cost and duration, and `bypassTradeStudy` scores the three by them. A platform is a
|
|
16
|
+
// resource too, so its rate is built from capital, service and practical capacity, as
|
|
17
|
+
// time-driven activity-based costing does.
|
|
18
|
+
package memo_examples_gastric_bypass_variants {
|
|
19
|
+
private import ScalarValues::*;
|
|
20
|
+
private import ModelingMetadata::*;
|
|
21
|
+
|
|
22
|
+
private import memo_core_enumerations::*;
|
|
23
|
+
private import memo_core_stdlib_quantities::*;
|
|
24
|
+
private import memo_core_stdlib_money::*;
|
|
25
|
+
private import memo_core_stdlib_analysis::*;
|
|
26
|
+
private import memo_architecture_operational_context_actors::*;
|
|
27
|
+
private import memo_architecture_operational_structure::*;
|
|
28
|
+
private import memo_architecture_operational_use_cases::*;
|
|
29
|
+
private import memo_architecture_operational_activities::*;
|
|
30
|
+
private import memo_architecture_operational_workflows::*;
|
|
31
|
+
private import memo_architecture_operational_scenarios::*;
|
|
32
|
+
private import memo_architecture_operational_rollups::*;
|
|
33
|
+
private import memo_architecture_logical_structure::*;
|
|
34
|
+
private import memo_architecture_functional_functions::*;
|
|
35
|
+
private import memo_extension_clinical::*;
|
|
36
|
+
private import gastric_bypass_variants_anatomy_fma::*;
|
|
37
|
+
|
|
38
|
+
private import memo_core_common::*;
|
|
39
|
+
private import memo_core_common::MemoIdentity;
|
|
40
|
+
|
|
41
|
+
// ── The project's one currency ──────────────────────────────
|
|
42
|
+
attribute <EUR> euro : CurrencyUnit;
|
|
43
|
+
|
|
44
|
+
// ── The clinical actions, each defined once ─────────────────
|
|
45
|
+
part surgicalTeam : OperationalEntity {
|
|
46
|
+
@MemoIdentity { :>> label = "Bariatric surgical team"; }
|
|
47
|
+
}
|
|
48
|
+
part stomach : Stomach {
|
|
49
|
+
@MemoIdentity { :>> label = "Stomach"; }
|
|
50
|
+
}
|
|
51
|
+
part jejunum : Jejunum {
|
|
52
|
+
@MemoIdentity { :>> label = "Jejunum"; }
|
|
53
|
+
}
|
|
54
|
+
action def EstablishPneumoperitoneumAndAccess specializes OperativeAction {
|
|
55
|
+
@MemoIdentity { :>> label = "Establish access"; }
|
|
56
|
+
ref :>> targets = stomach;
|
|
57
|
+
}
|
|
58
|
+
action def CreateGastricPouch specializes OperativeAction {
|
|
59
|
+
@MemoIdentity { :>> label = "Create pouch"; }
|
|
60
|
+
ref :>> targets = stomach;
|
|
61
|
+
}
|
|
62
|
+
action def CreateGastrojejunostomy specializes OperativeAction {
|
|
63
|
+
@MemoIdentity { :>> label = "Gastrojejunostomy"; }
|
|
64
|
+
ref :>> targets = jejunum;
|
|
65
|
+
}
|
|
66
|
+
action def PerformLeakTest specializes OperativeAction {
|
|
67
|
+
@MemoIdentity { :>> label = "Leak test"; }
|
|
68
|
+
ref :>> targets = stomach;
|
|
69
|
+
}
|
|
70
|
+
action def ConvertToOpenSurgery specializes OperativeAction {
|
|
71
|
+
@MemoIdentity { :>> label = "Convert to open"; }
|
|
72
|
+
ref :>> targets = stomach;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// ── Tier 1: the clinical workflow ───────────────────────────
|
|
76
|
+
use case ucRouxEnY : UseCase {
|
|
77
|
+
attribute :>> useCaseKind = UseCaseKind::clinical;
|
|
78
|
+
@MemoIdentity { :>> label = "Perform Roux-en-Y gastric bypass"; }
|
|
79
|
+
attribute :>> goalStatement = "Create the gastric pouch and its anastomosis and confirm that it does not leak, whatever the platform.";
|
|
80
|
+
subject :>> supportingSystem = surgicalTeam;
|
|
81
|
+
}
|
|
82
|
+
part wfRouxEnY : ClinicalProcedureWorkflow {
|
|
83
|
+
@MemoIdentity { :>> label = "Clinical workflow: Roux-en-Y gastric bypass"; }
|
|
84
|
+
attribute :>> entryCondition = "patient prepared; time-out complete";
|
|
85
|
+
attribute :>> completionCondition = "pouch and anastomosis created and leak-tested";
|
|
86
|
+
action scNominal : OperativeScenario {
|
|
87
|
+
@MemoIdentity { :>> label = "Nominal path"; }
|
|
88
|
+
action establishAccess : EstablishPneumoperitoneumAndAccess {
|
|
89
|
+
@MemoIdentity { :>> label = "Establish access"; }
|
|
90
|
+
}
|
|
91
|
+
action createPouch : CreateGastricPouch {
|
|
92
|
+
@MemoIdentity { :>> label = "Create pouch"; }
|
|
93
|
+
}
|
|
94
|
+
action createGastrojejunostomy : CreateGastrojejunostomy {
|
|
95
|
+
@MemoIdentity { :>> label = "Gastrojejunostomy"; }
|
|
96
|
+
}
|
|
97
|
+
action performLeakTest : PerformLeakTest {
|
|
98
|
+
@MemoIdentity { :>> label = "Leak test"; }
|
|
99
|
+
}
|
|
100
|
+
first establishAccess then createPouch;
|
|
101
|
+
first createPouch then createGastrojejunostomy;
|
|
102
|
+
first createGastrojejunostomy then performLeakTest;
|
|
103
|
+
}
|
|
104
|
+
action scConversion : OperativeScenario {
|
|
105
|
+
attribute :>> scenarioKind = ScenarioKind::alternate;
|
|
106
|
+
@MemoIdentity { :>> label = "Conversion to open"; }
|
|
107
|
+
action convertToOpen : ConvertToOpenSurgery {
|
|
108
|
+
@MemoIdentity { :>> label = "Convert to open"; }
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
connection : RealizesUseCase connect realizingWorkflow ::> wfRouxEnY to realizedUseCase ::> ucRouxEnY;
|
|
113
|
+
|
|
114
|
+
// ── Staff and functions ──────────────────────────────────────
|
|
115
|
+
// Illustrative rates, authored for this example.
|
|
116
|
+
part surgeon : User {
|
|
117
|
+
attribute :>> actorKind = ActorKind::clinician;
|
|
118
|
+
@MemoIdentity { :>> label = "Surgeon"; }
|
|
119
|
+
attribute :>> capacityCostRate = 420 [EUR/h];
|
|
120
|
+
}
|
|
121
|
+
part assistant : User {
|
|
122
|
+
attribute :>> actorKind = ActorKind::clinician;
|
|
123
|
+
@MemoIdentity { :>> label = "Assistant"; }
|
|
124
|
+
attribute :>> capacityCostRate = 260 [EUR/h];
|
|
125
|
+
}
|
|
126
|
+
part scrubNurse : User {
|
|
127
|
+
attribute :>> actorKind = ActorKind::clinician;
|
|
128
|
+
@MemoIdentity { :>> label = "Scrub nurse"; }
|
|
129
|
+
attribute :>> capacityCostRate = 90 [EUR/h];
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// ── Tier 3: our robot's functional workflow ──────────────────
|
|
133
|
+
action fnDockPlatform : SystemFunction {
|
|
134
|
+
@MemoIdentity { :>> label = "Dock the platform"; }
|
|
135
|
+
}
|
|
136
|
+
action fnTransectTissue : SystemFunction {
|
|
137
|
+
@MemoIdentity { :>> label = "Transect tissue"; }
|
|
138
|
+
}
|
|
139
|
+
action fnFireStapler : SystemFunction {
|
|
140
|
+
@MemoIdentity { :>> label = "Fire the stapler"; }
|
|
141
|
+
}
|
|
142
|
+
action fcOurRobotProcedure : FunctionalFlow {
|
|
143
|
+
@MemoIdentity { :>> label = "Functional workflow: our robot's procedure"; }
|
|
144
|
+
action dock :> fnDockPlatform;
|
|
145
|
+
action transect :> fnTransectTissue;
|
|
146
|
+
action fire :> fnFireStapler;
|
|
147
|
+
first dock then transect;
|
|
148
|
+
first transect then fire;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// ── The platforms: variants of one variation ─────────────────
|
|
152
|
+
abstract part def SurgicalPlatform specializes System, MemoResource;
|
|
153
|
+
part def Stapler specializes WorkflowResource;
|
|
154
|
+
variation part platform : SurgicalPlatform {
|
|
155
|
+
@MemoIdentity { :>> label = "Surgical platform"; }
|
|
156
|
+
variant part laparoscopicTower {
|
|
157
|
+
@MemoIdentity { :>> label = "Laparoscopic"; }
|
|
158
|
+
perform wfRouxEnYLap.scLapNominal.establishAccess;
|
|
159
|
+
perform wfRouxEnYLap.scLapNominal.createPouch;
|
|
160
|
+
perform wfRouxEnYLap.scLapNominal.createGastrojejunostomy;
|
|
161
|
+
perform wfRouxEnYLap.scLapNominal.performLeakTest;
|
|
162
|
+
attribute :>> origin = SystemOriginKind::external;
|
|
163
|
+
attribute :>> capacityCostRate = 120 [EUR/h];
|
|
164
|
+
}
|
|
165
|
+
variant part ourRobot {
|
|
166
|
+
@MemoIdentity { :>> label = "Our robot"; }
|
|
167
|
+
perform wfRouxEnYOur.scOurNominal.establishAccess;
|
|
168
|
+
perform wfRouxEnYOur.scOurNominal.createPouch;
|
|
169
|
+
perform wfRouxEnYOur.scOurNominal.createGastrojejunostomy;
|
|
170
|
+
attribute :>> origin = SystemOriginKind::internal;
|
|
171
|
+
attribute :>> capacityCostRate = 650 [EUR/h];
|
|
172
|
+
}
|
|
173
|
+
variant part competitorRobot {
|
|
174
|
+
@MemoIdentity { :>> label = "Competitor robot"; }
|
|
175
|
+
perform wfRouxEnYCmp.scCmpNominal.establishAccess;
|
|
176
|
+
perform wfRouxEnYCmp.scCmpNominal.createPouch;
|
|
177
|
+
perform wfRouxEnYCmp.scCmpNominal.createGastrojejunostomy;
|
|
178
|
+
perform wfRouxEnYCmp.scCmpNominal.performLeakTest;
|
|
179
|
+
attribute :>> origin = SystemOriginKind::external;
|
|
180
|
+
attribute :>> capacityCostRate = 800 [EUR/h];
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
allocate fnDockPlatform to platform.ourRobot;
|
|
184
|
+
allocate fnTransectTissue to platform.ourRobot;
|
|
185
|
+
allocate fnFireStapler to platform.ourRobot;
|
|
186
|
+
|
|
187
|
+
// ── Tier 2: the system workflow, laparoscopic ──────────────────────
|
|
188
|
+
use case ucRouxEnYLap : UseCase {
|
|
189
|
+
attribute :>> useCaseKind = UseCaseKind::clinical;
|
|
190
|
+
@MemoIdentity { :>> label = "Perform Roux-en-Y gastric bypass (laparoscopic)"; }
|
|
191
|
+
subject :>> supportingSystem = platform.laparoscopicTower;
|
|
192
|
+
}
|
|
193
|
+
part wfRouxEnYLap : OperationalWorkflow {
|
|
194
|
+
@MemoIdentity { :>> label = "System workflow: Roux-en-Y gastric bypass (laparoscopic)"; }
|
|
195
|
+
attribute :>> entryCondition = "patient prepared; time-out complete";
|
|
196
|
+
attribute :>> completionCondition = "pouch and anastomosis created and leak-tested";
|
|
197
|
+
attribute :>> perProcedureCost = 450 [EUR];
|
|
198
|
+
part staplerLap : Stapler {
|
|
199
|
+
@MemoIdentity { :>> label = "Stapler (laparoscopic)"; }
|
|
200
|
+
attribute :>> resourceKind = ResourceKind::consumable;
|
|
201
|
+
attribute :>> unitCost = 180 [EUR];
|
|
202
|
+
}
|
|
203
|
+
action scLapNominal : OperativeScenario {
|
|
204
|
+
@MemoIdentity { :>> label = "Nominal path (laparoscopic)"; }
|
|
205
|
+
action establishAccess : EstablishPneumoperitoneumAndAccess {
|
|
206
|
+
@MemoIdentity { :>> label = "Establish access"; }
|
|
207
|
+
attribute :>> expectedDuration = 20 [min];
|
|
208
|
+
attribute :>> plannedSuccessProbability = 0.99 [one];
|
|
209
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.laparoscopicTower);
|
|
210
|
+
}
|
|
211
|
+
action createPouch : CreateGastricPouch {
|
|
212
|
+
@MemoIdentity { :>> label = "Create pouch"; }
|
|
213
|
+
attribute :>> expectedDuration = 25 [min];
|
|
214
|
+
attribute :>> plannedSuccessProbability = 0.97 [one];
|
|
215
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.laparoscopicTower, staplerLap);
|
|
216
|
+
}
|
|
217
|
+
action createGastrojejunostomy : CreateGastrojejunostomy {
|
|
218
|
+
@MemoIdentity { :>> label = "Gastrojejunostomy"; }
|
|
219
|
+
attribute :>> expectedDuration = 45 [min];
|
|
220
|
+
attribute :>> plannedSuccessProbability = 0.94 [one];
|
|
221
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.laparoscopicTower, staplerLap);
|
|
222
|
+
}
|
|
223
|
+
action performLeakTest : PerformLeakTest {
|
|
224
|
+
@MemoIdentity { :>> label = "Leak test"; }
|
|
225
|
+
attribute :>> expectedDuration = 10 [min];
|
|
226
|
+
attribute :>> plannedSuccessProbability = 0.99 [one];
|
|
227
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.laparoscopicTower);
|
|
228
|
+
}
|
|
229
|
+
first establishAccess then createPouch;
|
|
230
|
+
first createPouch then createGastrojejunostomy;
|
|
231
|
+
first createGastrojejunostomy then performLeakTest;
|
|
232
|
+
}
|
|
233
|
+
action scLapConversion : OperativeScenario {
|
|
234
|
+
attribute :>> scenarioKind = ScenarioKind::alternate;
|
|
235
|
+
@MemoIdentity { :>> label = "Conversion to open (laparoscopic)"; }
|
|
236
|
+
attribute :>> likelihood = 0.06 [one];
|
|
237
|
+
action convertToOpen : ConvertToOpenSurgery {
|
|
238
|
+
@MemoIdentity { :>> label = "Convert to open"; }
|
|
239
|
+
attribute :>> expectedDuration = 35 [min];
|
|
240
|
+
attribute :>> plannedSuccessProbability = 0.99 [one];
|
|
241
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
connection : RealizesUseCase connect realizingWorkflow ::> wfRouxEnYLap to realizedUseCase ::> ucRouxEnYLap;
|
|
246
|
+
#refinement dependency wfRouxEnYLap::scLapNominal::establishAccess to wfRouxEnY::scNominal::establishAccess;
|
|
247
|
+
#refinement dependency wfRouxEnYLap::scLapNominal::createPouch to wfRouxEnY::scNominal::createPouch;
|
|
248
|
+
#refinement dependency wfRouxEnYLap::scLapNominal::createGastrojejunostomy to wfRouxEnY::scNominal::createGastrojejunostomy;
|
|
249
|
+
#refinement dependency wfRouxEnYLap::scLapNominal::performLeakTest to wfRouxEnY::scNominal::performLeakTest;
|
|
250
|
+
#refinement dependency wfRouxEnYLap::scLapConversion::convertToOpen to wfRouxEnY::scConversion::convertToOpen;
|
|
251
|
+
|
|
252
|
+
// ── Tier 2: the system workflow, our robot ──────────────────────
|
|
253
|
+
use case ucRouxEnYOur : UseCase {
|
|
254
|
+
attribute :>> useCaseKind = UseCaseKind::clinical;
|
|
255
|
+
@MemoIdentity { :>> label = "Perform Roux-en-Y gastric bypass (our robot)"; }
|
|
256
|
+
subject :>> supportingSystem = platform.ourRobot;
|
|
257
|
+
}
|
|
258
|
+
part wfRouxEnYOur : OperationalWorkflow {
|
|
259
|
+
@MemoIdentity { :>> label = "System workflow: Roux-en-Y gastric bypass (our robot)"; }
|
|
260
|
+
attribute :>> entryCondition = "patient prepared; time-out complete";
|
|
261
|
+
attribute :>> completionCondition = "pouch and anastomosis created and leak-tested";
|
|
262
|
+
attribute :>> perProcedureCost = 900 [EUR];
|
|
263
|
+
part staplerOur : Stapler {
|
|
264
|
+
@MemoIdentity { :>> label = "Stapler (our robot)"; }
|
|
265
|
+
attribute :>> resourceKind = ResourceKind::consumable;
|
|
266
|
+
attribute :>> unitCost = 310 [EUR];
|
|
267
|
+
}
|
|
268
|
+
action scOurNominal : OperativeScenario {
|
|
269
|
+
@MemoIdentity { :>> label = "Nominal path (our robot)"; }
|
|
270
|
+
action establishAccess : EstablishPneumoperitoneumAndAccess {
|
|
271
|
+
@MemoIdentity { :>> label = "Establish access"; }
|
|
272
|
+
attribute :>> expectedDuration = 30 [min];
|
|
273
|
+
attribute :>> plannedSuccessProbability = 0.99 [one];
|
|
274
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.ourRobot);
|
|
275
|
+
perform fnDockPlatform;
|
|
276
|
+
}
|
|
277
|
+
action createPouch : CreateGastricPouch {
|
|
278
|
+
@MemoIdentity { :>> label = "Create pouch"; }
|
|
279
|
+
attribute :>> expectedDuration = 18 [min];
|
|
280
|
+
attribute :>> plannedSuccessProbability = 0.98 [one];
|
|
281
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.ourRobot, staplerOur);
|
|
282
|
+
perform fnTransectTissue;
|
|
283
|
+
perform fnFireStapler;
|
|
284
|
+
}
|
|
285
|
+
action createGastrojejunostomy : CreateGastrojejunostomy {
|
|
286
|
+
@MemoIdentity { :>> label = "Gastrojejunostomy"; }
|
|
287
|
+
attribute :>> expectedDuration = 30 [min];
|
|
288
|
+
attribute :>> plannedSuccessProbability = 0.97 [one];
|
|
289
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.ourRobot, staplerOur);
|
|
290
|
+
perform fnTransectTissue;
|
|
291
|
+
perform fnFireStapler;
|
|
292
|
+
}
|
|
293
|
+
action performLeakTest : PerformLeakTest {
|
|
294
|
+
@MemoIdentity { :>> label = "Leak test"; }
|
|
295
|
+
attribute :>> expectedDuration = 10 [min];
|
|
296
|
+
attribute :>> plannedSuccessProbability = 0.99 [one];
|
|
297
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.ourRobot);
|
|
298
|
+
}
|
|
299
|
+
first establishAccess then createPouch;
|
|
300
|
+
first createPouch then createGastrojejunostomy;
|
|
301
|
+
first createGastrojejunostomy then performLeakTest;
|
|
302
|
+
}
|
|
303
|
+
action scOurConversion : OperativeScenario {
|
|
304
|
+
attribute :>> scenarioKind = ScenarioKind::alternate;
|
|
305
|
+
@MemoIdentity { :>> label = "Conversion to open (our robot)"; }
|
|
306
|
+
attribute :>> likelihood = 0.03 [one];
|
|
307
|
+
action convertToOpen : ConvertToOpenSurgery {
|
|
308
|
+
@MemoIdentity { :>> label = "Convert to open"; }
|
|
309
|
+
attribute :>> expectedDuration = 35 [min];
|
|
310
|
+
attribute :>> plannedSuccessProbability = 0.99 [one];
|
|
311
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
connection : RealizesUseCase connect realizingWorkflow ::> wfRouxEnYOur to realizedUseCase ::> ucRouxEnYOur;
|
|
316
|
+
#refinement dependency wfRouxEnYOur::scOurNominal::establishAccess to wfRouxEnY::scNominal::establishAccess;
|
|
317
|
+
#refinement dependency wfRouxEnYOur::scOurNominal::createPouch to wfRouxEnY::scNominal::createPouch;
|
|
318
|
+
#refinement dependency wfRouxEnYOur::scOurNominal::createGastrojejunostomy to wfRouxEnY::scNominal::createGastrojejunostomy;
|
|
319
|
+
#refinement dependency wfRouxEnYOur::scOurNominal::performLeakTest to wfRouxEnY::scNominal::performLeakTest;
|
|
320
|
+
#refinement dependency wfRouxEnYOur::scOurConversion::convertToOpen to wfRouxEnY::scConversion::convertToOpen;
|
|
321
|
+
|
|
322
|
+
// ── Tier 2: the system workflow, competitor robot ──────────────────────
|
|
323
|
+
use case ucRouxEnYCmp : UseCase {
|
|
324
|
+
attribute :>> useCaseKind = UseCaseKind::clinical;
|
|
325
|
+
@MemoIdentity { :>> label = "Perform Roux-en-Y gastric bypass (competitor robot)"; }
|
|
326
|
+
subject :>> supportingSystem = platform.competitorRobot;
|
|
327
|
+
}
|
|
328
|
+
part wfRouxEnYCmp : OperationalWorkflow {
|
|
329
|
+
@MemoIdentity { :>> label = "System workflow: Roux-en-Y gastric bypass (competitor robot)"; }
|
|
330
|
+
attribute :>> entryCondition = "patient prepared; time-out complete";
|
|
331
|
+
attribute :>> completionCondition = "pouch and anastomosis created and leak-tested";
|
|
332
|
+
attribute :>> perProcedureCost = 1100 [EUR];
|
|
333
|
+
part staplerCmp : Stapler {
|
|
334
|
+
@MemoIdentity { :>> label = "Stapler (competitor robot)"; }
|
|
335
|
+
attribute :>> resourceKind = ResourceKind::consumable;
|
|
336
|
+
attribute :>> unitCost = 340 [EUR];
|
|
337
|
+
}
|
|
338
|
+
action scCmpNominal : OperativeScenario {
|
|
339
|
+
@MemoIdentity { :>> label = "Nominal path (competitor robot)"; }
|
|
340
|
+
action establishAccess : EstablishPneumoperitoneumAndAccess {
|
|
341
|
+
@MemoIdentity { :>> label = "Establish access"; }
|
|
342
|
+
attribute :>> expectedDuration = 35 [min];
|
|
343
|
+
attribute :>> plannedSuccessProbability = 0.98 [one];
|
|
344
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.competitorRobot);
|
|
345
|
+
}
|
|
346
|
+
action createPouch : CreateGastricPouch {
|
|
347
|
+
@MemoIdentity { :>> label = "Create pouch"; }
|
|
348
|
+
attribute :>> expectedDuration = 22 [min];
|
|
349
|
+
attribute :>> plannedSuccessProbability = 0.97 [one];
|
|
350
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.competitorRobot, staplerCmp);
|
|
351
|
+
}
|
|
352
|
+
action createGastrojejunostomy : CreateGastrojejunostomy {
|
|
353
|
+
@MemoIdentity { :>> label = "Gastrojejunostomy"; }
|
|
354
|
+
attribute :>> expectedDuration = 35 [min];
|
|
355
|
+
attribute :>> plannedSuccessProbability = 0.96 [one];
|
|
356
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.competitorRobot, staplerCmp);
|
|
357
|
+
}
|
|
358
|
+
action performLeakTest : PerformLeakTest {
|
|
359
|
+
@MemoIdentity { :>> label = "Leak test"; }
|
|
360
|
+
attribute :>> expectedDuration = 10 [min];
|
|
361
|
+
attribute :>> plannedSuccessProbability = 0.99 [one];
|
|
362
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse, platform.competitorRobot);
|
|
363
|
+
}
|
|
364
|
+
first establishAccess then createPouch;
|
|
365
|
+
first createPouch then createGastrojejunostomy;
|
|
366
|
+
first createGastrojejunostomy then performLeakTest;
|
|
367
|
+
}
|
|
368
|
+
action scCmpConversion : OperativeScenario {
|
|
369
|
+
attribute :>> scenarioKind = ScenarioKind::alternate;
|
|
370
|
+
@MemoIdentity { :>> label = "Conversion to open (competitor robot)"; }
|
|
371
|
+
attribute :>> likelihood = 0.04 [one];
|
|
372
|
+
action convertToOpen : ConvertToOpenSurgery {
|
|
373
|
+
@MemoIdentity { :>> label = "Convert to open"; }
|
|
374
|
+
attribute :>> expectedDuration = 35 [min];
|
|
375
|
+
attribute :>> plannedSuccessProbability = 0.99 [one];
|
|
376
|
+
ref :>> instruments = (surgeon, assistant, scrubNurse);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
connection : RealizesUseCase connect realizingWorkflow ::> wfRouxEnYCmp to realizedUseCase ::> ucRouxEnYCmp;
|
|
381
|
+
#refinement dependency wfRouxEnYCmp::scCmpNominal::establishAccess to wfRouxEnY::scNominal::establishAccess;
|
|
382
|
+
#refinement dependency wfRouxEnYCmp::scCmpNominal::createPouch to wfRouxEnY::scNominal::createPouch;
|
|
383
|
+
#refinement dependency wfRouxEnYCmp::scCmpNominal::createGastrojejunostomy to wfRouxEnY::scNominal::createGastrojejunostomy;
|
|
384
|
+
#refinement dependency wfRouxEnYCmp::scCmpNominal::performLeakTest to wfRouxEnY::scNominal::performLeakTest;
|
|
385
|
+
#refinement dependency wfRouxEnYCmp::scCmpConversion::convertToOpen to wfRouxEnY::scConversion::convertToOpen;
|
|
386
|
+
|
|
387
|
+
// ── The roll-ups of each platform's workflow ─────────────────
|
|
388
|
+
calc costLap : ProcedureCost { in workflow = wfRouxEnYLap; }
|
|
389
|
+
calc durationLap : ProcedureDuration { in workflow = wfRouxEnYLap; }
|
|
390
|
+
calc successLap : ScenarioSuccess { in scenario = wfRouxEnYLap.scLapNominal; }
|
|
391
|
+
calc costOur : ProcedureCost { in workflow = wfRouxEnYOur; }
|
|
392
|
+
calc durationOur : ProcedureDuration { in workflow = wfRouxEnYOur; }
|
|
393
|
+
calc successOur : ScenarioSuccess { in scenario = wfRouxEnYOur.scOurNominal; }
|
|
394
|
+
calc costCmp : ProcedureCost { in workflow = wfRouxEnYCmp; }
|
|
395
|
+
calc durationCmp : ProcedureDuration { in workflow = wfRouxEnYCmp; }
|
|
396
|
+
calc successCmp : ScenarioSuccess { in scenario = wfRouxEnYCmp.scCmpNominal; }
|
|
397
|
+
|
|
398
|
+
// ── The comparison ───────────────────────────────────────────
|
|
399
|
+
// The alternatives are the three platforms' workflows; the evaluation is the expected cost of a
|
|
400
|
+
// procedure, which the roll-up derives from the activities' times, the resources' rates and the
|
|
401
|
+
// alternate scenarios' likelihoods. The lowest wins.
|
|
402
|
+
analysis bypassTradeStudy : TradeStudy {
|
|
403
|
+
subject : OperationalWorkflow = (wfRouxEnYLap, wfRouxEnYOur, wfRouxEnYCmp);
|
|
404
|
+
objective : MinimizeObjective;
|
|
405
|
+
|
|
406
|
+
calc :>> evaluationFunction {
|
|
407
|
+
in part aWorkflow :>> alternative : OperationalWorkflow;
|
|
408
|
+
|
|
409
|
+
calc procedureCost : ProcedureCost { in workflow = aWorkflow; return cost; }
|
|
410
|
+
|
|
411
|
+
return :>> result : Real = procedureCost.cost.num;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
return part :>> selectedAlternative : OperationalWorkflow;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// operational viewpoint.
|
|
2
|
+
//
|
|
3
|
+
// This project does not define its own viewpoint here; it binds the reusable
|
|
4
|
+
// MEMO viewpoint that frames these concerns. The views it governs sit beneath
|
|
5
|
+
// `views/`.
|
|
6
|
+
package memo_examples_gastric_bypass_variants_viewpoints_operational {
|
|
7
|
+
public import memo_viewpoints_operational_operational_viewpoint::*;
|
|
8
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// The five flow views of the gastric-bypass example, in one package: the clinical workflow, the
|
|
2
|
+
// system workflow of each platform, and our robot's functional workflow. Each shows its nominal
|
|
3
|
+
// scenario; the alternate scenario is one step and has no flow to draw.
|
|
4
|
+
package memo_examples_gastric_bypass_variants_viewpoints_operational_views {
|
|
5
|
+
private import ScalarValues::*;
|
|
6
|
+
|
|
7
|
+
private import memo_viewpoints_definitions::*;
|
|
8
|
+
private import memo_viewpoints_operational_operational_viewpoint::*;
|
|
9
|
+
private import memo_core_enumerations::*;
|
|
10
|
+
|
|
11
|
+
private import memo_core_common::*;
|
|
12
|
+
private import memo_core_common::MemoIdentity;
|
|
13
|
+
view bypassFlowClinical : MemoDiagramView {
|
|
14
|
+
@MemoIdentity { :>> label = "Clinical workflow: Roux-en-Y gastric bypass"; }
|
|
15
|
+
expose memo_examples_gastric_bypass_variants::wfRouxEnY::scNominal::**;
|
|
16
|
+
attribute depth = 2;
|
|
17
|
+
attribute :>> viewKind = DiagramViewKind::actionflow;
|
|
18
|
+
attribute :>> diagramType = "ofd";
|
|
19
|
+
ref :>> viewpointDefinition = operationalViewpoint;
|
|
20
|
+
}
|
|
21
|
+
view bypassFlowLaparoscopic : MemoDiagramView {
|
|
22
|
+
@MemoIdentity { :>> label = "System workflow: laparoscopic"; }
|
|
23
|
+
expose memo_examples_gastric_bypass_variants::wfRouxEnYLap::scLapNominal::**;
|
|
24
|
+
attribute depth = 2;
|
|
25
|
+
attribute :>> viewKind = DiagramViewKind::actionflow;
|
|
26
|
+
attribute :>> diagramType = "ofd";
|
|
27
|
+
ref :>> viewpointDefinition = operationalViewpoint;
|
|
28
|
+
}
|
|
29
|
+
view bypassFlowOurRobot : MemoDiagramView {
|
|
30
|
+
@MemoIdentity { :>> label = "System workflow: our robot"; }
|
|
31
|
+
expose memo_examples_gastric_bypass_variants::wfRouxEnYOur::scOurNominal::**;
|
|
32
|
+
attribute depth = 2;
|
|
33
|
+
attribute :>> viewKind = DiagramViewKind::actionflow;
|
|
34
|
+
attribute :>> diagramType = "ofd";
|
|
35
|
+
ref :>> viewpointDefinition = operationalViewpoint;
|
|
36
|
+
}
|
|
37
|
+
view bypassFlowCompetitorRobot : MemoDiagramView {
|
|
38
|
+
@MemoIdentity { :>> label = "System workflow: competitor robot"; }
|
|
39
|
+
expose memo_examples_gastric_bypass_variants::wfRouxEnYCmp::scCmpNominal::**;
|
|
40
|
+
attribute depth = 2;
|
|
41
|
+
attribute :>> viewKind = DiagramViewKind::actionflow;
|
|
42
|
+
attribute :>> diagramType = "ofd";
|
|
43
|
+
ref :>> viewpointDefinition = operationalViewpoint;
|
|
44
|
+
}
|
|
45
|
+
view bypassFlowFunctional : MemoDiagramView {
|
|
46
|
+
@MemoIdentity { :>> label = "Functional workflow: our robot"; }
|
|
47
|
+
expose memo_examples_gastric_bypass_variants::fcOurRobotProcedure::**;
|
|
48
|
+
attribute depth = 2;
|
|
49
|
+
attribute :>> viewKind = DiagramViewKind::actionflow;
|
|
50
|
+
attribute :>> diagramType = "ofd";
|
|
51
|
+
ref :>> viewpointDefinition = operationalViewpoint;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Gastric Bypass Variants — model identity and method binding.
|
|
2
|
+
package memo_examples_gastric_bypass_variants_project {
|
|
3
|
+
private import ScalarValues::*;
|
|
4
|
+
|
|
5
|
+
private import memo_core_enumerations::*;
|
|
6
|
+
private import memo_methodology_core::*;
|
|
7
|
+
private import memo_methodology_profiles::*;
|
|
8
|
+
|
|
9
|
+
private import memo_examples_gastric_bypass_variants::*;
|
|
10
|
+
private import memo_examples_gastric_bypass_variants_viewpoints_operational_views::*;
|
|
11
|
+
|
|
12
|
+
// The clinical extension brings the anatomy extension with it. The anatomy the model uses is
|
|
13
|
+
// generated from FMA into a library of its own (`memo anatomy generate`), from the selector below.
|
|
14
|
+
public import memo_extension_clinical::*;
|
|
15
|
+
public import gastric_bypass_variants_anatomy_fma::*;
|
|
16
|
+
part upperGi :> upperGastrointestinal;
|
|
17
|
+
|
|
18
|
+
private import memo_core_common::*;
|
|
19
|
+
private import memo_core_common::MemoIdentity;
|
|
20
|
+
part projectBinding : ModelMethodBinding {
|
|
21
|
+
@MemoIdentity { :>> providedId = "PMB-GASTRIC-BYPASS-001"; :>> label = "GastricBypassVariantsModelMethodBinding"; }
|
|
22
|
+
attribute :>> modelName = "Gastric Bypass Variants";
|
|
23
|
+
ref :>> selectedMethodology = mdDefaultDefinition;
|
|
24
|
+
attribute :>> scopeMode = ScopeModeKind::explicit;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -11,6 +11,7 @@ package memo_examples_gpca_pump_gpca_operational {
|
|
|
11
11
|
private import memo_core_enumerations::*;
|
|
12
12
|
private import memo_examples_gpca_pump_gpca_context::*;
|
|
13
13
|
private import memo_examples_gpca_pump_gpca_system::*;
|
|
14
|
+
private import memo_examples_gpca_pump_gpca_behavior_subsystems::*;
|
|
14
15
|
private import memo_core_relationships::*;
|
|
15
16
|
|
|
16
17
|
private import memo_core_common::*;
|
|
@@ -109,6 +110,11 @@ package memo_examples_gpca_pump_gpca_operational {
|
|
|
109
110
|
attribute :>> preCondition = "therapy active";
|
|
110
111
|
attribute :>> postCondition = "bolus delivered, or request ignored when lockout or max-dose limits apply";
|
|
111
112
|
attribute :>> criticality = CriticalityKind::catastrophic;
|
|
113
|
+
perform fnAcquireSensors;
|
|
114
|
+
perform fnEnforceLimits;
|
|
115
|
+
perform fnManageInfusion;
|
|
116
|
+
perform fnCommandPump;
|
|
117
|
+
perform fnLogEvents;
|
|
112
118
|
}
|
|
113
119
|
action oaRespondAlarm : OperativeAction {
|
|
114
120
|
@MemoIdentity { :>> providedId = "OA-006"; :>> label = "RespondToAlarm"; }
|
|
@@ -116,6 +122,10 @@ package memo_examples_gpca_pump_gpca_operational {
|
|
|
116
122
|
attribute :>> preCondition = "alarm condition raised by the pump";
|
|
117
123
|
attribute :>> postCondition = "cause resolved and therapy resumed, or therapy stopped";
|
|
118
124
|
attribute :>> criticality = CriticalityKind::catastrophic;
|
|
125
|
+
perform fnAcquireSensors;
|
|
126
|
+
perform fnMonitorAlarm;
|
|
127
|
+
perform fnManageInfusion;
|
|
128
|
+
perform fnAnnunciate;
|
|
119
129
|
}
|
|
120
130
|
action oaReviewLog : OperativeAction {
|
|
121
131
|
@MemoIdentity { :>> providedId = "OA-007"; :>> label = "ReviewEventLog"; }
|
|
@@ -149,28 +159,16 @@ package memo_examples_gpca_pump_gpca_operational {
|
|
|
149
159
|
actor pharmacistActor = actorPharmacist;
|
|
150
160
|
}
|
|
151
161
|
|
|
152
|
-
|
|
162
|
+
part wfPrepareAndStartTherapy : OperationalWorkflow {
|
|
153
163
|
@MemoIdentity { :>> label = "PrepareAndStartTherapy"; }
|
|
154
|
-
attribute :>> workflowState = WorkflowStateKind::toBe;
|
|
155
164
|
attribute :>> entryCondition = "A valid prescription and prepared reservoir are available.";
|
|
156
165
|
attribute :>> completionCondition = "Therapy is started with confirmed prescription limits.";
|
|
157
166
|
|
|
158
167
|
}
|
|
159
|
-
|
|
168
|
+
part wfManageActiveTherapy : OperationalWorkflow {
|
|
160
169
|
@MemoIdentity { :>> label = "ManageActiveTherapy"; }
|
|
161
|
-
attribute :>> workflowState = WorkflowStateKind::toBe;
|
|
162
170
|
attribute :>> entryCondition = "Basal therapy is active.";
|
|
163
171
|
attribute :>> completionCondition = "A bolus is handled or active therapy continues safely.";
|
|
164
|
-
|
|
165
|
-
// Refinement targets a nested step by its local name — the shorthand's
|
|
166
|
-
// `to` end does not accept a qualified path — so this is written
|
|
167
|
-
// inside wsRequestBolus's own owning scope rather than at package
|
|
168
|
-
// level.
|
|
169
|
-
#refinement dependency fcPatientBolus::fcsBolusSense to oaRequestBolus;
|
|
170
|
-
#refinement dependency fcPatientBolus::fcsBolusValidate to oaRequestBolus;
|
|
171
|
-
#refinement dependency fcPatientBolus::fcsBolusCommand to oaRequestBolus;
|
|
172
|
-
#refinement dependency fcPatientBolus::fcsBolusActuate to oaRequestBolus;
|
|
173
|
-
#refinement dependency fcPatientBolus::fcsBolusLog to oaRequestBolus;
|
|
174
172
|
action osNominalTherapy : OperativeScenario {
|
|
175
173
|
@MemoIdentity { :>> providedId = "OS-001"; :>> label = "NominalTherapySession"; }
|
|
176
174
|
attribute :>> preCondition = "prescription issued, reservoir loaded";
|
|
@@ -199,16 +197,11 @@ package memo_examples_gpca_pump_gpca_operational {
|
|
|
199
197
|
}
|
|
200
198
|
}
|
|
201
199
|
}
|
|
202
|
-
|
|
200
|
+
part wfRespondToTherapyAlarm : OperationalWorkflow {
|
|
203
201
|
@MemoIdentity { :>> label = "RespondToTherapyAlarm"; }
|
|
204
|
-
attribute :>> workflowState = WorkflowStateKind::toBe;
|
|
205
202
|
attribute :>> entryCondition = "A therapy alarm or degraded condition is detected.";
|
|
206
203
|
attribute :>> completionCondition = "The pump is safe and the clinician has resolved or escalated the condition.";
|
|
207
204
|
|
|
208
|
-
#refinement dependency fcAlarmStop::fcsAlarmSense to oaRespondAlarm;
|
|
209
|
-
#refinement dependency fcAlarmStop::fcsAlarmEvaluate to oaRespondAlarm;
|
|
210
|
-
#refinement dependency fcAlarmStop::fcsAlarmStopInfusion to oaRespondAlarm;
|
|
211
|
-
#refinement dependency fcAlarmStop::fcsAlarmAnnunciate to oaRespondAlarm;
|
|
212
205
|
action osOcclusionAlarm : OperativeScenario {
|
|
213
206
|
attribute :>> scenarioKind = ScenarioKind::alternate;
|
|
214
207
|
@MemoIdentity { :>> providedId = "OS-003"; :>> label = "OcclusionDetectedDuringInfusion"; }
|
|
@@ -35,9 +35,8 @@ package memo_examples_reusable_instrument {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
// Reprocessing workflow: exists independently of any single instrument.
|
|
38
|
-
|
|
38
|
+
part wfReprocess : OperationalWorkflow {
|
|
39
39
|
@MemoIdentity { :>> providedId = "RI-WF-001"; :>> label = "InstrumentReprocessingWorkflow"; }
|
|
40
|
-
attribute :>> workflowState = WorkflowStateKind::asIs;
|
|
41
40
|
attribute :>> entryCondition = "used instrument received in decontamination";
|
|
42
41
|
attribute :>> completionCondition = "sterile pack released to storage";
|
|
43
42
|
action scNominalCycle : OperativeScenario {
|
|
@@ -15,9 +15,8 @@ package robot_cell_family_sos_chains {
|
|
|
15
15
|
private import robot_cell_family_systems_manipulation_manipulation_system::*;
|
|
16
16
|
private import robot_cell_family_systems_perception_perception_system::*;
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
part wfMapGuidedPick : OperationalWorkflow {
|
|
19
19
|
@MemoIdentity { :>> providedId = "RCF-FC-001"; :>> label = "Map-Guided Pick"; }
|
|
20
|
-
attribute :>> workflowState = WorkflowStateKind::toBe;
|
|
21
20
|
doc /* Point clouds acquired by the perception system build the occupancy map; each grasp by the manipulator is tagged on that map. */
|
|
22
21
|
action scMapGuidedPick : OperativeScenario {
|
|
23
22
|
action stepAcquire :> fnAcquirePointClouds;
|
|
@@ -91,9 +91,8 @@ package memo_examples_surgical_closure_workflow {
|
|
|
91
91
|
action actExtractSpecimenAndClose : OperativeAction { @MemoIdentity { :>> providedId = "LSG-ACT-006"; :>> label = "ExtractSpecimenAndClosePorts"; } }
|
|
92
92
|
action actHandover : OperativeAction { @MemoIdentity { :>> providedId = "LSG-ACT-007"; :>> label = "CompletePostoperativeHandover"; } }
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
part wfSleeveGastrectomy : ClinicalProcedureWorkflow {
|
|
95
95
|
@MemoIdentity { :>> providedId = "LSG-WF-001"; :>> label = "LaparoscopicSleeveGastrectomyWorkflow"; }
|
|
96
|
-
attribute :>> workflowState = WorkflowStateKind::toBe;
|
|
97
96
|
attribute :>> entryCondition = "patient prepared; time-out ready";
|
|
98
97
|
attribute :>> completionCondition = "staple line assessed; postoperative handover complete";
|
|
99
98
|
attribute :>> clinicalObjective = "create a gastric sleeve after controlled mobilisation and staple-line assessment";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
# (`type`, `extends`, `usage`, `ontologies`, `methodology`, `modules`) were
|
|
8
8
|
# removed at the native semantic flip and are now rejected if present.
|
|
9
9
|
name: '@memoarchitect/extension-aadl'
|
|
10
|
-
version: 0.16.
|
|
10
|
+
version: 0.16.5
|
|
11
11
|
description: AADL (SAE AS5506) correspondence profile and runtime component families
|
|
12
12
|
license: MIT
|
|
13
13
|
tags:
|