@memoarchitect/ontology 0.18.0 → 0.20.0

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.
Files changed (32) hide show
  1. package/README.md +1 -1
  2. package/examples/gpca-pump/memo.identity.yaml +74 -0
  3. package/examples/gpca-pump/model/catalog/gpca_behavior_subsystems.sysml +1 -3
  4. package/examples/gpca-pump/model/catalog/gpca_interfaces.sysml +53 -46
  5. package/examples/surgical-closure-workflow/memo.identity.yaml +1 -0
  6. package/examples/ui-screen-regions/memo.identity.yaml +6 -0
  7. package/extensions/aadl/memo.package.yaml +1 -1
  8. package/extensions/anatomy/memo.package.yaml +1 -1
  9. package/extensions/clinical/memo.package.yaml +1 -1
  10. package/extensions/cloud/memo.package.yaml +1 -1
  11. package/extensions/container/memo.package.yaml +1 -1
  12. package/extensions/messaging/memo.package.yaml +1 -1
  13. package/extensions/ros/memo.package.yaml +1 -1
  14. package/methodologies/default/memo.package.yaml +1 -1
  15. package/methodologies/gpca/memo.package.yaml +1 -1
  16. package/ontology/memo.package.yaml +1 -1
  17. package/package.json +1 -1
  18. package/profile/memo.package.yaml +1 -1
  19. package/src/architecture/operational/context/actors/memo_actors.sysml +4 -3
  20. package/src/architecture/realization/physical/memo_physical_architecture.sysml +4 -6
  21. package/src/assurance/cybersecurity/memo_cybersecurity.sysml +6 -2
  22. package/src/core/common/memo_common.sysml +2 -3
  23. package/src/core/enumerations/memo_enumerations.sysml +2 -0
  24. package/src/methodology/profiles/memo_profiles.sysml +2 -2
  25. package/src/rules/ontology/ontology_invariants.sysml +19 -0
  26. package/src/viewpoints/definitions/memo_view_layout.sysml +1 -1
  27. package/stage1/opensysml-7532bd3e6649a9d675284d68.json.gz +0 -0
  28. package/stage1/syside-e7b92839653fc2501e89d57a.ids.gz +0 -0
  29. package/stage1/syside-e7b92839653fc2501e89d57a.json.gz +0 -0
  30. package/stage1/opensysml-ddad9e2794141c08532910cf.json.gz +0 -0
  31. package/stage1/syside-8176a62528c701f2f2e0fc7f.ids.gz +0 -0
  32. package/stage1/syside-8176a62528c701f2f2e0fc7f.json.gz +0 -0
package/README.md CHANGED
@@ -25,7 +25,7 @@ pin an exact release; the package has no repository or runtime dependency on Mem
25
25
  Tools or Memo Architect.
26
26
 
27
27
  ```bash
28
- pnpm add @memoarchitect/ontology@0.18.0
28
+ pnpm add @memoarchitect/ontology@0.20.0
29
29
  ```
30
30
 
31
31
  > **Pre-1.0 notice:** ontology names, relationships, and package layout may
@@ -1197,6 +1197,54 @@ elements:
1197
1197
  "memo_examples_gpca_pump_gpca_formal_behavior::topLevelContract":
1198
1198
  shortId: "CNT-4"
1199
1199
  uuid: "c9422b35-3d90-557d-ba13-b4990f83ab00"
1200
+ "memo_examples_gpca_pump_gpca_interfaces::BolusFrequencySetting":
1201
+ shortId: "FRQ-1"
1202
+ uuid: "9c45d630-a383-51bc-b145-e28c7d0427f8"
1203
+ "memo_examples_gpca_pump_gpca_interfaces::BolusFrequencySetting::constraint1":
1204
+ shortId: "ASS-3"
1205
+ uuid: "5b212252-b849-575f-b8e5-bf557836f795"
1206
+ "memo_examples_gpca_pump_gpca_interfaces::DrugConcentrationSetting":
1207
+ shortId: "MSS-1"
1208
+ uuid: "dd082bac-50ef-5f6c-b373-41557ccb5613"
1209
+ "memo_examples_gpca_pump_gpca_interfaces::DrugConcentrationSetting::constraint1":
1210
+ shortId: "ASS-4"
1211
+ uuid: "cbc196e8-a6d7-5657-98ab-065d1a844b30"
1212
+ "memo_examples_gpca_pump_gpca_interfaces::InfusionDurationSetting":
1213
+ shortId: "DRT-1"
1214
+ uuid: "73b2ae25-1747-5585-84a0-1471bcaf72ad"
1215
+ "memo_examples_gpca_pump_gpca_interfaces::InfusionDurationSetting::constraint1":
1216
+ shortId: "ASS-5"
1217
+ uuid: "fd96be2e-b70f-57be-bfc6-14df66f47ff6"
1218
+ "memo_examples_gpca_pump_gpca_interfaces::InfusionRateSetting":
1219
+ shortId: "VLM-1"
1220
+ uuid: "bca81b5f-8d0a-538e-8ea5-fb1ad48b58d2"
1221
+ "memo_examples_gpca_pump_gpca_interfaces::InfusionRateSetting::constraint1":
1222
+ shortId: "ASS-6"
1223
+ uuid: "284f6120-cf94-5323-a3c4-234eb17b1c1b"
1224
+ "memo_examples_gpca_pump_gpca_interfaces::InfusionVolumeSetting":
1225
+ shortId: "VLM-2"
1226
+ uuid: "bbfc1b9b-0917-5119-b07d-1a4fc168f05c"
1227
+ "memo_examples_gpca_pump_gpca_interfaces::InfusionVolumeSetting::constraint1":
1228
+ shortId: "ASS-7"
1229
+ uuid: "fb067d90-bbea-5f34-bd8e-2ce62799e79c"
1230
+ "memo_examples_gpca_pump_gpca_interfaces::KvoRateSetting":
1231
+ shortId: "VLM-3"
1232
+ uuid: "cae17baf-315a-5a3d-8e72-ace0393c5876"
1233
+ "memo_examples_gpca_pump_gpca_interfaces::KvoRateSetting::constraint1":
1234
+ shortId: "ASS-8"
1235
+ uuid: "ed73c8dd-2bf2-5d33-8935-1f19db345c4f"
1236
+ "memo_examples_gpca_pump_gpca_interfaces::MonitoredBatteryVoltage":
1237
+ shortId: "ELC-1"
1238
+ uuid: "931cad53-86ba-5da6-8d14-fe39e810f7a5"
1239
+ "memo_examples_gpca_pump_gpca_interfaces::MonitoredBatteryVoltage::constraint1":
1240
+ shortId: "ASS-1"
1241
+ uuid: "31e7adfb-0088-57d2-92d6-933fc337c195"
1242
+ "memo_examples_gpca_pump_gpca_interfaces::OcclusionLinePressure":
1243
+ shortId: "PRS-1"
1244
+ uuid: "01e73d4a-6d64-5788-8515-e39410e300da"
1245
+ "memo_examples_gpca_pump_gpca_interfaces::OcclusionLinePressure::constraint1":
1246
+ shortId: "ASS-2"
1247
+ uuid: "501e2141-6786-507b-a164-fb50f952187c"
1200
1248
  "memo_examples_gpca_pump_gpca_interfaces::SensorDataInterface":
