@f1studio/form-spec 5.0.0-alpha.157 → 5.0.0-alpha.159

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 (420) hide show
  1. package/FormSpec.FS/BitmaskHelpers.js.map +1 -0
  2. package/FormSpec.FS/BlueprintValidation.js.map +1 -0
  3. package/FormSpec.FS/Components/HelloComponent.js.map +1 -0
  4. package/FormSpec.FS/Designer.js.map +1 -0
  5. package/FormSpec.FS/FormSpec.d.ts +56 -24
  6. package/FormSpec.FS/FormSpec.d.ts.map +1 -1
  7. package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/FormSpec.js +172 -12
  8. package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/FormSpec.js.map +1 -1
  9. package/FormSpec.FS/FormSpecHelpers.js.map +1 -0
  10. package/FormSpec.FS/FormSpecValues.js.map +1 -0
  11. package/FormSpec.FS/Helpers.js.map +1 -0
  12. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRAdapter.js.map +1 -0
  13. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js.map +1 -0
  14. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js.map +1 -0
  15. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.js.map +1 -0
  16. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.js.map +1 -0
  17. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.js.map +1 -0
  18. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.js.map +1 -0
  19. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.js.map +1 -0
  20. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js.map +1 -0
  21. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.d.ts.map +1 -1
  22. package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.js +5 -2
  23. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.js.map +1 -0
  24. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts +46 -5
  25. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts.map +1 -1
  26. package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CoreMREncoder.js +333 -13
  27. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +1 -0
  28. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +1 -0
  29. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRTriggerEnrichment.d.ts +19 -0
  30. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRTriggerEnrichment.d.ts.map +1 -0
  31. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRTriggerEnrichment.js +99 -0
  32. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRTriggerEnrichment.js.map +1 -0
  33. package/FormSpec.FS/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.js.map +1 -0
  34. package/FormSpec.FS/Integrations/Adapters/FormSystemAdapter.js.map +1 -0
  35. package/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormAdapter.js.map +1 -0
  36. package/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormTypes.js.map +1 -0
  37. package/FormSpec.FS/Integrations/CorEMR/CoreMRTypes.js.map +1 -0
  38. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts +1 -1
  39. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts.map +1 -1
  40. package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/CorEMR/ItemTriggerConverter.js +18 -10
  41. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js.map +1 -0
  42. package/FormSpec.FS/Integrations/CorEMR/TemplateDecodeTypes.js.map +1 -0
  43. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts.map +1 -1
  44. package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/CorEMR/TemplateManifestDecoder.js +3 -63
  45. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +1 -0
  46. package/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.js.map +1 -0
  47. package/FormSpec.FS/Interfaces.js.map +1 -0
  48. package/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js.map +1 -0
  49. package/FormSpec.FS/Interop/Facade/FormAnswersGate.js.map +1 -0
  50. package/FormSpec.FS/Interop/FormSpec.Api.Helpers.d.ts.map +1 -1
  51. package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Interop/FormSpec.Api.Helpers.js +31 -10
  52. package/FormSpec.FS/Interop/FormSpec.Api.Helpers.js.map +1 -0
  53. package/FormSpec.FS/Interop/FormSpec.Api.Option.js.map +1 -0
  54. package/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js.map +1 -0
  55. package/FormSpec.FS/Logging/LogTypes.js.map +1 -0
  56. package/FormSpec.FS/Migrator.js.map +1 -0
  57. package/FormSpec.FS/PathwayDataExtractor.d.ts.map +1 -1
  58. package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/PathwayDataExtractor.js +67 -42
  59. package/FormSpec.FS/PathwayDataExtractor.js.map +1 -0
  60. package/FormSpec.FS/PathwayExecutor.d.ts.map +1 -1
  61. package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/PathwayExecutor.js +20 -6
  62. package/FormSpec.FS/PathwayExecutor.js.map +1 -0
  63. package/FormSpec.FS/PathwayValidator.js.map +1 -0
  64. package/FormSpec.FS/PluginInterface.js.map +1 -0
  65. package/FormSpec.FS/Prelude.js.map +1 -0
  66. package/FormSpec.FS/Provenance.js.map +1 -0
  67. package/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.js.map +1 -0
  68. package/FormSpec.FS/Renderers/MermaidRenderer.js.map +1 -0
  69. package/FormSpec.FS/Renderers/PathwayRenderers.js.map +1 -0
  70. package/FormSpec.FS/TriggerActionDto.d.ts +26 -10
  71. package/FormSpec.FS/TriggerActionDto.d.ts.map +1 -1
  72. package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/TriggerActionDto.js +82 -17
  73. package/FormSpec.FS/TriggerActionDto.js.map +1 -0
  74. package/PathwayExecutor.withPlugins.js.map +1 -0
  75. package/PluginRegistration.js.map +1 -0
  76. package/README.md +7 -7
  77. package/Thoth.Json/packages/Thoth.Json/Decode.d.ts +2 -2
  78. package/Thoth.Json/packages/Thoth.Json/Decode.d.ts.map +1 -1
  79. package/{FormSpec.TS/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Decode.js +69 -63
  80. package/Thoth.Json/packages/Thoth.Json/Decode.js.map +1 -0
  81. package/Thoth.Json/packages/Thoth.Json/Encode.d.ts.map +1 -1
  82. package/{FormSpec.TS/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Encode.js +10 -6
  83. package/Thoth.Json/packages/Thoth.Json/Encode.js.map +1 -0
  84. package/Thoth.Json/packages/Thoth.Json/Extra.js.map +1 -0
  85. package/Thoth.Json/packages/Thoth.Json/Types.js.map +1 -0
  86. package/fable_modules/Fable.Form.3.0.0/Base.fs.js.map +1 -0
  87. package/fable_modules/Fable.Form.3.0.0/Error.fs.js.map +1 -0
  88. package/fable_modules/Fable.Form.3.0.0/Extensions.fs.js.map +1 -0
  89. package/fable_modules/Fable.Form.3.0.0/Field.fs.js.map +1 -0
  90. package/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.js.map +1 -0
  91. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.js.map +1 -0
  92. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.js.map +1 -0
  93. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.js.map +1 -0
  94. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.js.map +1 -0
  95. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.js.map +1 -0
  96. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.js.map +1 -0
  97. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.js.map +1 -0
  98. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.js.map +1 -0
  99. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.js.map +1 -0
  100. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js.map +1 -0
  101. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.js.map +1 -0
  102. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.js.map +1 -0
  103. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.js.map +1 -0
  104. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.js.map +1 -0
  105. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.js.map +1 -0
  106. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.js.map +1 -0
  107. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.js.map +1 -0
  108. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.js.map +1 -0
  109. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.js.map +1 -0
  110. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.js.map +1 -0
  111. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.js.map +1 -0
  112. package/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js.map +1 -0
  113. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.js.map +1 -0
  114. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.js.map +1 -0
  115. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.js.map +1 -0
  116. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.js.map +1 -0
  117. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.js.map +1 -0
  118. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.js.map +1 -0
  119. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.js.map +1 -0
  120. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.js.map +1 -0
  121. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.js.map +1 -0
  122. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.js.map +1 -0
  123. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.js.map +1 -0
  124. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.js.map +1 -0
  125. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.js.map +1 -0
  126. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.js.map +1 -0
  127. package/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.js.map +1 -0
  128. package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +1 -0
  129. package/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +1 -0
  130. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +1 -0
  131. package/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.js.map +1 -0
  132. package/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js.map +1 -0
  133. package/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.js.map +1 -0
  134. package/fable_modules/Feliz.2.8.0/Colors.fs.js.map +1 -0
  135. package/fable_modules/Feliz.2.8.0/DateParsing.fs.js.map +1 -0
  136. package/fable_modules/Feliz.2.8.0/Helpers.fs.js.map +1 -0
  137. package/fable_modules/Feliz.2.8.0/Internal.fs.js.map +1 -0
  138. package/fable_modules/Feliz.2.8.0/Interop.fs.js.map +1 -0
  139. package/fable_modules/Feliz.2.8.0/Key.fs.js.map +1 -0
  140. package/fable_modules/Feliz.2.8.0/Properties.fs.js.map +1 -0
  141. package/fable_modules/Feliz.2.8.0/ReactDOM.fs.js.map +1 -0
  142. package/fable_modules/Feliz.2.8.0/ReactInterop.js.map +1 -0
  143. package/fable_modules/Feliz.2.8.0/ReactTypes.fs.js.map +1 -0
  144. package/fable_modules/Feliz.2.8.0/StyleTypes.fs.js.map +1 -0
  145. package/fable_modules/Feliz.2.8.0/Svg.fs.js.map +1 -0
  146. package/fable_modules/Feliz.2.8.0/Types.fs.js.map +1 -0
  147. package/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.js.map +1 -0
  148. package/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.js.map +1 -0
  149. package/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.js.map +1 -0
  150. package/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.js.map +1 -0
  151. package/package.json +1 -1
  152. package/plugins/allergyfinder/src/AllergyFinderField.js.map +1 -0
  153. package/plugins/allergyfinder/src/AllergyLogic.js.map +1 -0
  154. package/plugins/allergyfinder/src/OpenFdaClient.js.map +1 -0
  155. package/plugins/bmi/src/BMIField.js.map +1 -0
  156. package/plugins/demographics/src/DemographicsField.js.map +1 -0
  157. package/plugins/likert/src/LikertField.js.map +1 -0
  158. package/plugins/signature/src/SignatureField.js.map +1 -0
  159. package/plugins/vitals/src/VitalsField.d.ts +2 -0
  160. package/plugins/vitals/src/VitalsField.d.ts.map +1 -1
  161. package/{FormSpec.TS/plugins → plugins}/vitals/src/VitalsField.js +283 -67
  162. package/plugins/vitals/src/VitalsField.js.map +1 -0
  163. package/plugins/vitals/src/VitalsLogic.d.ts +41 -4
  164. package/plugins/vitals/src/VitalsLogic.d.ts.map +1 -1
  165. package/{FormSpec.TS/plugins → plugins}/vitals/src/VitalsLogic.js +176 -11
  166. package/plugins/vitals/src/VitalsLogic.js.map +1 -0
  167. package/src/FormSpec.FS/FormSpec.ts +98 -26
  168. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.ts +4 -4
  169. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +314 -45
  170. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRTriggerEnrichment.ts +105 -0
  171. package/src/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.ts +18 -16
  172. package/src/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts +12 -86
  173. package/src/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts +30 -11
  174. package/src/FormSpec.FS/PathwayDataExtractor.ts +65 -44
  175. package/src/FormSpec.FS/PathwayExecutor.ts +22 -10
  176. package/src/FormSpec.FS/TriggerActionDto.ts +64 -29
  177. package/src/Thoth.Json/packages/Thoth.Json/Decode.ts +55 -38
  178. package/src/Thoth.Json/packages/Thoth.Json/Encode.ts +16 -10
  179. package/src/plugins/vitals/src/VitalsField.ts +203 -65
  180. package/src/plugins/vitals/src/VitalsLogic.ts +140 -14
  181. package/FormSpec.TS/FormSpec.FS/BitmaskHelpers.js.map +0 -1
  182. package/FormSpec.TS/FormSpec.FS/BlueprintValidation.js.map +0 -1
  183. package/FormSpec.TS/FormSpec.FS/Components/HelloComponent.js.map +0 -1
  184. package/FormSpec.TS/FormSpec.FS/Designer.js.map +0 -1
  185. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.js.map +0 -1
  186. package/FormSpec.TS/FormSpec.FS/FormSpecValues.js.map +0 -1
  187. package/FormSpec.TS/FormSpec.FS/Helpers.js.map +0 -1
  188. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRAdapter.js.map +0 -1
  189. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js.map +0 -1
  190. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js.map +0 -1
  191. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.js.map +0 -1
  192. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.js.map +0 -1
  193. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.js.map +0 -1
  194. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.js.map +0 -1
  195. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.js.map +0 -1
  196. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js.map +0 -1
  197. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.js.map +0 -1
  198. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +0 -1
  199. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +0 -1
  200. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.js.map +0 -1
  201. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/FormSystemAdapter.js.map +0 -1
  202. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormAdapter.js.map +0 -1
  203. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormTypes.js.map +0 -1
  204. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/CoreMRTypes.js.map +0 -1
  205. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js.map +0 -1
  206. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateDecodeTypes.js.map +0 -1
  207. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +0 -1
  208. package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.js.map +0 -1
  209. package/FormSpec.TS/FormSpec.FS/Interfaces.js.map +0 -1
  210. package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js.map +0 -1
  211. package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.js.map +0 -1
  212. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js.map +0 -1
  213. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js.map +0 -1
  214. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js.map +0 -1
  215. package/FormSpec.TS/FormSpec.FS/Logging/LogTypes.js.map +0 -1
  216. package/FormSpec.TS/FormSpec.FS/Migrator.js.map +0 -1
  217. package/FormSpec.TS/FormSpec.FS/PathwayDataExtractor.js.map +0 -1
  218. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.js.map +0 -1
  219. package/FormSpec.TS/FormSpec.FS/PathwayValidator.js.map +0 -1
  220. package/FormSpec.TS/FormSpec.FS/PluginInterface.js.map +0 -1
  221. package/FormSpec.TS/FormSpec.FS/Prelude.js.map +0 -1
  222. package/FormSpec.TS/FormSpec.FS/Provenance.js.map +0 -1
  223. package/FormSpec.TS/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.js.map +0 -1
  224. package/FormSpec.TS/FormSpec.FS/Renderers/MermaidRenderer.js.map +0 -1
  225. package/FormSpec.TS/FormSpec.FS/Renderers/PathwayRenderers.js.map +0 -1
  226. package/FormSpec.TS/FormSpec.FS/TriggerActionDto.js.map +0 -1
  227. package/FormSpec.TS/PathwayExecutor.withPlugins.js.map +0 -1
  228. package/FormSpec.TS/PluginRegistration.js.map +0 -1
  229. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.js.map +0 -1
  230. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js.map +0 -1
  231. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Extra.js.map +0 -1
  232. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Types.js.map +0 -1
  233. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.js.map +0 -1
  234. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.js.map +0 -1
  235. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.js.map +0 -1
  236. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.js.map +0 -1
  237. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.js.map +0 -1
  238. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.js.map +0 -1
  239. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.js.map +0 -1
  240. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.js.map +0 -1
  241. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.js.map +0 -1
  242. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.js.map +0 -1
  243. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.js.map +0 -1
  244. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.js.map +0 -1
  245. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.js.map +0 -1
  246. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.js.map +0 -1
  247. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js.map +0 -1
  248. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.js.map +0 -1
  249. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.js.map +0 -1
  250. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.js.map +0 -1
  251. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.js.map +0 -1
  252. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.js.map +0 -1
  253. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.js.map +0 -1
  254. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.js.map +0 -1
  255. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.js.map +0 -1
  256. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.js.map +0 -1
  257. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.js.map +0 -1
  258. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.js.map +0 -1
  259. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js.map +0 -1
  260. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.js.map +0 -1
  261. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.js.map +0 -1
  262. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.js.map +0 -1
  263. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.js.map +0 -1
  264. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.js.map +0 -1
  265. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.js.map +0 -1
  266. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.js.map +0 -1
  267. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.js.map +0 -1
  268. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.js.map +0 -1
  269. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.js.map +0 -1
  270. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.js.map +0 -1
  271. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.js.map +0 -1
  272. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.js.map +0 -1
  273. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.js.map +0 -1
  274. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.js.map +0 -1
  275. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +0 -1
  276. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +0 -1
  277. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +0 -1
  278. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.js.map +0 -1
  279. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js.map +0 -1
  280. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.js.map +0 -1
  281. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Colors.fs.js.map +0 -1
  282. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.js.map +0 -1
  283. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.js.map +0 -1
  284. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.js.map +0 -1
  285. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs.js.map +0 -1
  286. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Key.fs.js.map +0 -1
  287. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Properties.fs.js.map +0 -1
  288. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactDOM.fs.js.map +0 -1
  289. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactInterop.js.map +0 -1
  290. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactTypes.fs.js.map +0 -1
  291. package/FormSpec.TS/fable_modules/Feliz.2.8.0/StyleTypes.fs.js.map +0 -1
  292. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Svg.fs.js.map +0 -1
  293. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs.js.map +0 -1
  294. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.js.map +0 -1
  295. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.js.map +0 -1
  296. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.js.map +0 -1
  297. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.js.map +0 -1
  298. package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.js.map +0 -1
  299. package/FormSpec.TS/plugins/allergyfinder/src/AllergyLogic.js.map +0 -1
  300. package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.js.map +0 -1
  301. package/FormSpec.TS/plugins/bmi/src/BMIField.js.map +0 -1
  302. package/FormSpec.TS/plugins/demographics/src/DemographicsField.js.map +0 -1
  303. package/FormSpec.TS/plugins/likert/src/LikertField.js.map +0 -1
  304. package/FormSpec.TS/plugins/signature/src/SignatureField.js.map +0 -1
  305. package/FormSpec.TS/plugins/vitals/src/VitalsField.js.map +0 -1
  306. package/FormSpec.TS/plugins/vitals/src/VitalsLogic.js.map +0 -1
  307. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/BitmaskHelpers.js +0 -0
  308. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/BlueprintValidation.js +0 -0
  309. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Components/HelloComponent.js +0 -0
  310. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Designer.js +0 -0
  311. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/FormSpecHelpers.js +0 -0
  312. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/FormSpecValues.js +0 -0
  313. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Helpers.js +0 -0
  314. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CorEMRAdapter.js +0 -0
  315. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js +0 -0
  316. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js +0 -0
  317. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.js +0 -0
  318. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CorEMRSectioning.js +0 -0
  319. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.js +0 -0
  320. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.js +0 -0
  321. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.js +0 -0
  322. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js +0 -0
  323. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/CoreMRSourceMap.js +0 -0
  324. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.js +0 -0
  325. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/FormSystemAdapter.js +0 -0
  326. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/ReactHookForm/ReactHookFormAdapter.js +0 -0
  327. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/Adapters/ReactHookForm/ReactHookFormTypes.js +0 -0
  328. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/CorEMR/CoreMRTypes.js +0 -0
  329. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/CorEMR/TemplateDecodeTypes.js +0 -0
  330. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Integrations/OpenFda/OpenFdaTypes.js +0 -0
  331. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Interfaces.js +0 -0
  332. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Interop/Facade/BlueprintFilledForm.js +0 -0
  333. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Interop/Facade/FormAnswersGate.js +0 -0
  334. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Interop/FormSpec.Api.Option.js +0 -0
  335. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Interop/FormSpec.Values.Api.Option.js +0 -0
  336. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Logging/LogTypes.js +0 -0
  337. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Migrator.js +0 -0
  338. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/PathwayValidator.js +0 -0
  339. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/PluginInterface.js +0 -0
  340. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Prelude.js +0 -0
  341. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Provenance.js +0 -0
  342. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Renderers/FormSpecMarkdownRenderer.js +0 -0
  343. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Renderers/MermaidRenderer.js +0 -0
  344. /package/{FormSpec.TS/FormSpec.FS → FormSpec.FS}/Renderers/PathwayRenderers.js +0 -0
  345. /package/{FormSpec.TS/PathwayExecutor.withPlugins.js → PathwayExecutor.withPlugins.js} +0 -0
  346. /package/{FormSpec.TS/PluginRegistration.js → PluginRegistration.js} +0 -0
  347. /package/{FormSpec.TS/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Extra.js +0 -0
  348. /package/{FormSpec.TS/Thoth.Json → Thoth.Json}/packages/Thoth.Json/Types.js +0 -0
  349. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.3.0.0/Base.fs.js +0 -0
  350. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.3.0.0/Error.fs.js +0 -0
  351. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.3.0.0/Extensions.fs.js +0 -0
  352. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.3.0.0/Field.fs.js +0 -0
  353. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.5.0.1/Form.fs.js +0 -0
  354. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.js +0 -0
  355. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.js +0 -0
  356. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.js +0 -0
  357. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.js +0 -0
  358. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.js +0 -0
  359. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.js +0 -0
  360. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/Form.fs.js +0 -0
  361. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.js +0 -0
  362. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/Group.fs.js +0 -0
  363. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.js +0 -0
  364. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.js +0 -0
  365. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.js +0 -0
  366. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.js +0 -0
  367. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.js +0 -0
  368. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.js +0 -0
  369. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/Section.fs.js +0 -0
  370. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.js +0 -0
  371. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.js +0 -0
  372. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.js +0 -0
  373. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.js +0 -0
  374. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.js +0 -0
  375. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Bulma.5.0.1/Types.fs.js +0 -0
  376. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.js +0 -0
  377. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.js +0 -0
  378. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.js +0 -0
  379. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.js +0 -0
  380. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.js +0 -0
  381. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.js +0 -0
  382. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.js +0 -0
  383. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.js +0 -0
  384. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.js +0 -0
  385. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.js +0 -0
  386. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.js +0 -0
  387. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.js +0 -0
  388. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.js +0 -0
  389. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.js +0 -0
  390. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.js +0 -0
  391. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -0
  392. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Promise.3.2.0/Promise.fs.js +0 -0
  393. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -0
  394. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.js +0 -0
  395. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.React.Types.18.3.0/Fable.React.fs.js +0 -0
  396. /package/{FormSpec.TS/fable_modules → fable_modules}/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.js +0 -0
  397. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/Colors.fs.js +0 -0
  398. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/DateParsing.fs.js +0 -0
  399. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/Helpers.fs.js +0 -0
  400. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/Internal.fs.js +0 -0
  401. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/Interop.fs.js +0 -0
  402. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/Key.fs.js +0 -0
  403. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/Properties.fs.js +0 -0
  404. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/ReactDOM.fs.js +0 -0
  405. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/ReactInterop.js +0 -0
  406. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/ReactTypes.fs.js +0 -0
  407. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/StyleTypes.fs.js +0 -0
  408. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/Svg.fs.js +0 -0
  409. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.2.8.0/Types.fs.js +0 -0
  410. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.Bulma.3.0.0/ElementBuilders.fs.js +0 -0
  411. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.Bulma.3.0.0/Modifiers.fs.js +0 -0
  412. /package/{FormSpec.TS/fable_modules → fable_modules}/Feliz.Bulma.3.0.0/Operators.fs.js +0 -0
  413. /package/{FormSpec.TS/fable_modules → fable_modules}/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.js +0 -0
  414. /package/{FormSpec.TS/plugins → plugins}/allergyfinder/src/AllergyFinderField.js +0 -0
  415. /package/{FormSpec.TS/plugins → plugins}/allergyfinder/src/AllergyLogic.js +0 -0
  416. /package/{FormSpec.TS/plugins → plugins}/allergyfinder/src/OpenFdaClient.js +0 -0
  417. /package/{FormSpec.TS/plugins → plugins}/bmi/src/BMIField.js +0 -0
  418. /package/{FormSpec.TS/plugins → plugins}/demographics/src/DemographicsField.js +0 -0
  419. /package/{FormSpec.TS/plugins → plugins}/likert/src/LikertField.js +0 -0
  420. /package/{FormSpec.TS/plugins → plugins}/signature/src/SignatureField.js +0 -0
@@ -0,0 +1,105 @@
1
+ import { List_distinctBy } from "@fable-org/fable-library-js/Seq2.js";
2
+ import { TriggerCondition, TriggerAction, ItemTrigger } from "../../CorEMR/TemplateManifestDecoder.js";
3
+ import { tryParse, int32 } from "@fable-org/fable-library-js/Int32.js";
4
+ import { map as map_1, tryHead, ofArray, tryFind, tryPick, FSharpList, collect } from "@fable-org/fable-library-js/List.js";
5
+ import { CoreMRSourceMap_$reflection, CoreMRSourceMap, CoreMRStepMap, CoreMRFieldAnchor } from "./CoreMRSourceMap.js";
6
+ import { uncurry2, numberHash } from "@fable-org/fable-library-js/Util.js";
7
+ import { FSharpRef } from "@fable-org/fable-library-js/Types.js";
8
+ import { value as value_1, bind, defaultArg, map, Option } from "@fable-org/fable-library-js/Option.js";
9
+ import { tryFind as tryFind_1 } from "@fable-org/fable-library-js/Map.js";
10
+ import { convertActionsToBaseDtos, TriggerActionDto } from "../../../TriggerActionDto.js";
11
+ import { IntegrationProvenance } from "../../../Provenance.js";
12
+ import { Auto_generateBoxedDecoder_Z6670B51, fromString } from "../../../../Thoth.Json/packages/Thoth.Json/Decode.js";
13
+ import { FSharpResult$2_$union } from "@fable-org/fable-library-js/Result.js";
14
+ import { Spec_FieldType_$union, Spec_FormSpec$1, ClinicalPathway_ActionInfo_$union } from "../../../FormSpec.js";
15
+
16
+ function collectTriggers(sourceMap: CoreMRSourceMap): FSharpList<ItemTrigger> {
17
+ return List_distinctBy<ItemTrigger, int32>((t: ItemTrigger): int32 => t.TriggerId, collect<CoreMRStepMap, ItemTrigger>((step: CoreMRStepMap): FSharpList<ItemTrigger> => collect<CoreMRFieldAnchor, ItemTrigger>((anchor: CoreMRFieldAnchor): FSharpList<ItemTrigger> => anchor.Triggers, step.FieldAnchors), sourceMap.Steps), {
18
+ Equals: (x: int32, y: int32): boolean => (x === y),
19
+ GetHashCode: numberHash,
20
+ });
21
+ }
22
+
23
+ function tryParseInt(s: string): Option<int32> {
24
+ let matchValue: [boolean, int32];
25
+ let outArg = 0;
26
+ matchValue = ([tryParse(s, 511, false, 32, new FSharpRef<int32>((): int32 => outArg, (v: int32): void => {
27
+ outArg = (v | 0);
28
+ })), outArg] as [boolean, int32]);
29
+ if (matchValue[0]) {
30
+ return matchValue[1];
31
+ }
32
+ else {
33
+ return undefined;
34
+ }
35
+ }
36
+
37
+ function findMatchingTriggerAction(dto: TriggerActionDto, triggers: FSharpList<ItemTrigger>): Option<[ItemTrigger, TriggerAction]> {
38
+ return tryPick<ItemTrigger, [ItemTrigger, TriggerAction]>((trigger: ItemTrigger): Option<[ItemTrigger, TriggerAction]> => map<TriggerAction, [ItemTrigger, TriggerAction]>((action_1: TriggerAction): [ItemTrigger, TriggerAction] => ([trigger, action_1] as [ItemTrigger, TriggerAction]), tryFind<TriggerAction>((action: TriggerAction): boolean => {
39
+ if ((action.ActionType.toLowerCase() === dto.ActionType) ? true : ((dto.ActionType === "recurring_task") && (action.ActionType.toLowerCase() === "recurring_task"))) {
40
+ return defaultArg(tryPick<string, int32>((key: string): Option<int32> => bind<string, int32>(tryParseInt, tryFind_1<string, string>(key, action.Params)), ofArray(["id", "category_id", "cat_id", "problem_list_id", "medset_id"])), 0) === dto.CategoryId;
41
+ }
42
+ else {
43
+ return false;
44
+ }
45
+ }, trigger.Actions)), triggers);
46
+ }
47
+
48
+ function enrichDto(triggers: FSharpList<ItemTrigger>, dto: TriggerActionDto): TriggerActionDto {
49
+ const matchValue: Option<[ItemTrigger, TriggerAction]> = findMatchingTriggerAction(dto, triggers);
50
+ if (matchValue == null) {
51
+ return dto;
52
+ }
53
+ else {
54
+ const trigger: ItemTrigger = value_1(matchValue)[0];
55
+ return new TriggerActionDto(dto.ActionType, trigger.TriggerId, value_1(matchValue)[1].ActionId, dto.CategoryId, dto.CategoryName, dto.Priority, dto.Description, dto.DateStart, dto.AllDay, dto.ScheduleEnd, dto.ProblemListId, map<TriggerCondition, int32>((c: TriggerCondition): int32 => c.SourceFieldId, tryHead<TriggerCondition>(trigger.Conditions)), dto.TreatmentId, dto.ScheduleId, dto.ProviderId, dto.Signature, dto.SourceRelatedId, dto.RelatedType, dto.Chronic, dto.Severity, dto.Inflammation, dto.MedsetId, dto.PharmacyId);
56
+ }
57
+ }
58
+
59
+ /**
60
+ * FULL CoreMR conversion: ActionInfo → TriggerActionDto with provenance enrichment.
61
+ *
62
+ * THIS is the function production uses (DynamicFormPreview.fs calls this on publish).
63
+ * DO NOT call convertActionsToBaseDtos directly for CoreMR publishing — you'll miss
64
+ * trigger IDs from provenance.
65
+ *
66
+ * What it does:
67
+ * 1. Converts ALL supported action types via convertActionsToBaseDtos (Task, Alert, Problem, Treatment, Medset)
68
+ * 2. Enriches DTOs with triggerId/triggerActionId/formItemId from provenance
69
+ * 3. Enriches problem DTOs with chronic flag from trigger params
70
+ *
71
+ * If no provenance (hand-authored pathway) → returns base DTOs with zeros (safe fallback).
72
+ */
73
+ export function convertActionsForCoreMR(actions: FSharpList<ClinicalPathway_ActionInfo_$union>, formSpec: Spec_FormSpec$1<Spec_FieldType_$union>): FSharpList<TriggerActionDto> {
74
+ const baseDtos: FSharpList<TriggerActionDto> = convertActionsToBaseDtos(actions);
75
+ const matchValue: Option<IntegrationProvenance> = formSpec.Provenance;
76
+ let matchResult: int32, p_1: IntegrationProvenance;
77
+ if (matchValue != null) {
78
+ if (value_1(matchValue).IntegrationKey === "coremr") {
79
+ matchResult = 0;
80
+ p_1 = value_1(matchValue);
81
+ }
82
+ else {
83
+ matchResult = 1;
84
+ }
85
+ }
86
+ else {
87
+ matchResult = 1;
88
+ }
89
+ switch (matchResult) {
90
+ case 0: {
91
+ const matchValue_1: FSharpResult$2_$union<CoreMRSourceMap, string> = fromString<CoreMRSourceMap>(uncurry2(Auto_generateBoxedDecoder_Z6670B51(CoreMRSourceMap_$reflection(), undefined, undefined)), p_1!.Payload);
92
+ if (matchValue_1.tag === /* Error */ 1) {
93
+ return baseDtos;
94
+ }
95
+ else {
96
+ const triggers: FSharpList<ItemTrigger> = collectTriggers(matchValue_1.fields[0]);
97
+ return map_1<TriggerActionDto, TriggerActionDto>((dto: TriggerActionDto): TriggerActionDto => enrichDto(triggers, dto), baseDtos);
98
+ }
99
+ }
100
+ default:
101
+ return baseDtos;
102
+ }
103
+ }
104
+
105
+ //# sourceMappingURL=CoreMRTriggerEnrichment.ts.map
@@ -1,7 +1,7 @@
1
- import { Helpers_generateDeterministicGuidRaw } from "../../Helpers.js";
2
- import { ClinicalPathway_PathwayExecutionMode_MultiPathway, ClinicalPathway_MultiPathwayConfig, ClinicalPathway_ConflictResolution_CombineActions, ClinicalPathway_CombinationStrategy_AllMatching, ClinicalPathway_ClinicalPathwaySpec, ClinicalPathway_PathRequirement, ClinicalPathway_ConstraintDefinition, ClinicalPathway_PathwayExecutionMode_TriggerBased, ClinicalPathway_TriggerBasedConfig, ClinicalPathway_TransitionDefinition, Shared_TransitionKey, ClinicalPathway_StateType_Terminal, ClinicalPathway_TerminalInfo, ClinicalPathway_StateType_Action, ClinicalPathway_StateType_CompoundAction, ClinicalPathway_StateDefinition, ClinicalPathway_StateType_Evaluation, ClinicalPathway_EvaluationInfo, Shared_StateKey, ClinicalPathway_ActionInfo_$union, ClinicalPathway_ActionInfo_Documentation, ClinicalPathway_DocumentationAction, ClinicalPathway_ActionInfo_Problem, ClinicalPathway_ProblemAction, ClinicalPathway_ProblemStatus_Active, ClinicalPathway_ActionInfo_Medication, ClinicalPathway_MedicationAction, ClinicalPathway_ActionInfo_Task, ClinicalPathway_TaskAction, ClinicalPathway_ActionInfo_Alert, ClinicalPathway_AlertAction, ClinicalPathway_AlertSeverity_High, ClinicalPathway_TransitionCondition_Always, ClinicalPathway_TransitionCondition_CompositeCondition, ClinicalPathway_LogicalOp_And, ClinicalPathway_LogicalOp_Or, ClinicalPathway_TransitionCondition_$union, ClinicalPathway_TransitionCondition_FieldCondition, ClinicalPathway_TransitionCondition_PluginPropertyCondition, Shared_PluginPropertyKey, Shared_ConditionValue_Single, Shared_ConditionValue_Multiple, Shared_ConditionValue_$union, Shared_FieldKey, ClinicalPathway_RecurrencePattern, ClinicalPathway_RecurrenceEnd_AfterOccurrences, ClinicalPathway_RecurrenceEnd_OnDate, ClinicalPathway_RecurrenceEnd_$union, ClinicalPathway_DueDate_$union, ClinicalPathway_DueDate_DaysFromNow, ClinicalPathway_DueDate_Tomorrow, ClinicalPathway_DueDate_Today, ClinicalPathway_TaskPriority_$union, ClinicalPathway_TaskPriority_Medium, ClinicalPathway_TaskPriority_Low, ClinicalPathway_TaskPriority_High, ClinicalPathway_TriggerTiming_$union, ClinicalPathway_TriggerTiming_OnFormLoad, ClinicalPathway_TriggerTiming_OnFormSubmit, ClinicalPathway_TriggerTiming_OnFormSave, ClinicalPathway_FieldEvaluator_$union, ClinicalPathway_FieldEvaluator_MatchesPattern, ClinicalPathway_FieldEvaluator_NotInSet, ClinicalPathway_FieldEvaluator_ContainsAll, ClinicalPathway_FieldEvaluator_LessOrEqual, ClinicalPathway_FieldEvaluator_LessThan, ClinicalPathway_FieldEvaluator_GreaterOrEqual, ClinicalPathway_FieldEvaluator_GreaterThan, ClinicalPathway_FieldEvaluator_NotEquals, ClinicalPathway_FieldEvaluator_Equals, ClinicalPathway_FieldEvaluator_InSet } from "../../FormSpec.js";
3
- import { bind, map as map_1, defaultArgWith, Option, value as value_1, defaultArg } from "@fable-org/fable-library-js/Option.js";
4
- import { sortByDescending, append, indexed, singleton, collect, filter, empty, length, tryFind as tryFind_1, ofArray, tryPick, map, tail, head, isEmpty, FSharpList, tryHead } from "@fable-org/fable-library-js/List.js";
1
+ import { Helpers_canonicalizeFieldKey, Helpers_generateDeterministicGuidRaw } from "../../Helpers.js";
2
+ import { sortByDescending, append, indexed, collect, filter, empty, length, tryFind as tryFind_1, singleton, ofArray, tryPick, tail, head, isEmpty, tryHead, FSharpList, map } from "@fable-org/fable-library-js/List.js";
3
+ import { ClinicalPathway_PathwayExecutionMode_MultiPathway, ClinicalPathway_MultiPathwayConfig, ClinicalPathway_ConflictResolution_CombineActions, ClinicalPathway_CombinationStrategy_AllMatching, ClinicalPathway_ClinicalPathwaySpec, ClinicalPathway_PathRequirement, ClinicalPathway_ConstraintDefinition, ClinicalPathway_PathwayExecutionMode_TriggerBased, ClinicalPathway_TriggerBasedConfig, ClinicalPathway_TransitionDefinition, Shared_TransitionKey, ClinicalPathway_StateType_Terminal, ClinicalPathway_TerminalInfo, ClinicalPathway_StateType_Action, ClinicalPathway_StateType_CompoundAction, ClinicalPathway_StateDefinition, ClinicalPathway_StateType_Evaluation, ClinicalPathway_EvaluationInfo, Shared_StateKey, ClinicalPathway_ActionInfo_$union, ClinicalPathway_ActionInfo_Documentation, ClinicalPathway_DocumentationAction, ClinicalPathway_ActionInfo_Treatment, ClinicalPathway_TreatmentAction, ClinicalPathway_ActionInfo_Problem, ClinicalPathway_ProblemAction, ClinicalPathway_ProblemStatus_Active, ClinicalPathway_ActionInfo_Medset, ClinicalPathway_MedsetAction, ClinicalPathway_ActionInfo_Task, ClinicalPathway_TaskAction, ClinicalPathway_ActionInfo_Alert, ClinicalPathway_AlertAction, ClinicalPathway_AlertSeverity_High, ClinicalPathway_TransitionCondition_Always, ClinicalPathway_TransitionCondition_CompositeCondition, ClinicalPathway_LogicalOp_And, ClinicalPathway_LogicalOp_Or, ClinicalPathway_TransitionCondition_$union, ClinicalPathway_TransitionCondition_FieldCondition, ClinicalPathway_TransitionCondition_PluginPropertyCondition, Shared_PluginPropertyKey, Shared_ConditionValue_Single, Shared_ConditionValue_Multiple, Shared_ConditionValue_$union, Shared_FieldKey, ClinicalPathway_RecurrencePattern, ClinicalPathway_RecurrenceEnd_AfterOccurrences, ClinicalPathway_RecurrenceEnd_OnDate, ClinicalPathway_RecurrenceEnd_$union, ClinicalPathway_DueDate_$union, ClinicalPathway_DueDate_DaysFromNow, ClinicalPathway_DueDate_Tomorrow, ClinicalPathway_DueDate_Today, ClinicalPathway_TaskPriority_$union, ClinicalPathway_TaskPriority_Medium, ClinicalPathway_TaskPriority_Low, ClinicalPathway_TaskPriority_High, ClinicalPathway_TriggerTiming_$union, ClinicalPathway_TriggerTiming_OnFormLoad, ClinicalPathway_TriggerTiming_OnFormSubmit, ClinicalPathway_TriggerTiming_OnFormSave, ClinicalPathway_FieldEvaluator_$union, ClinicalPathway_FieldEvaluator_MatchesPattern, ClinicalPathway_FieldEvaluator_NotInSet, ClinicalPathway_FieldEvaluator_ContainsAll, ClinicalPathway_FieldEvaluator_LessOrEqual, ClinicalPathway_FieldEvaluator_LessThan, ClinicalPathway_FieldEvaluator_GreaterOrEqual, ClinicalPathway_FieldEvaluator_GreaterThan, ClinicalPathway_FieldEvaluator_NotEquals, ClinicalPathway_FieldEvaluator_Equals, ClinicalPathway_FieldEvaluator_InSet } from "../../FormSpec.js";
4
+ import { bind, map as map_1, defaultArgWith, Option, value as value_2, defaultArg } from "@fable-org/fable-library-js/Option.js";
5
5
  import { tryParse, int32 } from "@fable-org/fable-library-js/Int32.js";
6
6
  import { substring, join, isNullOrEmpty, split, replace } from "@fable-org/fable-library-js/String.js";
7
7
  import { FSharpRef } from "@fable-org/fable-library-js/Types.js";
@@ -19,10 +19,11 @@ function stableGuid(name: string): string {
19
19
  }
20
20
 
21
21
  export function convertOperator(operator: string, values: FSharpList<string>): ClinicalPathway_FieldEvaluator_$union {
22
+ const canonValues: FSharpList<string> = map<string, string>(Helpers_canonicalizeFieldKey, values);
22
23
  const matchValue: string = operator.toLowerCase();
23
24
  switch (matchValue) {
24
25
  case "any":
25
- return ClinicalPathway_FieldEvaluator_InSet(values);
26
+ return ClinicalPathway_FieldEvaluator_InSet(canonValues);
26
27
  case "equals":
27
28
  return ClinicalPathway_FieldEvaluator_Equals();
28
29
  case "not_equals":
@@ -36,9 +37,9 @@ export function convertOperator(operator: string, values: FSharpList<string>): C
36
37
  case "less_equals":
37
38
  return ClinicalPathway_FieldEvaluator_LessOrEqual();
38
39
  case "all":
39
- return ClinicalPathway_FieldEvaluator_ContainsAll(values);
40
+ return ClinicalPathway_FieldEvaluator_ContainsAll(canonValues);
40
41
  case "none":
41
- return ClinicalPathway_FieldEvaluator_NotInSet(values);
42
+ return ClinicalPathway_FieldEvaluator_NotInSet(canonValues);
42
43
  case "regex":
43
44
  return ClinicalPathway_FieldEvaluator_MatchesPattern(defaultArg(tryHead<string>(values), ".*"));
44
45
  default:
@@ -118,12 +119,12 @@ function parseDueDate(dateStr: string): ClinicalPathway_DueDate_$union {
118
119
  function parseRecurrence(endStr: Option<string>): Option<ClinicalPathway_RecurrencePattern> {
119
120
  let matchResult: int32, s: string;
120
121
  if (endStr != null) {
121
- if (value_1(endStr) === "") {
122
+ if (value_2(endStr) === "") {
122
123
  matchResult = 0;
123
124
  }
124
125
  else {
125
126
  matchResult = 1;
126
- s = value_1(endStr);
127
+ s = value_2(endStr);
127
128
  }
128
129
  }
129
130
  else {
@@ -150,13 +151,14 @@ function parseRecurrence(endStr: Option<string>): Option<ClinicalPathway_Recurre
150
151
  export function convertCondition(cond: TriggerCondition, itemFieldKeyMap: FSharpMap<int32, Shared_FieldKey>): ClinicalPathway_TransitionCondition_$union {
151
152
  const fieldKey: Shared_FieldKey = defaultArgWith<Shared_FieldKey>(tryFind<int32, Shared_FieldKey>(cond.SourceFieldId, itemFieldKeyMap), (): Shared_FieldKey => (new Shared_FieldKey(stableGuid(`field_${cond.SourceFieldId}`))));
152
153
  const evaluator: ClinicalPathway_FieldEvaluator_$union = convertOperator(cond.Operator, cond.Values);
154
+ const canonicalize = Helpers_canonicalizeFieldKey;
153
155
  let condValue: Shared_ConditionValue_$union;
154
156
  const matchValue: string = cond.Operator.toLowerCase();
155
157
  switch (matchValue) {
156
158
  case "any":
157
159
  case "all":
158
160
  case "none": {
159
- condValue = Shared_ConditionValue_Multiple(ofList<string>(cond.Values, {
161
+ condValue = Shared_ConditionValue_Multiple(ofList<string>(map<string, string>(canonicalize, cond.Values), {
160
162
  Compare: comparePrimitives,
161
163
  }));
162
164
  break;
@@ -168,7 +170,7 @@ export function convertCondition(cond: TriggerCondition, itemFieldKeyMap: FSharp
168
170
  condValue = (isEmpty(matchValue_2) ? Shared_ConditionValue_Single("") : Shared_ConditionValue_Single(int32ToString(head(matchValue_2))));
169
171
  }
170
172
  else {
171
- condValue = Shared_ConditionValue_Single(head(matchValue_1));
173
+ condValue = Shared_ConditionValue_Single(canonicalize(head(matchValue_1)));
172
174
  }
173
175
  }
174
176
  }
@@ -194,7 +196,7 @@ export function combineConditions(conditions: FSharpList<TriggerCondition>, item
194
196
  }
195
197
  else {
196
198
  const converted: FSharpList<ClinicalPathway_TransitionCondition_$union> = map<TriggerCondition, ClinicalPathway_TransitionCondition_$union>((c: TriggerCondition): ClinicalPathway_TransitionCondition_$union => convertCondition(c, itemFieldKeyMap), conditions);
197
- return ClinicalPathway_TransitionCondition_CompositeCondition((matchValue = map_1<TriggerCondition, string>((c_1: TriggerCondition): string => c_1.BooleanOperator, tryHead<TriggerCondition>(conditions)), (matchValue != null) ? ((value_1(matchValue) === "||") ? ClinicalPathway_LogicalOp_Or() : ClinicalPathway_LogicalOp_And()) : ClinicalPathway_LogicalOp_And()), converted);
199
+ return ClinicalPathway_TransitionCondition_CompositeCondition((matchValue = map_1<TriggerCondition, string>((c_1: TriggerCondition): string => c_1.BooleanOperator, tryHead<TriggerCondition>(conditions)), (matchValue != null) ? ((value_2(matchValue) === "||") ? ClinicalPathway_LogicalOp_Or() : ClinicalPathway_LogicalOp_And()) : ClinicalPathway_LogicalOp_And()), converted);
198
200
  }
199
201
  }
200
202
  else {
@@ -237,7 +239,7 @@ function paramInt(keys: FSharpList<string>, action: TriggerAction): Option<int32
237
239
  }
238
240
 
239
241
  export function convertAction(action: TriggerAction): ClinicalPathway_ActionInfo_$union {
240
- let s: string, s_1: string;
242
+ let s: string, cn: string, tn: string;
241
243
  const matchValue: string = action.ActionType.toLowerCase();
242
244
  switch (matchValue) {
243
245
  case "alert": {
@@ -261,11 +263,11 @@ export function convertAction(action: TriggerAction): ClinicalPathway_ActionInfo
261
263
  return ClinicalPathway_ActionInfo_Task(new ClinicalPathway_TaskAction(categoryId_2, category_1, param("description", action), convertPriority(param("priority", action)), parseDueDate(param("start", action)), assignee_1, parseRecurrence(tryFind<string, string>("end", action.Params))));
262
264
  }
263
265
  case "medset":
264
- return ClinicalPathway_ActionInfo_Medication(new ClinicalPathway_MedicationAction(param("medset_name", action), "", "", "", "", false));
266
+ return ClinicalPathway_ActionInfo_Medset(new ClinicalPathway_MedsetAction(paramInt(singleton("medset_id"), action), param("medset_name", action), paramInt(ofArray(["doctor", "provider"]), action), paramInt(singleton("pharmacy_id"), action), parseDueDate(defaultArg(tryFind<string, string>("date", action.Params), "today")), paramInt(singleton("category_id"), action)));
265
267
  case "problem":
266
- return ClinicalPathway_ActionInfo_Problem(new ClinicalPathway_ProblemAction(paramInt(ofArray(["problem_list_id", "category_id", "id"]), action), (s = param("category_name", action), isNullOrEmpty(s) ? "Problem" : s), undefined, utcNow(), ClinicalPathway_ProblemStatus_Active(), undefined));
268
+ return ClinicalPathway_ActionInfo_Problem(new ClinicalPathway_ProblemAction(paramInt(ofArray(["problem_list_id", "category_id", "id"]), action), (s = param("category_name", action), isNullOrEmpty(s) ? "Problem" : s), undefined, utcNow(), ClinicalPathway_ProblemStatus_Active(), undefined, paramInt(singleton("chronic"), action), paramInt(singleton("severity"), action), paramInt(singleton("inflammation"), action)));
267
269
  case "treatment":
268
- return ClinicalPathway_ActionInfo_Medication(new ClinicalPathway_MedicationAction((s_1 = param("category_name", action), isNullOrEmpty(s_1) ? "Treatment" : s_1), "", "", "", "", false));
270
+ return ClinicalPathway_ActionInfo_Treatment(new ClinicalPathway_TreatmentAction(paramInt(singleton("id"), action), (cn = param("category_name", action), isNullOrEmpty(cn) ? ((tn = param("treatment_name", action), isNullOrEmpty(tn) ? "Treatment" : tn)) : cn), paramInt(ofArray(["provider", "doctor"]), action), paramInt(singleton("schedule_id"), action), tryFind<string, string>("signature", action.Params), parseDueDate(param("start", action)), parseDueDate(defaultArg(tryFind<string, string>("duration", action.Params), "+7 days")), tryFind<string, string>("description", action.Params), map_1<string, ClinicalPathway_TaskPriority_$union>(convertPriority, tryFind<string, string>("priority", action.Params)), paramInt(singleton("source_related_id"), action), paramInt(singleton("category_id"), action)));
269
271
  case "taskcomplete":
270
272
  return ClinicalPathway_ActionInfo_Task(new ClinicalPathway_TaskAction(undefined, `Complete: ${param("category_name", action)}`, "Mark task as complete", ClinicalPathway_TaskPriority_Medium(), ClinicalPathway_DueDate_Today(), "Staff", undefined));
271
273
  case "approval":
@@ -1,18 +1,17 @@
1
1
  import { Record } from "@fable-org/fable-library-js/Types.js";
2
2
  import { int32 } from "@fable-org/fable-library-js/Int32.js";
3
- import { equals, toInt32, int64 } from "@fable-org/fable-library-js/BigInt.js";
3
+ import { toInt32, int64 } from "@fable-org/fable-library-js/BigInt.js";
4
4
  import { map as map_1, defaultArg, Option } from "@fable-org/fable-library-js/Option.js";
5
5
  import { int32ToString, uncurry2, comparePrimitives, IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
6
6
  import { bool_type, class_type, list_type, record_type, option_type, string_type, int64_type, int32_type, TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
7
- import { filter, length, sumBy as sumBy_1, collect, map as map_2, isEmpty, empty, FSharpList } from "@fable-org/fable-library-js/List.js";
8
- import { toSeq, empty as empty_1, ofList, FSharpMap } from "@fable-org/fable-library-js/Map.js";
7
+ import { collect, map as map_2, isEmpty, empty, FSharpList } from "@fable-org/fable-library-js/List.js";
8
+ import { empty as empty_1, ofList, FSharpMap } from "@fable-org/fable-library-js/Map.js";
9
9
  import { Auto_generateBoxedDecoder_Z6670B51 } from "../../../Thoth.Json/packages/Thoth.Json/Decode.js";
10
10
  import { FSharpResult$2_$union } from "@fable-org/fable-library-js/Result.js";
11
11
  import { ErrorReason_$union } from "../../../Thoth.Json/packages/Thoth.Json/Types.js";
12
- import { isNullOrEmpty, toConsole, printf, toText } from "@fable-org/fable-library-js/String.js";
13
- import { fromString, bool, list as list_5, IOptionalGetter, IGetters, string, int, IRequiredGetter, object, map, keyValuePairs } from "../../../Thoth.Json/packages/Thoth.Json/Decode.js";
12
+ import { fromString, bool, list as list_3, IOptionalGetter, IGetters, string, int, IRequiredGetter, object, map, keyValuePairs } from "../../../Thoth.Json/packages/Thoth.Json/Decode.js";
14
13
  import { CoreMRFormData, CoreMRTag, CoreMRTrigger, CoreMRFormMetadata, CoreMRItem, CoreMRChoice } from "./CoreMRTypes.js";
15
- import { sumBy } from "@fable-org/fable-library-js/Seq.js";
14
+ import { isNullOrEmpty } from "@fable-org/fable-library-js/String.js";
16
15
 
17
16
  export class TemplateChoice extends Record implements IEquatable<TemplateChoice>, IComparable<TemplateChoice> {
18
17
  readonly ChoiceId: int32;
@@ -398,16 +397,6 @@ export function TemplateManifest_$reflection(): TypeInfo {
398
397
 
399
398
  const liberatedInt64Decoder: ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<int64, [string, ErrorReason_$union]>)) = Auto_generateBoxedDecoder_Z6670B51(int64_type, undefined, undefined);
400
399
 
401
- function scoreSurveillanceLog(score: int64): void {
402
- try {
403
- const message: string = toText(printf("🚀 LIBERATION_SURVEILLANCE: Successfully decoded Score=%d (NOT 0!) via native BigInt auto decoder"))(score);
404
- console.log(message);
405
- toConsole(printf("%s"))(message);
406
- }
407
- catch (matchValue: any) {
408
- }
409
- }
410
-
411
400
  function dictDecoder<T>(decoder: ((arg0: string, arg1: any) => FSharpResult$2_$union<T, [string, ErrorReason_$union]>)): ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<FSharpMap<string, T>, [string, ErrorReason_$union]>)) {
412
401
  let d: ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<FSharpList<[string, T]>, [string, ErrorReason_$union]>));
413
402
  const decoder_1: ((arg0: string, arg1: any) => FSharpResult$2_$union<T, [string, ErrorReason_$union]>) = decoder;
@@ -422,13 +411,12 @@ const choiceDecoder = (path_2: string): ((arg0: any) => FSharpResult$2_$union<Te
422
411
  let score: int64;
423
412
  const objectArg: IRequiredGetter = get$.Required;
424
413
  score = objectArg.Field<int64>("score", uncurry2(liberatedInt64Decoder));
425
- scoreSurveillanceLog(score);
426
414
  return new TemplateChoice((objectArg_1 = get$.Required, objectArg_1.Field<int32>("choiceId", uncurry2(int))), (objectArg_2 = get$.Required, objectArg_2.Field<int32>("sequence", uncurry2(int))), score, (objectArg_3 = get$.Required, objectArg_3.Field<string>("text", string)), (objectArg_4 = get$.Optional, objectArg_4.Field<int32>("bitPosition", uncurry2(int))), (objectArg_5 = get$.Optional, objectArg_5.Field<string>("code", string)), (objectArg_6 = get$.Optional, objectArg_6.Field<int32>("highlight", uncurry2(int))));
427
415
  }, path_2, v));
428
416
 
429
417
  const triggerConditionDecoder = (path_6: string): ((arg0: any) => FSharpResult$2_$union<TriggerCondition, [string, ErrorReason_$union]>) => ((v: any): FSharpResult$2_$union<TriggerCondition, [string, ErrorReason_$union]> => object<TriggerCondition>((get$: IGetters): TriggerCondition => {
430
418
  let objectArg: IRequiredGetter, objectArg_1: IRequiredGetter, objectArg_2: IRequiredGetter, objectArg_3: IRequiredGetter, objectArg_4: IOptionalGetter, objectArg_5: IOptionalGetter, objectArg_6: IOptionalGetter;
431
- return new TriggerCondition((objectArg = get$.Required, objectArg.Field<int32>("conditionId", uncurry2(int))), (objectArg_1 = get$.Required, objectArg_1.Field<int32>("sourceFieldId", uncurry2(int))), (objectArg_2 = get$.Required, objectArg_2.Field<string>("source", string)), (objectArg_3 = get$.Required, objectArg_3.Field<string>("operator", string)), defaultArg((objectArg_4 = get$.Optional, objectArg_4.Field<FSharpList<string>>("values", (path_3: string, value_3: any): FSharpResult$2_$union<FSharpList<string>, [string, ErrorReason_$union]> => list_5<string>(string, path_3, value_3))), empty<string>()), defaultArg((objectArg_5 = get$.Optional, objectArg_5.Field<FSharpList<int32>>("rawChoiceIds", (path_4: string, value_5: any): FSharpResult$2_$union<FSharpList<int32>, [string, ErrorReason_$union]> => list_5<int32>(uncurry2(int), path_4, value_5))), empty<int32>()), defaultArg((objectArg_6 = get$.Optional, objectArg_6.Field<string>("booleanOperator", string)), "&&"));
419
+ return new TriggerCondition((objectArg = get$.Required, objectArg.Field<int32>("conditionId", uncurry2(int))), (objectArg_1 = get$.Required, objectArg_1.Field<int32>("sourceFieldId", uncurry2(int))), (objectArg_2 = get$.Required, objectArg_2.Field<string>("source", string)), (objectArg_3 = get$.Required, objectArg_3.Field<string>("operator", string)), defaultArg((objectArg_4 = get$.Optional, objectArg_4.Field<FSharpList<string>>("values", (path_3: string, value_3: any): FSharpResult$2_$union<FSharpList<string>, [string, ErrorReason_$union]> => list_3<string>(string, path_3, value_3))), empty<string>()), defaultArg((objectArg_5 = get$.Optional, objectArg_5.Field<FSharpList<int32>>("rawChoiceIds", (path_4: string, value_5: any): FSharpResult$2_$union<FSharpList<int32>, [string, ErrorReason_$union]> => list_3<int32>(uncurry2(int), path_4, value_5))), empty<int32>()), defaultArg((objectArg_6 = get$.Optional, objectArg_6.Field<string>("booleanOperator", string)), "&&"));
432
420
  }, path_6, v));
433
421
 
434
422
  const triggerActionDecoder = (path_2: string): ((arg0: any) => FSharpResult$2_$union<TriggerAction, [string, ErrorReason_$union]>) => ((v: any): FSharpResult$2_$union<TriggerAction, [string, ErrorReason_$union]> => object<TriggerAction>((get$: IGetters): TriggerAction => {
@@ -440,12 +428,12 @@ const triggerActionDecoder = (path_2: string): ((arg0: any) => FSharpResult$2_$u
440
428
 
441
429
  const itemTriggerDecoder = (path_5: string): ((arg0: any) => FSharpResult$2_$union<ItemTrigger, [string, ErrorReason_$union]>) => ((v: any): FSharpResult$2_$union<ItemTrigger, [string, ErrorReason_$union]> => object<ItemTrigger>((get$: IGetters): ItemTrigger => {
442
430
  let objectArg: IRequiredGetter, objectArg_1: IRequiredGetter, objectArg_2: IOptionalGetter, objectArg_3: IOptionalGetter, objectArg_4: IOptionalGetter, objectArg_5: IOptionalGetter;
443
- return new ItemTrigger((objectArg = get$.Required, objectArg.Field<int32>("triggerId", uncurry2(int))), (objectArg_1 = get$.Required, objectArg_1.Field<string>("eventName", string)), defaultArg((objectArg_2 = get$.Optional, objectArg_2.Field<boolean>("enabled", bool)), true), (objectArg_3 = get$.Optional, objectArg_3.Field<string>("exclusiveTag", string)), defaultArg((objectArg_4 = get$.Optional, objectArg_4.Field<FSharpList<TriggerCondition>>("conditions", (path_3: string, value_4: any): FSharpResult$2_$union<FSharpList<TriggerCondition>, [string, ErrorReason_$union]> => list_5<TriggerCondition>(uncurry2(triggerConditionDecoder), path_3, value_4))), empty<TriggerCondition>()), defaultArg((objectArg_5 = get$.Optional, objectArg_5.Field<FSharpList<TriggerAction>>("actions", (path_4: string, value_6: any): FSharpResult$2_$union<FSharpList<TriggerAction>, [string, ErrorReason_$union]> => list_5<TriggerAction>(uncurry2(triggerActionDecoder), path_4, value_6))), empty<TriggerAction>()));
431
+ return new ItemTrigger((objectArg = get$.Required, objectArg.Field<int32>("triggerId", uncurry2(int))), (objectArg_1 = get$.Required, objectArg_1.Field<string>("eventName", string)), defaultArg((objectArg_2 = get$.Optional, objectArg_2.Field<boolean>("enabled", bool)), true), (objectArg_3 = get$.Optional, objectArg_3.Field<string>("exclusiveTag", string)), defaultArg((objectArg_4 = get$.Optional, objectArg_4.Field<FSharpList<TriggerCondition>>("conditions", (path_3: string, value_4: any): FSharpResult$2_$union<FSharpList<TriggerCondition>, [string, ErrorReason_$union]> => list_3<TriggerCondition>(uncurry2(triggerConditionDecoder), path_3, value_4))), empty<TriggerCondition>()), defaultArg((objectArg_5 = get$.Optional, objectArg_5.Field<FSharpList<TriggerAction>>("actions", (path_4: string, value_6: any): FSharpResult$2_$union<FSharpList<TriggerAction>, [string, ErrorReason_$union]> => list_3<TriggerAction>(uncurry2(triggerActionDecoder), path_4, value_6))), empty<TriggerAction>()));
444
432
  }, path_5, v));
445
433
 
446
434
  const itemDecoder = (path_8: string): ((arg0: any) => FSharpResult$2_$union<TemplateItem, [string, ErrorReason_$union]>) => ((v: any): FSharpResult$2_$union<TemplateItem, [string, ErrorReason_$union]> => object<TemplateItem>((get$: IGetters): TemplateItem => {
447
435
  let objectArg: IRequiredGetter, objectArg_1: IRequiredGetter, objectArg_2: IRequiredGetter, objectArg_3: IRequiredGetter, objectArg_4: IRequiredGetter, objectArg_5: IRequiredGetter, objectArg_6: IOptionalGetter, objectArg_7: IOptionalGetter, objectArg_8: IOptionalGetter, objectArg_9: IOptionalGetter, objectArg_10: IOptionalGetter, objectArg_11: IRequiredGetter, objectArg_12: IOptionalGetter;
448
- return new TemplateItem((objectArg = get$.Required, objectArg.Field<int32>("itemId", uncurry2(int))), (objectArg_1 = get$.Required, objectArg_1.Field<int32>("sequence", uncurry2(int))), (objectArg_2 = get$.Required, objectArg_2.Field<int32>("type", uncurry2(int))), (objectArg_3 = get$.Required, objectArg_3.Field<int32>("nestingLevel", uncurry2(int))), (objectArg_4 = get$.Required, objectArg_4.Field<boolean>("isRequired", bool)), (objectArg_5 = get$.Required, objectArg_5.Field<string>("text", string)), (objectArg_6 = get$.Optional, objectArg_6.Field<string>("sequenceText", string)), (objectArg_7 = get$.Optional, objectArg_7.Field<string>("code", string)), (objectArg_8 = get$.Optional, objectArg_8.Field<string>("uuid", string)), (objectArg_9 = get$.Optional, objectArg_9.Field<string>("genderRequired", string)), (objectArg_10 = get$.Optional, objectArg_10.Field<int32>("highlight", uncurry2(int))), (objectArg_11 = get$.Required, objectArg_11.Field<FSharpList<TemplateChoice>>("choices", (path_6: string, value_6: any): FSharpResult$2_$union<FSharpList<TemplateChoice>, [string, ErrorReason_$union]> => list_5<TemplateChoice>(uncurry2(choiceDecoder), path_6, value_6))), defaultArg((objectArg_12 = get$.Optional, objectArg_12.Field<FSharpList<ItemTrigger>>("triggers", (path_7: string, value_7: any): FSharpResult$2_$union<FSharpList<ItemTrigger>, [string, ErrorReason_$union]> => list_5<ItemTrigger>(uncurry2(itemTriggerDecoder), path_7, value_7))), empty<ItemTrigger>()));
436
+ return new TemplateItem((objectArg = get$.Required, objectArg.Field<int32>("itemId", uncurry2(int))), (objectArg_1 = get$.Required, objectArg_1.Field<int32>("sequence", uncurry2(int))), (objectArg_2 = get$.Required, objectArg_2.Field<int32>("type", uncurry2(int))), (objectArg_3 = get$.Required, objectArg_3.Field<int32>("nestingLevel", uncurry2(int))), (objectArg_4 = get$.Required, objectArg_4.Field<boolean>("isRequired", bool)), (objectArg_5 = get$.Required, objectArg_5.Field<string>("text", string)), (objectArg_6 = get$.Optional, objectArg_6.Field<string>("sequenceText", string)), (objectArg_7 = get$.Optional, objectArg_7.Field<string>("code", string)), (objectArg_8 = get$.Optional, objectArg_8.Field<string>("uuid", string)), (objectArg_9 = get$.Optional, objectArg_9.Field<string>("genderRequired", string)), (objectArg_10 = get$.Optional, objectArg_10.Field<int32>("highlight", uncurry2(int))), (objectArg_11 = get$.Required, objectArg_11.Field<FSharpList<TemplateChoice>>("choices", (path_6: string, value_6: any): FSharpResult$2_$union<FSharpList<TemplateChoice>, [string, ErrorReason_$union]> => list_3<TemplateChoice>(uncurry2(choiceDecoder), path_6, value_6))), defaultArg((objectArg_12 = get$.Optional, objectArg_12.Field<FSharpList<ItemTrigger>>("triggers", (path_7: string, value_7: any): FSharpResult$2_$union<FSharpList<ItemTrigger>, [string, ErrorReason_$union]> => list_3<ItemTrigger>(uncurry2(itemTriggerDecoder), path_7, value_7))), empty<ItemTrigger>()));
449
437
  }, path_8, v));
450
438
 
451
439
  const encounterTypesDecoder = (path_4: string): ((arg0: any) => FSharpResult$2_$union<EncounterTypes, [string, ErrorReason_$union]>) => ((v: any): FSharpResult$2_$union<EncounterTypes, [string, ErrorReason_$union]> => object<EncounterTypes>((get$: IGetters): EncounterTypes => {
@@ -460,12 +448,12 @@ const scoringLabelDecoder = (path_1: string): ((arg0: any) => FSharpResult$2_$un
460
448
 
461
449
  const formScoringDecoder = (path_2: string): ((arg0: any) => FSharpResult$2_$union<FormScoring, [string, ErrorReason_$union]>) => ((v: any): FSharpResult$2_$union<FormScoring, [string, ErrorReason_$union]> => object<FormScoring>((get$: IGetters): FormScoring => {
462
450
  let objectArg: IRequiredGetter, objectArg_1: IRequiredGetter, objectArg_2: IRequiredGetter, arg_7: ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<FSharpMap<string, int32>, [string, ErrorReason_$union]>)), objectArg_3: IRequiredGetter;
463
- return new FormScoring((objectArg = get$.Required, objectArg.Field<int32>("scoreId", uncurry2(int))), (objectArg_1 = get$.Required, objectArg_1.Field<string>("scoreName", string)), (objectArg_2 = get$.Required, objectArg_2.Field<FSharpList<ScoringLabel>>("labels", (path_1: string, value_1: any): FSharpResult$2_$union<FSharpList<ScoringLabel>, [string, ErrorReason_$union]> => list_5<ScoringLabel>(uncurry2(scoringLabelDecoder), path_1, value_1))), (arg_7 = dictDecoder<int32>(uncurry2(int)), (objectArg_3 = get$.Required, objectArg_3.Field<FSharpMap<string, int32>>("choiceScores", uncurry2(arg_7)))));
451
+ return new FormScoring((objectArg = get$.Required, objectArg.Field<int32>("scoreId", uncurry2(int))), (objectArg_1 = get$.Required, objectArg_1.Field<string>("scoreName", string)), (objectArg_2 = get$.Required, objectArg_2.Field<FSharpList<ScoringLabel>>("labels", (path_1: string, value_1: any): FSharpResult$2_$union<FSharpList<ScoringLabel>, [string, ErrorReason_$union]> => list_3<ScoringLabel>(uncurry2(scoringLabelDecoder), path_1, value_1))), (arg_7 = dictDecoder<int32>(uncurry2(int)), (objectArg_3 = get$.Required, objectArg_3.Field<FSharpMap<string, int32>>("choiceScores", uncurry2(arg_7)))));
464
452
  }, path_2, v));
465
453
 
466
454
  const formDecoder = (path_13: string): ((arg0: any) => FSharpResult$2_$union<TemplateForm, [string, ErrorReason_$union]>) => ((v: any): FSharpResult$2_$union<TemplateForm, [string, ErrorReason_$union]> => object<TemplateForm>((get$: IGetters): TemplateForm => {
467
455
  let objectArg: IRequiredGetter, objectArg_1: IRequiredGetter, objectArg_2: IRequiredGetter, objectArg_3: IRequiredGetter, objectArg_4: IRequiredGetter, objectArg_5: IRequiredGetter, objectArg_6: IRequiredGetter, objectArg_7: IRequiredGetter, objectArg_8: IRequiredGetter, objectArg_9: IRequiredGetter, objectArg_10: IRequiredGetter, objectArg_11: IRequiredGetter, objectArg_12: IRequiredGetter, objectArg_13: IRequiredGetter, objectArg_14: IRequiredGetter, objectArg_15: IRequiredGetter, objectArg_16: IOptionalGetter;
468
- return new TemplateForm((objectArg = get$.Required, objectArg.Field<int32>("formId", uncurry2(int))), (objectArg_1 = get$.Required, objectArg_1.Field<string>("name", string)), (objectArg_2 = get$.Required, objectArg_2.Field<string>("formCode", string)), (objectArg_3 = get$.Required, objectArg_3.Field<string>("formCodeSource", string)), (objectArg_4 = get$.Required, objectArg_4.Field<string>("description", string)), (objectArg_5 = get$.Required, objectArg_5.Field<int64>("currentVersionId", uncurry2(liberatedInt64Decoder))), (objectArg_6 = get$.Required, objectArg_6.Field<boolean>("isIntake", bool)), (objectArg_7 = get$.Required, objectArg_7.Field<string>("usage", string)), (objectArg_8 = get$.Required, objectArg_8.Field<boolean>("requiresSignature", bool)), (objectArg_9 = get$.Required, objectArg_9.Field<EncounterTypes>("encounterTypes", uncurry2(encounterTypesDecoder))), (objectArg_10 = get$.Required, objectArg_10.Field<boolean>("onceAYear", bool)), (objectArg_11 = get$.Required, objectArg_11.Field<string>("structureHash", string)), (objectArg_12 = get$.Required, objectArg_12.Field<string>("clinicalHash", string)), (objectArg_13 = get$.Required, objectArg_13.Field<string>("cosmeticHash", string)), (objectArg_14 = get$.Required, objectArg_14.Field<string>("hash", string)), (objectArg_15 = get$.Required, objectArg_15.Field<FSharpList<TemplateItem>>("items", (path_12: string, value_12: any): FSharpResult$2_$union<FSharpList<TemplateItem>, [string, ErrorReason_$union]> => list_5<TemplateItem>(uncurry2(itemDecoder), path_12, value_12))), (objectArg_16 = get$.Optional, objectArg_16.Field<FormScoring>("scoring", uncurry2(formScoringDecoder))));
456
+ return new TemplateForm((objectArg = get$.Required, objectArg.Field<int32>("formId", uncurry2(int))), (objectArg_1 = get$.Required, objectArg_1.Field<string>("name", string)), (objectArg_2 = get$.Required, objectArg_2.Field<string>("formCode", string)), (objectArg_3 = get$.Required, objectArg_3.Field<string>("formCodeSource", string)), (objectArg_4 = get$.Required, objectArg_4.Field<string>("description", string)), (objectArg_5 = get$.Required, objectArg_5.Field<int64>("currentVersionId", uncurry2(liberatedInt64Decoder))), (objectArg_6 = get$.Required, objectArg_6.Field<boolean>("isIntake", bool)), (objectArg_7 = get$.Required, objectArg_7.Field<string>("usage", string)), (objectArg_8 = get$.Required, objectArg_8.Field<boolean>("requiresSignature", bool)), (objectArg_9 = get$.Required, objectArg_9.Field<EncounterTypes>("encounterTypes", uncurry2(encounterTypesDecoder))), (objectArg_10 = get$.Required, objectArg_10.Field<boolean>("onceAYear", bool)), (objectArg_11 = get$.Required, objectArg_11.Field<string>("structureHash", string)), (objectArg_12 = get$.Required, objectArg_12.Field<string>("clinicalHash", string)), (objectArg_13 = get$.Required, objectArg_13.Field<string>("cosmeticHash", string)), (objectArg_14 = get$.Required, objectArg_14.Field<string>("hash", string)), (objectArg_15 = get$.Required, objectArg_15.Field<FSharpList<TemplateItem>>("items", (path_12: string, value_12: any): FSharpResult$2_$union<FSharpList<TemplateItem>, [string, ErrorReason_$union]> => list_3<TemplateItem>(uncurry2(itemDecoder), path_12, value_12))), (objectArg_16 = get$.Optional, objectArg_16.Field<FormScoring>("scoring", uncurry2(formScoringDecoder))));
469
457
  }, path_13, v));
470
458
 
471
459
  const elementTypeDecoder = (path_3: string): ((arg0: any) => FSharpResult$2_$union<ElementTypeEntry, [string, ErrorReason_$union]>) => ((v: any): FSharpResult$2_$union<ElementTypeEntry, [string, ErrorReason_$union]> => object<ElementTypeEntry>((get$: IGetters): ElementTypeEntry => {
@@ -529,76 +517,14 @@ export function toCoreMRFormData(form: TemplateForm): CoreMRFormData {
529
517
  * Decode templates.json manifest. Strict (all-or-nothing).
530
518
  */
531
519
  export function decodeManifest(json: string): FSharpResult$2_$union<TemplateManifest, string> {
532
- try {
533
- toConsole(printf("🚀 LIBERATION_SURVEILLANCE: Starting template manifest decode with liberation fork..."));
534
- console.log("🚀 LIBERATION_SURVEILLANCE: Starting template manifest decode with liberation fork...");
535
- }
536
- catch (matchValue: any) {
537
- }
538
- const result: FSharpResult$2_$union<TemplateManifest, string> = fromString<TemplateManifest>(uncurry2(manifestDecoder), json);
539
- if (result.tag === /* Error */ 1) {
540
- const err: string = result.fields[0];
541
- try {
542
- const message_1: string = toText(printf("💥 LIBERATION_SURVEILLANCE: Template decode FAILED - %s"))(err);
543
- toConsole(printf("%s"))(message_1);
544
- console.log(message_1);
545
- }
546
- catch (matchValue_2: any) {
547
- }
548
- }
549
- else {
550
- const manifest: TemplateManifest = result.fields[0];
551
- try {
552
- const totalChoices: int32 = sumBy<[string, TemplateForm], int32>((tupledArg: [string, TemplateForm]): int32 => sumBy_1<TemplateItem, int32>((item: TemplateItem): int32 => length<TemplateChoice>(item.Choices), tupledArg[1].Items, {
553
- GetZero: (): int32 => 0,
554
- Add: (x: int32, y: int32): int32 => (x + y),
555
- }), toSeq<string, TemplateForm>(manifest.Forms), {
556
- GetZero: (): int32 => 0,
557
- Add: (x_1: int32, y_1: int32): int32 => (x_1 + y_1),
558
- }) | 0;
559
- const nonZeroScores: int32 = sumBy<[string, TemplateForm], int32>((tupledArg_1: [string, TemplateForm]): int32 => sumBy_1<TemplateItem, int32>((item_1: TemplateItem): int32 => length<TemplateChoice>(filter<TemplateChoice>((choice: TemplateChoice): boolean => !equals(choice.Score, 0n), item_1.Choices)), tupledArg_1[1].Items, {
560
- GetZero: (): int32 => 0,
561
- Add: (x_2: int32, y_2: int32): int32 => (x_2 + y_2),
562
- }), toSeq<string, TemplateForm>(manifest.Forms), {
563
- GetZero: (): int32 => 0,
564
- Add: (x_3: int32, y_3: int32): int32 => (x_3 + y_3),
565
- }) | 0;
566
- const message: string = toText(printf("🎉 LIBERATION_SURVEILLANCE: Template decode SUCCESS! %d choices decoded, %d with non-zero scores (liberation confirmed!)"))(totalChoices)(nonZeroScores);
567
- toConsole(printf("%s"))(message);
568
- console.log(message);
569
- }
570
- catch (matchValue_1: any) {
571
- }
572
- }
573
- return result;
520
+ return fromString<TemplateManifest>(uncurry2(manifestDecoder), json);
574
521
  }
575
522
 
576
523
  /**
577
524
  * Decode a single TemplateForm from JSON (bridge API single-form response).
578
525
  */
579
526
  export function decodeTemplateForm(json: string): FSharpResult$2_$union<TemplateForm, string> {
580
- const result: FSharpResult$2_$union<TemplateForm, string> = fromString<TemplateForm>(uncurry2(formDecoder), json);
581
- if (result.tag === /* Error */ 1) {
582
- }
583
- else {
584
- const form: TemplateForm = result.fields[0];
585
- try {
586
- const totalChoices: int32 = sumBy_1<TemplateItem, int32>((item: TemplateItem): int32 => length<TemplateChoice>(item.Choices), form.Items, {
587
- GetZero: (): int32 => 0,
588
- Add: (x: int32, y: int32): int32 => (x + y),
589
- }) | 0;
590
- const nonZeroScores: int32 = sumBy_1<TemplateItem, int32>((item_1: TemplateItem): int32 => length<TemplateChoice>(filter<TemplateChoice>((choice: TemplateChoice): boolean => !equals(choice.Score, 0n), item_1.Choices)), form.Items, {
591
- GetZero: (): int32 => 0,
592
- Add: (x_1: int32, y_1: int32): int32 => (x_1 + y_1),
593
- }) | 0;
594
- const message: string = toText(printf("🎉 LIBERATION_SURVEILLANCE: Single form decode SUCCESS! FormId=%d, %d choices, %d non-zero scores"))(form.FormId)(totalChoices)(nonZeroScores);
595
- toConsole(printf("%s"))(message);
596
- console.log(message);
597
- }
598
- catch (matchValue: any) {
599
- }
600
- }
601
- return result;
527
+ return fromString<TemplateForm>(uncurry2(formDecoder), json);
602
528
  }
603
529
 
604
530
  export const templateFormDecoder: ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<TemplateForm, [string, ErrorReason_$union]>)) = formDecoder;
@@ -6,7 +6,7 @@ import { int32, float64 } from "@fable-org/fable-library-js/Int32.js";
6
6
  import { append, mapIndexed, tryFind as tryFind_1, map, item as item_2 } from "@fable-org/fable-library-js/Array.js";
7
7
  import { length, mapIndexed as mapIndexed_1, filter, choose, map as map_1, singleton, collect, delay, toList } from "@fable-org/fable-library-js/Seq.js";
8
8
  import { Auto_generateBoxedEncoder_437914C6, toString } from "../../Thoth.Json/packages/Thoth.Json/Encode.js";
9
- import { Spec_SingleChoiceInfo, Spec_ClinicalInstrumentInfo, Spec_FormClassification_$union, ClinicalPathway_StateType_$union, ClinicalPathway_TaskPriority_$union, ClinicalPathway_AlertSeverity_$union, ClinicalPathway_ReferralUrgency_$union, ClinicalPathway_ActionInfo_$union, ClinicalPathway_NavigateToFormAction, ClinicalPathway_ProblemAction, ClinicalPathway_AlertAction, ClinicalPathway_EducationAction, ClinicalPathway_ProcedureAction, ClinicalPathway_TestAction, ClinicalPathway_DocumentationAction, ClinicalPathway_FieldValueSource_$union, ClinicalPathway_SetFieldValueAction, ClinicalPathway_PrescriptionAction, ClinicalPathway_MedicationAction, ClinicalPathway_ReferralAction, Shared_FieldValue, ClinicalPathway_ClinicalPathwaySpec, ClinicalPathway_PathRequirement, ClinicalPathway_ConstraintDefinition, ClinicalPathway_PathwayExecutionMode_SinglePathway, ClinicalPathway_SinglePathwayConfig, ClinicalPathway_SelectionStrategy_HighestPriority, ClinicalPathway_TransitionDefinition, ClinicalPathway_TransitionCondition_FieldCondition, Shared_ConditionValue_Single, ClinicalPathway_FieldEvaluator_Equals, Shared_TransitionKey, ClinicalPathway_StateType_Terminal, ClinicalPathway_TerminalInfo, ClinicalPathway_StateDefinition, ClinicalPathway_StateType_Action, ClinicalPathway_ActionInfo_Task, ClinicalPathway_TaskAction, ClinicalPathway_DueDate_Today, ClinicalPathway_TaskPriority_Medium, ClinicalPathway_TaskPriority_Low, ClinicalPathway_TaskPriority_High, Shared_StateKey, Spec_FieldType_PluginField, Spec_PluginFieldConfig, Spec_FieldType_Matrix, Spec_MatrixInfo, Spec_FormClassification_General, Spec_FormLifecycle_Blueprint, Spec_FieldType_Text, Spec_TextInfo, Spec_FieldType_CheckboxList, Spec_MultiChoiceInfo, Shared_FieldOptionKey, Spec_FieldType_Checkbox, Spec_BooleanInfo, Shared_FieldKey, Shared_FieldOption, Shared_FieldValue_Single, Shared_FieldValue_PluginData, Shared_PluginDataProperty, Shared_PluginPropertyKey, Shared_FieldValue_Matrix, Shared_MatrixAnswer, Shared_MatrixItemKey, Shared_FieldValue_Multiple, Shared_FieldAnswer, Shared_FieldValue_$union, Spec_FormStep$1, Spec_FormField$1, Spec_FieldType_$union, Spec_FormSpec$1, Spec_FormSpec$1_$reflection, Spec_FieldType_$reflection } from "../FormSpec.js";
9
+ import { Spec_SingleChoiceInfo, Spec_ClinicalInstrumentInfo, Spec_FormClassification_$union, ClinicalPathway_StateType_$union, ClinicalPathway_TaskPriority_$union, ClinicalPathway_AlertSeverity_$union, ClinicalPathway_ReferralUrgency_$union, ClinicalPathway_ActionInfo_$union, ClinicalPathway_NavigateToFormAction, ClinicalPathway_MedsetAction, ClinicalPathway_TreatmentAction, ClinicalPathway_ProblemAction, ClinicalPathway_AlertAction, ClinicalPathway_EducationAction, ClinicalPathway_ProcedureAction, ClinicalPathway_TestAction, ClinicalPathway_DocumentationAction, ClinicalPathway_FieldValueSource_$union, ClinicalPathway_SetFieldValueAction, ClinicalPathway_PrescriptionAction, ClinicalPathway_MedicationAction, ClinicalPathway_ReferralAction, Shared_FieldValue, ClinicalPathway_ClinicalPathwaySpec, ClinicalPathway_PathRequirement, ClinicalPathway_ConstraintDefinition, ClinicalPathway_PathwayExecutionMode_SinglePathway, ClinicalPathway_SinglePathwayConfig, ClinicalPathway_SelectionStrategy_HighestPriority, ClinicalPathway_TransitionDefinition, ClinicalPathway_TransitionCondition_FieldCondition, Shared_ConditionValue_Single, ClinicalPathway_FieldEvaluator_Equals, Shared_TransitionKey, ClinicalPathway_StateType_Terminal, ClinicalPathway_TerminalInfo, ClinicalPathway_StateDefinition, ClinicalPathway_StateType_Action, ClinicalPathway_ActionInfo_Task, ClinicalPathway_TaskAction, ClinicalPathway_DueDate_Today, ClinicalPathway_TaskPriority_Medium, ClinicalPathway_TaskPriority_Low, ClinicalPathway_TaskPriority_High, Shared_StateKey, Spec_FieldType_PluginField, Spec_PluginFieldConfig, Spec_FieldType_Matrix, Spec_MatrixInfo, Spec_FormClassification_General, Spec_FormLifecycle_Blueprint, Spec_FieldType_Text, Spec_TextInfo, Spec_FieldType_CheckboxList, Spec_MultiChoiceInfo, Shared_FieldOptionKey, Spec_FieldType_Checkbox, Spec_BooleanInfo, Shared_FieldKey, Shared_FieldOption, Shared_FieldValue_Single, Shared_FieldValue_PluginData, Shared_PluginDataProperty, Shared_PluginPropertyKey, Shared_FieldValue_Matrix, Shared_MatrixAnswer, Shared_MatrixItemKey, Shared_FieldValue_Multiple, Shared_FieldAnswer, Shared_FieldValue_$union, Spec_FormStep$1, Spec_FormField$1, Spec_FieldType_$union, Spec_FormSpec$1, Spec_FormSpec$1_$reflection, Spec_FieldType_$reflection } from "../FormSpec.js";
10
10
  import { Auto_generateBoxedDecoder_Z6670B51, fromString } from "../../Thoth.Json/packages/Thoth.Json/Decode.js";
11
11
  import { FSharpResult$2_Ok, FSharpResult$2_Error, FSharpResult$2_$union } from "@fable-org/fable-library-js/Result.js";
12
12
  import { newGuid, parse, tryParse } from "@fable-org/fable-library-js/Guid.js";
@@ -1176,7 +1176,7 @@ export function extractFormValuesFromFormSpec(spec: Spec_FormSpec$1<Spec_FieldTy
1176
1176
  export function convertActionInfo(action: ClinicalPathway_ActionInfo_$union): any {
1177
1177
  let matchValue_1: ClinicalPathway_ReferralUrgency_$union, matchValue_3: ClinicalPathway_AlertSeverity_$union, matchValue: ClinicalPathway_TaskPriority_$union;
1178
1178
  switch (action.tag) {
1179
- case /* Referral */ 2: {
1179
+ case /* Referral */ 4: {
1180
1180
  const referral: ClinicalPathway_ReferralAction = action.fields[0];
1181
1181
  return {
1182
1182
  description: `Refer to ${referral.Target}`,
@@ -1197,7 +1197,7 @@ export function convertActionInfo(action: ClinicalPathway_ActionInfo_$union): an
1197
1197
  type: "medication",
1198
1198
  };
1199
1199
  }
1200
- case /* Prescription */ 9: {
1200
+ case /* Prescription */ 11: {
1201
1201
  const presc: ClinicalPathway_PrescriptionAction = action.fields[0];
1202
1202
  return {
1203
1203
  description: `${presc.Medication} - ${presc.Dose} ${presc.Route}`,
@@ -1210,7 +1210,7 @@ export function convertActionInfo(action: ClinicalPathway_ActionInfo_$union): an
1210
1210
  type: "prescription",
1211
1211
  };
1212
1212
  }
1213
- case /* SetFieldValue */ 10: {
1213
+ case /* SetFieldValue */ 12: {
1214
1214
  const setField: ClinicalPathway_SetFieldValueAction = action.fields[0];
1215
1215
  let valueStr: string;
1216
1216
  const matchValue_2: ClinicalPathway_FieldValueSource_$union = setField.Value;
@@ -1223,7 +1223,7 @@ export function convertActionInfo(action: ClinicalPathway_ActionInfo_$union): an
1223
1223
  value: valueStr,
1224
1224
  };
1225
1225
  }
1226
- case /* Documentation */ 5: {
1226
+ case /* Documentation */ 7: {
1227
1227
  const doc: ClinicalPathway_DocumentationAction = action.fields[0];
1228
1228
  return {
1229
1229
  description: `Document: ${doc.FormName}`,
@@ -1233,7 +1233,7 @@ export function convertActionInfo(action: ClinicalPathway_ActionInfo_$union): an
1233
1233
  type: "documentation",
1234
1234
  };
1235
1235
  }
1236
- case /* Test */ 1: {
1236
+ case /* Test */ 3: {
1237
1237
  const test: ClinicalPathway_TestAction = action.fields[0];
1238
1238
  return {
1239
1239
  description: `${test.TestName} (${test.TestType})`,
@@ -1242,7 +1242,7 @@ export function convertActionInfo(action: ClinicalPathway_ActionInfo_$union): an
1242
1242
  type: "test",
1243
1243
  };
1244
1244
  }
1245
- case /* Procedure */ 4: {
1245
+ case /* Procedure */ 6: {
1246
1246
  const proc: ClinicalPathway_ProcedureAction = action.fields[0];
1247
1247
  return {
1248
1248
  description: `${proc.Name}: ${proc.Description}`,
@@ -1251,7 +1251,7 @@ export function convertActionInfo(action: ClinicalPathway_ActionInfo_$union): an
1251
1251
  type: "procedure",
1252
1252
  };
1253
1253
  }
1254
- case /* Education */ 3: {
1254
+ case /* Education */ 5: {
1255
1255
  const edu: ClinicalPathway_EducationAction = action.fields[0];
1256
1256
  return {
1257
1257
  description: `Education: ${join(", ", edu.Topics)}`,
@@ -1259,7 +1259,7 @@ export function convertActionInfo(action: ClinicalPathway_ActionInfo_$union): an
1259
1259
  type: "education",
1260
1260
  };
1261
1261
  }
1262
- case /* Alert */ 7: {
1262
+ case /* Alert */ 9: {
1263
1263
  const alert: ClinicalPathway_AlertAction = action.fields[0];
1264
1264
  return {
1265
1265
  category: alert.Category,
@@ -1268,7 +1268,7 @@ export function convertActionInfo(action: ClinicalPathway_ActionInfo_$union): an
1268
1268
  type: "alert",
1269
1269
  };
1270
1270
  }
1271
- case /* Problem */ 8: {
1271
+ case /* Problem */ 10: {
1272
1272
  const prob: ClinicalPathway_ProblemAction = action.fields[0];
1273
1273
  return {
1274
1274
  description: `${prob.ProblemName}${defaultArg_1(map_2<string, string>((code: string): string => (` (ICD: ${code})`), prob.IcdCode), "")}`,
@@ -1277,7 +1277,26 @@ export function convertActionInfo(action: ClinicalPathway_ActionInfo_$union): an
1277
1277
  type: "problem",
1278
1278
  };
1279
1279
  }
1280
- case /* NavigateToForm */ 11: {
1280
+ case /* Treatment */ 1: {
1281
+ const t: ClinicalPathway_TreatmentAction = action.fields[0];
1282
+ return {
1283
+ description: `Treatment: ${t.Name}`,
1284
+ signature: unwrap(t.Signature),
1285
+ treatmentId: unwrap(t.TreatmentId),
1286
+ treatmentName: t.Name,
1287
+ type: "treatment",
1288
+ };
1289
+ }
1290
+ case /* Medset */ 2: {
1291
+ const m: ClinicalPathway_MedsetAction = action.fields[0];
1292
+ return {
1293
+ description: `Medset: ${m.Name}`,
1294
+ medsetId: unwrap(m.MedsetId),
1295
+ medsetName: m.Name,
1296
+ type: "medset",
1297
+ };
1298
+ }
1299
+ case /* NavigateToForm */ 13: {
1281
1300
  const nav: ClinicalPathway_NavigateToFormAction = action.fields[0];
1282
1301
  const formCode: string = defaultArg_1(nav.FormCode, nav.FormId);
1283
1302
  return {