@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
@@ -0,0 +1,1242 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get Action () {
13
+ return Action;
14
+ },
15
+ get ActionRead () {
16
+ return ActionRead;
17
+ },
18
+ get ActionRead_$reflection () {
19
+ return ActionRead_$reflection;
20
+ },
21
+ get ActionRead_Modelled () {
22
+ return ActionRead_Modelled;
23
+ },
24
+ get ActionRead_Unmodelled () {
25
+ return ActionRead_Unmodelled;
26
+ },
27
+ get Action_$reflection () {
28
+ return Action_$reflection;
29
+ },
30
+ get Action_Alert () {
31
+ return Action_Alert;
32
+ },
33
+ get Action_ChangeGroups () {
34
+ return Action_ChangeGroups;
35
+ },
36
+ get Action_Medset () {
37
+ return Action_Medset;
38
+ },
39
+ get Action_OneOffTask () {
40
+ return Action_OneOffTask;
41
+ },
42
+ get Action_Problem () {
43
+ return Action_Problem;
44
+ },
45
+ get Action_StandingOrder () {
46
+ return Action_StandingOrder;
47
+ },
48
+ get Availability$1 () {
49
+ return Availability$1;
50
+ },
51
+ get Availability$1_$reflection () {
52
+ return Availability$1_$reflection;
53
+ },
54
+ get Availability$1_NotInRelease () {
55
+ return Availability$1_NotInRelease;
56
+ },
57
+ get Availability$1_NotReadYet () {
58
+ return Availability$1_NotReadYet;
59
+ },
60
+ get Availability$1_Stated () {
61
+ return Availability$1_Stated;
62
+ },
63
+ get Cadence () {
64
+ return Cadence;
65
+ },
66
+ get Cadence_$reflection () {
67
+ return Cadence_$reflection;
68
+ },
69
+ get Cadence_Every () {
70
+ return Cadence_Every;
71
+ },
72
+ get Cadence_OnSchedule () {
73
+ return Cadence_OnSchedule;
74
+ },
75
+ get ChoiceId () {
76
+ return ChoiceId;
77
+ },
78
+ get ChoiceId_$reflection () {
79
+ return ChoiceId_$reflection;
80
+ },
81
+ get Comparison () {
82
+ return Comparison;
83
+ },
84
+ get Comparison_$reflection () {
85
+ return Comparison_$reflection;
86
+ },
87
+ get Comparison_Equal () {
88
+ return Comparison_Equal;
89
+ },
90
+ get Comparison_Greater () {
91
+ return Comparison_Greater;
92
+ },
93
+ get Comparison_GreaterOrEqual () {
94
+ return Comparison_GreaterOrEqual;
95
+ },
96
+ get Comparison_Less () {
97
+ return Comparison_Less;
98
+ },
99
+ get Comparison_LessOrEqual () {
100
+ return Comparison_LessOrEqual;
101
+ },
102
+ get Comparison_NotEqual () {
103
+ return Comparison_NotEqual;
104
+ },
105
+ get Condition () {
106
+ return Condition;
107
+ },
108
+ get Condition_$reflection () {
109
+ return Condition_$reflection;
110
+ },
111
+ get Condition_AllChosen () {
112
+ return Condition_AllChosen;
113
+ },
114
+ get Condition_AnyChosen () {
115
+ return Condition_AnyChosen;
116
+ },
117
+ get Condition_BooleanIs () {
118
+ return Condition_BooleanIs;
119
+ },
120
+ get Condition_NoneChosen () {
121
+ return Condition_NoneChosen;
122
+ },
123
+ get Condition_TextCompares () {
124
+ return Condition_TextCompares;
125
+ },
126
+ get Condition_UnmodelledCondition () {
127
+ return Condition_UnmodelledCondition;
128
+ },
129
+ get Condition_VitalIs () {
130
+ return Condition_VitalIs;
131
+ },
132
+ get FacilityAvailability () {
133
+ return FacilityAvailability;
134
+ },
135
+ get FacilityAvailability_$reflection () {
136
+ return FacilityAvailability_$reflection;
137
+ },
138
+ get Firing () {
139
+ return Firing;
140
+ },
141
+ get Firing_$reflection () {
142
+ return Firing_$reflection;
143
+ },
144
+ get Firing_EveryTime () {
145
+ return Firing_EveryTime;
146
+ },
147
+ get Firing_OnceOnly () {
148
+ return Firing_OnceOnly;
149
+ },
150
+ get GroupChange () {
151
+ return GroupChange;
152
+ },
153
+ get GroupChange_$reflection () {
154
+ return GroupChange_$reflection;
155
+ },
156
+ get GroupChange_AddTo () {
157
+ return GroupChange_AddTo;
158
+ },
159
+ get GroupChange_RemoveFrom () {
160
+ return GroupChange_RemoveFrom;
161
+ },
162
+ get Join () {
163
+ return Join;
164
+ },
165
+ get Join_$reflection () {
166
+ return Join_$reflection;
167
+ },
168
+ get Join_And () {
169
+ return Join_And;
170
+ },
171
+ get Join_Or () {
172
+ return Join_Or;
173
+ },
174
+ get Join_UnrecognisedJoin () {
175
+ return Join_UnrecognisedJoin;
176
+ },
177
+ get MedsetOrder () {
178
+ return MedsetOrder;
179
+ },
180
+ get MedsetOrder_$reflection () {
181
+ return MedsetOrder_$reflection;
182
+ },
183
+ get NonEmpty$1 () {
184
+ return NonEmpty$1;
185
+ },
186
+ get NonEmpty$1_$reflection () {
187
+ return NonEmpty$1_$reflection;
188
+ },
189
+ get NonEmpty_ofList () {
190
+ return NonEmpty_ofList;
191
+ },
192
+ get NonEmpty_toList () {
193
+ return NonEmpty_toList;
194
+ },
195
+ get Priority () {
196
+ return Priority;
197
+ },
198
+ get Priority_$reflection () {
199
+ return Priority_$reflection;
200
+ },
201
+ get ProblemOrder () {
202
+ return ProblemOrder;
203
+ },
204
+ get ProblemOrder_$reflection () {
205
+ return ProblemOrder_$reflection;
206
+ },
207
+ get Ref () {
208
+ return Ref;
209
+ },
210
+ get Ref_$reflection () {
211
+ return Ref_$reflection;
212
+ },
213
+ get Standing () {
214
+ return Standing;
215
+ },
216
+ get Standing_$reflection () {
217
+ return Standing_$reflection;
218
+ },
219
+ get Standing_RecurringTask () {
220
+ return Standing_RecurringTask;
221
+ },
222
+ get Standing_Treatment () {
223
+ return Standing_Treatment;
224
+ },
225
+ get StatedAction () {
226
+ return StatedAction;
227
+ },
228
+ get StatedAction_$reflection () {
229
+ return StatedAction_$reflection;
230
+ },
231
+ get StatedCondition () {
232
+ return StatedCondition;
233
+ },
234
+ get StatedCondition_$reflection () {
235
+ return StatedCondition_$reflection;
236
+ },
237
+ get TaskOrder () {
238
+ return TaskOrder;
239
+ },
240
+ get TaskOrder_$reflection () {
241
+ return TaskOrder_$reflection;
242
+ },
243
+ get Timing () {
244
+ return Timing;
245
+ },
246
+ get Timing_$reflection () {
247
+ return Timing_$reflection;
248
+ },
249
+ get Timing_OnFirstOpen () {
250
+ return Timing_OnFirstOpen;
251
+ },
252
+ get Timing_OnLock () {
253
+ return Timing_OnLock;
254
+ },
255
+ get Timing_OnSave () {
256
+ return Timing_OnSave;
257
+ },
258
+ get Timing_UnrecognisedTiming () {
259
+ return Timing_UnrecognisedTiming;
260
+ },
261
+ get TreatmentOrder () {
262
+ return TreatmentOrder;
263
+ },
264
+ get TreatmentOrder_$reflection () {
265
+ return TreatmentOrder_$reflection;
266
+ },
267
+ get Trigger () {
268
+ return Trigger;
269
+ },
270
+ get Trigger_$reflection () {
271
+ return Trigger_$reflection;
272
+ },
273
+ get VitalSign () {
274
+ return VitalSign;
275
+ },
276
+ get VitalSign_$reflection () {
277
+ return VitalSign_$reflection;
278
+ },
279
+ get VitalSign_DiastolicBP () {
280
+ return VitalSign_DiastolicBP;
281
+ },
282
+ get VitalSign_HeartRate () {
283
+ return VitalSign_HeartRate;
284
+ },
285
+ get VitalSign_Respiration () {
286
+ return VitalSign_Respiration;
287
+ },
288
+ get VitalSign_SpO2 () {
289
+ return VitalSign_SpO2;
290
+ },
291
+ get VitalSign_SystolicBP () {
292
+ return VitalSign_SystolicBP;
293
+ },
294
+ get VitalSign_Temperature () {
295
+ return VitalSign_Temperature;
296
+ },
297
+ get VitalSign_Weight () {
298
+ return VitalSign_Weight;
299
+ }
300
+ });
301
+ const _Types = require("@fable-org/fable-library-js/Types.js");
302
+ const _List = require("@fable-org/fable-library-js/List.js");
303
+ const _Reflection = require("@fable-org/fable-library-js/Reflection.js");
304
+ class NonEmpty$1 extends _Types.Record {
305
+ constructor(Head, Tail){
306
+ super();
307
+ this.Head = Head;
308
+ this.Tail = Tail;
309
+ }
310
+ }
311
+ function NonEmpty$1_$reflection(gen0) {
312
+ return (0, _Reflection.record_type)("Vye.Contracts.CoreMR.NonEmpty`1", [
313
+ gen0
314
+ ], NonEmpty$1, ()=>[
315
+ [
316
+ "Head",
317
+ gen0
318
+ ],
319
+ [
320
+ "Tail",
321
+ (0, _Reflection.list_type)(gen0)
322
+ ]
323
+ ]);
324
+ }
325
+ function NonEmpty_ofList(_arg) {
326
+ if (!(0, _List.isEmpty)(_arg)) {
327
+ return new NonEmpty$1((0, _List.head)(_arg), (0, _List.tail)(_arg));
328
+ } else {
329
+ return undefined;
330
+ }
331
+ }
332
+ function NonEmpty_toList(n) {
333
+ return (0, _List.cons)(n.Head, n.Tail);
334
+ }
335
+ function Availability$1_Stated(Item) {
336
+ return new Availability$1(0, [
337
+ Item
338
+ ]);
339
+ }
340
+ function Availability$1_NotInRelease(because) {
341
+ return new Availability$1(1, [
342
+ because
343
+ ]);
344
+ }
345
+ function Availability$1_NotReadYet(because, witness) {
346
+ return new Availability$1(2, [
347
+ because,
348
+ witness
349
+ ]);
350
+ }
351
+ class Availability$1 extends _Types.Union {
352
+ cases() {
353
+ return [
354
+ "Stated",
355
+ "NotInRelease",
356
+ "NotReadYet"
357
+ ];
358
+ }
359
+ constructor(tag, fields){
360
+ super(), this.tag = tag, this.fields = fields;
361
+ }
362
+ }
363
+ function Availability$1_$reflection(gen0) {
364
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.Availability`1", [
365
+ gen0
366
+ ], Availability$1, ()=>[
367
+ [
368
+ [
369
+ "Item",
370
+ gen0
371
+ ]
372
+ ],
373
+ [
374
+ [
375
+ "because",
376
+ _Reflection.string_type
377
+ ]
378
+ ],
379
+ [
380
+ [
381
+ "because",
382
+ _Reflection.string_type
383
+ ],
384
+ [
385
+ "witness",
386
+ (0, _Reflection.list_type)(_Reflection.string_type)
387
+ ]
388
+ ]
389
+ ]);
390
+ }
391
+ class ChoiceId extends _Types.Union {
392
+ cases() {
393
+ return [
394
+ "ChoiceId"
395
+ ];
396
+ }
397
+ constructor(Item){
398
+ super();
399
+ this.tag = 0;
400
+ this.fields = [
401
+ Item
402
+ ];
403
+ }
404
+ }
405
+ function ChoiceId_$reflection() {
406
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.ChoiceId", [], ChoiceId, ()=>[
407
+ [
408
+ [
409
+ "Item",
410
+ _Reflection.int32_type
411
+ ]
412
+ ]
413
+ ]);
414
+ }
415
+ class Ref extends _Types.Record {
416
+ constructor(Id, Name){
417
+ super();
418
+ this.Id = Id | 0;
419
+ this.Name = Name;
420
+ }
421
+ }
422
+ function Ref_$reflection() {
423
+ return (0, _Reflection.record_type)("Vye.Contracts.CoreMR.Ref", [], Ref, ()=>[
424
+ [
425
+ "Id",
426
+ _Reflection.int32_type
427
+ ],
428
+ [
429
+ "Name",
430
+ (0, _Reflection.option_type)(_Reflection.string_type)
431
+ ]
432
+ ]);
433
+ }
434
+ function Timing_OnSave() {
435
+ return new Timing(0, []);
436
+ }
437
+ function Timing_OnLock() {
438
+ return new Timing(1, []);
439
+ }
440
+ function Timing_OnFirstOpen() {
441
+ return new Timing(2, []);
442
+ }
443
+ function Timing_UnrecognisedTiming(eventName) {
444
+ return new Timing(3, [
445
+ eventName
446
+ ]);
447
+ }
448
+ class Timing extends _Types.Union {
449
+ cases() {
450
+ return [
451
+ "OnSave",
452
+ "OnLock",
453
+ "OnFirstOpen",
454
+ "UnrecognisedTiming"
455
+ ];
456
+ }
457
+ constructor(tag, fields){
458
+ super(), this.tag = tag, this.fields = fields;
459
+ }
460
+ }
461
+ function Timing_$reflection() {
462
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.Timing", [], Timing, ()=>[
463
+ [],
464
+ [],
465
+ [],
466
+ [
467
+ [
468
+ "eventName",
469
+ _Reflection.string_type
470
+ ]
471
+ ]
472
+ ]);
473
+ }
474
+ function Firing_EveryTime() {
475
+ return new Firing(0, []);
476
+ }
477
+ function Firing_OnceOnly() {
478
+ return new Firing(1, []);
479
+ }
480
+ class Firing extends _Types.Union {
481
+ cases() {
482
+ return [
483
+ "EveryTime",
484
+ "OnceOnly"
485
+ ];
486
+ }
487
+ constructor(tag, fields){
488
+ super(), this.tag = tag, this.fields = fields;
489
+ }
490
+ }
491
+ function Firing_$reflection() {
492
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.Firing", [], Firing, ()=>[
493
+ [],
494
+ []
495
+ ]);
496
+ }
497
+ function VitalSign_SystolicBP() {
498
+ return new VitalSign(0, []);
499
+ }
500
+ function VitalSign_DiastolicBP() {
501
+ return new VitalSign(1, []);
502
+ }
503
+ function VitalSign_HeartRate() {
504
+ return new VitalSign(2, []);
505
+ }
506
+ function VitalSign_Respiration() {
507
+ return new VitalSign(3, []);
508
+ }
509
+ function VitalSign_Temperature() {
510
+ return new VitalSign(4, []);
511
+ }
512
+ function VitalSign_SpO2() {
513
+ return new VitalSign(5, []);
514
+ }
515
+ function VitalSign_Weight() {
516
+ return new VitalSign(6, []);
517
+ }
518
+ class VitalSign extends _Types.Union {
519
+ cases() {
520
+ return [
521
+ "SystolicBP",
522
+ "DiastolicBP",
523
+ "HeartRate",
524
+ "Respiration",
525
+ "Temperature",
526
+ "SpO2",
527
+ "Weight"
528
+ ];
529
+ }
530
+ constructor(tag, fields){
531
+ super(), this.tag = tag, this.fields = fields;
532
+ }
533
+ }
534
+ function VitalSign_$reflection() {
535
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.VitalSign", [], VitalSign, ()=>[
536
+ [],
537
+ [],
538
+ [],
539
+ [],
540
+ [],
541
+ [],
542
+ []
543
+ ]);
544
+ }
545
+ function Comparison_Less() {
546
+ return new Comparison(0, []);
547
+ }
548
+ function Comparison_LessOrEqual() {
549
+ return new Comparison(1, []);
550
+ }
551
+ function Comparison_Equal() {
552
+ return new Comparison(2, []);
553
+ }
554
+ function Comparison_NotEqual() {
555
+ return new Comparison(3, []);
556
+ }
557
+ function Comparison_GreaterOrEqual() {
558
+ return new Comparison(4, []);
559
+ }
560
+ function Comparison_Greater() {
561
+ return new Comparison(5, []);
562
+ }
563
+ class Comparison extends _Types.Union {
564
+ cases() {
565
+ return [
566
+ "Less",
567
+ "LessOrEqual",
568
+ "Equal",
569
+ "NotEqual",
570
+ "GreaterOrEqual",
571
+ "Greater"
572
+ ];
573
+ }
574
+ constructor(tag, fields){
575
+ super(), this.tag = tag, this.fields = fields;
576
+ }
577
+ }
578
+ function Comparison_$reflection() {
579
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.Comparison", [], Comparison, ()=>[
580
+ [],
581
+ [],
582
+ [],
583
+ [],
584
+ [],
585
+ []
586
+ ]);
587
+ }
588
+ function Condition_AnyChosen(Item) {
589
+ return new Condition(0, [
590
+ Item
591
+ ]);
592
+ }
593
+ function Condition_AllChosen(Item) {
594
+ return new Condition(1, [
595
+ Item
596
+ ]);
597
+ }
598
+ function Condition_NoneChosen(Item) {
599
+ return new Condition(2, [
600
+ Item
601
+ ]);
602
+ }
603
+ function Condition_VitalIs(Item1, Item2, Item3) {
604
+ return new Condition(3, [
605
+ Item1,
606
+ Item2,
607
+ Item3
608
+ ]);
609
+ }
610
+ function Condition_BooleanIs(Item) {
611
+ return new Condition(4, [
612
+ Item
613
+ ]);
614
+ }
615
+ function Condition_TextCompares(Item1, Item2) {
616
+ return new Condition(5, [
617
+ Item1,
618
+ Item2
619
+ ]);
620
+ }
621
+ function Condition_UnmodelledCondition(source, operator, because) {
622
+ return new Condition(6, [
623
+ source,
624
+ operator,
625
+ because
626
+ ]);
627
+ }
628
+ class Condition extends _Types.Union {
629
+ cases() {
630
+ return [
631
+ "AnyChosen",
632
+ "AllChosen",
633
+ "NoneChosen",
634
+ "VitalIs",
635
+ "BooleanIs",
636
+ "TextCompares",
637
+ "UnmodelledCondition"
638
+ ];
639
+ }
640
+ constructor(tag, fields){
641
+ super(), this.tag = tag, this.fields = fields;
642
+ }
643
+ }
644
+ function Condition_$reflection() {
645
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.Condition", [], Condition, ()=>[
646
+ [
647
+ [
648
+ "Item",
649
+ (0, _Reflection.list_type)(ChoiceId_$reflection())
650
+ ]
651
+ ],
652
+ [
653
+ [
654
+ "Item",
655
+ (0, _Reflection.list_type)(ChoiceId_$reflection())
656
+ ]
657
+ ],
658
+ [
659
+ [
660
+ "Item",
661
+ (0, _Reflection.list_type)(ChoiceId_$reflection())
662
+ ]
663
+ ],
664
+ [
665
+ [
666
+ "Item1",
667
+ VitalSign_$reflection()
668
+ ],
669
+ [
670
+ "Item2",
671
+ Comparison_$reflection()
672
+ ],
673
+ [
674
+ "Item3",
675
+ _Reflection.decimal_type
676
+ ]
677
+ ],
678
+ [
679
+ [
680
+ "Item",
681
+ _Reflection.bool_type
682
+ ]
683
+ ],
684
+ [
685
+ [
686
+ "Item1",
687
+ Comparison_$reflection()
688
+ ],
689
+ [
690
+ "Item2",
691
+ _Reflection.string_type
692
+ ]
693
+ ],
694
+ [
695
+ [
696
+ "source",
697
+ _Reflection.string_type
698
+ ],
699
+ [
700
+ "operator",
701
+ _Reflection.string_type
702
+ ],
703
+ [
704
+ "because",
705
+ _Reflection.string_type
706
+ ]
707
+ ]
708
+ ]);
709
+ }
710
+ function Join_And() {
711
+ return new Join(0, []);
712
+ }
713
+ function Join_Or() {
714
+ return new Join(1, []);
715
+ }
716
+ function Join_UnrecognisedJoin(stated) {
717
+ return new Join(2, [
718
+ stated
719
+ ]);
720
+ }
721
+ class Join extends _Types.Union {
722
+ cases() {
723
+ return [
724
+ "And",
725
+ "Or",
726
+ "UnrecognisedJoin"
727
+ ];
728
+ }
729
+ constructor(tag, fields){
730
+ super(), this.tag = tag, this.fields = fields;
731
+ }
732
+ }
733
+ function Join_$reflection() {
734
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.Join", [], Join, ()=>[
735
+ [],
736
+ [],
737
+ [
738
+ [
739
+ "stated",
740
+ _Reflection.string_type
741
+ ]
742
+ ]
743
+ ]);
744
+ }
745
+ class StatedCondition extends _Types.Record {
746
+ constructor(SourceItem, Join, Test){
747
+ super();
748
+ this.SourceItem = SourceItem;
749
+ this.Join = Join;
750
+ this.Test = Test;
751
+ }
752
+ }
753
+ function StatedCondition_$reflection() {
754
+ return (0, _Reflection.record_type)("Vye.Contracts.CoreMR.StatedCondition", [], StatedCondition, ()=>[
755
+ [
756
+ "SourceItem",
757
+ (0, _Reflection.option_type)(_Reflection.int32_type)
758
+ ],
759
+ [
760
+ "Join",
761
+ (0, _Reflection.option_type)(Join_$reflection())
762
+ ],
763
+ [
764
+ "Test",
765
+ Condition_$reflection()
766
+ ]
767
+ ]);
768
+ }
769
+ class Priority extends _Types.Union {
770
+ cases() {
771
+ return [
772
+ "Priority"
773
+ ];
774
+ }
775
+ constructor(Item){
776
+ super();
777
+ this.tag = 0;
778
+ this.fields = [
779
+ Item
780
+ ];
781
+ }
782
+ }
783
+ function Priority_$reflection() {
784
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.Priority", [], Priority, ()=>[
785
+ [
786
+ [
787
+ "Item",
788
+ _Reflection.int32_type
789
+ ]
790
+ ]
791
+ ]);
792
+ }
793
+ class TaskOrder extends _Types.Record {
794
+ constructor(Category, Description, Priority, Due){
795
+ super();
796
+ this.Category = Category;
797
+ this.Description = Description;
798
+ this.Priority = Priority;
799
+ this.Due = Due;
800
+ }
801
+ }
802
+ function TaskOrder_$reflection() {
803
+ return (0, _Reflection.record_type)("Vye.Contracts.CoreMR.TaskOrder", [], TaskOrder, ()=>[
804
+ [
805
+ "Category",
806
+ Ref_$reflection()
807
+ ],
808
+ [
809
+ "Description",
810
+ (0, _Reflection.option_type)(_Reflection.string_type)
811
+ ],
812
+ [
813
+ "Priority",
814
+ Priority_$reflection()
815
+ ],
816
+ [
817
+ "Due",
818
+ (0, _Reflection.option_type)(_Reflection.string_type)
819
+ ]
820
+ ]);
821
+ }
822
+ class TreatmentOrder extends _Types.Record {
823
+ constructor(Treatment, Provider, Start, Instructions, CanTreatImmediately){
824
+ super();
825
+ this.Treatment = Treatment;
826
+ this.Provider = Provider;
827
+ this.Start = Start;
828
+ this.Instructions = Instructions;
829
+ this.CanTreatImmediately = CanTreatImmediately;
830
+ }
831
+ }
832
+ function TreatmentOrder_$reflection() {
833
+ return (0, _Reflection.record_type)("Vye.Contracts.CoreMR.TreatmentOrder", [], TreatmentOrder, ()=>[
834
+ [
835
+ "Treatment",
836
+ Ref_$reflection()
837
+ ],
838
+ [
839
+ "Provider",
840
+ (0, _Reflection.option_type)(Ref_$reflection())
841
+ ],
842
+ [
843
+ "Start",
844
+ _Reflection.string_type
845
+ ],
846
+ [
847
+ "Instructions",
848
+ (0, _Reflection.option_type)(_Reflection.string_type)
849
+ ],
850
+ [
851
+ "CanTreatImmediately",
852
+ (0, _Reflection.option_type)(_Reflection.bool_type)
853
+ ]
854
+ ]);
855
+ }
856
+ function Cadence_OnSchedule(schedule, ends) {
857
+ return new Cadence(0, [
858
+ schedule,
859
+ ends
860
+ ]);
861
+ }
862
+ function Cadence_Every(interval, until) {
863
+ return new Cadence(1, [
864
+ interval,
865
+ until
866
+ ]);
867
+ }
868
+ class Cadence extends _Types.Union {
869
+ cases() {
870
+ return [
871
+ "OnSchedule",
872
+ "Every"
873
+ ];
874
+ }
875
+ constructor(tag, fields){
876
+ super(), this.tag = tag, this.fields = fields;
877
+ }
878
+ }
879
+ function Cadence_$reflection() {
880
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.Cadence", [], Cadence, ()=>[
881
+ [
882
+ [
883
+ "schedule",
884
+ Ref_$reflection()
885
+ ],
886
+ [
887
+ "ends",
888
+ (0, _Reflection.option_type)(_Reflection.string_type)
889
+ ]
890
+ ],
891
+ [
892
+ [
893
+ "interval",
894
+ _Reflection.string_type
895
+ ],
896
+ [
897
+ "until",
898
+ _Reflection.string_type
899
+ ]
900
+ ]
901
+ ]);
902
+ }
903
+ function Standing_RecurringTask(Item) {
904
+ return new Standing(0, [
905
+ Item
906
+ ]);
907
+ }
908
+ function Standing_Treatment(Item) {
909
+ return new Standing(1, [
910
+ Item
911
+ ]);
912
+ }
913
+ class Standing extends _Types.Union {
914
+ cases() {
915
+ return [
916
+ "RecurringTask",
917
+ "Treatment"
918
+ ];
919
+ }
920
+ constructor(tag, fields){
921
+ super(), this.tag = tag, this.fields = fields;
922
+ }
923
+ }
924
+ function Standing_$reflection() {
925
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.Standing", [], Standing, ()=>[
926
+ [
927
+ [
928
+ "Item",
929
+ TaskOrder_$reflection()
930
+ ]
931
+ ],
932
+ [
933
+ [
934
+ "Item",
935
+ TreatmentOrder_$reflection()
936
+ ]
937
+ ]
938
+ ]);
939
+ }
940
+ function GroupChange_AddTo(Item) {
941
+ return new GroupChange(0, [
942
+ Item
943
+ ]);
944
+ }
945
+ function GroupChange_RemoveFrom(Item) {
946
+ return new GroupChange(1, [
947
+ Item
948
+ ]);
949
+ }
950
+ class GroupChange extends _Types.Union {
951
+ cases() {
952
+ return [
953
+ "AddTo",
954
+ "RemoveFrom"
955
+ ];
956
+ }
957
+ constructor(tag, fields){
958
+ super(), this.tag = tag, this.fields = fields;
959
+ }
960
+ }
961
+ function GroupChange_$reflection() {
962
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.GroupChange", [], GroupChange, ()=>[
963
+ [
964
+ [
965
+ "Item",
966
+ NonEmpty$1_$reflection(Ref_$reflection())
967
+ ]
968
+ ],
969
+ [
970
+ [
971
+ "Item",
972
+ NonEmpty$1_$reflection(Ref_$reflection())
973
+ ]
974
+ ]
975
+ ]);
976
+ }
977
+ class MedsetOrder extends _Types.Record {
978
+ constructor(Medset, Prescriber, Pharmacy, Start){
979
+ super();
980
+ this.Medset = Medset;
981
+ this.Prescriber = Prescriber;
982
+ this.Pharmacy = Pharmacy;
983
+ this.Start = Start;
984
+ }
985
+ }
986
+ function MedsetOrder_$reflection() {
987
+ return (0, _Reflection.record_type)("Vye.Contracts.CoreMR.MedsetOrder", [], MedsetOrder, ()=>[
988
+ [
989
+ "Medset",
990
+ Ref_$reflection()
991
+ ],
992
+ [
993
+ "Prescriber",
994
+ (0, _Reflection.option_type)(Ref_$reflection())
995
+ ],
996
+ [
997
+ "Pharmacy",
998
+ (0, _Reflection.option_type)(Ref_$reflection())
999
+ ],
1000
+ [
1001
+ "Start",
1002
+ (0, _Reflection.option_type)(_Reflection.string_type)
1003
+ ]
1004
+ ]);
1005
+ }
1006
+ class ProblemOrder extends _Types.Record {
1007
+ constructor(Problem, Chronic, Severity, Inflammation){
1008
+ super();
1009
+ this.Problem = Problem;
1010
+ this.Chronic = Chronic;
1011
+ this.Severity = Severity;
1012
+ this.Inflammation = Inflammation;
1013
+ }
1014
+ }
1015
+ function ProblemOrder_$reflection() {
1016
+ return (0, _Reflection.record_type)("Vye.Contracts.CoreMR.ProblemOrder", [], ProblemOrder, ()=>[
1017
+ [
1018
+ "Problem",
1019
+ Ref_$reflection()
1020
+ ],
1021
+ [
1022
+ "Chronic",
1023
+ (0, _Reflection.option_type)(_Reflection.int32_type)
1024
+ ],
1025
+ [
1026
+ "Severity",
1027
+ (0, _Reflection.option_type)(_Reflection.int32_type)
1028
+ ],
1029
+ [
1030
+ "Inflammation",
1031
+ (0, _Reflection.option_type)(_Reflection.int32_type)
1032
+ ]
1033
+ ]);
1034
+ }
1035
+ function Action_OneOffTask(Item) {
1036
+ return new Action(0, [
1037
+ Item
1038
+ ]);
1039
+ }
1040
+ function Action_StandingOrder(Item1, Item2) {
1041
+ return new Action(1, [
1042
+ Item1,
1043
+ Item2
1044
+ ]);
1045
+ }
1046
+ function Action_Alert(category) {
1047
+ return new Action(2, [
1048
+ category
1049
+ ]);
1050
+ }
1051
+ function Action_Problem(Item) {
1052
+ return new Action(3, [
1053
+ Item
1054
+ ]);
1055
+ }
1056
+ function Action_Medset(Item) {
1057
+ return new Action(4, [
1058
+ Item
1059
+ ]);
1060
+ }
1061
+ function Action_ChangeGroups(Item) {
1062
+ return new Action(5, [
1063
+ Item
1064
+ ]);
1065
+ }
1066
+ class Action extends _Types.Union {
1067
+ cases() {
1068
+ return [
1069
+ "OneOffTask",
1070
+ "StandingOrder",
1071
+ "Alert",
1072
+ "Problem",
1073
+ "Medset",
1074
+ "ChangeGroups"
1075
+ ];
1076
+ }
1077
+ constructor(tag, fields){
1078
+ super(), this.tag = tag, this.fields = fields;
1079
+ }
1080
+ }
1081
+ function Action_$reflection() {
1082
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.Action", [], Action, ()=>[
1083
+ [
1084
+ [
1085
+ "Item",
1086
+ TaskOrder_$reflection()
1087
+ ]
1088
+ ],
1089
+ [
1090
+ [
1091
+ "Item1",
1092
+ Cadence_$reflection()
1093
+ ],
1094
+ [
1095
+ "Item2",
1096
+ Standing_$reflection()
1097
+ ]
1098
+ ],
1099
+ [
1100
+ [
1101
+ "category",
1102
+ Ref_$reflection()
1103
+ ]
1104
+ ],
1105
+ [
1106
+ [
1107
+ "Item",
1108
+ ProblemOrder_$reflection()
1109
+ ]
1110
+ ],
1111
+ [
1112
+ [
1113
+ "Item",
1114
+ MedsetOrder_$reflection()
1115
+ ]
1116
+ ],
1117
+ [
1118
+ [
1119
+ "Item",
1120
+ GroupChange_$reflection()
1121
+ ]
1122
+ ]
1123
+ ]);
1124
+ }
1125
+ function ActionRead_Modelled(Item) {
1126
+ return new ActionRead(0, [
1127
+ Item
1128
+ ]);
1129
+ }
1130
+ function ActionRead_Unmodelled(kind, because) {
1131
+ return new ActionRead(1, [
1132
+ kind,
1133
+ because
1134
+ ]);
1135
+ }
1136
+ class ActionRead extends _Types.Union {
1137
+ cases() {
1138
+ return [
1139
+ "Modelled",
1140
+ "Unmodelled"
1141
+ ];
1142
+ }
1143
+ constructor(tag, fields){
1144
+ super(), this.tag = tag, this.fields = fields;
1145
+ }
1146
+ }
1147
+ function ActionRead_$reflection() {
1148
+ return (0, _Reflection.union_type)("Vye.Contracts.CoreMR.ActionRead", [], ActionRead, ()=>[
1149
+ [
1150
+ [
1151
+ "Item",
1152
+ Action_$reflection()
1153
+ ]
1154
+ ],
1155
+ [
1156
+ [
1157
+ "kind",
1158
+ _Reflection.string_type
1159
+ ],
1160
+ [
1161
+ "because",
1162
+ _Reflection.string_type
1163
+ ]
1164
+ ]
1165
+ ]);
1166
+ }
1167
+ class StatedAction extends _Types.Record {
1168
+ constructor(ActionId, Read){
1169
+ super();
1170
+ this.ActionId = ActionId | 0;
1171
+ this.Read = Read;
1172
+ }
1173
+ }
1174
+ function StatedAction_$reflection() {
1175
+ return (0, _Reflection.record_type)("Vye.Contracts.CoreMR.StatedAction", [], StatedAction, ()=>[
1176
+ [
1177
+ "ActionId",
1178
+ _Reflection.int32_type
1179
+ ],
1180
+ [
1181
+ "Read",
1182
+ ActionRead_$reflection()
1183
+ ]
1184
+ ]);
1185
+ }
1186
+ class Trigger extends _Types.Record {
1187
+ constructor(TriggerId, Timing, Firing, Enabled, Conditions, Actions){
1188
+ super();
1189
+ this.TriggerId = TriggerId | 0;
1190
+ this.Timing = Timing;
1191
+ this.Firing = Firing;
1192
+ this.Enabled = Enabled;
1193
+ this.Conditions = Conditions;
1194
+ this.Actions = Actions;
1195
+ }
1196
+ }
1197
+ function Trigger_$reflection() {
1198
+ return (0, _Reflection.record_type)("Vye.Contracts.CoreMR.Trigger", [], Trigger, ()=>[
1199
+ [
1200
+ "TriggerId",
1201
+ _Reflection.int32_type
1202
+ ],
1203
+ [
1204
+ "Timing",
1205
+ Timing_$reflection()
1206
+ ],
1207
+ [
1208
+ "Firing",
1209
+ Availability$1_$reflection(Firing_$reflection())
1210
+ ],
1211
+ [
1212
+ "Enabled",
1213
+ _Reflection.bool_type
1214
+ ],
1215
+ [
1216
+ "Conditions",
1217
+ (0, _Reflection.list_type)(StatedCondition_$reflection())
1218
+ ],
1219
+ [
1220
+ "Actions",
1221
+ (0, _Reflection.list_type)(StatedAction_$reflection())
1222
+ ]
1223
+ ]);
1224
+ }
1225
+ class FacilityAvailability extends _Types.Record {
1226
+ constructor(ActiveAt){
1227
+ super();
1228
+ this.ActiveAt = ActiveAt;
1229
+ }
1230
+ }
1231
+ function FacilityAvailability_$reflection() {
1232
+ return (0, _Reflection.record_type)("Vye.Contracts.CoreMR.FacilityAvailability", [], FacilityAvailability, ()=>[
1233
+ [
1234
+ "ActiveAt",
1235
+ (0, _Reflection.class_type)("Microsoft.FSharp.Collections.FSharpSet`1", [
1236
+ _Reflection.int32_type
1237
+ ])
1238
+ ]
1239
+ ]);
1240
+ } //# sourceMappingURL=FormTemplate.ts.map
1241
+
1242
+ //# sourceMappingURL=FormTemplate.js.map