1201
1249
  shortId: "DTX-1"
1202
1250
  uuid: "b5216019-53f8-5eb3-aba0-f878fa323e7f"
@@ -2670,78 +2718,104 @@ elements:
2670
2718
  "memo_examples_gpca_pump_viewpoints_context_views_context_system_context_view::gpcaSystemContextView":
2671
2719
  shortId: "MMX-26"
2672
2720
  uuid: "0579c1c8-087a-5f22-b0d8-c7ec871445a6"
2721
+ viewShortId: "GEN-1"
2673
2722
  "memo_examples_gpca_pump_viewpoints_cybersecurity_views_cybersecurity_cybersecurity_view::gpcaCybersecurityView":
2674
2723
  shortId: "MMX-14"
2675
2724
  uuid: "7fdfc04f-0a81-5647-b0e1-4b7c20f656ba"
2725
+ viewShortId: "GEN-2"
2676
2726
  "memo_examples_gpca_pump_viewpoints_cybersecurity_views_document_cyber_assessment_view::cyberAssessmentView":
2677
2727
  shortId: "MMX-2"
2678
2728
  uuid: "a0429860-0f9f-55f7-ada5-5e8811430635"
2729
+ viewShortId: "BRW-3"
2679
2730
  "memo_examples_gpca_pump_viewpoints_cybersecurity_views_document_threat_model_view::threatModelView":
2680
2731
  shortId: "MMX-35"
2681
2732
  uuid: "92dd9a97-c50f-5e84-9476-8f4220ac7cc9"
2733
+ viewShortId: "BRW-2"
2682
2734
  "memo_examples_gpca_pump_viewpoints_functional_views_functional_function_allocation_view::gpcaFunctionAllocationView":
2683
2735
  shortId: "MMX-17"
2684
2736
  uuid: "79487700-b233-5e38-8ece-f7c21a81d0ad"
2737
+ viewShortId: "GRID-1"
2685
2738
  "memo_examples_gpca_pump_viewpoints_functional_views_functional_function_browser_view::gpcaFunctionBrowserView":
2686
2739
  shortId: "MMX-18"
2687
2740
  uuid: "786ea411-ea60-5971-89ec-1935339faf9d"
2741
+ viewShortId: "BRW-10"
2688
2742
  "memo_examples_gpca_pump_viewpoints_logical_views_behavior_action_flow_view::gpcaActionFlowView":
2689
2743
  shortId: "MMX-13"
2690
2744
  uuid: "444e8254-44ca-5790-a979-959729bfc04f"
2745
+ viewShortId: "ACT-1"
2691
2746
  "memo_examples_gpca_pump_viewpoints_logical_views_logical_device_interconnect_view::gpcaDeviceInterconnectView":
2692
2747
  shortId: "MMX-15"
2693
2748
  uuid: "303f4e4b-a7ed-5980-b7b2-426dc69bdc42"
2749
+ viewShortId: "INT-1"
2694
2750
  "memo_examples_gpca_pump_viewpoints_logical_views_logical_logical_architecture_view::gpcaLogicalArchitectureView":
2695
2751
  shortId: "MMX-19"
2696
2752
  uuid: "561e59ed-8136-55f7-9547-722519c9f42d"
2753
+ viewShortId: "GEN-3"
2697
2754
  "memo_examples_gpca_pump_viewpoints_logical_views_logical_mode_state_view::gpcaModeStateView":
2698
2755
  shortId: "MMX-20"
2699
2756
  uuid: "e7d0b537-f94f-5540-aeed-690715d68f72"
2757
+ viewShortId: "STM-1"
2700
2758
  "memo_examples_gpca_pump_viewpoints_logical_views_logical_system_decomposition_view::gpcaSystemDecompositionView":
2701
2759
  shortId: "MMX-27"
2702
2760
  uuid: "d5ae1f48-e0ac-5530-9e4c-bf6e94a971fd"
2761
+ viewShortId: "GEN-4"
2703
2762
  "memo_examples_gpca_pump_viewpoints_operational_views_operational_scenario_sequence_view::gpcaScenarioSequenceView":
2704
2763
  shortId: "MMX-24"
2705
2764
  uuid: "82bb2468-7e47-5f36-88ec-37cdd634c035"
2765
+ viewShortId: "SEQ-1"
2706
2766
  "memo_examples_gpca_pump_viewpoints_operational_views_operational_use_case_view::gpcaUseCaseView":
2707
2767
  shortId: "MMX-28"
2708
2768
  uuid: "04e79319-5964-54f9-a688-1acdd9caf3e1"
2769
+ viewShortId: "GEN-5"
2709
2770
  "memo_examples_gpca_pump_viewpoints_physical_views_physical_physical_bom_view::gpcaPhysicalBomView":
