@f1studio/form-spec 5.0.0-alpha.149 → 5.0.0-alpha.152

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 (255) hide show
  1. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts.map +1 -1
  2. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts +5 -3
  3. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts.map +1 -1
  4. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts +19 -0
  5. package/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.d.ts.map +1 -0
  6. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts +39 -2
  7. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts.map +1 -1
  8. package/FormSpec.FS/Interop/Facade/BlueprintFilledForm.d.ts +16 -0
  9. package/FormSpec.FS/Interop/Facade/BlueprintFilledForm.d.ts.map +1 -1
  10. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js +3 -3
  11. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js.map +1 -1
  12. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js +2 -2
  13. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js.map +1 -1
  14. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js +1 -1
  15. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js.map +1 -1
  16. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js +23 -21
  17. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +1 -1
  18. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js +16 -7
  19. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +1 -1
  20. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js +580 -0
  21. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.js.map +1 -0
  22. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js +199 -8
  23. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +1 -1
  24. package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js +25 -1
  25. package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.js.map +1 -1
  26. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js.map +1 -1
  27. package/README.md +7 -7
  28. package/package.json +13 -15
  29. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts +3 -3
  30. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts +3 -3
  31. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts +1 -1
  32. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +25 -23
  33. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts +19 -13
  34. package/src/FormSpec.FS/Integrations/CorEMR/ItemTriggerConverter.ts +545 -0
  35. package/src/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts +120 -14
  36. package/src/FormSpec.FS/Interop/Facade/BlueprintFilledForm.ts +29 -1
  37. package/FormSpec.TS/FormSpec.FS/BitmaskHelpers.ts.map +0 -1
  38. package/FormSpec.TS/FormSpec.FS/BlueprintValidation.ts.map +0 -1
  39. package/FormSpec.TS/FormSpec.FS/Components/HelloComponent.ts.map +0 -1
  40. package/FormSpec.TS/FormSpec.FS/Designer.ts.map +0 -1
  41. package/FormSpec.TS/FormSpec.FS/FormSpec.ts.map +0 -1
  42. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +0 -1
  43. package/FormSpec.TS/FormSpec.FS/FormSpecValues.ts.map +0 -1
  44. package/FormSpec.TS/FormSpec.FS/Helpers.ts.map +0 -1
  45. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRAdapter.ts.map +0 -1
  46. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts.map +0 -1
  47. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts.map +0 -1
  48. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFormSpecValidator.ts.map +0 -1
  49. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSectioning.ts.map +0 -1
  50. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRSemanticReportBuilder.ts.map +0 -1
  51. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRStepsBuilder.ts.map +0 -1
  52. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateMapper.ts.map +0 -1
  53. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts.map +0 -1
  54. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTriggerConverter.ts.map +0 -1
  55. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts.map +0 -1
  56. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts.map +0 -1
  57. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.ts.map +0 -1
  58. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/FormSystemAdapter.ts.map +0 -1
  59. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormAdapter.ts.map +0 -1
  60. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/ReactHookForm/ReactHookFormTypes.ts.map +0 -1
  61. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/CoreMRTypes.ts.map +0 -1
  62. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateDecodeTypes.ts.map +0 -1
  63. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts.map +0 -1
  64. package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts.map +0 -1
  65. package/FormSpec.TS/FormSpec.FS/Interfaces.ts.map +0 -1
  66. package/FormSpec.TS/FormSpec.FS/Interop/Facade/BlueprintFilledForm.ts.map +0 -1
  67. package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.ts.map +0 -1
  68. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +0 -1
  69. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +0 -1
  70. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +0 -1
  71. package/FormSpec.TS/FormSpec.FS/Logging/LogTypes.ts.map +0 -1
  72. package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +0 -1
  73. package/FormSpec.TS/FormSpec.FS/PathwayDataExtractor.ts.map +0 -1
  74. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +0 -1
  75. package/FormSpec.TS/FormSpec.FS/PathwayValidator.ts.map +0 -1
  76. package/FormSpec.TS/FormSpec.FS/PluginInterface.ts.map +0 -1
  77. package/FormSpec.TS/FormSpec.FS/Prelude.ts.map +0 -1
  78. package/FormSpec.TS/FormSpec.FS/Provenance.ts.map +0 -1
  79. package/FormSpec.TS/FormSpec.FS/Renderers/FormSpecMarkdownRenderer.ts.map +0 -1
  80. package/FormSpec.TS/FormSpec.FS/Renderers/MermaidRenderer.ts.map +0 -1
  81. package/FormSpec.TS/FormSpec.FS/Renderers/PathwayRenderers.ts.map +0 -1
  82. package/FormSpec.TS/PluginRegistration.ts.map +0 -1
  83. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.ts.map +0 -1
  84. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.ts.map +0 -1
  85. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Extra.ts.map +0 -1
  86. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Types.ts.map +0 -1
  87. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs +0 -511
  88. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.ts.map +0 -1
  89. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs +0 -16
  90. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.ts.map +0 -1
  91. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs +0 -50
  92. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.ts.map +0 -1
  93. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Fable.Form.fableproj +0 -28
  94. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs +0 -24
  95. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.ts.map +0 -1
  96. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Fable.Form.Simple.fableproj +0 -31
  97. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs +0 -178
  98. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.ts.map +0 -1
  99. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs +0 -47
  100. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/CheckboxField.fs.ts.map +0 -1
  101. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs +0 -49
  102. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/ColorField.fs.ts.map +0 -1
  103. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs +0 -52
  104. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateField.fs.ts.map +0 -1
  105. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs +0 -54
  106. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/DateTimeLocalField.fs.ts.map +0 -1
  107. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs +0 -48
  108. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/EmailField.fs.ts.map +0 -1
  109. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Fable.Form.Simple.Bulma.fableproj +0 -53
  110. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs +0 -132
  111. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FileField.fs.ts.map +0 -1
  112. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs +0 -537
  113. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Form.fs.ts.map +0 -1
  114. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs +0 -361
  115. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/FormList.fs.ts.map +0 -1
  116. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs +0 -52
  117. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Group.fs.ts.map +0 -1
  118. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs +0 -246
  119. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Html.View.fs.ts.map +0 -1
  120. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs +0 -52
  121. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/InputField.fs.ts.map +0 -1
  122. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs +0 -56
  123. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/NumberField.fs.ts.map +0 -1
  124. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs +0 -46
  125. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/PasswordField.fs.ts.map +0 -1
  126. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs +0 -51
  127. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/RadioField.fs.ts.map +0 -1
  128. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs +0 -49
  129. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SearchField.fs.ts.map +0 -1
  130. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs +0 -60
  131. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Section.fs.ts.map +0 -1
  132. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs +0 -79
  133. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/SelectField.fs.ts.map +0 -1
  134. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs +0 -44
  135. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TelField.fs.ts.map +0 -1
  136. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs +0 -49
  137. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextField.fs.ts.map +0 -1
  138. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs +0 -59
  139. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TextareaField.fs.ts.map +0 -1
  140. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs +0 -44
  141. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/TimeField.fs.ts.map +0 -1
  142. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs +0 -143
  143. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Bulma.5.0.1/Types.fs.ts.map +0 -1
  144. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs +0 -36
  145. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/CheckboxField.fs.ts.map +0 -1
  146. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs +0 -49
  147. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/ColorField.fs.ts.map +0 -1
  148. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs +0 -67
  149. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateField.fs.ts.map +0 -1
  150. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs +0 -70
  151. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/DateTimeLocalField.fs.ts.map +0 -1
  152. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs +0 -76
  153. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/EmailField.fs.ts.map +0 -1
  154. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/Fable.Form.Simple.Fields.Html.fableproj +0 -45
  155. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs +0 -105
  156. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/NumberField.fs.ts.map +0 -1
  157. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs +0 -66
  158. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/PasswordField.fs.ts.map +0 -1
  159. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs +0 -72
  160. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RadioField.fs.ts.map +0 -1
  161. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs +0 -102
  162. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/RangeField.fs.ts.map +0 -1
  163. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs +0 -83
  164. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SearchField.fs.ts.map +0 -1
  165. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs +0 -83
  166. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/SelectField.fs.ts.map +0 -1
  167. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs +0 -63
  168. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TelField.fs.ts.map +0 -1
  169. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs +0 -83
  170. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextField.fs.ts.map +0 -1
  171. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs +0 -92
  172. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TextareaField.fs.ts.map +0 -1
  173. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs +0 -108
  174. package/FormSpec.TS/fable_modules/Fable.Form.Simple.Fields.Html.1.0.1/TimeField.fs.ts.map +0 -1
  175. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
  176. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.ts.map +0 -1
  177. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
  178. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
  179. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.ts.map +0 -1
  180. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
  181. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.ts.map +0 -1
  182. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Extensions.fs +0 -17
  183. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs +0 -152
  184. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.ts.map +0 -1
  185. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Types.fableproj +0 -28
  186. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs +0 -218
  187. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.ts.map +0 -1
  188. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.Types.fableproj +0 -27
  189. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs +0 -82
  190. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.ts.map +0 -1
  191. package/FormSpec.TS/fable_modules/Feliz.2.8.0/BorderStyle.fs +0 -59
  192. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Colors.fs +0 -154
  193. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Colors.fs.ts.map +0 -1
  194. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs +0 -52
  195. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.ts.map +0 -1
  196. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Feliz.fableproj +0 -53
  197. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Fonts.fs +0 -240
  198. package/FormSpec.TS/fable_modules/Feliz.2.8.0/GridTypes.fs +0 -24
  199. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs +0 -11
  200. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Helpers.fs.ts.map +0 -1
  201. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Html.fs +0 -826
  202. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs +0 -176
  203. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Internal.fs.ts.map +0 -1
  204. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs +0 -29
  205. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Interop.fs.ts.map +0 -1
  206. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Key.fs +0 -65
  207. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Key.fs.ts.map +0 -1
  208. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Length.fs +0 -145
  209. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Locale.fs +0 -876
  210. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Properties.fs +0 -4085
  211. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Properties.fs.ts.map +0 -1
  212. package/FormSpec.TS/fable_modules/Feliz.2.8.0/React.fs +0 -494
  213. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactDOM.fs +0 -25
  214. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactDOM.fs.ts.map +0 -1
  215. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactInterop.fs +0 -20
  216. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactTypes.fs +0 -42
  217. package/FormSpec.TS/fable_modules/Feliz.2.8.0/ReactTypes.fs.ts.map +0 -1
  218. package/FormSpec.TS/fable_modules/Feliz.2.8.0/StyleTypes.fs +0 -57
  219. package/FormSpec.TS/fable_modules/Feliz.2.8.0/StyleTypes.fs.ts.map +0 -1
  220. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Styles.fs +0 -6378
  221. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Svg.fs +0 -1455
  222. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Svg.fs.ts.map +0 -1
  223. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TextDecorationLine.fs +0 -13
  224. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TextDecorationStyle.fs +0 -33
  225. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Transform.fs +0 -181
  226. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransformOrigin.fs +0 -17
  227. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransitionProperty.fs +0 -162
  228. package/FormSpec.TS/fable_modules/Feliz.2.8.0/TransitionTimingFunction.fs +0 -62
  229. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs +0 -13
  230. package/FormSpec.TS/fable_modules/Feliz.2.8.0/Types.fs.ts.map +0 -1
  231. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Bulma.fs +0 -990
  232. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs +0 -179
  233. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/ElementBuilders.fs.ts.map +0 -1
  234. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Feliz.Bulma.fableproj +0 -32
  235. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs +0 -1986
  236. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Modifiers.fs.ts.map +0 -1
  237. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs +0 -7
  238. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/Operators.fs.ts.map +0 -1
  239. package/FormSpec.TS/fable_modules/Feliz.Bulma.3.0.0/PropertyBuilders.fs +0 -8
  240. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Exports.fs +0 -14
  241. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Glutinum.Feliz.ReactSignaturePadWrapper.fableproj +0 -18
  242. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Interop.fs +0 -6
  243. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/ReactSignaturePadWrapper.fs +0 -32
  244. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs +0 -3
  245. package/FormSpec.TS/fable_modules/Glutinum.Feliz.ReactSignaturePadWrapper.1.0.2/Types.fs.ts.map +0 -1
  246. package/FormSpec.TS/fable_modules/project_cracked.json +0 -1
  247. package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.ts.map +0 -1
  248. package/FormSpec.TS/plugins/allergyfinder/src/AllergyLogic.ts.map +0 -1
  249. package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.ts.map +0 -1
  250. package/FormSpec.TS/plugins/bmi/src/BMIField.ts.map +0 -1
  251. package/FormSpec.TS/plugins/demographics/src/DemographicsField.ts.map +0 -1
  252. package/FormSpec.TS/plugins/likert/src/LikertField.ts.map +0 -1
  253. package/FormSpec.TS/plugins/signature/src/SignatureField.ts.map +0 -1
  254. package/FormSpec.TS/plugins/vitals/src/VitalsField.ts.map +0 -1
  255. package/FormSpec.TS/plugins/vitals/src/VitalsLogic.ts.map +0 -1
