@f1studio/form-spec 5.0.0-alpha.167 → 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 (194) 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/Provenance.d.ts +15 -7
  99. package/FormSpec.FS/Provenance.d.ts.map +1 -1
  100. package/FormSpec.FS/Provenance.js +11 -11
  101. package/FormSpec.FS/Provenance.js.map +1 -1
  102. package/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.d.ts.map +1 -1
  103. package/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.js +16 -7
  104. package/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.js.map +1 -1
  105. package/FormSpec.FS/Renderers/MermaidRenderer.d.ts.map +1 -1
  106. package/FormSpec.FS/Renderers/MermaidRenderer.js +4 -8
  107. package/FormSpec.FS/Renderers/MermaidRenderer.js.map +1 -1
  108. package/FormSpec.FS/Renderers/PathwayRenderers.d.ts.map +1 -1
  109. package/FormSpec.FS/Renderers/PathwayRenderers.js +5 -4
  110. package/FormSpec.FS/Renderers/PathwayRenderers.js.map +1 -1
  111. package/FormSpec.FS/TriggerActionDto.d.ts +32 -21
  112. package/FormSpec.FS/TriggerActionDto.d.ts.map +1 -1
  113. package/FormSpec.FS/TriggerActionDto.js +247 -61
  114. package/FormSpec.FS/TriggerActionDto.js.map +1 -1
  115. package/README.md +7 -7
  116. package/package.json +1 -1
  117. package/plugins/allergyfinder/src/AllergyFinderField.d.ts.map +1 -1
  118. package/plugins/allergyfinder/src/AllergyFinderField.js +2 -2
  119. package/plugins/allergyfinder/src/AllergyFinderField.js.map +1 -1
  120. package/plugins/bmi/src/BMIField.d.ts.map +1 -1
  121. package/plugins/bmi/src/BMIField.js +21 -15
  122. package/plugins/bmi/src/BMIField.js.map +1 -1
  123. package/plugins/demographics/src/DemographicsField.d.ts.map +1 -1
  124. package/plugins/demographics/src/DemographicsField.js +4 -4
  125. package/plugins/demographics/src/DemographicsField.js.map +1 -1
  126. package/plugins/likert/src/LikertField.d.ts.map +1 -1
  127. package/plugins/likert/src/LikertField.js +40 -35
  128. package/plugins/likert/src/LikertField.js.map +1 -1
  129. package/plugins/signature/src/SignatureField.d.ts.map +1 -1
  130. package/plugins/signature/src/SignatureField.js +4 -3
  131. package/plugins/signature/src/SignatureField.js.map +1 -1
  132. package/plugins/vitals/src/VitalsField.d.ts.map +1 -1
  133. package/plugins/vitals/src/VitalsField.js +4 -4
  134. package/plugins/vitals/src/VitalsField.js.map +1 -1
  135. package/src/FormSpec.FS/BlueprintValidation.ts +55 -24
  136. package/src/FormSpec.FS/Designer.ts +2 -2
  137. package/src/FormSpec.FS/FormSpec.ts +223 -100
  138. package/src/FormSpec.FS/FormSpecHelpers.ts +2 -2
  139. package/src/FormSpec.FS/FormSpecValues.ts +6 -3
  140. package/src/FormSpec.FS/Helpers.ts +16 -11
  141. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts +2 -2
  142. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.ts +3 -3
  143. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.ts +10 -8
  144. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.ts +6 -5
  145. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.ts +1 -10
  146. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.ts +35 -30
  147. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts +7 -26
  148. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +2 -6
  149. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImportPipeline.ts +115 -0
  150. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRImporterAnalysis.ts +1059 -0
  151. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts +10 -10
  152. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRTriggerEnrichment.ts +61 -88
  153. package/src/FormSpec.FS/Integrations/CorEMR/CoreMRPathwayMapper.ts +926 -0
  154. package/src/FormSpec.FS/Integrations/CorEMR/CoreMRTypes.ts +3 -37
  155. package/src/FormSpec.FS/Integrations/CorEMR/FormTemplateDecoder.ts +1284 -0
  156. package/src/FormSpec.FS/Integrations/CorEMR/FormTemplateDomainDecoder.ts +287 -0
  157. package/src/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts +76 -25
  158. package/src/FormSpec.FS/Interop/FormSpec.Api.Option.ts +6 -6
  159. package/src/FormSpec.FS/PathwayDataExtractor.ts +40 -20
  160. package/src/FormSpec.FS/PathwayExecutor.ts +26 -26
  161. package/src/FormSpec.FS/PathwayValidator.ts +8 -5
  162. package/src/FormSpec.FS/Provenance.ts +23 -15
  163. package/src/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.ts +18 -8
  164. package/src/FormSpec.FS/Renderers/MermaidRenderer.ts +6 -10
  165. package/src/FormSpec.FS/Renderers/PathwayRenderers.ts +5 -5
  166. package/src/FormSpec.FS/TriggerActionDto.ts +247 -74
  167. package/src/plugins/allergyfinder/src/AllergyFinderField.ts +3 -3
  168. package/src/plugins/bmi/src/BMIField.ts +12 -5
  169. package/src/plugins/demographics/src/DemographicsField.ts +5 -5
  170. package/src/plugins/likert/src/LikertField.ts +16 -11
  171. package/src/plugins/signature/src/SignatureField.ts +4 -3
  172. package/src/plugins/vitals/src/VitalsField.ts +5 -5
  173. package/src/vye-os-contracts-fs/src/Core/Ids.ts +8 -8
  174. package/src/vye-os-contracts-fs/src/CoreMR/FormTemplate.ts +715 -0
  175. package/vye-os-contracts-fs/src/Core/Ids.d.ts +4 -4
  176. package/vye-os-contracts-fs/src/Core/Ids.d.ts.map +1 -1
  177. package/vye-os-contracts-fs/src/Core/Ids.js +18 -18
  178. package/vye-os-contracts-fs/src/CoreMR/FormTemplate.d.ts +310 -0
  179. package/vye-os-contracts-fs/src/CoreMR/FormTemplate.d.ts.map +1 -0
  180. package/vye-os-contracts-fs/src/CoreMR/FormTemplate.js +1242 -0
  181. package/vye-os-contracts-fs/src/CoreMR/FormTemplate.js.map +1 -0
  182. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.d.ts +0 -69
  183. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.d.ts.map +0 -1
  184. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.js +0 -447
  185. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.js.map +0 -1
  186. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts +0 -19
  187. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts.map +0 -1
  188. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js +0 -643
  189. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js.map +0 -1
  190. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts.map +0 -1
  191. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +0 -1
  192. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.ts +0 -412
  193. package/src/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.ts +0 -588
  194. package/src/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts +0 -1054
@@ -1,15 +1,15 @@
1
1
  import { FSharpRef, Record, Union } from "@fable-org/fable-library-js/Types.js";