2710
2771
  shortId: "MMX-21"
2711
2772
  uuid: "e20468e1-2832-572e-9f94-be5ce2c8b097"
2773
+ viewShortId: "GRID-2"
2712
2774
  "memo_examples_gpca_pump_viewpoints_requirements_views_requirements_requirements_trace_view::gpcaRequirementsTraceView":
2713
2775
  shortId: "MMX-22"
2714
2776
  uuid: "0a9753e7-1063-53a7-95f1-f61c1eff6035"
2777
+ viewShortId: "GRID-3"
2715
2778
  "memo_examples_gpca_pump_viewpoints_risk_views_document_hazard_analysis_view::hazardAnalysisView":
2716
2779
  shortId: "MMX-30"
2717
2780
  uuid: "6b6aae24-c1d7-5e9a-b161-c5e5bd9541e7"
2781
+ viewShortId: "BRW-9"
2718
2782
  "memo_examples_gpca_pump_viewpoints_risk_views_document_rmf_view::rmfView":
2719
2783
  shortId: "MMX-31"
2720
2784
  uuid: "83bd97a4-3bc1-5faf-b345-096728c5826b"
2785
+ viewShortId: "BRW-1"
2721
2786
  "memo_examples_gpca_pump_viewpoints_risk_views_risk_fmea_view::gpcaFmeaView":
2722
2787
  shortId: "MMX-16"
2723
2788
  uuid: "d813ce4f-d535-58fd-a26a-6e314e355cf4"
2789
+ viewShortId: "GRID-4"
2724
2790
  "memo_examples_gpca_pump_viewpoints_risk_views_risk_risk_chain_view::gpcaRiskChainView":
2725
2791
  shortId: "MMX-23"
2726
2792
  uuid: "8679f0a2-4240-550c-904d-ccfc08436b7f"
2793
+ viewShortId: "GEN-6"
2727
2794
  "memo_examples_gpca_pump_viewpoints_shared_views_document_architecture_description_view::architectureDescriptionView":
2728
2795
  shortId: "MMX-1"
2729
2796
  uuid: "712fe494-498e-5722-bf7c-e3297e11f262"
2797
+ viewShortId: "BRW-5"
2730
2798
  "memo_examples_gpca_pump_viewpoints_shared_views_document_dhf_index_view::dhfIndexView":
2731
2799
  shortId: "MMX-3"
2732
2800
  uuid: "81d14c3d-f08e-5268-9813-6c5bc7ff8b8d"
2801
+ viewShortId: "BRW-7"
2733
2802
  "memo_examples_gpca_pump_viewpoints_software_views_document_sdd_view::sddView":
2734
2803
  shortId: "MMX-32"
2735
2804
  uuid: "6bb4a2ae-d2ee-5db5-9176-389d76a99bc6"
2805
+ viewShortId: "BRW-4"
2736
2806
  "memo_examples_gpca_pump_viewpoints_software_views_software_software_architecture_view::gpcaSoftwareArchitectureView":
2737
2807
  shortId: "MMX-25"
2738
2808
  uuid: "6d602071-43b5-5e39-94ed-7f618201e927"
2809
+ viewShortId: "INT-2"
2739
2810
  "memo_examples_gpca_pump_viewpoints_usability_views_document_usability_view::usabilityView":
2740
2811
  shortId: "MMX-36"
2741
2812
  uuid: "160d12f2-c215-549a-960c-7c8c295846b3"
2813
+ viewShortId: "BRW-8"
2742
2814
  "memo_examples_gpca_pump_viewpoints_verification_views_document_vv_view::vvView":
2743
2815
  shortId: "MMX-37"
2744
2816
  uuid: "39d62adb-e0fa-5633-81e7-8ae037784272"
2817
+ viewShortId: "BRW-6"
2745
2818
  "memo_examples_gpca_pump_viewpoints_verification_views_verification_verification_coverage_view::gpcaVerificationCoverageView":
2746
2819
  shortId: "MMX-29"
2747
2820
  uuid: "eb2826ae-9070-5718-a855-da48a06e308f"
