@f1studio/form-spec 5.0.0-alpha.168 → 5.0.0-alpha.169

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 (186) hide show
  1. package/FormSpec.FS/BlueprintValidation.d.ts +6 -3
  2. package/FormSpec.FS/BlueprintValidation.d.ts.map +1 -1
  3. package/FormSpec.FS/BlueprintValidation.js +39 -15
  4. package/FormSpec.FS/BlueprintValidation.js.map +1 -1
  5. package/FormSpec.FS/Designer.d.ts.map +1 -1
  6. package/FormSpec.FS/Designer.js +1 -1
  7. package/FormSpec.FS/Designer.js.map +1 -1
  8. package/FormSpec.FS/FormSpec.d.ts +108 -58
  9. package/FormSpec.FS/FormSpec.d.ts.map +1 -1
  10. package/FormSpec.FS/FormSpec.js +319 -129
  11. package/FormSpec.FS/FormSpec.js.map +1 -1
  12. package/FormSpec.FS/FormSpecHelpers.d.ts.map +1 -1
  13. package/FormSpec.FS/FormSpecHelpers.js +1 -1
  14. package/FormSpec.FS/FormSpecHelpers.js.map +1 -1
  15. package/FormSpec.FS/FormSpecValues.d.ts.map +1 -1
  16. package/FormSpec.FS/FormSpecValues.js +5 -2
  17. package/FormSpec.FS/FormSpecValues.js.map +1 -1
  18. package/FormSpec.FS/Helpers.d.ts.map +1 -1
  19. package/FormSpec.FS/Helpers.js +14 -9
  20. package/FormSpec.FS/Helpers.js.map +1 -1
  21. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.d.ts.map +1 -1
  22. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js +1 -1
  23. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js.map +1 -1
  24. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.d.ts +1 -1
  25. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.d.ts.map +1 -1
  26. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.js +1 -1
  27. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.js.map +1 -1
  28. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.d.ts +3 -3
  29. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.d.ts.map +1 -1
  30. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.js +7 -5
  31. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.js.map +1 -1
  32. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.d.ts.map +1 -1
  33. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.js +11 -10
  34. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.js.map +1 -1
  35. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.d.ts.map +1 -1
  36. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.js +1 -9
  37. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.js.map +1 -1
  38. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.d.ts +11 -4
  39. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.d.ts.map +1 -1
  40. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.js +30 -28
  41. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.js.map +1 -1
  42. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.d.ts +3 -9
  43. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.d.ts.map +1 -1
  44. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js +4 -31
  45. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js.map +1 -1
  46. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts.map +1 -1
  47. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js +2 -6
  48. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +1 -1
  49. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImportPipeline.d.ts +45 -0
  50. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImportPipeline.d.ts.map +1 -0
  51. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImportPipeline.js +141 -0
  52. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImportPipeline.js.map +1 -0
  53. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImporterAnalysis.d.ts +326 -0
  54. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImporterAnalysis.d.ts.map +1 -0
  55. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImporterAnalysis.js +1743 -0
  56. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImporterAnalysis.js.map +1 -0
  57. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts +8 -8
  58. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts.map +1 -1
  59. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js +6 -6
  60. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +1 -1
  61. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRTriggerEnrichment.d.ts +21 -15
  62. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRTriggerEnrichment.d.ts.map +1 -1
  63. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRTriggerEnrichment.js +83 -80
  64. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRTriggerEnrichment.js.map +1 -1
  65. package/FormSpec.FS/Integrations/CorEMR/CoreMRPathwayMapper.d.ts +51 -0
  66. package/FormSpec.FS/Integrations/CorEMR/CoreMRPathwayMapper.d.ts.map +1 -0
  67. package/FormSpec.FS/Integrations/CorEMR/CoreMRPathwayMapper.js +939 -0
  68. package/FormSpec.FS/Integrations/CorEMR/CoreMRPathwayMapper.js.map +1 -0
  69. package/FormSpec.FS/Integrations/CorEMR/CoreMRTypes.d.ts +2 -17
  70. package/FormSpec.FS/Integrations/CorEMR/CoreMRTypes.d.ts.map +1 -1
  71. package/FormSpec.FS/Integrations/CorEMR/CoreMRTypes.js +1 -66
  72. package/FormSpec.FS/Integrations/CorEMR/{TemplateManifestDecoder.d.ts → FormTemplateDecoder.d.ts} +53 -45
  73. package/FormSpec.FS/Integrations/CorEMR/FormTemplateDecoder.d.ts.map +1 -0
  74. package/FormSpec.FS/Integrations/CorEMR/{TemplateManifestDecoder.js → FormTemplateDecoder.js} +544 -254
  75. package/FormSpec.FS/Integrations/CorEMR/FormTemplateDecoder.js.map +1 -0
  76. package/FormSpec.FS/Integrations/CorEMR/FormTemplateDomainDecoder.d.ts +7 -0
  77. package/FormSpec.FS/Integrations/CorEMR/FormTemplateDomainDecoder.d.ts.map +1 -0
  78. package/FormSpec.FS/Integrations/CorEMR/FormTemplateDomainDecoder.js +280 -0
  79. package/FormSpec.FS/Integrations/CorEMR/FormTemplateDomainDecoder.js.map +1 -0
  80. package/FormSpec.FS/Interop/FormSpec.Api.Helpers.d.ts +16 -4
  81. package/FormSpec.FS/Interop/FormSpec.Api.Helpers.d.ts.map +1 -1
  82. package/FormSpec.FS/Interop/FormSpec.Api.Helpers.js +63 -18
  83. package/FormSpec.FS/Interop/FormSpec.Api.Helpers.js.map +1 -1
  84. package/FormSpec.FS/Interop/FormSpec.Api.Option.d.ts +4 -4
  85. package/FormSpec.FS/Interop/FormSpec.Api.Option.d.ts.map +1 -1
  86. package/FormSpec.FS/Interop/FormSpec.Api.Option.js +2 -2
  87. package/FormSpec.FS/Interop/FormSpec.Api.Option.js.map +1 -1
  88. package/FormSpec.FS/PathwayDataExtractor.d.ts.map +1 -1
  89. package/FormSpec.FS/PathwayDataExtractor.js +39 -18
  90. package/FormSpec.FS/PathwayDataExtractor.js.map +1 -1
  91. package/FormSpec.FS/PathwayExecutor.d.ts +10 -10
  92. package/FormSpec.FS/PathwayExecutor.d.ts.map +1 -1
  93. package/FormSpec.FS/PathwayExecutor.js +14 -14
  94. package/FormSpec.FS/PathwayExecutor.js.map +1 -1
  95. package/FormSpec.FS/PathwayValidator.d.ts.map +1 -1
  96. package/FormSpec.FS/PathwayValidator.js +8 -5
  97. package/FormSpec.FS/PathwayValidator.js.map +1 -1
  98. package/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.d.ts.map +1 -1
  99. package/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.js +16 -7
  100. package/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.js.map +1 -1
  101. package/FormSpec.FS/Renderers/MermaidRenderer.d.ts.map +1 -1
  102. package/FormSpec.FS/Renderers/MermaidRenderer.js +4 -8
  103. package/FormSpec.FS/Renderers/MermaidRenderer.js.map +1 -1
  104. package/FormSpec.FS/Renderers/PathwayRenderers.d.ts.map +1 -1
  105. package/FormSpec.FS/Renderers/PathwayRenderers.js +5 -4
  106. package/FormSpec.FS/Renderers/PathwayRenderers.js.map +1 -1
  107. package/FormSpec.FS/TriggerActionDto.d.ts +32 -21
  108. package/FormSpec.FS/TriggerActionDto.d.ts.map +1 -1
  109. package/FormSpec.FS/TriggerActionDto.js +247 -61
  110. package/FormSpec.FS/TriggerActionDto.js.map +1 -1
  111. package/README.md +7 -7
  112. package/Thoth.Json/packages/Thoth.Json/Encode.js.map +1 -1
  113. package/package.json +1 -1
  114. package/plugins/allergyfinder/src/AllergyFinderField.d.ts.map +1 -1
  115. package/plugins/allergyfinder/src/AllergyFinderField.js +2 -2
  116. package/plugins/allergyfinder/src/AllergyFinderField.js.map +1 -1
  117. package/plugins/bmi/src/BMIField.d.ts.map +1 -1
  118. package/plugins/bmi/src/BMIField.js +21 -15
  119. package/plugins/bmi/src/BMIField.js.map +1 -1
  120. package/plugins/demographics/src/DemographicsField.d.ts.map +1 -1
  121. package/plugins/demographics/src/DemographicsField.js +4 -4
  122. package/plugins/demographics/src/DemographicsField.js.map +1 -1
  123. package/plugins/likert/src/LikertField.d.ts.map +1 -1
  124. package/plugins/likert/src/LikertField.js +40 -35
  125. package/plugins/likert/src/LikertField.js.map +1 -1
  126. package/plugins/signature/src/SignatureField.d.ts.map +1 -1
  127. package/plugins/signature/src/SignatureField.js +4 -3
  128. package/plugins/signature/src/SignatureField.js.map +1 -1
  129. package/plugins/vitals/src/VitalsField.d.ts.map +1 -1
  130. package/plugins/vitals/src/VitalsField.js +4 -4
  131. package/plugins/vitals/src/VitalsField.js.map +1 -1
  132. package/src/FormSpec.FS/BlueprintValidation.ts +55 -24
  133. package/src/FormSpec.FS/Designer.ts +2 -2
  134. package/src/FormSpec.FS/FormSpec.ts +223 -100
  135. package/src/FormSpec.FS/FormSpecHelpers.ts +2 -2
  136. package/src/FormSpec.FS/FormSpecValues.ts +6 -3
  137. package/src/FormSpec.FS/Helpers.ts +16 -11
  138. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts +2 -2
  139. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.ts +3 -3
  140. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.ts +10 -8
  141. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.ts +6 -5
  142. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.ts +1 -10
  143. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.ts +35 -30
  144. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts +7 -26
  145. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +2 -6
  146. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImportPipeline.ts +115 -0
  147. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImporterAnalysis.ts +1059 -0
  148. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts +10 -10
  149. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRTriggerEnrichment.ts +61 -88
  150. package/src/FormSpec.FS/Integrations/CorEMR/CoreMRPathwayMapper.ts +926 -0
  151. package/src/FormSpec.FS/Integrations/CorEMR/CoreMRTypes.ts +3 -37
  152. package/src/FormSpec.FS/Integrations/CorEMR/FormTemplateDecoder.ts +1284 -0
  153. package/src/FormSpec.FS/Integrations/CorEMR/FormTemplateDomainDecoder.ts +287 -0
  154. package/src/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts +76 -25
  155. package/src/FormSpec.FS/Interop/FormSpec.Api.Option.ts +6 -6
  156. package/src/FormSpec.FS/PathwayDataExtractor.ts +40 -20
  157. package/src/FormSpec.FS/PathwayExecutor.ts +26 -26
  158. package/src/FormSpec.FS/PathwayValidator.ts +8 -5
  159. package/src/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.ts +18 -8
  160. package/src/FormSpec.FS/Renderers/MermaidRenderer.ts +6 -10
  161. package/src/FormSpec.FS/Renderers/PathwayRenderers.ts +5 -5
  162. package/src/FormSpec.FS/TriggerActionDto.ts +247 -74
  163. package/src/plugins/allergyfinder/src/AllergyFinderField.ts +3 -3
  164. package/src/plugins/bmi/src/BMIField.ts +12 -5
  165. package/src/plugins/demographics/src/DemographicsField.ts +5 -5
  166. package/src/plugins/likert/src/LikertField.ts +16 -11
  167. package/src/plugins/signature/src/SignatureField.ts +4 -3
  168. package/src/plugins/vitals/src/VitalsField.ts +5 -5
  169. package/src/vye-os-contracts-fs/src/CoreMR/FormTemplate.ts +715 -0
  170. package/vye-os-contracts-fs/src/CoreMR/FormTemplate.d.ts +310 -0
  171. package/vye-os-contracts-fs/src/CoreMR/FormTemplate.d.ts.map +1 -0
  172. package/vye-os-contracts-fs/src/CoreMR/FormTemplate.js +1242 -0
  173. package/vye-os-contracts-fs/src/CoreMR/FormTemplate.js.map +1 -0
  174. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.d.ts +0 -69
  175. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.d.ts.map +0 -1
  176. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.js +0 -447
  177. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.js.map +0 -1
  178. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts +0 -19
  179. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts.map +0 -1
  180. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js +0 -643
  181. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js.map +0 -1
  182. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts.map +0 -1
  183. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +0 -1
  184. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.ts +0 -412
  185. package/src/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.ts +0 -588
  186. package/src/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts +0 -1054