2
2
  import { obj_type, float64_type, tuple_type, bool_type, list_type, record_type, option_type, int32_type, string_type, union_type, class_type, TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
3
- import { Option } from "@fable-org/fable-library-js/Option.js";
3
+ import { value, Option } from "@fable-org/fable-library-js/Option.js";
4
4
  import { float64, int32 } from "@fable-org/fable-library-js/Int32.js";
5
5
  import { IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
6
6
  import { FSharpMap } from "@fable-org/fable-library-js/Map.js";
7
7
  import { FSharpSet } from "@fable-org/fable-library-js/Set.js";
8
8
  import { ofArray, FSharpList } from "@fable-org/fable-library-js/List.js";
9
9
  import { IntegrationProvenance_$reflection, IntegrationProvenance } from "./Provenance.js";
10
+ import { split, isNullOrEmpty } from "@fable-org/fable-library-js/String.js";
10
11
  import { newGuid, tryParse } from "@fable-org/fable-library-js/Guid.js";
11
12
  import { item } from "@fable-org/fable-library-js/Array.js";
12
- import { split } from "@fable-org/fable-library-js/String.js";
13
13
 
14
14
  export class Shared_FieldKey extends Union<0, "FieldKey"> {
15
15
  constructor(Item: string) {
@@ -1172,7 +1172,7 @@ export function Spec_FieldAnswerFlag_$reflection(): TypeInfo {
1172
1172
  export class Spec_FormField$1<FieldType> extends Record implements IEquatable<Spec_FormField$1<FieldType>>, IComparable<Spec_FormField$1<FieldType>> {
1173
1173
  readonly FieldOrder: int32;
1174
1174
  readonly FieldKey: Shared_FieldKey;
1175
- readonly Label: string;
1175
+ readonly Label: Option<string>;
1176
1176
  readonly Notes: Option<string>;
1177
1177
  readonly DependsOn: Option<Spec_DependsOn>;
1178
1178
  readonly IsOptional: boolean;
@@ -1180,7 +1180,7 @@ export class Spec_FormField$1<FieldType> extends Record implements IEquatable<Sp
1180
1180
  readonly NeedsDocumentation: boolean;
1181
1181
  readonly FieldType: FieldType;
1182
1182
  readonly Value: Option<Shared_FieldValue_$union>;
1183
- constructor(FieldOrder: int32, FieldKey: Shared_FieldKey, Label: string, Notes: Option<string>, DependsOn: Option<Spec_DependsOn>, IsOptional: boolean, IsDeprecated: boolean, NeedsDocumentation: boolean, FieldType: FieldType, Value: Option<Shared_FieldValue_$union>) {
1183
+ constructor(FieldOrder: int32, FieldKey: Shared_FieldKey, Label: Option<string>, Notes: Option<string>, DependsOn: Option<Spec_DependsOn>, IsOptional: boolean, IsDeprecated: boolean, NeedsDocumentation: boolean, FieldType: FieldType, Value: Option<Shared_FieldValue_$union>) {
1184
1184
  super();
1185
1185
  this.FieldOrder = (FieldOrder | 0);
1186
1186
  this.FieldKey = FieldKey;
@@ -1196,14 +1196,14 @@ export class Spec_FormField$1<FieldType> extends Record implements IEquatable<Sp
1196
1196
  }
1197
1197
 
1198
1198
  export function Spec_FormField$1_$reflection(gen0: TypeInfo): TypeInfo {
1199
- return record_type("F1.Studio.Spec.FormField`1", [gen0], Spec_FormField$1, () => [["FieldOrder", int32_type], ["FieldKey", Shared_FieldKey_$reflection()], ["Label", string_type], ["Notes", option_type(string_type)], ["DependsOn", option_type(Spec_DependsOn_$reflection())], ["IsOptional", bool_type], ["IsDeprecated", bool_type], ["NeedsDocumentation", bool_type], ["FieldType", gen0], ["Value", option_type(Shared_FieldValue_$reflection())]]);
1199
+ return record_type("F1.Studio.Spec.FormField`1", [gen0], Spec_FormField$1, () => [["FieldOrder", int32_type], ["FieldKey", Shared_FieldKey_$reflection()], ["Label", option_type(string_type)], ["Notes", option_type(string_type)], ["DependsOn", option_type(Spec_DependsOn_$reflection())], ["IsOptional", bool_type], ["IsDeprecated", bool_type], ["NeedsDocumentation", bool_type], ["FieldType", gen0], ["Value", option_type(Shared_FieldValue_$reflection())]]);
1200
1200
  }
1201
1201
 
1202
1202
  export class Spec_FormStep$1<FieldType> extends Record implements IEquatable<Spec_FormStep$1<FieldType>>, IComparable<Spec_FormStep$1<FieldType>> {
1203
1203
  readonly StepOrder: int32;
1204
- readonly StepLabel: string;
1204
+ readonly StepLabel: Option<string>;
1205
1205
  readonly Fields: FSharpList<Spec_FormField$1<FieldType>>;
1206
- constructor(StepOrder: int32, StepLabel: string, Fields: FSharpList<Spec_FormField$1<FieldType>>) {
1206
+ constructor(StepOrder: int32, StepLabel: Option<string>, Fields: FSharpList<Spec_FormField$1<FieldType>>) {
1207
1207
  super();
1208
1208
  this.StepOrder = (StepOrder | 0);
1209
1209
  this.StepLabel = StepLabel;
@@ -1212,7 +1212,7 @@ export class Spec_FormStep$1<FieldType> extends Record implements IEquatable<Spe
1212
1212
  }
1213
1213
 
1214
1214
  export function Spec_FormStep$1_$reflection(gen0: TypeInfo): TypeInfo {
1215
- return record_type("F1.Studio.Spec.FormStep`1", [gen0], Spec_FormStep$1, () => [["StepOrder", int32_type], ["StepLabel", string_type], ["Fields", list_type(Spec_FormField$1_$reflection(gen0))]]);
1215
+ return record_type("F1.Studio.Spec.FormStep`1", [gen0], Spec_FormStep$1, () => [["StepOrder", int32_type], ["StepLabel", option_type(string_type)], ["Fields", list_type(Spec_FormField$1_$reflection(gen0))]]);
1216
1216
  }
1217
1217
 
1218
1218
  export type Spec_ScoreColor_$union =
@@ -1584,6 +1584,27 @@ export function Spec_SpecialTextType__get_Label(x: Spec_SpecialTextType_$union):
1584
1584
 
1585
1585
  export const Spec_availableSpecialTextType: FSharpList<Spec_SpecialTextType_$union> = ofArray([Spec_SpecialTextType_BodyTemperatureType(), Spec_SpecialTextType_BloodPressureType(), Spec_SpecialTextType_DiastolicBloodPressureType(), Spec_SpecialTextType_SystolicBloodPressureType(), Spec_SpecialTextType_HeightType(), Spec_SpecialTextType_WeightType(), Spec_SpecialTextType_PulseRateType(), Spec_SpecialTextType_HeartRateType(), Spec_SpecialTextType_RespirationRateType(), Spec_SpecialTextType_OxygenSaturationType()]);
1586
1586
 
1587
+ export function Spec_Label_shown(label: Option<string>): string {
1588
+ if (label == null) {
1589
+ return "(no text)";
1590
+ }
1591
+ else {
1592
+ return value(label);
1593
+ }
1594
+ }
1595
+
1596
+ /**
1597
+ * The label as STATED: `None` for no text. ⛔ Only for reading a source's own text (e.g. a CoreMR item's).
1598
+ */
1599
+ export function Spec_Label_ofStated(text: string): Option<string> {
1600
+ if (isNullOrEmpty(text)) {
1601
+ return undefined;
1602
+ }
1603
+ else {
1604
+ return text;
1605
+ }
1606
+ }
1607
+
1587
1608
  export function Spec_ScoreColor__get_Value(x: Spec_ScoreColor_$union): int32 {
1588
1609
  switch (x.tag) {
1589
1610
  case /* Primary */ 1:
@@ -1648,34 +1669,30 @@ export function ClinicalPathway_MedicationAction_$reflection(): TypeInfo {
1648
1669
 
1649
1670
  export class ClinicalPathway_TreatmentAction extends Record implements IEquatable<ClinicalPathway_TreatmentAction>, IComparable<ClinicalPathway_TreatmentAction> {
1650
1671
  readonly TreatmentId: Option<int32>;
1651
- readonly Name: string;
1672
+ readonly Name: Option<string>;
1652
1673
  readonly ProviderId: Option<int32>;
1653
- readonly ScheduleId: Option<int32>;
1654
1674
  readonly Signature: Option<string>;
1655
1675
  readonly DateStart: ClinicalPathway_DueDate_$union;
1656
- readonly Duration: ClinicalPathway_DueDate_$union;
1676
+ readonly Standing: ClinicalPathway_StandingSchedule;
1657
1677
  readonly Description: Option<string>;
1658
1678
  readonly Priority: Option<ClinicalPathway_TaskPriority_$union>;
1659
1679
  readonly SourceRelatedId: Option<int32>;
1660
- readonly CategoryId: Option<int32>;
1661
- constructor(TreatmentId: Option<int32>, Name: string, ProviderId: Option<int32>, ScheduleId: Option<int32>, Signature: Option<string>, DateStart: ClinicalPathway_DueDate_$union, Duration: ClinicalPathway_DueDate_$union, Description: Option<string>, Priority: Option<ClinicalPathway_TaskPriority_$union>, SourceRelatedId: Option<int32>, CategoryId: Option<int32>) {
1680
+ constructor(TreatmentId: Option<int32>, Name: Option<string>, ProviderId: Option<int32>, Signature: Option<string>, DateStart: ClinicalPathway_DueDate_$union, Standing: ClinicalPathway_StandingSchedule, Description: Option<string>, Priority: Option<ClinicalPathway_TaskPriority_$union>, SourceRelatedId: Option<int32>) {
1662
1681
  super();
1663
1682
  this.TreatmentId = TreatmentId;
1664
1683
  this.Name = Name;
1665
1684
  this.ProviderId = ProviderId;
1666
- this.ScheduleId = ScheduleId;
1667
1685
  this.Signature = Signature;
1668
1686
  this.DateStart = DateStart;
1669
- this.Duration = Duration;
1687
+ this.Standing = Standing;
1670
1688
  this.Description = Description;
1671
1689
  this.Priority = Priority;
1672
1690
  this.SourceRelatedId = SourceRelatedId;
1673
- this.CategoryId = CategoryId;
1674
1691
  }
1675
1692
  }
1676
1693
 
1677
1694
  export function ClinicalPathway_TreatmentAction_$reflection(): TypeInfo {
1678
- return record_type("F1.Studio.ClinicalPathway.TreatmentAction", [], ClinicalPathway_TreatmentAction, () => [["TreatmentId", option_type(int32_type)], ["Name", string_type], ["ProviderId", option_type(int32_type)], ["ScheduleId", option_type(int32_type)], ["Signature", option_type(string_type)], ["DateStart", ClinicalPathway_DueDate_$reflection()], ["Duration", ClinicalPathway_DueDate_$reflection()], ["Description", option_type(string_type)], ["Priority", option_type(ClinicalPathway_TaskPriority_$reflection())], ["SourceRelatedId", option_type(int32_type)], ["CategoryId", option_type(int32_type)]]);
1695
+ return record_type("F1.Studio.ClinicalPathway.TreatmentAction", [], ClinicalPathway_TreatmentAction, () => [["TreatmentId", option_type(int32_type)], ["Name", option_type(string_type)], ["ProviderId", option_type(int32_type)], ["Signature", option_type(string_type)], ["DateStart", ClinicalPathway_DueDate_$reflection()], ["Standing", ClinicalPathway_StandingSchedule_$reflection()], ["Description", option_type(string_type)], ["Priority", option_type(ClinicalPathway_TaskPriority_$reflection())], ["SourceRelatedId", option_type(int32_type)]]);
1679
1696
  }
1680
1697
 
1681
1698
  export class ClinicalPathway_MedsetAction extends Record implements IEquatable<ClinicalPathway_MedsetAction>, IComparable<ClinicalPathway_MedsetAction> {
@@ -1684,20 +1701,18 @@ export class ClinicalPathway_MedsetAction extends Record implements IEquatable<C
1684
1701
  readonly ProviderId: Option<int32>;
1685
1702
  readonly PharmacyId: Option<int32>;
1686
1703
  readonly DateStart: ClinicalPathway_DueDate_$union;
1687
- readonly CategoryId: Option<int32>;
1688
- constructor(MedsetId: Option<int32>, Name: string, ProviderId: Option<int32>, PharmacyId: Option<int32>, DateStart: ClinicalPathway_DueDate_$union, CategoryId: Option<int32>) {
1704
+ constructor(MedsetId: Option<int32>, Name: string, ProviderId: Option<int32>, PharmacyId: Option<int32>, DateStart: ClinicalPathway_DueDate_$union) {
1689
1705
  super();
1690
1706
  this.MedsetId = MedsetId;
1691
1707
  this.Name = Name;
1692
1708
  this.ProviderId = ProviderId;
1693
1709
  this.PharmacyId = PharmacyId;
1694
1710
  this.DateStart = DateStart;
1695
- this.CategoryId = CategoryId;
1696
1711
  }
1697
1712
  }
1698
1713
 
1699
1714
  export function ClinicalPathway_MedsetAction_$reflection(): TypeInfo {
1700
- return record_type("F1.Studio.ClinicalPathway.MedsetAction", [], ClinicalPathway_MedsetAction, () => [["MedsetId", option_type(int32_type)], ["Name", string_type], ["ProviderId", option_type(int32_type)], ["PharmacyId", option_type(int32_type)], ["DateStart", ClinicalPathway_DueDate_$reflection()], ["CategoryId", option_type(int32_type)]]);
1715
+ return record_type("F1.Studio.ClinicalPathway.MedsetAction", [], ClinicalPathway_MedsetAction, () => [["MedsetId", option_type(int32_type)], ["Name", string_type], ["ProviderId", option_type(int32_type)], ["PharmacyId", option_type(int32_type)], ["DateStart", ClinicalPathway_DueDate_$reflection()]]);
1701
1716
  }
1702
1717
 
1703
1718
  export class ClinicalPathway_TestAction extends Record implements IEquatable<ClinicalPathway_TestAction>, IComparable<ClinicalPathway_TestAction> {
@@ -1820,11 +1835,13 @@ export type ClinicalPathway_TaskPriority_$union =
1820
1835
  | ClinicalPathway_TaskPriority<0>
1821
1836
  | ClinicalPathway_TaskPriority<1>
1822
1837
  | ClinicalPathway_TaskPriority<2>
1838
+ | ClinicalPathway_TaskPriority<3>
1823
1839
 
1824
1840
  export type ClinicalPathway_TaskPriority_$cases = {
1825
1841
  0: ["High", []],
1826
1842
  1: ["Medium", []],
1827
- 2: ["Low", []]
1843
+ 2: ["Low", []],
1844
+ 3: ["Stated", [int32]]
1828
1845
  }
1829
1846
 
1830
1847
  export function ClinicalPathway_TaskPriority_High() {
@@ -1839,17 +1856,21 @@ export function ClinicalPathway_TaskPriority_Low() {
1839
1856
  return new ClinicalPathway_TaskPriority<2>(2, []);
1840
1857
  }
1841
1858
 
1859
+ export function ClinicalPathway_TaskPriority_Stated(Item: int32) {
1860
+ return new ClinicalPathway_TaskPriority<3>(3, [Item]);
1861
+ }
1862
+
1842
1863
  export class ClinicalPathway_TaskPriority<Tag extends keyof ClinicalPathway_TaskPriority_$cases> extends Union<Tag, ClinicalPathway_TaskPriority_$cases[Tag][0]> {
1843
1864
  constructor(readonly tag: Tag, readonly fields: ClinicalPathway_TaskPriority_$cases[Tag][1]) {
1844
1865
  super();
1845
1866
  }
1846
1867
  cases() {
1847
- return ["High", "Medium", "Low"];
1868
+ return ["High", "Medium", "Low", "Stated"];
1848
1869
  }
1849
1870
  }
1850
1871
 
1851
1872
  export function ClinicalPathway_TaskPriority_$reflection(): TypeInfo {
1852
- return union_type("F1.Studio.ClinicalPathway.TaskPriority", [], ClinicalPathway_TaskPriority, () => [[], [], []]);
1873
+ return union_type("F1.Studio.ClinicalPathway.TaskPriority", [], ClinicalPathway_TaskPriority, () => [[], [], [], [["Item", int32_type]]]);
1853
1874
  }
1854
1875
 
1855
1876
  export type ClinicalPathway_DueDate_$union =
@@ -1857,12 +1878,14 @@ export type ClinicalPathway_DueDate_$union =
1857
1878
  | ClinicalPathway_DueDate<1>
1858
1879
  | ClinicalPathway_DueDate<2>
1859
1880
  | ClinicalPathway_DueDate<3>
1881
+ | ClinicalPathway_DueDate<4>
1860
1882
 
1861
1883
  export type ClinicalPathway_DueDate_$cases = {
1862
1884
  0: ["Today", []],
1863
1885
  1: ["Tomorrow", []],
1864
1886
  2: ["DaysFromNow", [int32]],
1865
- 3: ["SpecificDate", [Date]]
1887
+ 3: ["SpecificDate", [Date]],
1888
+ 4: ["AsStated", [string]]
1866
1889
  }
1867
1890
 
1868
1891
  export function ClinicalPathway_DueDate_Today() {
@@ -1881,78 +1904,76 @@ export function ClinicalPathway_DueDate_SpecificDate(Item: Date) {
1881
1904
  return new ClinicalPathway_DueDate<3>(3, [Item]);
1882
1905
  }
1883
1906
 
1907
+ export function ClinicalPathway_DueDate_AsStated(Item: string) {
1908
+ return new ClinicalPathway_DueDate<4>(4, [Item]);
1909
+ }
1910
+
1884
1911
  export class ClinicalPathway_DueDate<Tag extends keyof ClinicalPathway_DueDate_$cases> extends Union<Tag, ClinicalPathway_DueDate_$cases[Tag][0]> {
1885
1912
  constructor(readonly tag: Tag, readonly fields: ClinicalPathway_DueDate_$cases[Tag][1]) {
1886
1913
  super();
1887
1914
  }
1888
1915
  cases() {
1889
- return ["Today", "Tomorrow", "DaysFromNow", "SpecificDate"];
1916
+ return ["Today", "Tomorrow", "DaysFromNow", "SpecificDate", "AsStated"];
1890
1917
  }
1891
1918
  }
1892
1919
 
1893
1920
  export function ClinicalPathway_DueDate_$reflection(): TypeInfo {
1894
- return union_type("F1.Studio.ClinicalPathway.DueDate", [], ClinicalPathway_DueDate, () => [[], [], [["Item", int32_type]], [["Item", class_type("System.DateTimeOffset")]]]);
1921
+ return union_type("F1.Studio.ClinicalPathway.DueDate", [], ClinicalPathway_DueDate, () => [[], [], [["Item", int32_type]], [["Item", class_type("System.DateTimeOffset")]], [["Item", string_type]]]);
1895
1922
  }
1896
1923
 
1897
- export type ClinicalPathway_RecurrenceEnd_$union =
1898
- | ClinicalPathway_RecurrenceEnd<0>
1899
- | ClinicalPathway_RecurrenceEnd<1>
1900
- | ClinicalPathway_RecurrenceEnd<2>
1901
-
1902
- export type ClinicalPathway_RecurrenceEnd_$cases = {
1903
- 0: ["OnDate", [Date]],
1904
- 1: ["AfterOccurrences", [int32]],
1905
- 2: ["Never", []]
1906
- }
1924
+ export type ClinicalPathway_Cadence_$union =
1925
+ | ClinicalPathway_Cadence<0>
1926
+ | ClinicalPathway_Cadence<1>
1907
1927
 
1908
- export function ClinicalPathway_RecurrenceEnd_OnDate(Item: Date) {
1909
- return new ClinicalPathway_RecurrenceEnd<0>(0, [Item]);
1928
+ export type ClinicalPathway_Cadence_$cases = {
1929
+ 0: ["OnSchedule", [int32, Option<string>]],
1930
+ 1: ["Every", [string, string]]
1910
1931
  }
1911
1932
 
1912
- export function ClinicalPathway_RecurrenceEnd_AfterOccurrences(Item: int32) {
1913
- return new ClinicalPathway_RecurrenceEnd<1>(1, [Item]);
1933
+ export function ClinicalPathway_Cadence_OnSchedule(scheduleId: int32, scheduleName: Option<string>) {
1934
+ return new ClinicalPathway_Cadence<0>(0, [scheduleId, scheduleName]);
1914
1935
  }
1915
1936
 
1916
- export function ClinicalPathway_RecurrenceEnd_Never() {
1917
- return new ClinicalPathway_RecurrenceEnd<2>(2, []);
1937
+ export function ClinicalPathway_Cadence_Every(interval: string, until: string) {
1938
+ return new ClinicalPathway_Cadence<1>(1, [interval, until]);
1918
1939
  }
1919
1940
 
1920
- export class ClinicalPathway_RecurrenceEnd<Tag extends keyof ClinicalPathway_RecurrenceEnd_$cases> extends Union<Tag, ClinicalPathway_RecurrenceEnd_$cases[Tag][0]> {
1921
- constructor(readonly tag: Tag, readonly fields: ClinicalPathway_RecurrenceEnd_$cases[Tag][1]) {
1941
+ export class ClinicalPathway_Cadence<Tag extends keyof ClinicalPathway_Cadence_$cases> extends Union<Tag, ClinicalPathway_Cadence_$cases[Tag][0]> {
1942
+ constructor(readonly tag: Tag, readonly fields: ClinicalPathway_Cadence_$cases[Tag][1]) {
1922
1943
  super();
1923
1944
  }
1924
1945
  cases() {
1925
- return ["OnDate", "AfterOccurrences", "Never"];
1946
+ return ["OnSchedule", "Every"];
1926
1947
  }
1927
1948
  }
1928
1949
 
1929
- export function ClinicalPathway_RecurrenceEnd_$reflection(): TypeInfo {
1930
- return union_type("F1.Studio.ClinicalPathway.RecurrenceEnd", [], ClinicalPathway_RecurrenceEnd, () => [[["Item", class_type("System.DateTimeOffset")]], [["Item", int32_type]], []]);
1950
+ export function ClinicalPathway_Cadence_$reflection(): TypeInfo {
1951
+ return union_type("F1.Studio.ClinicalPathway.Cadence", [], ClinicalPathway_Cadence, () => [[["scheduleId", int32_type], ["scheduleName", option_type(string_type)]], [["interval", string_type], ["until", string_type]]]);
1931
1952
  }
1932
1953
 
1933
- export class ClinicalPathway_RecurrencePattern extends Record implements IEquatable<ClinicalPathway_RecurrencePattern>, IComparable<ClinicalPathway_RecurrencePattern> {
1934
- readonly Interval: number;
1935
- readonly Until: ClinicalPathway_RecurrenceEnd_$union;
1936
- constructor(Interval: number, Until: ClinicalPathway_RecurrenceEnd_$union) {
1954
+ export class ClinicalPathway_StandingSchedule extends Record implements IEquatable<ClinicalPathway_StandingSchedule>, IComparable<ClinicalPathway_StandingSchedule> {
1955
+ readonly Cadence: ClinicalPathway_Cadence_$union;
1956
+ readonly Ends: Option<ClinicalPathway_DueDate_$union>;
1957
+ constructor(Cadence: ClinicalPathway_Cadence_$union, Ends: Option<ClinicalPathway_DueDate_$union>) {
1937
1958
  super();
1938
- this.Interval = Interval;
1939
- this.Until = Until;
1959
+ this.Cadence = Cadence;
1960
+ this.Ends = Ends;
1940
1961
  }
1941
1962
  }
1942
1963
 
1943
- export function ClinicalPathway_RecurrencePattern_$reflection(): TypeInfo {
1944
- return record_type("F1.Studio.ClinicalPathway.RecurrencePattern", [], ClinicalPathway_RecurrencePattern, () => [["Interval", class_type("System.TimeSpan")], ["Until", ClinicalPathway_RecurrenceEnd_$reflection()]]);
1964
+ export function ClinicalPathway_StandingSchedule_$reflection(): TypeInfo {
1965
+ return record_type("F1.Studio.ClinicalPathway.StandingSchedule", [], ClinicalPathway_StandingSchedule, () => [["Cadence", ClinicalPathway_Cadence_$reflection()], ["Ends", option_type(ClinicalPathway_DueDate_$reflection())]]);
1945
1966
  }
1946
1967
 
1947
1968
  export class ClinicalPathway_TaskAction extends Record implements IEquatable<ClinicalPathway_TaskAction>, IComparable<ClinicalPathway_TaskAction> {
1948
1969
  readonly CategoryId: Option<int32>;
1949
1970
  readonly Category: string;
1950
- readonly Description: string;
1971
+ readonly Description: Option<string>;
1951
1972
  readonly Priority: ClinicalPathway_TaskPriority_$union;
1952
1973
  readonly DueDate: ClinicalPathway_DueDate_$union;
1953
- readonly Assignee: string;
1954
- readonly Recurrence: Option<ClinicalPathway_RecurrencePattern>;
1955
- constructor(CategoryId: Option<int32>, Category: string, Description: string, Priority: ClinicalPathway_TaskPriority_$union, DueDate: ClinicalPathway_DueDate_$union, Assignee: string, Recurrence: Option<ClinicalPathway_RecurrencePattern>) {
1974
+ readonly Assignee: Option<string>;
1975
+ readonly Standing: Option<ClinicalPathway_StandingSchedule>;
1976
+ constructor(CategoryId: Option<int32>, Category: string, Description: Option<string>, Priority: ClinicalPathway_TaskPriority_$union, DueDate: ClinicalPathway_DueDate_$union, Assignee: Option<string>, Standing: Option<ClinicalPathway_StandingSchedule>) {
1956
1977
  super();
1957
1978
  this.CategoryId = CategoryId;
1958
1979
  this.Category = Category;
@@ -1960,12 +1981,12 @@ export class ClinicalPathway_TaskAction extends Record implements IEquatable<Cli
1960
1981
  this.Priority = Priority;
1961
1982
  this.DueDate = DueDate;
1962
1983
  this.Assignee = Assignee;
1963
- this.Recurrence = Recurrence;
1984
+ this.Standing = Standing;
1964
1985
  }
1965
1986
  }
1966
1987
 
1967
1988
  export function ClinicalPathway_TaskAction_$reflection(): TypeInfo {
1968
- return record_type("F1.Studio.ClinicalPathway.TaskAction", [], ClinicalPathway_TaskAction, () => [["CategoryId", option_type(int32_type)], ["Category", string_type], ["Description", string_type], ["Priority", ClinicalPathway_TaskPriority_$reflection()], ["DueDate", ClinicalPathway_DueDate_$reflection()], ["Assignee", string_type], ["Recurrence", option_type(ClinicalPathway_RecurrencePattern_$reflection())]]);
1989
+ return record_type("F1.Studio.ClinicalPathway.TaskAction", [], ClinicalPathway_TaskAction, () => [["CategoryId", option_type(int32_type)], ["Category", string_type], ["Description", option_type(string_type)], ["Priority", ClinicalPathway_TaskPriority_$reflection()], ["DueDate", ClinicalPathway_DueDate_$reflection()], ["Assignee", option_type(string_type)], ["Standing", option_type(ClinicalPathway_StandingSchedule_$reflection())]]);
1969
1990
  }
1970
1991
 
1971
1992
  export type ClinicalPathway_AlertSeverity_$union =
@@ -2014,9 +2035,9 @@ export class ClinicalPathway_AlertAction extends Record implements IEquatable<Cl
2014
2035
  readonly CategoryId: Option<int32>;
2015
2036
  readonly Category: string;
2016
2037
  readonly Message: string;
2017
- readonly Severity: ClinicalPathway_AlertSeverity_$union;
2038
+ readonly Severity: Option<ClinicalPathway_AlertSeverity_$union>;
2018
2039
  readonly ExpiresAfter: Option<number>;
2019
- constructor(CategoryId: Option<int32>, Category: string, Message: string, Severity: ClinicalPathway_AlertSeverity_$union, ExpiresAfter: Option<number>) {
2040
+ constructor(CategoryId: Option<int32>, Category: string, Message: string, Severity: Option<ClinicalPathway_AlertSeverity_$union>, ExpiresAfter: Option<number>) {
2020
2041
  super();
2021
2042
  this.CategoryId = CategoryId;
2022
2043
  this.Category = Category;
@@ -2027,7 +2048,7 @@ export class ClinicalPathway_AlertAction extends Record implements IEquatable<Cl
2027
2048
  }
2028
2049
 
2029
2050
  export function ClinicalPathway_AlertAction_$reflection(): TypeInfo {
2030
- return record_type("F1.Studio.ClinicalPathway.AlertAction", [], ClinicalPathway_AlertAction, () => [["CategoryId", option_type(int32_type)], ["Category", string_type], ["Message", string_type], ["Severity", ClinicalPathway_AlertSeverity_$reflection()], ["ExpiresAfter", option_type(class_type("System.TimeSpan"))]]);
2051
+ return record_type("F1.Studio.ClinicalPathway.AlertAction", [], ClinicalPathway_AlertAction, () => [["CategoryId", option_type(int32_type)], ["Category", string_type], ["Message", string_type], ["Severity", option_type(ClinicalPathway_AlertSeverity_$reflection())], ["ExpiresAfter", option_type(class_type("System.TimeSpan"))]]);
2031
2052
  }
2032
2053
 
2033
2054
  export type ClinicalPathway_ProblemStatus_$union =
@@ -2074,7 +2095,7 @@ export function ClinicalPathway_ProblemStatus_$reflection(): TypeInfo {
2074
2095
 
2075
2096
  export class ClinicalPathway_ProblemAction extends Record implements IEquatable<ClinicalPathway_ProblemAction>, IComparable<ClinicalPathway_ProblemAction> {
2076
2097
  readonly CategoryId: Option<int32>;
2077
- readonly ProblemName: string;
2098
+ readonly ProblemName: Option<string>;
2078
2099
  readonly IcdCode: Option<string>;
2079
2100
  readonly Onset: Option<Date>;
2080
2101
  readonly Status: ClinicalPathway_ProblemStatus_$union;
@@ -2082,7 +2103,7 @@ export class ClinicalPathway_ProblemAction extends Record implements IEquatable<
2082
2103
  readonly Chronic: Option<int32>;
2083
2104
  readonly Severity: Option<int32>;
2084
2105
  readonly Inflammation: Option<int32>;
2085
- constructor(CategoryId: Option<int32>, ProblemName: string, IcdCode: Option<string>, Onset: Option<Date>, Status: ClinicalPathway_ProblemStatus_$union, Notes: Option<string>, Chronic: Option<int32>, Severity: Option<int32>, Inflammation: Option<int32>) {
2106
+ constructor(CategoryId: Option<int32>, ProblemName: Option<string>, IcdCode: Option<string>, Onset: Option<Date>, Status: ClinicalPathway_ProblemStatus_$union, Notes: Option<string>, Chronic: Option<int32>, Severity: Option<int32>, Inflammation: Option<int32>) {
2086
2107
  super();
2087
2108
  this.CategoryId = CategoryId;
2088
2109
  this.ProblemName = ProblemName;
@@ -2097,7 +2118,7 @@ export class ClinicalPathway_ProblemAction extends Record implements IEquatable<
2097
2118
  }
2098
2119
 
2099
2120
  export function ClinicalPathway_ProblemAction_$reflection(): TypeInfo {
2100
- return record_type("F1.Studio.ClinicalPathway.ProblemAction", [], ClinicalPathway_ProblemAction, () => [["CategoryId", option_type(int32_type)], ["ProblemName", string_type], ["IcdCode", option_type(string_type)], ["Onset", option_type(class_type("System.DateTimeOffset"))], ["Status", ClinicalPathway_ProblemStatus_$reflection()], ["Notes", option_type(string_type)], ["Chronic", option_type(int32_type)], ["Severity", option_type(int32_type)], ["Inflammation", option_type(int32_type)]]);
2121
+ return record_type("F1.Studio.ClinicalPathway.ProblemAction", [], ClinicalPathway_ProblemAction, () => [["CategoryId", option_type(int32_type)], ["ProblemName", option_type(string_type)], ["IcdCode", option_type(string_type)], ["Onset", option_type(class_type("System.DateTimeOffset"))], ["Status", ClinicalPathway_ProblemStatus_$reflection()], ["Notes", option_type(string_type)], ["Chronic", option_type(int32_type)], ["Severity", option_type(int32_type)], ["Inflammation", option_type(int32_type)]]);
2101
2122
  }
2102
2123
 
2103
2124
  export class ClinicalPathway_PrescriptionAction extends Record implements IEquatable<ClinicalPathway_PrescriptionAction>, IComparable<ClinicalPathway_PrescriptionAction> {
@@ -2244,6 +2265,64 @@ export function ClinicalPathway_NavigateToFormAction_$reflection(): TypeInfo {
2244
2265
  return record_type("F1.Studio.ClinicalPathway.NavigateToFormAction", [], ClinicalPathway_NavigateToFormAction, () => [["FormId", string_type], ["FormCode", option_type(string_type)], ["NavigationType", ClinicalPathway_NavigationType_$reflection()], ["PreFillMappings", option_type(class_type("Microsoft.FSharp.Collections.FSharpMap`2", [Shared_FieldKey_$reflection(), Shared_FieldKey_$reflection()]))], ["ReturnOnComplete", bool_type], ["Condition", option_type(ClinicalPathway_TransitionCondition_$reflection())]]);
2245
2266
  }
2246
2267
 
2268
+ export type ClinicalPathway_GroupChange_$union =
2269
+ | ClinicalPathway_GroupChange<0>
2270
+ | ClinicalPathway_GroupChange<1>
2271
+
2272
+ export type ClinicalPathway_GroupChange_$cases = {
2273
+ 0: ["AddToGroups", []],
2274
+ 1: ["RemoveFromGroups", []]
2275
+ }
2276
+
2277
+ export function ClinicalPathway_GroupChange_AddToGroups() {
2278
+ return new ClinicalPathway_GroupChange<0>(0, []);
2279
+ }
2280
+
2281
+ export function ClinicalPathway_GroupChange_RemoveFromGroups() {
2282
+ return new ClinicalPathway_GroupChange<1>(1, []);
2283
+ }
2284
+
2285
+ export class ClinicalPathway_GroupChange<Tag extends keyof ClinicalPathway_GroupChange_$cases> extends Union<Tag, ClinicalPathway_GroupChange_$cases[Tag][0]> {
2286
+ constructor(readonly tag: Tag, readonly fields: ClinicalPathway_GroupChange_$cases[Tag][1]) {
2287
+ super();
2288
+ }
2289
+ cases() {
2290
+ return ["AddToGroups", "RemoveFromGroups"];
2291
+ }
2292
+ }
2293
+
2294
+ export function ClinicalPathway_GroupChange_$reflection(): TypeInfo {
2295
+ return union_type("F1.Studio.ClinicalPathway.GroupChange", [], ClinicalPathway_GroupChange, () => [[], []]);
2296
+ }
2297
+
2298
+ export class ClinicalPathway_GroupRef extends Record implements IEquatable<ClinicalPathway_GroupRef>, IComparable<ClinicalPathway_GroupRef> {
2299
+ readonly GroupId: int32;
2300
+ readonly Name: Option<string>;
2301
+ constructor(GroupId: int32, Name: Option<string>) {
2302
+ super();
2303
+ this.GroupId = (GroupId | 0);
2304
+ this.Name = Name;
2305
+ }
2306
+ }
2307
+
2308
+ export function ClinicalPathway_GroupRef_$reflection(): TypeInfo {
2309
+ return record_type("F1.Studio.ClinicalPathway.GroupRef", [], ClinicalPathway_GroupRef, () => [["GroupId", int32_type], ["Name", option_type(string_type)]]);
2310
+ }
2311
+
2312
+ export class ClinicalPathway_GroupChangeAction extends Record implements IEquatable<ClinicalPathway_GroupChangeAction>, IComparable<ClinicalPathway_GroupChangeAction> {
2313
+ readonly Change: ClinicalPathway_GroupChange_$union;
2314
+ readonly Groups: FSharpList<ClinicalPathway_GroupRef>;
2315
+ constructor(Change: ClinicalPathway_GroupChange_$union, Groups: FSharpList<ClinicalPathway_GroupRef>) {
2316
+ super();
2317
+ this.Change = Change;
2318
+ this.Groups = Groups;
2319
+ }
2320
+ }
2321
+
2322
+ export function ClinicalPathway_GroupChangeAction_$reflection(): TypeInfo {
2323
+ return record_type("F1.Studio.ClinicalPathway.GroupChangeAction", [], ClinicalPathway_GroupChangeAction, () => [["Change", ClinicalPathway_GroupChange_$reflection()], ["Groups", list_type(ClinicalPathway_GroupRef_$reflection())]]);
2324
+ }
2325
+
2247
2326
  export type ClinicalPathway_ActionInfo_$union =
2248
2327
  | ClinicalPathway_ActionInfo<0>
2249
2328
  | ClinicalPathway_ActionInfo<1>
@@ -2259,6 +2338,7 @@ export type ClinicalPathway_ActionInfo_$union =
2259
2338
  | ClinicalPathway_ActionInfo<11>
2260
2339
  | ClinicalPathway_ActionInfo<12>
2261
2340
  | ClinicalPathway_ActionInfo<13>
2341
+ | ClinicalPathway_ActionInfo<14>
2262
2342
 
2263
2343
  export type ClinicalPathway_ActionInfo_$cases = {
2264
2344
  0: ["Medication", [ClinicalPathway_MedicationAction]],
@@ -2274,7 +2354,8 @@ export type ClinicalPathway_ActionInfo_$cases = {
2274
2354
  10: ["Problem", [ClinicalPathway_ProblemAction]],
2275
2355
  11: ["Prescription", [ClinicalPathway_PrescriptionAction]],
2276
2356
  12: ["SetFieldValue", [ClinicalPathway_SetFieldValueAction]],
2277
- 13: ["NavigateToForm", [ClinicalPathway_NavigateToFormAction]]
2357
+ 13: ["NavigateToForm", [ClinicalPathway_NavigateToFormAction]],
2358
+ 14: ["ChangeGroups", [ClinicalPathway_GroupChangeAction]]
2278
2359
  }
2279
2360
 
2280
2361
  export function ClinicalPathway_ActionInfo_Medication(Item: ClinicalPathway_MedicationAction) {
@@ -2333,33 +2414,81 @@ export function ClinicalPathway_ActionInfo_NavigateToForm(Item: ClinicalPathway_
2333
2414
  return new ClinicalPathway_ActionInfo<13>(13, [Item]);
2334
2415
  }
2335
2416
 
2417
+ export function ClinicalPathway_ActionInfo_ChangeGroups(Item: ClinicalPathway_GroupChangeAction) {
2418
+ return new ClinicalPathway_ActionInfo<14>(14, [Item]);
2419
+ }
2420
+
2336
2421
  export class ClinicalPathway_ActionInfo<Tag extends keyof ClinicalPathway_ActionInfo_$cases> extends Union<Tag, ClinicalPathway_ActionInfo_$cases[Tag][0]> {
2337
2422
  constructor(readonly tag: Tag, readonly fields: ClinicalPathway_ActionInfo_$cases[Tag][1]) {
2338
2423
  super();
2339
2424
  }
2340
2425
  cases() {
2341
- return ["Medication", "Treatment", "Medset", "Test", "Referral", "Education", "Procedure", "Documentation", "Task", "Alert", "Problem", "Prescription", "SetFieldValue", "NavigateToForm"];
2426
+ return ["Medication", "Treatment", "Medset", "Test", "Referral", "Education", "Procedure", "Documentation", "Task", "Alert", "Problem", "Prescription", "SetFieldValue", "NavigateToForm", "ChangeGroups"];
2342
2427
  }
2343
2428
  }
2344
2429
 
2345
2430
  export function ClinicalPathway_ActionInfo_$reflection(): TypeInfo {
2346
- return union_type("F1.Studio.ClinicalPathway.ActionInfo", [], ClinicalPathway_ActionInfo, () => [[["Item", ClinicalPathway_MedicationAction_$reflection()]], [["Item", ClinicalPathway_TreatmentAction_$reflection()]], [["Item", ClinicalPathway_MedsetAction_$reflection()]], [["Item", ClinicalPathway_TestAction_$reflection()]], [["Item", ClinicalPathway_ReferralAction_$reflection()]], [["Item", ClinicalPathway_EducationAction_$reflection()]], [["Item", ClinicalPathway_ProcedureAction_$reflection()]], [["Item", ClinicalPathway_DocumentationAction_$reflection()]], [["Item", ClinicalPathway_TaskAction_$reflection()]], [["Item", ClinicalPathway_AlertAction_$reflection()]], [["Item", ClinicalPathway_ProblemAction_$reflection()]], [["Item", ClinicalPathway_PrescriptionAction_$reflection()]], [["Item", ClinicalPathway_SetFieldValueAction_$reflection()]], [["Item", ClinicalPathway_NavigateToFormAction_$reflection()]]]);
2431
+ return union_type("F1.Studio.ClinicalPathway.ActionInfo", [], ClinicalPathway_ActionInfo, () => [[["Item", ClinicalPathway_MedicationAction_$reflection()]], [["Item", ClinicalPathway_TreatmentAction_$reflection()]], [["Item", ClinicalPathway_MedsetAction_$reflection()]], [["Item", ClinicalPathway_TestAction_$reflection()]], [["Item", ClinicalPathway_ReferralAction_$reflection()]], [["Item", ClinicalPathway_EducationAction_$reflection()]], [["Item", ClinicalPathway_ProcedureAction_$reflection()]], [["Item", ClinicalPathway_DocumentationAction_$reflection()]], [["Item", ClinicalPathway_TaskAction_$reflection()]], [["Item", ClinicalPathway_AlertAction_$reflection()]], [["Item", ClinicalPathway_ProblemAction_$reflection()]], [["Item", ClinicalPathway_PrescriptionAction_$reflection()]], [["Item", ClinicalPathway_SetFieldValueAction_$reflection()]], [["Item", ClinicalPathway_NavigateToFormAction_$reflection()]], [["Item", ClinicalPathway_GroupChangeAction_$reflection()]]]);
2347
2432
  }
2348
2433
 
2349
- export class ClinicalPathway_DecisionInfo extends Record implements IEquatable<ClinicalPathway_DecisionInfo>, IComparable<ClinicalPathway_DecisionInfo> {
2350
- readonly DecisionKey: string;
2351
- readonly Question: string;
2352
- readonly Options: FSharpList<string>;
2353
- constructor(DecisionKey: string, Question: string, Options: FSharpList<string>) {
2434
+ export class ClinicalPathway_CoreMRTriggerRef extends Record implements IEquatable<ClinicalPathway_CoreMRTriggerRef>, IComparable<ClinicalPathway_CoreMRTriggerRef> {
2435
+ readonly TriggerId: int32;
2436
+ readonly ActionId: int32;
2437
+ readonly SourceItem: int32;
2438
+ constructor(TriggerId: int32, ActionId: int32, SourceItem: int32) {
2354
2439
  super();
2355
- this.DecisionKey = DecisionKey;
2356
- this.Question = Question;
2357
- this.Options = Options;
2440
+ this.TriggerId = (TriggerId | 0);
2441
+ this.ActionId = (ActionId | 0);
2442
+ this.SourceItem = (SourceItem | 0);
2443
+ }
2444
+ }
2445
+
2446
+ export function ClinicalPathway_CoreMRTriggerRef_$reflection(): TypeInfo {
2447
+ return record_type("F1.Studio.ClinicalPathway.CoreMRTriggerRef", [], ClinicalPathway_CoreMRTriggerRef, () => [["TriggerId", int32_type], ["ActionId", int32_type], ["SourceItem", int32_type]]);
2448
+ }
2449
+
2450
+ export type ClinicalPathway_ActionOrigin_$union =
2451
+ | ClinicalPathway_ActionOrigin<0>
2452
+ | ClinicalPathway_ActionOrigin<1>
2453
+
2454
+ export type ClinicalPathway_ActionOrigin_$cases = {
2455
+ 0: ["Authored", []],
2456
+ 1: ["CoreMRTrigger", [ClinicalPathway_CoreMRTriggerRef]]
2457
+ }
2458
+
2459
+ export function ClinicalPathway_ActionOrigin_Authored() {
2460
+ return new ClinicalPathway_ActionOrigin<0>(0, []);
2461
+ }
2462
+
2463
+ export function ClinicalPathway_ActionOrigin_CoreMRTrigger(Item: ClinicalPathway_CoreMRTriggerRef) {
2464
+ return new ClinicalPathway_ActionOrigin<1>(1, [Item]);
2465
+ }
2466
+
2467
+ export class ClinicalPathway_ActionOrigin<Tag extends keyof ClinicalPathway_ActionOrigin_$cases> extends Union<Tag, ClinicalPathway_ActionOrigin_$cases[Tag][0]> {
2468
+ constructor(readonly tag: Tag, readonly fields: ClinicalPathway_ActionOrigin_$cases[Tag][1]) {
2469
+ super();
2470
+ }
2471
+ cases() {
2472
+ return ["Authored", "CoreMRTrigger"];
2358
2473
  }
2359
2474
  }
2360
2475
 
2361
- export function ClinicalPathway_DecisionInfo_$reflection(): TypeInfo {
2362
- return record_type("F1.Studio.ClinicalPathway.DecisionInfo", [], ClinicalPathway_DecisionInfo, () => [["DecisionKey", string_type], ["Question", string_type], ["Options", list_type(string_type)]]);
2476
+ export function ClinicalPathway_ActionOrigin_$reflection(): TypeInfo {
2477
+ return union_type("F1.Studio.ClinicalPathway.ActionOrigin", [], ClinicalPathway_ActionOrigin, () => [[], [["Item", ClinicalPathway_CoreMRTriggerRef_$reflection()]]]);
2478
+ }
2479
+
2480
+ export class ClinicalPathway_PathwayAction extends Record implements IEquatable<ClinicalPathway_PathwayAction>, IComparable<ClinicalPathway_PathwayAction> {
2481
+ readonly Action: ClinicalPathway_ActionInfo_$union;
2482
+ readonly Origin: ClinicalPathway_ActionOrigin_$union;
2483
+ constructor(Action: ClinicalPathway_ActionInfo_$union, Origin: ClinicalPathway_ActionOrigin_$union) {
2484
+ super();
2485
+ this.Action = Action;
2486
+ this.Origin = Origin;
2487
+ }
2488
+ }
2489
+
2490
+ export function ClinicalPathway_PathwayAction_$reflection(): TypeInfo {
2491
+ return record_type("F1.Studio.ClinicalPathway.PathwayAction", [], ClinicalPathway_PathwayAction, () => [["Action", ClinicalPathway_ActionInfo_$reflection()], ["Origin", ClinicalPathway_ActionOrigin_$reflection()]]);
2363
2492
  }
2364
2493
 
2365
2494
  export class ClinicalPathway_EvaluationInfo extends Record implements IEquatable<ClinicalPathway_EvaluationInfo>, IComparable<ClinicalPathway_EvaluationInfo> {
@@ -2398,39 +2527,33 @@ export type ClinicalPathway_StateType_$union =
2398
2527
  | ClinicalPathway_StateType<2>
2399
2528
  | ClinicalPathway_StateType<3>
2400
2529
  | ClinicalPathway_StateType<4>
2401
- | ClinicalPathway_StateType<5>
2402
2530
 
2403
2531
  export type ClinicalPathway_StateType_$cases = {
2404
- 0: ["Decision", [ClinicalPathway_DecisionInfo]],
2405
- 1: ["Evaluation", [ClinicalPathway_EvaluationInfo]],
2406
- 2: ["Action", [ClinicalPathway_ActionInfo_$union]],
2407
- 3: ["CompoundAction", [FSharpList<ClinicalPathway_ActionInfo_$union>]],
2408
- 4: ["ConditionalAction", [ClinicalPathway_TransitionCondition_$union, ClinicalPathway_ActionInfo_$union, Option<ClinicalPathway_ActionInfo_$union>]],
2409
- 5: ["Terminal", [ClinicalPathway_TerminalInfo]]
2532
+ 0: ["Evaluation", [ClinicalPathway_EvaluationInfo]],
2533
+ 1: ["Action", [ClinicalPathway_PathwayAction]],
2534
+ 2: ["CompoundAction", [FSharpList<ClinicalPathway_PathwayAction>]],
2535
+ 3: ["ConditionalAction", [ClinicalPathway_TransitionCondition_$union, ClinicalPathway_PathwayAction, Option<ClinicalPathway_PathwayAction>]],
2536
+ 4: ["Terminal", [ClinicalPathway_TerminalInfo]]
2410
2537
  }
2411
2538
 
2412
- export function ClinicalPathway_StateType_Decision(Item: ClinicalPathway_DecisionInfo) {
2539
+ export function ClinicalPathway_StateType_Evaluation(Item: ClinicalPathway_EvaluationInfo) {
2413
2540
  return new ClinicalPathway_StateType<0>(0, [Item]);
2414
2541
  }
2415
2542
 
2416
- export function ClinicalPathway_StateType_Evaluation(Item: ClinicalPathway_EvaluationInfo) {
2543
+ export function ClinicalPathway_StateType_Action(Item: ClinicalPathway_PathwayAction) {
2417
2544
  return new ClinicalPathway_StateType<1>(1, [Item]);
2418
2545
  }
2419
2546
 
2420
- export function ClinicalPathway_StateType_Action(Item: ClinicalPathway_ActionInfo_$union) {
2547
+ export function ClinicalPathway_StateType_CompoundAction(Item: FSharpList<ClinicalPathway_PathwayAction>) {
2421
2548
  return new ClinicalPathway_StateType<2>(2, [Item]);
2422
2549
  }
2423
2550
 
2424
- export function ClinicalPathway_StateType_CompoundAction(Item: FSharpList<ClinicalPathway_ActionInfo_$union>) {
2425
- return new ClinicalPathway_StateType<3>(3, [Item]);
2426
- }
2427
-
2428
- export function ClinicalPathway_StateType_ConditionalAction(condition: ClinicalPathway_TransitionCondition_$union, thenAction: ClinicalPathway_ActionInfo_$union, elseAction: Option<ClinicalPathway_ActionInfo_$union>) {
2429
- return new ClinicalPathway_StateType<4>(4, [condition, thenAction, elseAction]);
2551
+ export function ClinicalPathway_StateType_ConditionalAction(condition: ClinicalPathway_TransitionCondition_$union, thenAction: ClinicalPathway_PathwayAction, elseAction: Option<ClinicalPathway_PathwayAction>) {
2552
+ return new ClinicalPathway_StateType<3>(3, [condition, thenAction, elseAction]);
2430
2553
  }
2431
2554
 
2432
2555
  export function ClinicalPathway_StateType_Terminal(Item: ClinicalPathway_TerminalInfo) {
2433
- return new ClinicalPathway_StateType<5>(5, [Item]);
2556
+ return new ClinicalPathway_StateType<4>(4, [Item]);
2434
2557
  }
2435
2558
 
2436
2559
  export class ClinicalPathway_StateType<Tag extends keyof ClinicalPathway_StateType_$cases> extends Union<Tag, ClinicalPathway_StateType_$cases[Tag][0]> {
@@ -2438,12 +2561,12 @@ export class ClinicalPathway_StateType<Tag extends keyof ClinicalPathway_StateTy
2438
2561
  super();
2439
2562
  }
2440
2563
  cases() {
2441
- return ["Decision", "Evaluation", "Action", "CompoundAction", "ConditionalAction", "Terminal"];
2564
+ return ["Evaluation", "Action", "CompoundAction", "ConditionalAction", "Terminal"];
2442
2565
  }
2443
2566
  }
2444
2567
 
2445
2568
  export function ClinicalPathway_StateType_$reflection(): TypeInfo {
2446
- return union_type("F1.Studio.ClinicalPathway.StateType", [], ClinicalPathway_StateType, () => [[["Item", ClinicalPathway_DecisionInfo_$reflection()]], [["Item", ClinicalPathway_EvaluationInfo_$reflection()]], [["Item", ClinicalPathway_ActionInfo_$reflection()]], [["Item", list_type(ClinicalPathway_ActionInfo_$reflection())]], [["condition", ClinicalPathway_TransitionCondition_$reflection()], ["thenAction", ClinicalPathway_ActionInfo_$reflection()], ["elseAction", option_type(ClinicalPathway_ActionInfo_$reflection())]], [["Item", ClinicalPathway_TerminalInfo_$reflection()]]]);
2569
+ return union_type("F1.Studio.ClinicalPathway.StateType", [], ClinicalPathway_StateType, () => [[["Item", ClinicalPathway_EvaluationInfo_$reflection()]], [["Item", ClinicalPathway_PathwayAction_$reflection()]], [["Item", list_type(ClinicalPathway_PathwayAction_$reflection())]], [["condition", ClinicalPathway_TransitionCondition_$reflection()], ["thenAction", ClinicalPathway_PathwayAction_$reflection()], ["elseAction", option_type(ClinicalPathway_PathwayAction_$reflection())]], [["Item", ClinicalPathway_TerminalInfo_$reflection()]]]);
2447
2570
  }
2448
2571
 
2449
2572
  export class ClinicalPathway_StateDefinition extends Record implements IEquatable<ClinicalPathway_StateDefinition>, IComparable<ClinicalPathway_StateDefinition> {