2821
+ viewShortId: "GRID-5"
@@ -184,10 +184,8 @@ package memo_examples_gpca_pump_gpca_behavior_subsystems {
184
184
  item ddPrescription : InterfaceItem {
185
185
  attribute :>> itemKind = InterfaceItemKind::data;
186
186
  @MemoIdentity { :>> providedId = "DD-001"; :>> label = "Prescription record"; }
187
- attribute :>> semantics = "patient id, drug name, concentration, VTBI total, duration total, basal flow rate, square bolus rate/duration/interval, patient bolus rate/duration/lockout period, max boluses per hour (DD-005..DD-017)";
187
+ attribute :>> semantics = "patient id, drug name, concentration, VTBI total, duration total, basal flow rate, square bolus rate/duration/interval, patient bolus rate/duration/lockout period, max boluses per hour (DD-005..DD-017) Each value is bounded by the pharmacy database's safe values, lo_hd to hi_hd.";
188
188
  attribute :>> unit = "ml/hr, ml, minutes, mg/ml, per hour";
189
- attribute :>> minValue = "pharmacy-database safe-value lower bounds (lo_hd)";
190
- attribute :>> maxValue = "pharmacy-database safe-value upper bounds (hi_hd)";
191
189
  attribute :>> encoding = "checksummed persistent record";
192
190
  attribute :>> timestampRequired = true;
193
191
  attribute :>> integrityClass = "class C";
@@ -82,6 +82,33 @@ package memo_examples_gpca_pump_gpca_interfaces {
82
82
  attribute :>> nominalVoltageV = 3.3 [V];
83
83
  attribute :>> nominalCurrentA = 0.001 [A];
84
84
  }
85
+ attribute def OcclusionLinePressure :> PressureValue {
86
+ assert constraint { self >= 0 [Pa] and self <= 206843 [Pa] }
87
+ }
88
+ attribute def MonitoredBatteryVoltage :> ElectricPotentialDifferenceValue {
89
+ assert constraint { self >= 9.0 [V] and self <= 12.6 [V] }
90
+ }
91
+ // The ranges the data dictionary gives programmed values, each on the quantity it limits.
92
+ attribute def DrugConcentrationSetting :> MassConcentrationValue {
93
+ // kg/m^3 is numerically the mg/ml a prescription states.
94
+ assert constraint { self >= 0 [kg/m^3] and self <= 999 [kg/m^3] }
95
+ }
96
+ attribute def InfusionRateSetting :> VolumeFlowRateValue {
97
+ assert constraint { self >= 0 [mL/h] and self <= 999 [mL/h] }
98
+ }
99
+ attribute def KvoRateSetting :> VolumeFlowRateValue {
100
+ assert constraint { self >= 0 [mL/h] and self <= 5 [mL/h] }
101
+ }
102
+ attribute def InfusionVolumeSetting :> VolumeValue {
103
+ assert constraint { self >= 0 [mL] and self <= 999 [mL] }
104
+ }
105
+ attribute def InfusionDurationSetting :> DurationValue {
106
+ assert constraint { self >= 0 [min] and self <= 999 [min] }
107
+ }
108
+ attribute def BolusFrequencySetting :> FrequencyValue {
109
+ assert constraint { self >= 0 [1/h] and self <= 999 [1/h] }
110
+ }
111
+
85
112
  interface occlusionAnalogLine : PhysicalInterface connect occlusionSensor.portOcclusionOut to portSensorHarness {
86
113
  @MemoIdentity { :>> providedId = "PI-004"; :>> label = "Occlusion pressure analog line"; }
87
114
  attribute :>> interfaceKind = InterfaceKind::analogSignal;
@@ -91,7 +118,8 @@ package memo_examples_gpca_pump_gpca_interfaces {
91
118
  attribute :>> electricalStandard = "ratiometric 0.5-4.5V";
92
119
  attribute :>> nominalVoltageV = 5 [V];
93
120
  attribute :>> nominalCurrentA = 0.01 [A];
94
- attribute :>> signalRange = "0 to 30 psi line pressure";
121
+ // 0 to 30 psi line pressure.
122
+ attribute linePressure : OcclusionLinePressure;
95
123
  }
96
124
  abstract interface batteryMonitorLine : PhysicalInterface {
97
125
  @MemoIdentity { :>> providedId = "PI-005"; :>> label = "Battery voltage monitor line"; }
@@ -102,7 +130,8 @@ package memo_examples_gpca_pump_gpca_interfaces {
102
130
  attribute :>> electricalStandard = "divided battery rail to ADC";
103
131
  attribute :>> nominalVoltageV = 12 [V];
104
132
  attribute :>> nominalCurrentA = 0.001 [A];
105
- attribute :>> signalRange = "9.0V (depleted) to 12.6V (full)";
133
+ // Depleted at the low end, full at the high end.
134
+ attribute batteryVoltage : MonitoredBatteryVoltage;
106
135
  }
107
136
 
108
137
  // ── System-level interfaces (CriSys Ch.3, I 1-I 11) ─────────
@@ -177,8 +206,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
177
206
  doc /* Concentration of the drug in the solution prescribed for infusion. */
178
207
  attribute :>> semantics = "Must be between DrugConcentration_lo_hd and DrugConcentration_hi_hd for DrugName_prog in the hospital database.";
179
208
  attribute :>> unit = "mg/ml";
180
- attribute :>> minValue = "0";
181
- attribute :>> maxValue = "999";
209
+ attribute quantity : DrugConcentrationSetting;
182
210
  attribute :>> encoding = "Positive Integer";
183
211
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.1 Prescription Data"; }
184
212
  }
@@ -188,8 +216,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
188
216
  doc /* Maximum total volume of the drug solution that can be infused for the prescription. */
189
217
  attribute :>> semantics = "Must be between VTBI_lo_hd and VTBI_hi_hd for DrugName_prog in the hospital database.";
190
218
  attribute :>> unit = "ml/hr";
191
- attribute :>> minValue = "0";
192
- attribute :>> maxValue = "999";
219
+ attribute quantity : InfusionRateSetting;
193
220
  attribute :>> encoding = "Positive Integer";
194
221
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.1 Prescription Data"; }
195
222
  }
@@ -199,8 +226,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
199
226
  doc /* Prescribed total duration of drug infusion across all delivery modes (BASAL, SQUARE BOLUS, PATIENT BOLUS). */
200
227
  attribute :>> semantics = "Cannot be empty; should be >= 0.";
201
228
  attribute :>> unit = "minutes";
202
- attribute :>> minValue = "0";
203
- attribute :>> maxValue = "999";
229
+ attribute quantity : InfusionDurationSetting;
204
230
  attribute :>> encoding = "Time";
205
231
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.1 Prescription Data"; }
206
232
  }
@@ -210,8 +236,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
210
236
  doc /* Prescribed rate of flow of drug during BASAL delivery mode; default FlowRate_lo_hd. */
211
237
  attribute :>> semantics = "Between FlowRate_lo_hd and FlowRate_hi_hd for DrugName_prog; should be < VTBI_total_prog / Duration_total_prog.";
212
238
  attribute :>> unit = "ml/hr";
213
- attribute :>> minValue = "0";
214
- attribute :>> maxValue = "999";
239
+ attribute quantity : InfusionRateSetting;
215
240
  attribute :>> encoding = "Positive Integer";
216
241
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.1 Prescription Data"; }
217
242
  }
@@ -221,8 +246,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
221
246
  doc /* Prescribed flow rate of drug during SQUARE bolus delivery. */
222
247
  attribute :>> semantics = ">= 0; if Duration_sbolus_prog or Interval_sbolus_prog > 0, must be between FlowRate_lo_hd and FlowRate_hi_hd.";
223
248
  attribute :>> unit = "ml/hr";
224
- attribute :>> minValue = "0";
225
- attribute :>> maxValue = "999";
249
+ attribute quantity : InfusionRateSetting;
226
250
  attribute :>> encoding = "Positive Integer";
227
251
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.1 Prescription Data"; }
228
252
  }