@@ -3,7 +3,7 @@ import { orElse, defaultArg, map, value as value_3, bind, unwrap, Option } from
3
3
  import { int32, float64 } from "@fable-org/fable-library-js/Int32.js";
4
4
  import { comparePrimitives, stringHash, uncurry2, IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
5
5
  import { record_type, option_type, float64_type, TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
6
- import { fold, contains, exists, tail, mapIndexed, tryHead, choose, map as map_1, singleton, empty, tryFind, head, isEmpty, FSharpList, collect, filter } from "@fable-org/fable-library-js/List.js";
6
+ import { exists, fold, contains, tail, mapIndexed, tryHead, choose, map as map_1, singleton, empty, tryFind, head, isEmpty, FSharpList, collect, filter } from "@fable-org/fable-library-js/List.js";
7
7
  import { Shared_MatrixItemKey, Shared_MatrixAnswer, Spec_MultiChoiceInfo, Spec_SingleChoiceInfo, Shared_FieldOption, Shared_FieldOptionKey, Shared_FieldKey, Spec_FormSpec$1, Shared_FieldValue, Shared_FieldAnswer, Shared_PluginDataProperty, Shared_FieldValue_$union, Spec_FormStep$1, Spec_FormField$1, Spec_PluginFieldConfig, Spec_FieldType_$union } from "../../../FormSpec.js";
8
8
  import { split, isNullOrWhiteSpace } from "@fable-org/fable-library-js/String.js";
9
9
  import { tryParse } from "@fable-org/fable-library-js/Double.js";
@@ -294,6 +294,8 @@ function fieldToAnswers(field: Spec_FormField$1<Spec_FieldType_$union>, vitalsId
294
294
  const answers: FSharpSet<Shared_FieldAnswer> = (value_3(matchValue) as Shared_FieldValue<1>).fields[0];
295
295
  const matchValue_3: int32 = anchor.ItemTypeId | 0;
296
296
  switch (matchValue_3) {
297
+ case 20:
298
+ case 21:
297
299
  case 26:
298
300
  case 40:
299
301
  case 41:
@@ -311,7 +313,7 @@ function fieldToAnswers(field: Spec_FormField$1<Spec_FieldType_$union>, vitalsId
311
313
  }
312
314
  }
313
315
  default:
314
- throw new Error(`🚨 Multiple answers not supported for CoreMR ItemTypeId ${anchor.ItemTypeId} field ${anchor.FieldKey} - only bitmask types (26,40,41,143) support multiple selection!`);
316
+ throw new Error(`🚨 Multiple answers not supported for CoreMR ItemTypeId ${anchor.ItemTypeId} field ${anchor.FieldKey} - only bitmask types (20,21,26,40,41,143) support multiple selection!`);
315
317
  }
316
318
  }
317
319
  case /* Matrix */ 2: {
@@ -362,24 +364,6 @@ function fieldToAnswers(field: Spec_FormField$1<Spec_FieldType_$union>, vitalsId
362
364
  return singleton(new CoreMRAnswer(anchor.Sequence, 0n, supportsTextContent(anchor) ? answer.Value : undefined));
363
365
  case 20:
364
366
  case 21:
365
- case 25:
366
- case 32: {
367
- const canonicalAnswer: string = Helpers_canonicalizeFieldKey(answer.Value);
368
- const scoreOpt: Option<int64> = map<CoreMRChoiceAnchor, int64>((c_1: CoreMRChoiceAnchor): int64 => c_1.Score, tryFind<CoreMRChoiceAnchor>((c: CoreMRChoiceAnchor): boolean => exists<Shared_FieldOption>((opt: Shared_FieldOption): boolean => {
369
- if (getFieldOptionKeyGuid(opt.OptionKey) === getFieldOptionKeyGuid(c.FieldOptionKey)) {
370
- return Helpers_canonicalizeFieldKey(opt.Value) === canonicalAnswer;
371
- }
372
- else {
373
- return false;
374
- }
375
- }, options), anchor.Choices));
376
- if (scoreOpt == null) {
377
- throw new Error(`🚨 No matching choice found for ItemTypeId ${anchor.ItemTypeId} field ${anchor.FieldKey} answer '${answer.Value}'`);
378
- }
379
- else {
380
- return singleton(new CoreMRAnswer(anchor.Sequence, value_3(scoreOpt), supportsOptionalNotes(anchor) ? answer.Documentation : undefined));
381
- }
382
- }
383
367
  case 26:
384
368
  case 40:
385
369
  case 41:
@@ -413,6 +397,24 @@ function fieldToAnswers(field: Spec_FormField$1<Spec_FieldType_$union>, vitalsId
413
397
  return singleton(new CoreMRAnswer(anchor.Sequence, fold<int32, int64>((acc: int64, bit_1: int32): int64 => toInt64(op_BitwiseOr(acc, toInt64(op_LeftShift(1n, bit_1)))), 0n, bitPositions), supportsOptionalNotes(anchor) ? answer.Documentation : undefined));
414
398
  }
415
399
  }
400
+ case 25:
401
+ case 32: {
402
+ const canonicalAnswer: string = Helpers_canonicalizeFieldKey(answer.Value);
403
+ const scoreOpt: Option<int64> = map<CoreMRChoiceAnchor, int64>((c_1: CoreMRChoiceAnchor): int64 => c_1.Score, tryFind<CoreMRChoiceAnchor>((c: CoreMRChoiceAnchor): boolean => exists<Shared_FieldOption>((opt: Shared_FieldOption): boolean => {
404
+ if (getFieldOptionKeyGuid(opt.OptionKey) === getFieldOptionKeyGuid(c.FieldOptionKey)) {
405
+ return Helpers_canonicalizeFieldKey(opt.Value) === canonicalAnswer;
406
+ }
407
+ else {
408
+ return false;
409
+ }
410
+ }, options), anchor.Choices));
411
+ if (scoreOpt == null) {
412
+ throw new Error(`🚨 No matching choice found for ItemTypeId ${anchor.ItemTypeId} field ${anchor.FieldKey} answer '${answer.Value}'`);
413
+ }
414
+ else {
415
+ return singleton(new CoreMRAnswer(anchor.Sequence, value_3(scoreOpt), supportsOptionalNotes(anchor) ? answer.Documentation : undefined));
416
+ }
417
+ }
416
418
  case 30:
417
419
  case 31: {
418
420
  const valStr: string = canonicalizeForYesNo(answer.Value);
@@ -459,14 +461,14 @@ function fieldToAnswers(field: Spec_FormField$1<Spec_FieldType_$union>, vitalsId
459
461
  return empty<CoreMRAnswer>();
460
462
  case 20:
461
463
  case 21:
462
- case 25:
463
- case 32:
464
- return empty<CoreMRAnswer>();
465
464
  case 26:
466
465
  case 40:
467
466
  case 41:
468
467
  case 143:
469
468
  return empty<CoreMRAnswer>();
469
+ case 25:
470
+ case 32:
471
+ return empty<CoreMRAnswer>();
470
472
  case 30:
471
473
  case 31:
472
474
  return singleton(new CoreMRAnswer(anchor.Sequence, 2n, undefined));
@@ -3,11 +3,12 @@ import { numberHash, comparePrimitives, IComparable, IEquatable } from "@fable-o
3
3
  import { class_type, list_type, option_type, int64_type, int32_type, record_type, bool_type, string_type, TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
4
4
  import { getElementTypeInfo, ElementTypeInfo } from "./CorEMRElementTypeMap.js";
5
5
  import { int32 } from "@fable-org/fable-library-js/Int32.js";
6
- import { ofList, FSharpMap, tryFind } from "@fable-org/fable-library-js/Map.js";
7
- import { map, defaultArg, Option, value as value_2 } from "@fable-org/fable-library-js/Option.js";
6
+ import { empty as empty_1, ofList, FSharpMap, tryFind } from "@fable-org/fable-library-js/Map.js";
7
+ import { map, defaultArg, Option, value as value_3 } from "@fable-org/fable-library-js/Option.js";
8
8
  import { int64 } from "@fable-org/fable-library-js/BigInt.js";
9
9
  import { Spec_FormClassification_General, Spec_FormStep$1, Spec_FormField$1, Spec_MultiChoiceInfo, Spec_SingleChoiceInfo, Shared_FieldOption, Spec_FormSpec$1_$reflection, Spec_FieldType_$reflection, Spec_FieldType_$union, Spec_FormSpec$1, Spec_FormClassification_$reflection, Spec_FormClassification_$union, Shared_FieldKey_$reflection, Shared_FieldKey, Shared_MatrixItemKey_$reflection, Shared_MatrixItemKey, Shared_FieldOptionKey_$reflection, Shared_FieldOptionKey } from "../../../FormSpec.js";
10
10
  import { tryFind as tryFind_1, choose, item as item_1, length, mapIndexed, sortBy, empty, FSharpList } from "@fable-org/fable-library-js/List.js";
11
+ import { ItemTrigger_$reflection, ItemTrigger } from "../../CorEMR/TemplateManifestDecoder.js";
11
12
  import { CoreMRFormData, CoreMRItem, CoreMRChoice, CoreMRTag_$reflection, CoreMRTrigger_$reflection, CoreMRTag, CoreMRTrigger } from "../../CorEMR/CoreMRTypes.js";
12
13
  import { List_groupBy } from "@fable-org/fable-library-js/Seq2.js";
13
14
  import { detectHeadings, groupItemsByHeadings, Section, HeadingItem } from "./CorEMRSectioning.js";
@@ -48,12 +49,12 @@ function getValueEncodingWithOverride(elementTypes: Option<FSharpMap<int32, Elem
48
49
  return getValueEncoding(itemTypeId);
49
50
  }
50
51
  else {
51
- const matchValue: Option<ElementTypeInfo> = tryFind<int32, ElementTypeInfo>(itemTypeId, value_2(elementTypes));
52
+ const matchValue: Option<ElementTypeInfo> = tryFind<int32, ElementTypeInfo>(itemTypeId, value_3(elementTypes));
52
53
  if (matchValue == null) {
53
54
  return getValueEncoding(itemTypeId);
54
55
  }
55
56
  else {
56
- return toValueEncodingInfo(value_2(matchValue));
57
+ return toValueEncodingInfo(value_3(matchValue));
57
58
  }
58
59
  }
59
60
  }
@@ -113,7 +114,8 @@ export class CoreMRFieldAnchor extends Record implements IEquatable<CoreMRFieldA
113
114
  readonly Choices: FSharpList<CoreMRChoiceAnchor>;
114
115
  readonly FieldKey: Shared_FieldKey;
115
116
  readonly MatrixItemAnchors: FSharpList<CoreMRMatrixItemAnchor>;
116
- constructor(ItemId: int32, ItemTypeId: int32, Sequence: int32, NestingLevel: int32, Label: string, IsRequired: boolean, SequenceText: Option<string>, Code: Option<string>, Uuid: Option<string>, GenderRequired: Option<string>, Encoding: ValueEncodingInfo, Choices: FSharpList<CoreMRChoiceAnchor>, FieldKey: Shared_FieldKey, MatrixItemAnchors: FSharpList<CoreMRMatrixItemAnchor>) {
117
+ readonly Triggers: FSharpList<ItemTrigger>;
118
+ constructor(ItemId: int32, ItemTypeId: int32, Sequence: int32, NestingLevel: int32, Label: string, IsRequired: boolean, SequenceText: Option<string>, Code: Option<string>, Uuid: Option<string>, GenderRequired: Option<string>, Encoding: ValueEncodingInfo, Choices: FSharpList<CoreMRChoiceAnchor>, FieldKey: Shared_FieldKey, MatrixItemAnchors: FSharpList<CoreMRMatrixItemAnchor>, Triggers: FSharpList<ItemTrigger>) {
117
119
  super();
118
120
  this.ItemId = (ItemId | 0);
119
121
  this.ItemTypeId = (ItemTypeId | 0);
@@ -129,11 +131,12 @@ export class CoreMRFieldAnchor extends Record implements IEquatable<CoreMRFieldA
129
131
  this.Choices = Choices;
130
132
  this.FieldKey = FieldKey;
131
133
  this.MatrixItemAnchors = MatrixItemAnchors;
134
+ this.Triggers = Triggers;
132
135
  }
133
136
  }
134
137
 
135
138
  export function CoreMRFieldAnchor_$reflection(): TypeInfo {
136
- return record_type("FormSpec.Integrations.CorEMR.CoreMRSourceMap.CoreMRFieldAnchor", [], CoreMRFieldAnchor, () => [["ItemId", int32_type], ["ItemTypeId", int32_type], ["Sequence", int32_type], ["NestingLevel", int32_type], ["Label", string_type], ["IsRequired", bool_type], ["SequenceText", option_type(string_type)], ["Code", option_type(string_type)], ["Uuid", option_type(string_type)], ["GenderRequired", option_type(string_type)], ["Encoding", ValueEncodingInfo_$reflection()], ["Choices", list_type(CoreMRChoiceAnchor_$reflection())], ["FieldKey", Shared_FieldKey_$reflection()], ["MatrixItemAnchors", list_type(CoreMRMatrixItemAnchor_$reflection())]]);
139
+ return record_type("FormSpec.Integrations.CorEMR.CoreMRSourceMap.CoreMRFieldAnchor", [], CoreMRFieldAnchor, () => [["ItemId", int32_type], ["ItemTypeId", int32_type], ["Sequence", int32_type], ["NestingLevel", int32_type], ["Label", string_type], ["IsRequired", bool_type], ["SequenceText", option_type(string_type)], ["Code", option_type(string_type)], ["Uuid", option_type(string_type)], ["GenderRequired", option_type(string_type)], ["Encoding", ValueEncodingInfo_$reflection()], ["Choices", list_type(CoreMRChoiceAnchor_$reflection())], ["FieldKey", Shared_FieldKey_$reflection()], ["MatrixItemAnchors", list_type(CoreMRMatrixItemAnchor_$reflection())], ["Triggers", list_type(ItemTrigger_$reflection())]]);
137
140
  }
138
141
 
139
142
  export class CoreMRStepAnchor extends Record implements IEquatable<CoreMRStepAnchor>, IComparable<CoreMRStepAnchor> {
@@ -307,7 +310,7 @@ export function buildFieldAnchor(elementTypes: Option<FSharpMap<int32, ElementTy
307
310
  Compare: comparePrimitives,
308
311
  });
309
312
  const fieldOptions: FSharpList<Shared_FieldOption> = getFieldOptions(field);
310
- return new CoreMRFieldAnchor(item.ItemId, item.ItemTypeId, item.Sequence, item.NestingLevel, item.Label, item.IsRequired, item.SequenceText, item.Code, item.Uuid, item.GenderRequired, encoding, mapIndexed<CoreMRChoice, CoreMRChoiceAnchor>((i: int32, choice: CoreMRChoice): CoreMRChoiceAnchor => (new CoreMRChoiceAnchor(choice.ChoiceId, choice.Sequence, choice.Text, choice.Score, choice.BitPosition, choice.Code, (i < length(fieldOptions)) ? item_1(i, fieldOptions).OptionKey : (new Shared_FieldOptionKey("00000000-0000-0000-0000-000000000000")))), sortedChoices), field.FieldKey, empty<CoreMRMatrixItemAnchor>());
313
+ return new CoreMRFieldAnchor(item.ItemId, item.ItemTypeId, item.Sequence, item.NestingLevel, item.Label, item.IsRequired, item.SequenceText, item.Code, item.Uuid, item.GenderRequired, encoding, mapIndexed<CoreMRChoice, CoreMRChoiceAnchor>((i: int32, choice: CoreMRChoice): CoreMRChoiceAnchor => (new CoreMRChoiceAnchor(choice.ChoiceId, choice.Sequence, choice.Text, choice.Score, choice.BitPosition, choice.Code, (i < length(fieldOptions)) ? item_1(i, fieldOptions).OptionKey : (new Shared_FieldOptionKey("00000000-0000-0000-0000-000000000000")))), sortedChoices), field.FieldKey, empty<CoreMRMatrixItemAnchor>(), empty<ItemTrigger>());
311
314
  }
312
315
 
313
316
  export class ListMetadata extends Record implements IEquatable<ListMetadata>, IComparable<ListMetadata> {
@@ -335,7 +338,7 @@ export function ListMetadata_$reflection(): TypeInfo {
335
338
  * When listMetadata is Some (from FormListItem during import), IsScored and EncounterTypes are populated.
336
339
  * When elementTypes is Some (from bridge templates endpoint), use it for ValueEncoding; else fallback to CorEMRElementTypeMap.
337
340
  */
338
- export function buildSourceMap(elementTypes: Option<FSharpMap<int32, ElementTypeInfo>>, formData: CoreMRFormData, formSpec: Spec_FormSpec$1<Spec_FieldType_$union>, listMetadata: Option<ListMetadata>): CoreMRSourceMap {
341
+ export function buildSourceMap(elementTypes: Option<FSharpMap<int32, ElementTypeInfo>>, triggersByItemId: FSharpMap<int32, FSharpList<ItemTrigger>>, formData: CoreMRFormData, formSpec: Spec_FormSpec$1<Spec_FieldType_$union>, listMetadata: Option<ListMetadata>): CoreMRSourceMap {
339
342
  const formCode: string = defaultArg(formSpec.Code, `CORE-${formData.Metadata.FormId}`);
340
343
  const choicesByItem: FSharpMap<int32, FSharpList<CoreMRChoice>> = ofList<int32, FSharpList<CoreMRChoice>>(List_groupBy<CoreMRChoice, int32>((c: CoreMRChoice): int32 => c.ItemId, formData.Choices, {
341
344
  Equals: (x: int32, y: int32): boolean => (x === y),
@@ -348,13 +351,14 @@ export function buildSourceMap(elementTypes: Option<FSharpMap<int32, ElementType
348
351
  stepOrder = ((stepOrder + 1) | 0);
349
352
  const formStep: Option<Spec_FormStep$1<Spec_FieldType_$union>> = tryFind_1<Spec_FormStep$1<Spec_FieldType_$union>>((s: Spec_FormStep$1<Spec_FieldType_$union>): boolean => (s.StepOrder === stepOrder), formSpec.Steps);
350
353
  if (formStep != null) {
351
- const step: Spec_FormStep$1<Spec_FieldType_$union> = value_2(formStep);
354
+ const step: Spec_FormStep$1<Spec_FieldType_$union> = value_3(formStep);
352
355
  if (length(section.Items) !== length(step.Fields)) {
353
356
  throw new Error(`CoreMR section mismatch: step ${stepOrder} has ${length(section.Items)} section items but ${length(step.Fields)} fields. Lengths must match.`);
354
357
  }
355
358
  const fieldAnchors: FSharpList<CoreMRFieldAnchor> = mapIndexed<CoreMRItem, CoreMRFieldAnchor>((i: int32, item: CoreMRItem): CoreMRFieldAnchor => {
356
359
  const field: Spec_FormField$1<Spec_FieldType_$union> = item_1(i, step.Fields);
357
- return buildFieldAnchor(elementTypes, item, defaultArg(tryFind<int32, FSharpList<CoreMRChoice>>(item.ItemId, choicesByItem), empty<CoreMRChoice>()), field);
360
+ const anchor: CoreMRFieldAnchor = buildFieldAnchor(elementTypes, item, defaultArg(tryFind<int32, FSharpList<CoreMRChoice>>(item.ItemId, choicesByItem), empty<CoreMRChoice>()), field);
361
+ return new CoreMRFieldAnchor(anchor.ItemId, anchor.ItemTypeId, anchor.Sequence, anchor.NestingLevel, anchor.Label, anchor.IsRequired, anchor.SequenceText, anchor.Code, anchor.Uuid, anchor.GenderRequired, anchor.Encoding, anchor.Choices, anchor.FieldKey, anchor.MatrixItemAnchors, defaultArg(tryFind<int32, FSharpList<ItemTrigger>>(item.ItemId, triggersByItemId), empty<ItemTrigger>()));
358
362
  }, section.Items);
359
363
  const headingItemId: Option<int32> = map<HeadingItem, int32>((h: HeadingItem): int32 => h.ItemId, section.Heading);
360
364
  return new CoreMRStepMap(stepOrder, new CoreMRStepAnchor(headingItemId, section.HeadingSequence, section.HeadingLabel), fieldAnchors);
@@ -372,9 +376,9 @@ export function buildSourceMap(elementTypes: Option<FSharpMap<int32, ElementType
372
376
  * When listMetadata is Some (from FormListItem during import), IsScored and EncounterTypes are populated in the SourceMap.
373
377
  * When elementTypes is Some (from bridge templates endpoint), use it for ValueEncoding; else fallback to CorEMRElementTypeMap.
374
378
  */
375
- export function convertWithMap(formData: CoreMRFormData, listMetadata: Option<ListMetadata>, elementTypes: Option<FSharpMap<int32, ElementTypeInfo>>): CoreMRConversionResult {
379
+ export function convertWithMap(formData: CoreMRFormData, listMetadata: Option<ListMetadata>, elementTypes: Option<FSharpMap<int32, ElementTypeInfo>>, triggersByItemId: FSharpMap<int32, FSharpList<ItemTrigger>>): CoreMRConversionResult {
376
380
  const formSpec: Spec_FormSpec$1<Spec_FieldType_$union> = convertToFormSpec(formData);
377
- return new CoreMRConversionResult(formSpec, buildSourceMap(elementTypes, formData, formSpec, listMetadata));
381
+ return new CoreMRConversionResult(formSpec, buildSourceMap(elementTypes, triggersByItemId, formData, formSpec, listMetadata));
378
382
  }
379
383
 
380
384
  /**
@@ -383,7 +387,9 @@ export function convertWithMap(formData: CoreMRFormData, listMetadata: Option<Li
383
387
  * When elementTypes is Some (from bridge templates endpoint), use it for ValueEncoding; else fallback to CorEMRElementTypeMap.
384
388
  */
385
389
  export function convertWithMapAndProvenance(formData: CoreMRFormData, listMetadata: Option<ListMetadata>, elementTypes: Option<FSharpMap<int32, ElementTypeInfo>>): Spec_FormSpec$1<Spec_FieldType_$union> {
386
- const result: CoreMRConversionResult = convertWithMap(formData, listMetadata, elementTypes);
390
+ const result: CoreMRConversionResult = convertWithMap(formData, listMetadata, elementTypes, empty_1<int32, FSharpList<ItemTrigger>>({
391
+ Compare: comparePrimitives,
392
+ }));
387
393
  const bind$0040: Spec_FormSpec$1<Spec_FieldType_$union> = result.FormSpec;
388
394
  return new Spec_FormSpec$1(bind$0040.Id, bind$0040.Code, bind$0040.Title, bind$0040.Abstract, bind$0040.Version, bind$0040.FormSpecVersion, bind$0040.Steps, bind$0040.CategoryTags, bind$0040.Score, bind$0040.AssociatedCodes, bind$0040.RequiresReview, bind$0040.RequiresReviewAndApproval, bind$0040.ClinicalPathway, bind$0040.Lifecycle, bind$0040.FilledMeta, bind$0040.CustomData, new IntegrationProvenance("coremr", toString(0, Auto_generateBoxedEncoder_437914C6(CoreMRSourceMap_$reflection(), undefined, undefined, undefined)(result.SourceMap))), result.SourceMap.Classification);
389
395
  }