@@ -18,6 +18,9 @@ _export(exports, {
18
18
  get ClinicalPathway_ActionInfo_Alert () {
19
19
  return ClinicalPathway_ActionInfo_Alert;
20
20
  },
21
+ get ClinicalPathway_ActionInfo_ChangeGroups () {
22
+ return ClinicalPathway_ActionInfo_ChangeGroups;
23
+ },
21
24
  get ClinicalPathway_ActionInfo_Documentation () {
22
25
  return ClinicalPathway_ActionInfo_Documentation;
23
26
  },
@@ -57,6 +60,18 @@ _export(exports, {
57
60
  get ClinicalPathway_ActionInfo_Treatment () {
58
61
  return ClinicalPathway_ActionInfo_Treatment;
59
62
  },
63
+ get ClinicalPathway_ActionOrigin () {
64
+ return ClinicalPathway_ActionOrigin;
65
+ },
66
+ get ClinicalPathway_ActionOrigin_$reflection () {
67
+ return ClinicalPathway_ActionOrigin_$reflection;
68
+ },
69
+ get ClinicalPathway_ActionOrigin_Authored () {
70
+ return ClinicalPathway_ActionOrigin_Authored;
71
+ },
72
+ get ClinicalPathway_ActionOrigin_CoreMRTrigger () {
73
+ return ClinicalPathway_ActionOrigin_CoreMRTrigger;
74
+ },
60
75
  get ClinicalPathway_AlertAction () {
61
76
  return ClinicalPathway_AlertAction;
62
77
  },
@@ -81,6 +96,18 @@ _export(exports, {
81
96
  get ClinicalPathway_AlertSeverity_Medium () {
82
97
  return ClinicalPathway_AlertSeverity_Medium;
83
98
  },
99
+ get ClinicalPathway_Cadence () {
100
+ return ClinicalPathway_Cadence;
101
+ },
102
+ get ClinicalPathway_Cadence_$reflection () {
103
+ return ClinicalPathway_Cadence_$reflection;
104
+ },
105
+ get ClinicalPathway_Cadence_Every () {
106
+ return ClinicalPathway_Cadence_Every;
107
+ },
108
+ get ClinicalPathway_Cadence_OnSchedule () {
109
+ return ClinicalPathway_Cadence_OnSchedule;
110
+ },
84
111
  get ClinicalPathway_ClinicalPathwaySpec () {
85
112
  return ClinicalPathway_ClinicalPathwaySpec;
86
113
  },
@@ -141,11 +168,11 @@ _export(exports, {
141
168
  get ClinicalPathway_ConstraintType_VitalSignThreshold () {
142
169
  return ClinicalPathway_ConstraintType_VitalSignThreshold;
143
170
  },
144
- get ClinicalPathway_DecisionInfo () {
145
- return ClinicalPathway_DecisionInfo;
171
+ get ClinicalPathway_CoreMRTriggerRef () {
172
+ return ClinicalPathway_CoreMRTriggerRef;
146
173
  },
147
- get ClinicalPathway_DecisionInfo_$reflection () {
148
- return ClinicalPathway_DecisionInfo_$reflection;
174
+ get ClinicalPathway_CoreMRTriggerRef_$reflection () {
175
+ return ClinicalPathway_CoreMRTriggerRef_$reflection;
149
176
  },
150
177
  get ClinicalPathway_DocumentationAction () {
151
178
  return ClinicalPathway_DocumentationAction;
@@ -159,6 +186,9 @@ _export(exports, {
159
186
  get ClinicalPathway_DueDate_$reflection () {
160
187
  return ClinicalPathway_DueDate_$reflection;
161
188
  },
189
+ get ClinicalPathway_DueDate_AsStated () {
190
+ return ClinicalPathway_DueDate_AsStated;
191
+ },
162
192
  get ClinicalPathway_DueDate_DaysFromNow () {
163
193
  return ClinicalPathway_DueDate_DaysFromNow;
164
194
  },
@@ -246,6 +276,30 @@ _export(exports, {
246
276
  get ClinicalPathway_FieldValueSource_OptionKey () {
247
277
  return ClinicalPathway_FieldValueSource_OptionKey;
248
278
  },
279
+ get ClinicalPathway_GroupChange () {
280
+ return ClinicalPathway_GroupChange;
281
+ },
282
+ get ClinicalPathway_GroupChangeAction () {
283
+ return ClinicalPathway_GroupChangeAction;
284
+ },
285
+ get ClinicalPathway_GroupChangeAction_$reflection () {
286
+ return ClinicalPathway_GroupChangeAction_$reflection;
287
+ },
288
+ get ClinicalPathway_GroupChange_$reflection () {
289
+ return ClinicalPathway_GroupChange_$reflection;
290
+ },
291
+ get ClinicalPathway_GroupChange_AddToGroups () {
292
+ return ClinicalPathway_GroupChange_AddToGroups;
293
+ },
294
+ get ClinicalPathway_GroupChange_RemoveFromGroups () {
295
+ return ClinicalPathway_GroupChange_RemoveFromGroups;
296
+ },
297
+ get ClinicalPathway_GroupRef () {
298
+ return ClinicalPathway_GroupRef;
299
+ },
300
+ get ClinicalPathway_GroupRef_$reflection () {
301
+ return ClinicalPathway_GroupRef_$reflection;
302
+ },
249
303
  get ClinicalPathway_LogicalOp () {
250
304
  return ClinicalPathway_LogicalOp;
251
305
  },
@@ -315,6 +369,12 @@ _export(exports, {
315
369
  get ClinicalPathway_PathRequirement_$reflection () {
316
370
  return ClinicalPathway_PathRequirement_$reflection;
317
371
  },
372
+ get ClinicalPathway_PathwayAction () {
373
+ return ClinicalPathway_PathwayAction;
374
+ },
375
+ get ClinicalPathway_PathwayAction_$reflection () {
376
+ return ClinicalPathway_PathwayAction_$reflection;
377
+ },
318
378
  get ClinicalPathway_PathwayExecutionMode () {
319
379
  return ClinicalPathway_PathwayExecutionMode;
320
380
  },
@@ -372,27 +432,6 @@ _export(exports, {
372
432
  get ClinicalPathway_ProcedureAction_$reflection () {
373
433
  return ClinicalPathway_ProcedureAction_$reflection;
374
434
  },
375
- get ClinicalPathway_RecurrenceEnd () {
376
- return ClinicalPathway_RecurrenceEnd;
377
- },
378
- get ClinicalPathway_RecurrenceEnd_$reflection () {
379
- return ClinicalPathway_RecurrenceEnd_$reflection;
380
- },
381
- get ClinicalPathway_RecurrenceEnd_AfterOccurrences () {
382
- return ClinicalPathway_RecurrenceEnd_AfterOccurrences;
383
- },
384
- get ClinicalPathway_RecurrenceEnd_Never () {
385
- return ClinicalPathway_RecurrenceEnd_Never;
386
- },
387
- get ClinicalPathway_RecurrenceEnd_OnDate () {
388
- return ClinicalPathway_RecurrenceEnd_OnDate;
389
- },
390
- get ClinicalPathway_RecurrencePattern () {
391
- return ClinicalPathway_RecurrencePattern;
392
- },
393
- get ClinicalPathway_RecurrencePattern_$reflection () {
394
- return ClinicalPathway_RecurrencePattern_$reflection;
395
- },
396
435
  get ClinicalPathway_ReferralAction () {
397
436
  return ClinicalPathway_ReferralAction;
398
437
  },
@@ -441,6 +480,12 @@ _export(exports, {
441
480
  get ClinicalPathway_SinglePathwayConfig_$reflection () {
442
481
  return ClinicalPathway_SinglePathwayConfig_$reflection;
443
482
  },
483
+ get ClinicalPathway_StandingSchedule () {
484
+ return ClinicalPathway_StandingSchedule;
485
+ },
486
+ get ClinicalPathway_StandingSchedule_$reflection () {
487
+ return ClinicalPathway_StandingSchedule_$reflection;
488
+ },
444
489
  get ClinicalPathway_StateDefinition () {
445
490
  return ClinicalPathway_StateDefinition;
446
491
  },
@@ -486,9 +531,6 @@ _export(exports, {
486
531
  get ClinicalPathway_StateType_ConditionalAction () {
487
532
  return ClinicalPathway_StateType_ConditionalAction;
488
533
  },
489
- get ClinicalPathway_StateType_Decision () {
490
- return ClinicalPathway_StateType_Decision;
491
- },
492
534
  get ClinicalPathway_StateType_Evaluation () {
493
535
  return ClinicalPathway_StateType_Evaluation;
494
536
  },
@@ -516,6 +558,9 @@ _export(exports, {
516
558
  get ClinicalPathway_TaskPriority_Medium () {
517
559
  return ClinicalPathway_TaskPriority_Medium;
518
560
  },
561
+ get ClinicalPathway_TaskPriority_Stated () {
562
+ return ClinicalPathway_TaskPriority_Stated;
563
+ },
519
564
  get ClinicalPathway_TerminalInfo () {
520
565
  return ClinicalPathway_TerminalInfo;
521
566
  },
@@ -981,6 +1026,12 @@ _export(exports, {
981
1026
  get Spec_ICD10FinderInfo_$reflection () {
982
1027
  return Spec_ICD10FinderInfo_$reflection;
983
1028
  },
1029
+ get Spec_Label_ofStated () {
1030
+ return Spec_Label_ofStated;
1031
+ },
1032
+ get Spec_Label_shown () {
1033
+ return Spec_Label_shown;
1034
+ },
984
1035
  get Spec_MatrixInfo () {
985
1036
  return Spec_MatrixInfo;
986
1037
  },
@@ -1296,11 +1347,12 @@ _export(exports, {
1296
1347
  });
1297
1348
  const _Types = require("@fable-org/fable-library-js/Types.js");
1298
1349
  const _Reflection = require("@fable-org/fable-library-js/Reflection.js");
1350
+ const _Option = require("@fable-org/fable-library-js/Option.js");
1299
1351
  const _List = require("@fable-org/fable-library-js/List.js");
1300
1352
  const _Provenance = require("./Provenance.js");
1353
+ const _String = require("@fable-org/fable-library-js/String.js");
1301
1354
  const _Guid = require("@fable-org/fable-library-js/Guid.js");
1302
1355
  const _Array = require("@fable-org/fable-library-js/Array.js");
1303
- const _String = require("@fable-org/fable-library-js/String.js");
1304
1356
  class Shared_FieldKey extends _Types.Union {
1305
1357
  cases() {
1306
1358
  return [
@@ -2859,7 +2911,7 @@ function Spec_FormField$1_$reflection(gen0) {
2859
2911
  ],
2860
2912
  [
2861
2913
  "Label",
2862
- _Reflection.string_type
2914
+ (0, _Reflection.option_type)(_Reflection.string_type)
2863
2915
  ],
2864
2916
  [
2865
2917
  "Notes",
@@ -2909,7 +2961,7 @@ function Spec_FormStep$1_$reflection(gen0) {
2909
2961
  ],
2910
2962
  [
2911
2963
  "StepLabel",
2912
- _Reflection.string_type
2964
+ (0, _Reflection.option_type)(_Reflection.string_type)
2913
2965
  ],
2914
2966
  [
2915
2967
  "Fields",
@@ -3415,6 +3467,20 @@ const Spec_availableSpecialTextType = (0, _List.ofArray)([
3415
3467
  Spec_SpecialTextType_RespirationRateType(),
3416
3468
  Spec_SpecialTextType_OxygenSaturationType()
3417
3469
  ]);
3470
+ function Spec_Label_shown(label) {
3471
+ if (label == null) {
3472
+ return "(no text)";
3473
+ } else {
3474
+ return (0, _Option.value)(label);
3475
+ }
3476
+ }
3477
+ function Spec_Label_ofStated(text) {
3478
+ if ((0, _String.isNullOrEmpty)(text)) {
3479
+ return undefined;
3480
+ } else {
3481
+ return text;
3482
+ }
3483
+ }
3418
3484
  function Spec_ScoreColor__get_Value(x) {
3419
3485
  switch(x.tag){
3420
3486
  case /* Primary */ 1:
@@ -3493,19 +3559,17 @@ function ClinicalPathway_MedicationAction_$reflection() {
3493
3559
  ]);
3494
3560
  }
3495
3561
  class ClinicalPathway_TreatmentAction extends _Types.Record {
3496
- constructor(TreatmentId, Name, ProviderId, ScheduleId, Signature, DateStart, Duration, Description, Priority, SourceRelatedId, CategoryId){
3562
+ constructor(TreatmentId, Name, ProviderId, Signature, DateStart, Standing, Description, Priority, SourceRelatedId){
3497
3563
  super();
3498
3564
  this.TreatmentId = TreatmentId;
3499
3565
  this.Name = Name;
3500
3566
  this.ProviderId = ProviderId;
3501
- this.ScheduleId = ScheduleId;
3502
3567
  this.Signature = Signature;
3503
3568
  this.DateStart = DateStart;
3504
- this.Duration = Duration;
3569
+ this.Standing = Standing;
3505
3570
  this.Description = Description;
3506
3571
  this.Priority = Priority;
3507
3572
  this.SourceRelatedId = SourceRelatedId;
3508
- this.CategoryId = CategoryId;
3509
3573
  }
3510
3574
  }
3511
3575
  function ClinicalPathway_TreatmentAction_$reflection() {
@@ -3516,16 +3580,12 @@ function ClinicalPathway_TreatmentAction_$reflection() {
3516
3580
  ],
3517
3581
  [
3518
3582
  "Name",
3519
- _Reflection.string_type
3583
+ (0, _Reflection.option_type)(_Reflection.string_type)
3520
3584
  ],
3521
3585
  [
3522
3586
  "ProviderId",
3523
3587
  (0, _Reflection.option_type)(_Reflection.int32_type)
3524
3588
  ],
3525
- [
3526
- "ScheduleId",
3527
- (0, _Reflection.option_type)(_Reflection.int32_type)
3528
- ],
3529
3589
  [
3530
3590
  "Signature",
3531
3591
  (0, _Reflection.option_type)(_Reflection.string_type)
@@ -3535,8 +3595,8 @@ function ClinicalPathway_TreatmentAction_$reflection() {
3535
3595
  ClinicalPathway_DueDate_$reflection()
3536
3596
  ],
3537
3597
  [
3538
- "Duration",
3539
- ClinicalPathway_DueDate_$reflection()
3598
+ "Standing",
3599
+ ClinicalPathway_StandingSchedule_$reflection()
3540
3600
  ],
3541
3601
  [
3542
3602
  "Description",
@@ -3549,22 +3609,17 @@ function ClinicalPathway_TreatmentAction_$reflection() {
3549
3609
  [
3550
3610
  "SourceRelatedId",
3551
3611
  (0, _Reflection.option_type)(_Reflection.int32_type)
3552
- ],
3553
- [
3554
- "CategoryId",
3555
- (0, _Reflection.option_type)(_Reflection.int32_type)
3556
3612
  ]
3557
3613
  ]);
3558
3614
  }
3559
3615
  class ClinicalPathway_MedsetAction extends _Types.Record {
3560
- constructor(MedsetId, Name, ProviderId, PharmacyId, DateStart, CategoryId){
3616
+ constructor(MedsetId, Name, ProviderId, PharmacyId, DateStart){
3561
3617
  super();
3562
3618
  this.MedsetId = MedsetId;
3563
3619
  this.Name = Name;
3564
3620
  this.ProviderId = ProviderId;
3565
3621
  this.PharmacyId = PharmacyId;
3566
3622
  this.DateStart = DateStart;
3567
- this.CategoryId = CategoryId;
3568
3623
  }
3569
3624
  }
3570
3625
  function ClinicalPathway_MedsetAction_$reflection() {
@@ -3588,10 +3643,6 @@ function ClinicalPathway_MedsetAction_$reflection() {
3588
3643
  [
3589
3644
  "DateStart",
3590
3645
  ClinicalPathway_DueDate_$reflection()
3591
- ],
3592
- [
3593
- "CategoryId",
3594
- (0, _Reflection.option_type)(_Reflection.int32_type)
3595
3646
  ]
3596
3647
  ]);
3597
3648
  }
@@ -3759,12 +3810,18 @@ function ClinicalPathway_TaskPriority_Medium() {
3759
3810
  function ClinicalPathway_TaskPriority_Low() {
3760
3811
  return new ClinicalPathway_TaskPriority(2, []);
3761
3812
  }
3813
+ function ClinicalPathway_TaskPriority_Stated(Item) {
3814
+ return new ClinicalPathway_TaskPriority(3, [
3815
+ Item
3816
+ ]);
3817
+ }
3762
3818
  class ClinicalPathway_TaskPriority extends _Types.Union {
3763
3819
  cases() {
3764
3820
  return [
3765
3821
  "High",
3766
3822
  "Medium",
3767
- "Low"
3823
+ "Low",
3824
+ "Stated"
3768
3825
  ];
3769
3826
  }
3770
3827
  constructor(tag, fields){
@@ -3775,7 +3832,13 @@ function ClinicalPathway_TaskPriority_$reflection() {
3775
3832
  return (0, _Reflection.union_type)("F1.Studio.ClinicalPathway.TaskPriority", [], ClinicalPathway_TaskPriority, ()=>[
3776
3833
  [],
3777
3834
  [],
3778
- []
3835
+ [],
3836
+ [
3837
+ [
3838
+ "Item",
3839
+ _Reflection.int32_type
3840
+ ]
3841
+ ]
3779
3842
  ]);
3780
3843
  }
3781
3844
  function ClinicalPathway_DueDate_Today() {
@@ -3794,13 +3857,19 @@ function ClinicalPathway_DueDate_SpecificDate(Item) {
3794
3857
  Item
3795
3858
  ]);
3796
3859
  }
3860
+ function ClinicalPathway_DueDate_AsStated(Item) {
3861
+ return new ClinicalPathway_DueDate(4, [
3862
+ Item
3863
+ ]);
3864
+ }
3797
3865
  class ClinicalPathway_DueDate extends _Types.Union {
3798
3866
  cases() {
3799
3867
  return [
3800
3868
  "Today",
3801
3869
  "Tomorrow",
3802
3870
  "DaysFromNow",
3803
- "SpecificDate"
3871
+ "SpecificDate",
3872
+ "AsStated"
3804
3873
  ];
3805
3874
  }
3806
3875
  constructor(tag, fields){
@@ -3822,72 +3891,83 @@ function ClinicalPathway_DueDate_$reflection() {
3822
3891
  "Item",
3823
3892
  (0, _Reflection.class_type)("System.DateTimeOffset")
3824
3893
  ]
3894
+ ],
3895
+ [
3896
+ [
3897
+ "Item",
3898
+ _Reflection.string_type
3899
+ ]
3825
3900
  ]
3826
3901
  ]);
3827
3902
  }
3828
- function ClinicalPathway_RecurrenceEnd_OnDate(Item) {
3829
- return new ClinicalPathway_RecurrenceEnd(0, [
3830
- Item
3903
+ function ClinicalPathway_Cadence_OnSchedule(scheduleId, scheduleName) {
3904
+ return new ClinicalPathway_Cadence(0, [
3905
+ scheduleId,
3906
+ scheduleName
3831
3907
  ]);
3832
3908
  }
3833
- function ClinicalPathway_RecurrenceEnd_AfterOccurrences(Item) {
3834
- return new ClinicalPathway_RecurrenceEnd(1, [
3835
- Item
3909
+ function ClinicalPathway_Cadence_Every(interval, until) {
3910
+ return new ClinicalPathway_Cadence(1, [
3911
+ interval,
3912
+ until
3836
3913
  ]);
3837
3914
  }
3838
- function ClinicalPathway_RecurrenceEnd_Never() {
3839
- return new ClinicalPathway_RecurrenceEnd(2, []);
3840
- }
3841
- class ClinicalPathway_RecurrenceEnd extends _Types.Union {
3915
+ class ClinicalPathway_Cadence extends _Types.Union {
3842
3916
  cases() {
3843
3917
  return [
3844
- "OnDate",
3845
- "AfterOccurrences",
3846
- "Never"
3918
+ "OnSchedule",
3919
+ "Every"
3847
3920
  ];
3848
3921
  }
3849
3922
  constructor(tag, fields){
3850
3923
  super(), this.tag = tag, this.fields = fields;
3851
3924
  }
3852
3925
  }
3853
- function ClinicalPathway_RecurrenceEnd_$reflection() {
3854
- return (0, _Reflection.union_type)("F1.Studio.ClinicalPathway.RecurrenceEnd", [], ClinicalPathway_RecurrenceEnd, ()=>[
3926
+ function ClinicalPathway_Cadence_$reflection() {
3927
+ return (0, _Reflection.union_type)("F1.Studio.ClinicalPathway.Cadence", [], ClinicalPathway_Cadence, ()=>[
3855
3928
  [
3856
3929
  [
3857
- "Item",
3858
- (0, _Reflection.class_type)("System.DateTimeOffset")
3930
+ "scheduleId",
3931
+ _Reflection.int32_type
3932
+ ],
3933
+ [
3934
+ "scheduleName",
3935
+ (0, _Reflection.option_type)(_Reflection.string_type)
3859
3936
  ]
3860
3937
  ],
3861
3938
  [
3862
3939
  [
3863
- "Item",
3864
- _Reflection.int32_type
3940
+ "interval",
3941
+ _Reflection.string_type
3942
+ ],
3943
+ [
3944
+ "until",
3945
+ _Reflection.string_type
3865
3946
  ]
3866
- ],
3867
- []
3947
+ ]
3868
3948
  ]);
3869
3949
  }
3870
- class ClinicalPathway_RecurrencePattern extends _Types.Record {
3871
- constructor(Interval, Until){
3950
+ class ClinicalPathway_StandingSchedule extends _Types.Record {
3951
+ constructor(Cadence, Ends){
3872
3952
  super();
3873
- this.Interval = Interval;
3874
- this.Until = Until;
3953
+ this.Cadence = Cadence;
3954
+ this.Ends = Ends;
3875
3955
  }
3876
3956
  }
3877
- function ClinicalPathway_RecurrencePattern_$reflection() {
3878
- return (0, _Reflection.record_type)("F1.Studio.ClinicalPathway.RecurrencePattern", [], ClinicalPathway_RecurrencePattern, ()=>[
3957
+ function ClinicalPathway_StandingSchedule_$reflection() {
3958
+ return (0, _Reflection.record_type)("F1.Studio.ClinicalPathway.StandingSchedule", [], ClinicalPathway_StandingSchedule, ()=>[
3879
3959
  [
3880
- "Interval",
3881
- (0, _Reflection.class_type)("System.TimeSpan")
3960
+ "Cadence",
3961
+ ClinicalPathway_Cadence_$reflection()
3882
3962
  ],
3883
3963
  [
3884
- "Until",
3885
- ClinicalPathway_RecurrenceEnd_$reflection()
3964
+ "Ends",
3965
+ (0, _Reflection.option_type)(ClinicalPathway_DueDate_$reflection())
3886
3966
  ]
3887
3967
  ]);
3888
3968
  }
3889
3969
  class ClinicalPathway_TaskAction extends _Types.Record {
3890
- constructor(CategoryId, Category, Description, Priority, DueDate, Assignee, Recurrence){
3970
+ constructor(CategoryId, Category, Description, Priority, DueDate, Assignee, Standing){
3891
3971
  super();
3892
3972
  this.CategoryId = CategoryId;
3893
3973
  this.Category = Category;
@@ -3895,7 +3975,7 @@ class ClinicalPathway_TaskAction extends _Types.Record {
3895
3975
  this.Priority = Priority;
3896
3976
  this.DueDate = DueDate;
3897
3977
  this.Assignee = Assignee;
3898
- this.Recurrence = Recurrence;
3978
+ this.Standing = Standing;
3899
3979
  }
3900
3980
  }
3901
3981
  function ClinicalPathway_TaskAction_$reflection() {
@@ -3910,7 +3990,7 @@ function ClinicalPathway_TaskAction_$reflection() {
3910
3990
  ],
3911
3991
  [
3912
3992
  "Description",
3913
- _Reflection.string_type
3993
+ (0, _Reflection.option_type)(_Reflection.string_type)
3914
3994
  ],
3915
3995
  [
3916
3996
  "Priority",
@@ -3922,11 +4002,11 @@ function ClinicalPathway_TaskAction_$reflection() {
3922
4002
  ],
3923
4003
  [
3924
4004
  "Assignee",
3925
- _Reflection.string_type
4005
+ (0, _Reflection.option_type)(_Reflection.string_type)
3926
4006
  ],
3927
4007
  [
3928
- "Recurrence",
3929
- (0, _Reflection.option_type)(ClinicalPathway_RecurrencePattern_$reflection())
4008
+ "Standing",
4009
+ (0, _Reflection.option_type)(ClinicalPathway_StandingSchedule_$reflection())
3930
4010
  ]
3931
4011
  ]);
3932
4012
  }
@@ -3989,7 +4069,7 @@ function ClinicalPathway_AlertAction_$reflection() {
3989
4069
  ],
3990
4070
  [
3991
4071
  "Severity",
3992
- ClinicalPathway_AlertSeverity_$reflection()
4072
+ (0, _Reflection.option_type)(ClinicalPathway_AlertSeverity_$reflection())
3993
4073
  ],
3994
4074
  [
3995
4075
  "ExpiresAfter",
@@ -4052,7 +4132,7 @@ function ClinicalPathway_ProblemAction_$reflection() {
4052
4132
  ],
4053
4133
  [
4054
4134
  "ProblemName",
4055
- _Reflection.string_type
4135
+ (0, _Reflection.option_type)(_Reflection.string_type)
4056
4136
  ],
4057
4137
  [
4058
4138
  "IcdCode",
@@ -4286,6 +4366,67 @@ function ClinicalPathway_NavigateToFormAction_$reflection() {
4286
4366
  ]
4287
4367
  ]);
4288
4368
  }
4369
+ function ClinicalPathway_GroupChange_AddToGroups() {
4370
+ return new ClinicalPathway_GroupChange(0, []);
4371
+ }
4372
+ function ClinicalPathway_GroupChange_RemoveFromGroups() {
4373
+ return new ClinicalPathway_GroupChange(1, []);
4374
+ }
4375
+ class ClinicalPathway_GroupChange extends _Types.Union {
4376
+ cases() {
4377
+ return [
4378
+ "AddToGroups",
4379
+ "RemoveFromGroups"
4380
+ ];
4381
+ }
4382
+ constructor(tag, fields){
4383
+ super(), this.tag = tag, this.fields = fields;
4384
+ }
4385
+ }
4386
+ function ClinicalPathway_GroupChange_$reflection() {
4387
+ return (0, _Reflection.union_type)("F1.Studio.ClinicalPathway.GroupChange", [], ClinicalPathway_GroupChange, ()=>[
4388
+ [],
4389
+ []
4390
+ ]);
4391
+ }
4392
+ class ClinicalPathway_GroupRef extends _Types.Record {
4393
+ constructor(GroupId, Name){
4394
+ super();
4395
+ this.GroupId = GroupId | 0;
4396
+ this.Name = Name;
4397
+ }
4398
+ }
4399
+ function ClinicalPathway_GroupRef_$reflection() {
4400
+ return (0, _Reflection.record_type)("F1.Studio.ClinicalPathway.GroupRef", [], ClinicalPathway_GroupRef, ()=>[
4401
+ [
4402
+ "GroupId",
4403
+ _Reflection.int32_type
4404
+ ],
4405
+ [
4406
+ "Name",
4407
+ (0, _Reflection.option_type)(_Reflection.string_type)
4408
+ ]
4409
+ ]);
4410
+ }
4411
+ class ClinicalPathway_GroupChangeAction extends _Types.Record {
4412
+ constructor(Change, Groups){
4413
+ super();
4414
+ this.Change = Change;
4415
+ this.Groups = Groups;
4416
+ }
4417
+ }
4418
+ function ClinicalPathway_GroupChangeAction_$reflection() {
4419
+ return (0, _Reflection.record_type)("F1.Studio.ClinicalPathway.GroupChangeAction", [], ClinicalPathway_GroupChangeAction, ()=>[
4420
+ [
4421
+ "Change",
4422
+ ClinicalPathway_GroupChange_$reflection()
4423
+ ],
4424
+ [
4425
+ "Groups",
4426
+ (0, _Reflection.list_type)(ClinicalPathway_GroupRef_$reflection())
4427
+ ]
4428
+ ]);
4429
+ }
4289
4430
  function ClinicalPathway_ActionInfo_Medication(Item) {
4290
4431
  return new ClinicalPathway_ActionInfo(0, [
4291
4432
  Item
@@ -4356,6 +4497,11 @@ function ClinicalPathway_ActionInfo_NavigateToForm(Item) {
4356
4497
  Item
4357
4498
  ]);
4358
4499
  }
4500
+ function ClinicalPathway_ActionInfo_ChangeGroups(Item) {
4501
+ return new ClinicalPathway_ActionInfo(14, [
4502
+ Item
4503
+ ]);
4504
+ }
4359
4505
  class ClinicalPathway_ActionInfo extends _Types.Union {
4360
4506
  cases() {
4361
4507
  return [
@@ -4372,7 +4518,8 @@ class ClinicalPathway_ActionInfo extends _Types.Union {
4372
4518
  "Problem",
4373
4519
  "Prescription",
4374
4520
  "SetFieldValue",
4375
- "NavigateToForm"
4521
+ "NavigateToForm",
4522
+ "ChangeGroups"
4376
4523
  ];
4377
4524
  }
4378
4525
  constructor(tag, fields){
@@ -4464,30 +4611,85 @@ function ClinicalPathway_ActionInfo_$reflection() {
4464
4611
  "Item",
4465
4612
  ClinicalPathway_NavigateToFormAction_$reflection()
4466
4613
  ]
4614
+ ],
4615
+ [
4616
+ [
4617
+ "Item",
4618
+ ClinicalPathway_GroupChangeAction_$reflection()
4619
+ ]
4467
4620
  ]
4468
4621
  ]);
4469
4622
  }
4470
- class ClinicalPathway_DecisionInfo extends _Types.Record {
4471
- constructor(DecisionKey, Question, Options){
4623
+ class ClinicalPathway_CoreMRTriggerRef extends _Types.Record {
4624
+ constructor(TriggerId, ActionId, SourceItem){
4472
4625
  super();
4473
- this.DecisionKey = DecisionKey;
4474
- this.Question = Question;
4475
- this.Options = Options;
4626
+ this.TriggerId = TriggerId | 0;
4627
+ this.ActionId = ActionId | 0;
4628
+ this.SourceItem = SourceItem | 0;
4476
4629
  }
4477
4630
  }
4478
- function ClinicalPathway_DecisionInfo_$reflection() {
4479
- return (0, _Reflection.record_type)("F1.Studio.ClinicalPathway.DecisionInfo", [], ClinicalPathway_DecisionInfo, ()=>[
4631
+ function ClinicalPathway_CoreMRTriggerRef_$reflection() {
4632
+ return (0, _Reflection.record_type)("F1.Studio.ClinicalPathway.CoreMRTriggerRef", [], ClinicalPathway_CoreMRTriggerRef, ()=>[
4480
4633
  [
4481
- "DecisionKey",
4482
- _Reflection.string_type
4634
+ "TriggerId",
4635
+ _Reflection.int32_type
4483
4636
  ],
4484
4637
  [
4485
- "Question",
4486
- _Reflection.string_type
4638
+ "ActionId",
4639
+ _Reflection.int32_type
4487
4640
  ],
4488
4641
  [
4489
- "Options",
4490
- (0, _Reflection.list_type)(_Reflection.string_type)
4642
+ "SourceItem",
4643
+ _Reflection.int32_type
4644
+ ]
4645
+ ]);
4646
+ }
4647
+ function ClinicalPathway_ActionOrigin_Authored() {
4648
+ return new ClinicalPathway_ActionOrigin(0, []);
4649
+ }
4650
+ function ClinicalPathway_ActionOrigin_CoreMRTrigger(Item) {
4651
+ return new ClinicalPathway_ActionOrigin(1, [
4652
+ Item
4653
+ ]);
4654
+ }
4655
+ class ClinicalPathway_ActionOrigin extends _Types.Union {
4656
+ cases() {
4657
+ return [
4658
+ "Authored",
4659
+ "CoreMRTrigger"
4660
+ ];
4661
+ }
4662
+ constructor(tag, fields){
4663
+ super(), this.tag = tag, this.fields = fields;
4664
+ }
4665
+ }
4666
+ function ClinicalPathway_ActionOrigin_$reflection() {
4667
+ return (0, _Reflection.union_type)("F1.Studio.ClinicalPathway.ActionOrigin", [], ClinicalPathway_ActionOrigin, ()=>[
4668
+ [],
4669
+ [
4670
+ [
4671
+ "Item",
4672
+ ClinicalPathway_CoreMRTriggerRef_$reflection()
4673
+ ]
4674
+ ]
4675
+ ]);
4676
+ }
4677
+ class ClinicalPathway_PathwayAction extends _Types.Record {
4678
+ constructor(Action, Origin){
4679
+ super();
4680
+ this.Action = Action;
4681
+ this.Origin = Origin;
4682
+ }
4683
+ }
4684
+ function ClinicalPathway_PathwayAction_$reflection() {
4685
+ return (0, _Reflection.record_type)("F1.Studio.ClinicalPathway.PathwayAction", [], ClinicalPathway_PathwayAction, ()=>[
4686
+ [
4687
+ "Action",
4688
+ ClinicalPathway_ActionInfo_$reflection()
4689
+ ],
4690
+ [
4691
+ "Origin",
4692
+ ClinicalPathway_ActionOrigin_$reflection()
4491
4693
  ]
4492
4694
  ]);
4493
4695
  }
@@ -4534,42 +4736,36 @@ function ClinicalPathway_TerminalInfo_$reflection() {
4534
4736
  ]
4535
4737
  ]);
4536
4738
  }
4537
- function ClinicalPathway_StateType_Decision(Item) {
4538
- return new ClinicalPathway_StateType(0, [
4539
- Item
4540
- ]);
4541
- }
4542
4739
  function ClinicalPathway_StateType_Evaluation(Item) {
4543
- return new ClinicalPathway_StateType(1, [
4740
+ return new ClinicalPathway_StateType(0, [
4544
4741
  Item
4545
4742
  ]);
4546
4743
  }
4547
4744
  function ClinicalPathway_StateType_Action(Item) {
4548
- return new ClinicalPathway_StateType(2, [
4745
+ return new ClinicalPathway_StateType(1, [
4549
4746
  Item
4550
4747
  ]);
4551
4748
  }
4552
4749
  function ClinicalPathway_StateType_CompoundAction(Item) {
4553
- return new ClinicalPathway_StateType(3, [
4750
+ return new ClinicalPathway_StateType(2, [
4554
4751
  Item
4555
4752
  ]);
4556
4753
  }
4557
4754
  function ClinicalPathway_StateType_ConditionalAction(condition, thenAction, elseAction) {
4558
- return new ClinicalPathway_StateType(4, [
4755
+ return new ClinicalPathway_StateType(3, [
4559
4756
  condition,
4560
4757
  thenAction,
4561
4758
  elseAction
4562
4759
  ]);
4563
4760
  }
4564
4761
  function ClinicalPathway_StateType_Terminal(Item) {
4565
- return new ClinicalPathway_StateType(5, [
4762
+ return new ClinicalPathway_StateType(4, [
4566
4763
  Item
4567
4764
  ]);
4568
4765
  }
4569
4766
  class ClinicalPathway_StateType extends _Types.Union {
4570
4767
  cases() {
4571
4768
  return [
4572
- "Decision",
4573
4769
  "Evaluation",
4574
4770
  "Action",
4575
4771
  "CompoundAction",
@@ -4583,12 +4779,6 @@ class ClinicalPathway_StateType extends _Types.Union {
4583
4779
  }
4584
4780
  function ClinicalPathway_StateType_$reflection() {
4585
4781
  return (0, _Reflection.union_type)("F1.Studio.ClinicalPathway.StateType", [], ClinicalPathway_StateType, ()=>[
4586
- [
4587
- [
4588
- "Item",
4589
- ClinicalPathway_DecisionInfo_$reflection()
4590
- ]
4591
- ],
4592
4782
  [
4593
4783
  [
4594
4784
  "Item",
@@ -4598,13 +4788,13 @@ function ClinicalPathway_StateType_$reflection() {
4598
4788
  [
4599
4789
  [
4600
4790
  "Item",
4601
- ClinicalPathway_ActionInfo_$reflection()
4791
+ ClinicalPathway_PathwayAction_$reflection()
4602
4792
  ]
4603
4793
  ],
4604
4794
  [
4605
4795
  [
4606
4796
  "Item",
4607
- (0, _Reflection.list_type)(ClinicalPathway_ActionInfo_$reflection())
4797
+ (0, _Reflection.list_type)(ClinicalPathway_PathwayAction_$reflection())
4608
4798
  ]
4609
4799
  ],
4610
4800
  [
@@ -4614,11 +4804,11 @@ function ClinicalPathway_StateType_$reflection() {
4614
4804
  ],
4615
4805
  [
4616
4806
  "thenAction",
4617
- ClinicalPathway_ActionInfo_$reflection()
4807
+ ClinicalPathway_PathwayAction_$reflection()
4618
4808
  ],
4619
4809
  [
4620
4810
  "elseAction",
4621
- (0, _Reflection.option_type)(ClinicalPathway_ActionInfo_$reflection())
4811
+ (0, _Reflection.option_type)(ClinicalPathway_PathwayAction_$reflection())
4622
4812
  ]
4623
4813
  ],
4624
4814
  [