@@ -232,8 +256,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
232
256
  doc /* Maximum duration of a single uninterrupted square bolus delivery. */
233
257
  attribute :>> semantics = ">= 0; if FlowRate_sbolus_prog or Interval_sbolus_prog > 0, must be < Interval_sbolus_prog and Duration_total_prog.";
234
258
  attribute :>> unit = "minutes";
235
- attribute :>> minValue = "0";
236
- attribute :>> maxValue = "999";
259
+ attribute quantity : InfusionDurationSetting;
237
260
  attribute :>> encoding = "Time";
238
261
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.1 Prescription Data"; }
239
262
  }
@@ -243,8 +266,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
243
266
  doc /* Minimum interval between two consecutive square bolus initiations; the first square bolus starts Interval_sbolus_prog minutes after infusion initiation. */
244
267
  attribute :>> semantics = ">= 0; if FlowRate_sbolus_prog or Duration_sbolus_prog > 0, must be > Duration_sbolus_prog.";
245
268
  attribute :>> unit = "minutes";
246
- attribute :>> minValue = "0";
247
- attribute :>> maxValue = "999";
269
+ attribute quantity : InfusionDurationSetting;
248
270
  attribute :>> encoding = "Positive Integer";
249
271
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.1 Prescription Data"; }
250
272
  }
@@ -254,8 +276,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
254
276
  doc /* Prescribed flow rate of drug during patient bolus delivery. */
255
277
  attribute :>> semantics = ">= 0; if Duration_pbolus_prog or LockOutPeriod_pbolus_prog > 0, must be between FlowRate_lo_hd and FlowRate_hi_hd.";
256
278
  attribute :>> unit = "ml/hr";
257
- attribute :>> minValue = "0";
258
- attribute :>> maxValue = "999";
279
+ attribute quantity : InfusionRateSetting;
259
280
  attribute :>> encoding = "Positive Integer";
260
281
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.1 Prescription Data"; }
261
282
  }
@@ -265,8 +286,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
265
286
  doc /* Maximum duration of a single uninterrupted patient bolus delivery. */
266
287
  attribute :>> semantics = ">= 0; if FlowRate_pbolus_prog or LockOutPeriod_pbolus_prog > 0, must be < LockOutPeriod_pbolus_prog and Duration_total_prog.";
267
288
  attribute :>> unit = "minutes";
268
- attribute :>> minValue = "0";
269
- attribute :>> maxValue = "999";
289
+ attribute quantity : InfusionDurationSetting;
270
290
  attribute :>> encoding = "Time";
271
291
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.1 Prescription Data"; }
272
292
  }
@@ -276,8 +296,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
276
296
  doc /* Minimum interval between two consecutive patient bolus initiations (the lockout period), irrespective of interruption or completion. */
277
297
  attribute :>> semantics = ">= 0; if FlowRate_pbolus_prog or Duration_pbolus_prog > 0, must be > Duration_pbolus_prog.";
278
298
  attribute :>> unit = "minutes";
279
- attribute :>> minValue = "0";
280
- attribute :>> maxValue = "999";
299
+ attribute quantity : InfusionDurationSetting;
281
300
  attribute :>> encoding = "Positive Integer";
282
301
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.1 Prescription Data"; }
283
302
  }
@@ -287,8 +306,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
287
306
  doc /* Maximum total number of patient boluses that may be initiated during Duration_total_prog. */
288
307
  attribute :>> semantics = ">= 0; must be <= NumberMax_pbolus_hd for DrugName_prog in the hospital database.";
289
308
  attribute :>> unit = "per hour";
290
- attribute :>> minValue = "0";
291
- attribute :>> maxValue = "999";
309
+ attribute quantity : BolusFrequencySetting;
292
310
  attribute :>> encoding = "Positive Integer";
293
311
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.1 Prescription Data"; }
294
312
  }
@@ -379,8 +397,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
379
397
  doc /* Initial volume of drug in the reservoir at the time of entering the prescription; read from the reservoir label. */
380
398
  attribute :>> semantics = "Mandatory; shall be >= X ml (threshold left unspecified in the source draft).";
381
399
  attribute :>> unit = "ml";
382
- attribute :>> minValue = "0";
383
- attribute :>> maxValue = "999";
400
+ attribute quantity : InfusionVolumeSetting;
384
401
  attribute :>> encoding = "Positive Integer";
385
402
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.1.3 Drug Reservoir Data"; }
386
403
  }
@@ -399,8 +416,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
399
416
  doc /* Flow rate of the drug through the hose delivering the drug, measured every X seconds when the system is in ON mode. */
400
417
  attribute :>> semantics = "None stated.";
401
418
  attribute :>> unit = "ml/hr";
402
- attribute :>> minValue = "0";
403
- attribute :>> maxValue = "999";
419
+ attribute quantity : InfusionRateSetting;
404
420
  attribute :>> encoding = "Positive Integer";
405
421
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.3 Drug Flow Interface"; }
406
422
  }
@@ -437,8 +453,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
437
453
  doc /* Maximum concentration of the drug in a solution that can safely be used for infusion for DrugName_hd. */
438
454
  attribute :>> semantics = "None stated.";
439
455
  attribute :>> unit = "mg/ml";
440
- attribute :>> minValue = "0";
441
- attribute :>> maxValue = "999";
456
+ attribute quantity : DrugConcentrationSetting;
442
457
  attribute :>> encoding = "Positive Integer";
443
458
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.5 Hospital Pharmacy Database Interface"; }
444
459
  }
@@ -448,8 +463,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
448
463
  doc /* Minimum concentration of the drug in a solution that can safely be used for infusion for DrugName_hd. */
449
464
  attribute :>> semantics = "None stated.";
450
465
  attribute :>> unit = "mg/ml";
451
- attribute :>> minValue = "0";
452
- attribute :>> maxValue = "999";
466
+ attribute quantity : DrugConcentrationSetting;
453
467
  attribute :>> encoding = "Positive Integer";
454
468
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.5 Hospital Pharmacy Database Interface"; }
455
469
  }
@@ -459,8 +473,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
459
473
  doc /* Maximum volume of drug that is safe to be infused for DrugName_hd. */
460
474
  attribute :>> semantics = "None stated.";
461
475
  attribute :>> unit = "ml/hr";
462
- attribute :>> minValue = "0";
463
- attribute :>> maxValue = "999";
476
+ attribute quantity : InfusionRateSetting;
464
477
  attribute :>> encoding = "Positive Integer";
465
478
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.5 Hospital Pharmacy Database Interface"; }
466
479
  }
@@ -470,8 +483,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
470
483
  doc /* Minimum volume of drug that is safe to be infused for DrugName_hd. */
471
484
  attribute :>> semantics = "Mandatory.";
472
485
  attribute :>> unit = "ml/hr";
473
- attribute :>> minValue = "0";
474
- attribute :>> maxValue = "999";
486
+ attribute quantity : InfusionRateSetting;
475
487
  attribute :>> encoding = "Positive Integer";
476
488
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.5 Hospital Pharmacy Database Interface"; }
477
489
  }
@@ -481,8 +493,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
481
493
  doc /* Maximum safe flow rate of the drug for DrugName_hd. */
482
494
  attribute :>> semantics = "Mandatory.";
483
495
  attribute :>> unit = "ml/hr";
484
- attribute :>> minValue = "0";
485
- attribute :>> maxValue = "999";
496
+ attribute quantity : InfusionRateSetting;
486
497
  attribute :>> encoding = "Positive Integer";
487
498
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.5 Hospital Pharmacy Database Interface"; }
488
499
  }
@@ -492,8 +503,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
492
503
  doc /* Minimum safe flow rate of the drug for DrugName_hd. */
493
504
  attribute :>> semantics = "Mandatory.";
494
505
  attribute :>> unit = "ml/hr";
495
- attribute :>> minValue = "0";
496
- attribute :>> maxValue = "999";
506
+ attribute quantity : InfusionRateSetting;
497
507
  attribute :>> encoding = "Positive Integer";
498
508
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.5 Hospital Pharmacy Database Interface"; }
499
509
  }
@@ -503,8 +513,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
503
513
  doc /* Minimum safe interval between two consecutive patient bolus initiations for DrugName_hd. */
504
514
  attribute :>> semantics = "Mandatory.";
505
515
  attribute :>> unit = "minutes";
506
- attribute :>> minValue = "0";
507
- attribute :>> maxValue = "999";
516
+ attribute quantity : InfusionDurationSetting;
508
517
  attribute :>> encoding = "Positive Integer";
509
518
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.5 Hospital Pharmacy Database Interface"; }
510
519
  }
@@ -514,8 +523,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
514
523
  doc /* Maximum number of patient bolus initiations safe to be self-administered for DrugName_hd. */
515
524
  attribute :>> semantics = "Mandatory.";
516
525
  attribute :>> unit = "per hr";
517
- attribute :>> minValue = "0";
518
- attribute :>> maxValue = "999";
526
+ attribute quantity : BolusFrequencySetting;
519
527
  attribute :>> encoding = "Positive Integer";
520
528
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.5 Hospital Pharmacy Database Interface"; }
521
529
  }
@@ -525,8 +533,7 @@ package memo_examples_gpca_pump_gpca_interfaces {
525
533
  doc /* Minimum flow rate of DrugName_hd that should be maintained to keep the vein open (KVO); default 0.1. */
526
534
  attribute :>> semantics = "Mandatory.";
527
535
  attribute :>> unit = "ml/hr";
528
- attribute :>> minValue = "0";
529
- attribute :>> maxValue = "5";
536
+ attribute quantity : KvoRateSetting;
530
537
  attribute :>> encoding = "Positive Integer";
531
538
  @MemoIdentity { :>> sourceReference = "CITE-001: CriSys GPCA System Requirements (2013), §3.5 Hospital Pharmacy Database Interface"; }
532
539
  }
@@ -101,3 +101,4 @@ elements:
101
101
  "memo_examples_surgical_closure_workflow_viewpoints_logical_views_surgical_closure_workflow_overview::surgicalClosureWorkflowOverview":
102
102
  shortId: "MMX-1"
103
103
  uuid: "59d5c743-d667-53ed-84f6-26b88fc66510"
104
+ viewShortId: "ACT-1"
@@ -254,18 +254,24 @@ elements:
254
254
  "memo_examples_ui_screen_regions_viewpoints_functional_views_ui_functional_tree::uiFunctionalTree":
255
255
  shortId: "MMX-6"
256
256
  uuid: "df30b427-6009-5e2d-a30b-4d36e389f665"
257
+ viewShortId: "GEN-1"
257
258
  "memo_examples_ui_screen_regions_viewpoints_requirements_views_ui_requirements_trace::uiRequirementsTrace":
258
259
  shortId: "MMX-8"
259
260
  uuid: "e3ea76cd-b136-5754-9412-f6774bbbbf7a"
261
+ viewShortId: "GRID-1"
260
262
  "memo_examples_ui_screen_regions_viewpoints_risk_views_ui_risk_chain::uiRiskChain":
261
263
  shortId: "MMX-9"
262
264
  uuid: "b581db89-2ad3-5d3c-8b13-3d5f9cc5b023"
265
+ viewShortId: "GEN-2"
263
266
  "memo_examples_ui_screen_regions_viewpoints_ui_layout_views_main_screen_layout::mainScreenLayout":
264
267
  shortId: "MMX-4"
265
268
  uuid: "64fdaf61-445d-532e-963b-610b52ee3690"
269
+ viewShortId: "GEO-1"
266
270
  "memo_examples_ui_screen_regions_viewpoints_ui_layout_views_settings_screen_layout::settingsScreenLayout":
267
271
  shortId: "MMX-5"
268
272
  uuid: "a90192d8-28f8-539e-85ef-db885279a15e"
273
+ viewShortId: "GEO-2"
269
274
  "memo_examples_ui_screen_regions_viewpoints_ui_layout_views_ui_region_trace::uiRegionTrace":
270
275
  shortId: "MMX-7"
271
276
  uuid: "942d600f-947a-5083-b43d-fae467d2d6a7"
277
+ viewShortId: "GEN-3"
@@ -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.18.0
10
+ version: 0.20.0
11
11
  description: AADL (SAE AS5506) correspondence profile and runtime component families
12
12
  license: MIT
13
13
  tags:
@@ -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-anatomy'
10
- version: 0.18.0
10
+ version: 0.20.0
11
11
  description: Human anatomy from the Foundational Model of Anatomy (FMA), selected per project
12
12
  license: MIT AND CC-BY-4.0
13
13
  tags:
@@ -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/example-extension-clinical'
10
- version: 0.18.0
10
+ version: 0.20.0
11
11
  description: Example methodology extension for clinical-procedure vocabulary
12
12
  license: MIT
13
13
  tags:
@@ -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-cloud'
10
- version: 0.18.0
10
+ version: 0.20.0
11
11
  description: Networked services and managed data stores
12
12
  license: MIT
13
13
  tags:
@@ -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-container'
10
- version: 0.18.0
10
+ version: 0.20.0
11
11
  description: OCI container images and container runtimes as deployment content
12
12
  license: MIT
13
13
  tags:
@@ -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-messaging'
10
- version: 0.18.0
10
+ version: 0.20.0
11
11
  description: Publish/subscribe messaging — topics, brokers, and delivery semantics
12
12
  license: MIT
13
13
  tags:
@@ -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-ros'
10
- version: 0.18.0
10
+ version: 0.20.0
11
11
  description: ROS 2 nodes, messages, topic/service/action interfaces, QoS, and containerized deployment
12
12
  license: MIT
13
13
  tags:
@@ -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/methodology-default'
10
- version: 0.18.0
10
+ version: 0.20.0
11
11
  description: "MEMO default medical-device methodology \u2014 selects viewpoints/views/DHF documents from @memoarchitect/ontology and adds rules, gates, patterns, profiles, and workflow."
12
12
  license: MIT
13
13
  tags:
@@ -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/methodology-gpca'
10
- version: 0.18.0
10
+ version: 0.20.0
11
11
  description: "GPCA infusion pump methodology \u2014 subtraction-based tailoring of @memoarchitect/methodology-default for the non-networked prototype variant. Excludes cybersecurity and SOUP."
12
12
  license: MIT
13
13
  tags:
@@ -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/ontology'
10
- version: 0.18.0
10
+ version: 0.20.0
11
11
  description: "MEMO \u2014 the single canonical medical-device ontology: core semantics, the Arcadia-inspired architecture layers (context, requirements, behavior, structure, interfaces, risk, cybersecurity,\
12
12
  \ assurance, \u2026), compliance, viewpoints, views, and invariant rules. One namespace (memo::), one src/ tree."
13
13
  license: MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memoarchitect/ontology",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
4
4
  "packageManager": "pnpm@9.15.0",
5
5
  "description": "MEMO — Medical Engineering Modelling Ontology. Pure SysML v2 medical-device ontology with native constraints, portable to any conformant SysML v2 tool (SysIDE, SysON, sysand).",
6
6
  "scripts": {
@@ -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/medical-modeling-profile'
10
- version: 0.18.0
10
+ version: 0.20.0
11
11
  description: Closure rules and viewpoints for medical device modeling
12
12
  license: MIT
13
13
  tags:
@@ -33,7 +33,8 @@ package memo_architecture_operational_context_actors {
33
33
  attribute serviceScope : String[0..1];
34
34
  }
35
35
 
36
- // A non-human actor (external system, external device, or environmental
37
- // agent). The specific kind is described by externalKind.
38
-
36
+ // An actor that is not the device's user, such as a threat or a person present
37
+ // who does not use the device. An organization, an external system or a device is
38
+ // an OperationalEntity. `actor` is a SysML keyword, hence the prefix.
39
+ part def MemoActor specializes OperationalParticipant;
39
40
  }
@@ -94,15 +94,15 @@ package memo_architecture_realization_physical {
94
94
  // allocate cnMotorDrive to motorHarness;
95
95
  interface def PhysicalInterface specializes Interface {
96
96
  // analog, digital, discrete, pulse or power transfer. Fill in the
97
- // descriptors that kind needs: a range for analog, a bit rate and
98
- // protocol for digital, a frequency for pulse.
97
+ // descriptors that kind needs: a bit rate and protocol for digital,
98
+ // a frequency for pulse. An analog signal's range is a constraint on
99
+ // the type of the attribute that holds it, as every range is.
99
100
  attribute signalingKind : SignalingKind;
100
101
  attribute mediumKind : PhysicalMediumKind;
101
102
  attribute electricalStandard : String;
102
103
  attribute nominalVoltageV : ElectricPotentialDifferenceValue[0..1];
103
104
  attribute nominalCurrentA : ElectricCurrentValue[0..1];
104
- attribute bitRateBps : String;
105
- attribute signalRange : String;
105
+ attribute bitRateBps : BinaryDigitRateValue[0..1];
106
106
  attribute connectorStandard : String;
107
107
  end sourcePort : PhysicalPort;
108
108
  end targetPort : PhysicalPort;
@@ -114,8 +114,6 @@ package memo_architecture_realization_physical {
114
114
  attribute quantity : String;
115
115
  attribute unit : String;
116
116
  attribute nominalValue : String;
117
- attribute minValue : String;
118
- attribute maxValue : String;
119
117
  }
120
118
 
121
119
  // The concrete flow a model types its physical flows by; a concrete `flow def` declares its two ends.
@@ -13,6 +13,7 @@ package memo_assurance_cybersecurity {
13
13
 
14
14
  private import memo_core_common::*;
15
15
  private import memo_core_enumerations::*;
16
+ private import memo_architecture_operational_context_actors::*;
16
17
  private import memo_assurance_requirements::*;
17
18
  private import memo_assurance_safety_risk::*;
18
19
  private import memo_assurance_verification_validation::*;
@@ -162,8 +163,11 @@ package memo_assurance_cybersecurity {
162
163
  enum residual;
163
164
  }
164
165
 
165
- part def ThreatActor specializes MemoPart {
166
- attribute actorKind : ThreatActorKind;
166
+ // A threat is an actor of its own: it takes part from outside the system, as
167
+ // MemoActor says. What kind of threat it is goes in threatActorKind; the
168
+ // inherited actorKind names a user role and is not set on a threat.
169
+ part def ThreatActor specializes MemoActor {
170
+ attribute threatActorKind : ThreatActorKind;
167
171
  attribute motivation : String;
168
172
  attribute capability : ThreatCapabilityKind;
169
173
  attribute accessMode : ThreatAccessKind;
@@ -92,7 +92,7 @@ package memo_core_common {
92
92
 
93
93
  // Marks a definition as a KIND — an extension of the ontology — rather than a model element.
94
94
  // A project definition that specializes an ontology kind is, structurally, either a new kind
95
- // (`ProjectStakeholder`) or one particular thing (`HospitalEpRecordingSystem`); nothing in the
95
+ // (`ProjectStakeholder`) or one particular thing (`InfusionPumpSystem`); nothing in the
96
96
  // SysML tells the two apart, so the author says which. A marked definition, and what is typed
97
97
  // by it, takes `idPrefix` as the family of its display ids (`<idPrefix>-1`). Anything unmarked
98
98
  // takes the family of the ontology kind it descends from.
@@ -220,9 +220,8 @@ package memo_core_common {
220
220
  // is not a regulated data item — an IVD result is "5.5 mg/dL, LOINC
221
221
  // 2345-7", not "5.5".
222
222
  attribute semantics : String;
223
+ // A range is not a field here: it is a constraint on the type of the attribute holding the value.
223
224
  attribute unit : String;
224
- attribute minValue : String;
225
- attribute maxValue : String;
226
225
  attribute encoding : String;
227
226
  attribute timestampRequired : Boolean;
228
227
  attribute codes : TerminologyCode[0..*];
@@ -588,6 +588,8 @@ package memo_core_enumerations {
588
588
  enum externalSystem;
589
589
  enum environmentalEntity;
590
590
  enum regulatoryBody;
591
+ // An organization that is not a regulator: a hospital, a care team, a manufacturer.
592
+ enum organization;
591
593
  enum device;
592
594
  enum informationArtifact;
593
595
  }
@@ -15,7 +15,7 @@ package memo_methodology_profiles {
15
15
  private import memo_core_common::*;
16
16
  part mdCoreLibrary : MethodologyLibrary {
17
17
  @MemoIdentity { :>> providedId = "METHLIB-001"; :>> label = "MedicalDeviceMethodologyLibrary"; }
18
- attribute :>> version = "0.18.0";
18
+ attribute :>> version = "0.20.0";
19
19
  attribute :>> domain = "medical device modeling";
20
20
  doc /* Methodology layer for selecting, restricting, sequencing, tailoring, and lightly extending use of the medical-device ontology. */
21
21
  }
@@ -36,7 +36,7 @@ package memo_methodology_profiles {
36
36
  // second scope authority.
37
37
  part mdDefaultDefinition : MethodologyDefinition {
38
38
  @MemoIdentity { :>> providedId = "METH-MD-DEFAULT"; :>> label = "MedicalDeviceDefault"; }
39
- attribute :>> version = "0.18.0";
39
+ attribute :>> version = "0.20.0";
40
40
  attribute :>> domain = "medical device modeling";
41
41
  doc /* MEMO default medical-device methodology. Selects every layer, discipline, standard, artifact kind, and viewpoint the resolved ontology and extension packages provide. */
42
42
  attribute :>> scopeMode = ScopeModeKind::allAvailable;
@@ -558,6 +558,25 @@ package memo_rules_ontology {
558
558
  constraint { true }
559
559
  }
560
560
 
561
+ // A functional exchange moves something between two functions. This asks
562
+ // that both ends sit in some behaviour: performed by an action or contained
563
+ // in one. It is weaker than "a scenario walks it", which the model cannot
564
+ // tell apart from a function nested in another function.
565
+ //
566
+ // `warning` and `assurance`: a method that models the exchanges first and
567
+ // the scenarios later tailors it.
568
+ constraint def ExchangeEndsInBehaviourRule :> MemoConsistencyRule {
569
+ @MemoIdentity { :>> providedId = "CR-ONT-104"; }
570
+ attribute tailoring = RuleTailoringKind::assurance;
571
+ attribute domain = RuleDomainKind::modelling;
572
+ attribute obligation = RuleObligationKind::recommended;
573
+ attribute appliesTo = "FunctionalExchange";
574
+ attribute severity = RuleSeverityKind::warning;
575
+ attribute rationaleText = "Both ends of a functional exchange should be in a behaviour. An exchange with an end that no action performs or contains cannot be reached by walking one.";
576
+ attribute predicateExpression = "sourceEnd->forAll(upstream(performs)->exists(construct == 'action') or upstream(composes)->exists(construct == 'action')) and targetEnd->forAll(upstream(performs)->exists(construct == 'action') or upstream(composes)->exists(construct == 'action'))";
577
+ constraint { true }
578
+ }
579
+
561
580
  // The predicate here named three features that do not exist — `variantKind`,
562
581
  // `baseScenario`, `variationPoint` — so it could never fail, and a rule that
563
582
  // cannot fail is coverage on paper only. `baseScenario` is the one the
@@ -137,7 +137,7 @@ package memo_viewpoints_definitions_layout {
137
137
  attribute strokeWidth : Real[0..1];
138
138
  attribute labelVisible : Boolean[0..1];
139
139
  attribute lineStyle : MemoLayoutLineStyle[0..1];
140
- attribute route : Real[0..*] ordered;
140
+ attribute route : Real[0..*] ordered nonunique;
141
141
  /** A short token for the connector's ends, so a route is kept only while it still joins what it was drawn between. */
142
142
  attribute attachment : String[0..1];
143
143
  attribute sourceElement : String[0..1];