@aehrc/smart-forms-renderer 1.0.0-alpha.42.dev1 → 1.0.0-alpha.42.dev10

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 (490) hide show
  1. package/lib/components/Alert.styles.d.ts +2 -2
  2. package/lib/components/Box.styles.d.ts +3 -3
  3. package/lib/components/FormComponents/AttachmentItem/AttachmentField.js +2 -2
  4. package/lib/components/FormComponents/AttachmentItem/AttachmentField.js.map +1 -1
  5. package/lib/components/FormComponents/AttachmentItem/AttachmentFieldWrapper.js +1 -1
  6. package/lib/components/FormComponents/AttachmentItem/AttachmentFieldWrapper.js.map +1 -1
  7. package/lib/components/FormComponents/AttachmentItem/AttachmentFileCollector.js +1 -1
  8. package/lib/components/FormComponents/AttachmentItem/AttachmentFileCollector.js.map +1 -1
  9. package/lib/components/FormComponents/AttachmentItem/AttachmentFileDropBox.js +1 -1
  10. package/lib/components/FormComponents/AttachmentItem/AttachmentFileDropBox.js.map +1 -1
  11. package/lib/components/FormComponents/AttachmentItem/AttachmentFileDropBox.styles.d.ts +1 -1
  12. package/lib/components/FormComponents/AttachmentItem/AttachmentItem.js +1 -1
  13. package/lib/components/FormComponents/AttachmentItem/AttachmentItem.js.map +1 -1
  14. package/lib/components/FormComponents/AttachmentItem/AttachmentUrlField.js +3 -3
  15. package/lib/components/FormComponents/AttachmentItem/AttachmentUrlField.js.map +1 -1
  16. package/lib/components/FormComponents/BooleanItem/BooleanField.js +4 -4
  17. package/lib/components/FormComponents/BooleanItem/BooleanField.js.map +1 -1
  18. package/lib/components/FormComponents/BooleanItem/BooleanItem.js +2 -2
  19. package/lib/components/FormComponents/BooleanItem/BooleanItem.js.map +1 -1
  20. package/lib/components/FormComponents/Button.styles.d.ts +2 -3
  21. package/lib/components/FormComponents/ChoiceItems/CheckboxOptionList.js.map +1 -1
  22. package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteField.js +2 -2
  23. package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteField.js.map +1 -1
  24. package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteItem.js +1 -1
  25. package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteItem.js.map +1 -1
  26. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.js +1 -1
  27. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.js.map +1 -1
  28. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js +2 -2
  29. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js.map +1 -1
  30. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.js +3 -3
  31. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.js.map +1 -1
  32. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js +2 -2
  33. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js.map +1 -1
  34. package/lib/components/FormComponents/ChoiceItems/ChoiceItemSwitcher.js.map +1 -1
  35. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.js +3 -3
  36. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.js.map +1 -1
  37. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.js.map +1 -1
  38. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.js +1 -1
  39. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.js.map +1 -1
  40. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.js +5 -5
  41. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.js.map +1 -1
  42. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js +1 -1
  43. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js.map +1 -1
  44. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.js +1 -1
  45. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.js.map +1 -1
  46. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.js.map +1 -1
  47. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.js +1 -1
  48. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.js.map +1 -1
  49. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetFields.js +3 -3
  50. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetFields.js.map +1 -1
  51. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetItem.js +1 -1
  52. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetItem.js.map +1 -1
  53. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateField.js +2 -2
  54. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateField.js.map +1 -1
  55. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateItem.js +1 -1
  56. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateItem.js.map +1 -1
  57. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/DatePicker.js +2 -2
  58. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/DatePicker.js.map +1 -1
  59. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/DatePickerButton.js +2 -2
  60. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/DatePickerButton.js.map +1 -1
  61. package/lib/components/FormComponents/DateTimeItems/CustomDateItem/MuiDatePicker.d.ts +2 -1
  62. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomDateTimeItem.js +1 -1
  63. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomDateTimeItem.js.map +1 -1
  64. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.js +2 -2
  65. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.js.map +1 -1
  66. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/DateTimeField.js +1 -1
  67. package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/DateTimeField.js.map +1 -1
  68. package/lib/components/FormComponents/DateTimeItems/utils/parseDate.js.map +1 -1
  69. package/lib/components/FormComponents/DateTimeItems/utils/parseTime.js.map +1 -1
  70. package/lib/components/FormComponents/DecimalItem/DecimalField.js +1 -1
  71. package/lib/components/FormComponents/DecimalItem/DecimalField.js.map +1 -1
  72. package/lib/components/FormComponents/DecimalItem/DecimalItem.js +2 -2
  73. package/lib/components/FormComponents/DecimalItem/DecimalItem.js.map +1 -1
  74. package/lib/components/FormComponents/DisplayItem/DisplayInstructions.js +1 -1
  75. package/lib/components/FormComponents/DisplayItem/DisplayInstructions.js.map +1 -1
  76. package/lib/components/FormComponents/DisplayItem/DisplayInstructions.styles.d.ts +1 -1
  77. package/lib/components/FormComponents/DisplayItem/DisplayItem.js +1 -1
  78. package/lib/components/FormComponents/DisplayItem/DisplayItem.js.map +1 -1
  79. package/lib/components/FormComponents/GridGroup/GridGroup.js +2 -2
  80. package/lib/components/FormComponents/GridGroup/GridGroup.js.map +1 -1
  81. package/lib/components/FormComponents/GridGroup/GridRow.js +2 -2
  82. package/lib/components/FormComponents/GridGroup/GridRow.js.map +1 -1
  83. package/lib/components/FormComponents/GridGroup/GridTable.js +2 -2
  84. package/lib/components/FormComponents/GridGroup/GridTable.js.map +1 -1
  85. package/lib/components/FormComponents/GroupItem/GroupAccordion.styles.d.ts +12 -13
  86. package/lib/components/FormComponents/GroupItem/GroupHeading.js +2 -2
  87. package/lib/components/FormComponents/GroupItem/GroupHeading.js.map +1 -1
  88. package/lib/components/FormComponents/GroupItem/GroupItem.js +1 -1
  89. package/lib/components/FormComponents/GroupItem/GroupItem.js.map +1 -1
  90. package/lib/components/FormComponents/GroupItem/GroupItem.styles.d.ts +2 -3
  91. package/lib/components/FormComponents/GroupItem/GroupItemSwitcher.js.map +1 -1
  92. package/lib/components/FormComponents/GroupItem/GroupItemView.js +7 -7
  93. package/lib/components/FormComponents/GroupItem/GroupItemView.js.map +1 -1
  94. package/lib/components/FormComponents/GroupItem/NextPageButton.js +1 -1
  95. package/lib/components/FormComponents/GroupItem/NextPageButton.js.map +1 -1
  96. package/lib/components/FormComponents/GroupItem/NextTabButton.js +1 -1
  97. package/lib/components/FormComponents/GroupItem/NextTabButton.js.map +1 -1
  98. package/lib/components/FormComponents/GroupItem/PageButtonWrapper.js +1 -1
  99. package/lib/components/FormComponents/GroupItem/PageButtonWrapper.js.map +1 -1
  100. package/lib/components/FormComponents/GroupItem/PreviousPageButton.js +1 -1
  101. package/lib/components/FormComponents/GroupItem/PreviousPageButton.js.map +1 -1
  102. package/lib/components/FormComponents/GroupItem/PreviousTabButton.js +1 -1
  103. package/lib/components/FormComponents/GroupItem/PreviousTabButton.js.map +1 -1
  104. package/lib/components/FormComponents/GroupItem/TabButtonsWrapper.js +1 -1
  105. package/lib/components/FormComponents/GroupItem/TabButtonsWrapper.js.map +1 -1
  106. package/lib/components/FormComponents/IntegerItem/IntegerField.js +1 -1
  107. package/lib/components/FormComponents/IntegerItem/IntegerField.js.map +1 -1
  108. package/lib/components/FormComponents/IntegerItem/IntegerItem.js +1 -1
  109. package/lib/components/FormComponents/IntegerItem/IntegerItem.js.map +1 -1
  110. package/lib/components/FormComponents/Item.styles.d.ts +2 -3
  111. package/lib/components/FormComponents/ItemParts/CheckboxSingle.js.map +1 -1
  112. package/lib/components/FormComponents/ItemParts/CheckboxSingleWithOpenLabel.js +1 -1
  113. package/lib/components/FormComponents/ItemParts/CheckboxSingleWithOpenLabel.js.map +1 -1
  114. package/lib/components/FormComponents/ItemParts/ClearInputButton.js +3 -3
  115. package/lib/components/FormComponents/ItemParts/ClearInputButton.js.map +1 -1
  116. package/lib/components/FormComponents/ItemParts/ContextDisplayItem.js.map +1 -1
  117. package/lib/components/FormComponents/ItemParts/DisplayUnitText.js +1 -1
  118. package/lib/components/FormComponents/ItemParts/DisplayUnitText.js.map +1 -1
  119. package/lib/components/FormComponents/ItemParts/FadingCheckIcon.js +1 -1
  120. package/lib/components/FormComponents/ItemParts/FadingCheckIcon.js.map +1 -1
  121. package/lib/components/FormComponents/ItemParts/FlyoverHoverCard.js +3 -3
  122. package/lib/components/FormComponents/ItemParts/FlyoverHoverCard.js.map +1 -1
  123. package/lib/components/FormComponents/ItemParts/FlyoverItem.js.map +1 -1
  124. package/lib/components/FormComponents/ItemParts/ItemFieldGrid.js +3 -3
  125. package/lib/components/FormComponents/ItemParts/ItemFieldGrid.js.map +1 -1
  126. package/lib/components/FormComponents/ItemParts/ItemLabel.js +2 -2
  127. package/lib/components/FormComponents/ItemParts/ItemLabel.js.map +1 -1
  128. package/lib/components/FormComponents/ItemParts/ItemTextSwitcher.js +3 -3
  129. package/lib/components/FormComponents/ItemParts/ItemTextSwitcher.js.map +1 -1
  130. package/lib/components/FormComponents/ItemParts/RadioButtonWithOpenLabel.js +1 -1
  131. package/lib/components/FormComponents/ItemParts/RadioButtonWithOpenLabel.js.map +1 -1
  132. package/lib/components/FormComponents/ItemParts/RadioOptionList.js.map +1 -1
  133. package/lib/components/FormComponents/Lists.styles.d.ts +2 -3
  134. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteField.js +4 -4
  135. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteField.js.map +1 -1
  136. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteItem.js +1 -1
  137. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteItem.js.map +1 -1
  138. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.js +1 -1
  139. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.js.map +1 -1
  140. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.js +2 -2
  141. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.js.map +1 -1
  142. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetFields.js +3 -3
  143. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetFields.js.map +1 -1
  144. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetItem.js +2 -2
  145. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetItem.js.map +1 -1
  146. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceItemSwitcher.js.map +1 -1
  147. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.js +2 -2
  148. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.js.map +1 -1
  149. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.js +1 -1
  150. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.js.map +1 -1
  151. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetFields.js +4 -4
  152. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetFields.js.map +1 -1
  153. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetItem.js +1 -1
  154. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetItem.js.map +1 -1
  155. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionField.js +1 -1
  156. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionField.js.map +1 -1
  157. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionItem.js +1 -1
  158. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionItem.js.map +1 -1
  159. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetField.js +1 -1
  160. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetField.js.map +1 -1
  161. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetItem.js +1 -1
  162. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetItem.js.map +1 -1
  163. package/lib/components/FormComponents/QuantityItem/QuantityComparatorField.js +1 -1
  164. package/lib/components/FormComponents/QuantityItem/QuantityComparatorField.js.map +1 -1
  165. package/lib/components/FormComponents/QuantityItem/QuantityField.js +1 -1
  166. package/lib/components/FormComponents/QuantityItem/QuantityField.js.map +1 -1
  167. package/lib/components/FormComponents/QuantityItem/QuantityItem.js +2 -2
  168. package/lib/components/FormComponents/QuantityItem/QuantityItem.js.map +1 -1
  169. package/lib/components/FormComponents/QuantityItem/QuantityUnitField.js +1 -5
  170. package/lib/components/FormComponents/QuantityItem/QuantityUnitField.js.map +1 -1
  171. package/lib/components/FormComponents/RepeatGroup/AddItemButton.js +1 -1
  172. package/lib/components/FormComponents/RepeatGroup/AddItemButton.js.map +1 -1
  173. package/lib/components/FormComponents/RepeatGroup/DeleteItemButton.js +1 -1
  174. package/lib/components/FormComponents/RepeatGroup/DeleteItemButton.js.map +1 -1
  175. package/lib/components/FormComponents/RepeatGroup/RepeatGroup.js.map +1 -1
  176. package/lib/components/FormComponents/RepeatGroup/RepeatGroupItem.js +1 -1
  177. package/lib/components/FormComponents/RepeatGroup/RepeatGroupItem.js.map +1 -1
  178. package/lib/components/FormComponents/RepeatGroup/RepeatGroupView.js +9 -9
  179. package/lib/components/FormComponents/RepeatGroup/RepeatGroupView.js.map +1 -1
  180. package/lib/components/FormComponents/RepeatItem/AddItemButton.js +1 -1
  181. package/lib/components/FormComponents/RepeatItem/AddItemButton.js.map +1 -1
  182. package/lib/components/FormComponents/RepeatItem/RemoveItemButton.js +1 -1
  183. package/lib/components/FormComponents/RepeatItem/RemoveItemButton.js.map +1 -1
  184. package/lib/components/FormComponents/RepeatItem/RepeatField.js +1 -1
  185. package/lib/components/FormComponents/RepeatItem/RepeatField.js.map +1 -1
  186. package/lib/components/FormComponents/RepeatItem/RepeatItem.js +3 -3
  187. package/lib/components/FormComponents/RepeatItem/RepeatItem.js.map +1 -1
  188. package/lib/components/FormComponents/RepeatItem/RepeatItem.styles.d.ts +3 -6
  189. package/lib/components/FormComponents/SingleItem/NestedSingleItemAccordion.styles.d.ts +14 -17
  190. package/lib/components/FormComponents/SingleItem/SingleItem.js.map +1 -1
  191. package/lib/components/FormComponents/SingleItem/SingleItemSwitcher.js.map +1 -1
  192. package/lib/components/FormComponents/SingleItem/SingleItemView.js +3 -3
  193. package/lib/components/FormComponents/SingleItem/SingleItemView.js.map +1 -1
  194. package/lib/components/FormComponents/SingleItem/SingleNestedItems.js +2 -2
  195. package/lib/components/FormComponents/SingleItem/SingleNestedItems.js.map +1 -1
  196. package/lib/components/FormComponents/SingleItem/StopPropagationWrapper.js +2 -2
  197. package/lib/components/FormComponents/SingleItem/StopPropagationWrapper.js.map +1 -1
  198. package/lib/components/FormComponents/SliderItem/Slider.styles.d.ts +3 -4
  199. package/lib/components/FormComponents/SliderItem/SliderDisplayValue.js +1 -1
  200. package/lib/components/FormComponents/SliderItem/SliderDisplayValue.js.map +1 -1
  201. package/lib/components/FormComponents/SliderItem/SliderField.js +2 -2
  202. package/lib/components/FormComponents/SliderItem/SliderField.js.map +1 -1
  203. package/lib/components/FormComponents/SliderItem/SliderItem.js +2 -2
  204. package/lib/components/FormComponents/SliderItem/SliderItem.js.map +1 -1
  205. package/lib/components/FormComponents/SliderItem/SliderLabels.js +2 -2
  206. package/lib/components/FormComponents/SliderItem/SliderLabels.js.map +1 -1
  207. package/lib/components/FormComponents/StringItem/StringField.js +1 -1
  208. package/lib/components/FormComponents/StringItem/StringField.js.map +1 -1
  209. package/lib/components/FormComponents/StringItem/StringItem.js +1 -1
  210. package/lib/components/FormComponents/StringItem/StringItem.js.map +1 -1
  211. package/lib/components/FormComponents/Tables/AddRowButton.js +1 -1
  212. package/lib/components/FormComponents/Tables/AddRowButton.js.map +1 -1
  213. package/lib/components/FormComponents/Tables/GroupTable.js.map +1 -1
  214. package/lib/components/FormComponents/Tables/GroupTableBody.js +2 -2
  215. package/lib/components/FormComponents/Tables/GroupTableBody.js.map +1 -1
  216. package/lib/components/FormComponents/Tables/GroupTableRow.js +2 -2
  217. package/lib/components/FormComponents/Tables/GroupTableRow.js.map +1 -1
  218. package/lib/components/FormComponents/Tables/GroupTableRowCells.js +1 -1
  219. package/lib/components/FormComponents/Tables/GroupTableRowCells.js.map +1 -1
  220. package/lib/components/FormComponents/Tables/GroupTableView.js +6 -6
  221. package/lib/components/FormComponents/Tables/GroupTableView.js.map +1 -1
  222. package/lib/components/FormComponents/Tables/RemoveRowButton.js +1 -1
  223. package/lib/components/FormComponents/Tables/RemoveRowButton.js.map +1 -1
  224. package/lib/components/FormComponents/Tables/SelectRowButton.js +1 -1
  225. package/lib/components/FormComponents/Tables/SelectRowButton.js.map +1 -1
  226. package/lib/components/FormComponents/Tables/Table.styles.d.ts +2 -3
  227. package/lib/components/FormComponents/TextItem/TextField.js +1 -1
  228. package/lib/components/FormComponents/TextItem/TextField.js.map +1 -1
  229. package/lib/components/FormComponents/TextItem/TextItem.js +1 -1
  230. package/lib/components/FormComponents/TextItem/TextItem.js.map +1 -1
  231. package/lib/components/FormComponents/TimeItem/TimeField.js +2 -2
  232. package/lib/components/FormComponents/TimeItem/TimeField.js.map +1 -1
  233. package/lib/components/FormComponents/TimeItem/TimeItem.js +1 -1
  234. package/lib/components/FormComponents/TimeItem/TimeItem.js.map +1 -1
  235. package/lib/components/FormComponents/UrlItem/UrlField.js +1 -1
  236. package/lib/components/FormComponents/UrlItem/UrlField.js.map +1 -1
  237. package/lib/components/FormComponents/UrlItem/UrlItem.js +1 -1
  238. package/lib/components/FormComponents/UrlItem/UrlItem.js.map +1 -1
  239. package/lib/components/Lists.styles.d.ts +2 -3
  240. package/lib/components/Renderer/BaseRenderer.js +3 -3
  241. package/lib/components/Renderer/BaseRenderer.js.map +1 -1
  242. package/lib/components/Renderer/FormBodyCollapsible.js +2 -2
  243. package/lib/components/Renderer/FormBodyCollapsible.js.map +1 -1
  244. package/lib/components/Renderer/FormBodyPageContainer.js +4 -4
  245. package/lib/components/Renderer/FormBodyPageContainer.js.map +1 -1
  246. package/lib/components/Renderer/FormBodyPaginated.js +4 -4
  247. package/lib/components/Renderer/FormBodyPaginated.js.map +1 -1
  248. package/lib/components/Renderer/FormBodySingleCollapsible.js +3 -3
  249. package/lib/components/Renderer/FormBodySingleCollapsible.js.map +1 -1
  250. package/lib/components/Renderer/FormBodySingleCollapsibleWrapper.js +1 -1
  251. package/lib/components/Renderer/FormBodySingleCollapsibleWrapper.js.map +1 -1
  252. package/lib/components/Renderer/FormBodyTabbed.js +6 -6
  253. package/lib/components/Renderer/FormBodyTabbed.js.map +1 -1
  254. package/lib/components/Renderer/FormTopLevelItem.js +2 -2
  255. package/lib/components/Renderer/FormTopLevelItem.js.map +1 -1
  256. package/lib/components/Renderer/SmartFormsRenderer.js +2 -2
  257. package/lib/components/Renderer/SmartFormsRenderer.js.map +1 -1
  258. package/lib/components/Tabs/CompleteTabButton.js +1 -1
  259. package/lib/components/Tabs/CompleteTabButton.js.map +1 -1
  260. package/lib/components/Tabs/FormBodySingleTab.js +2 -2
  261. package/lib/components/Tabs/FormBodySingleTab.js.map +1 -1
  262. package/lib/components/Tabs/FormBodyTabList.js +1 -1
  263. package/lib/components/Tabs/FormBodyTabList.js.map +1 -1
  264. package/lib/components/Tabs/FormBodyTabListWrapper.js +1 -1
  265. package/lib/components/Tabs/FormBodyTabListWrapper.js.map +1 -1
  266. package/lib/components/Tabs/ShowCompletedTabsSection.js +2 -2
  267. package/lib/components/Tabs/ShowCompletedTabsSection.js.map +1 -1
  268. package/lib/hooks/UseFileDrop.js.map +1 -1
  269. package/lib/hooks/useAttachmentUrlValidation.js.map +1 -1
  270. package/lib/hooks/useBooleanCalculatedExpression.js.map +1 -1
  271. package/lib/hooks/useBuildForm.js.map +1 -1
  272. package/lib/hooks/useCodingCalculatedExpression.js.map +1 -1
  273. package/lib/hooks/useDateTimeNonEmpty.js.map +1 -1
  274. package/lib/hooks/useDateValidation.js.map +1 -1
  275. package/lib/hooks/useDecimalCalculatedExpression.js.map +1 -1
  276. package/lib/hooks/useDisplayCqfAndCalculatedExpression.js.map +1 -1
  277. package/lib/hooks/useFocusTabHeading.js.map +1 -1
  278. package/lib/hooks/useGroupTableRows.d.ts +1 -0
  279. package/lib/hooks/useHidden.js.map +1 -1
  280. package/lib/hooks/useInitialiseForm.js.map +1 -1
  281. package/lib/hooks/useInitialiseGroupTableRows.js.map +1 -1
  282. package/lib/hooks/useInitialiseRepeatAnswers.js.map +1 -1
  283. package/lib/hooks/useInitialiseRepeatGroups.js.map +1 -1
  284. package/lib/hooks/useIntegerCalculatedExpression.js.map +1 -1
  285. package/lib/hooks/useNextAndPreviousVisiblePages.js.map +1 -1
  286. package/lib/hooks/useNextAndPreviousVisibleTabs.js.map +1 -1
  287. package/lib/hooks/useOpenLabel.d.ts +1 -0
  288. package/lib/hooks/useOpenLabel.js.map +1 -1
  289. package/lib/hooks/useParseXhtml.js +1 -1
  290. package/lib/hooks/useParseXhtml.js.map +1 -1
  291. package/lib/hooks/useQuantityCalculatedExpression.js.map +1 -1
  292. package/lib/hooks/useReadOnly.js.map +1 -1
  293. package/lib/hooks/useResponsive.js.map +1 -1
  294. package/lib/hooks/useStringCalculatedExpression.js.map +1 -1
  295. package/lib/hooks/useTerminologyServerQuery.js.map +1 -1
  296. package/lib/hooks/useTimeValidation.js.map +1 -1
  297. package/lib/hooks/useValidationFeedback.js +1 -1
  298. package/lib/hooks/useValidationFeedback.js.map +1 -1
  299. package/lib/hooks/useValueSetCodings.js.map +1 -1
  300. package/lib/stores/questionnaireStore.d.ts +1 -1
  301. package/lib/stores/questionnaireStore.js +1 -1
  302. package/lib/stores/questionnaireStore.js.map +1 -1
  303. package/lib/stores/rendererStylingStore.d.ts +4 -4
  304. package/lib/stores/selector.js.map +1 -1
  305. package/lib/stories/storybookWrappers/InitialiseFormWrapperForStorybook.js +2 -2
  306. package/lib/stories/storybookWrappers/InitialiseFormWrapperForStorybook.js.map +1 -1
  307. package/lib/theme/RendererThemeProvider.js +1 -1
  308. package/lib/theme/RendererThemeProvider.js.map +1 -1
  309. package/lib/theme/themeOptions.js +24 -24
  310. package/lib/theme/themeOptions.js.map +1 -1
  311. package/lib/theme/typography.d.ts +2 -2
  312. package/lib/theme/typography.js +15 -15
  313. package/lib/theme/typography.js.map +1 -1
  314. package/lib/utils/calculatedExpression.js.map +1 -1
  315. package/lib/utils/choice.js.map +1 -1
  316. package/lib/utils/computedUpdates.js.map +1 -1
  317. package/lib/utils/enableWhen.js.map +1 -1
  318. package/lib/utils/enableWhenExpression.js.map +1 -1
  319. package/lib/utils/extractObservation.js.map +1 -1
  320. package/lib/utils/fhirpath.js +1 -1
  321. package/lib/utils/fhirpath.js.map +1 -1
  322. package/lib/utils/fileUtils.js.map +1 -1
  323. package/lib/utils/formChanges.js.map +1 -1
  324. package/lib/utils/genericRecursive.js.map +1 -1
  325. package/lib/utils/getExpressionsFromItem.js.map +1 -1
  326. package/lib/utils/headingVariant.js.map +1 -1
  327. package/lib/utils/initialise.js.map +1 -1
  328. package/lib/utils/itemControl.js.map +1 -1
  329. package/lib/utils/manageForm.js.map +1 -1
  330. package/lib/utils/mapItem.js.map +1 -1
  331. package/lib/utils/misc.js.map +1 -1
  332. package/lib/utils/openChoice.js.map +1 -1
  333. package/lib/utils/page.js.map +1 -1
  334. package/lib/utils/parameterisedValueSets.js.map +1 -1
  335. package/lib/utils/parseInputs.js.map +1 -1
  336. package/lib/utils/qItem.js.map +1 -1
  337. package/lib/utils/qrItem.js.map +1 -1
  338. package/lib/utils/quantity.js.map +1 -1
  339. package/lib/utils/questionnaireResponseStoreUtils/updatableResponseItems.js.map +1 -1
  340. package/lib/utils/questionnaireStoreUtils/addAdditionalVariables.js.map +1 -1
  341. package/lib/utils/questionnaireStoreUtils/addDisplayToCodings.js +4 -4
  342. package/lib/utils/questionnaireStoreUtils/addDisplayToCodings.js.map +1 -1
  343. package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js.map +1 -1
  344. package/lib/utils/questionnaireStoreUtils/extractContainedValueSets.js.map +1 -1
  345. package/lib/utils/questionnaireStoreUtils/extractLaunchContext.js.map +1 -1
  346. package/lib/utils/questionnaireStoreUtils/extractOtherExtensions.js +1 -1
  347. package/lib/utils/questionnaireStoreUtils/extractOtherExtensions.js.map +1 -1
  348. package/lib/utils/questionnaireStoreUtils/extractPages.js.map +1 -1
  349. package/lib/utils/questionnaireStoreUtils/extractTabs.js.map +1 -1
  350. package/lib/utils/questionnaireStoreUtils/extractTargetConstraint.js.map +1 -1
  351. package/lib/utils/questionnaireStoreUtils/extractVariables.js.map +1 -1
  352. package/lib/utils/questionnaireStoreUtils/insertAnswerOptions.js.map +1 -1
  353. package/lib/utils/questionnaireStoreUtils/resolveValueSets.js +1 -1
  354. package/lib/utils/questionnaireStoreUtils/resolveValueSets.js.map +1 -1
  355. package/lib/utils/removeEmptyAnswers.js.map +1 -1
  356. package/lib/utils/removeRepeatId.js.map +1 -1
  357. package/lib/utils/repopulateIntoResponse.js.map +1 -1
  358. package/lib/utils/repopulateItems.js.map +1 -1
  359. package/lib/utils/slider.js.map +1 -1
  360. package/lib/utils/tabs.js.map +1 -1
  361. package/lib/utils/targetConstraint.js +2 -2
  362. package/lib/utils/targetConstraint.js.map +1 -1
  363. package/lib/utils/validate.d.ts +40 -40
  364. package/lib/utils/validate.js.map +1 -1
  365. package/lib/utils/valueSet.js.map +1 -1
  366. package/package.json +18 -23
  367. package/src/components/FormComponents/AttachmentItem/AttachmentFileDropBox.tsx +1 -1
  368. package/src/components/FormComponents/DecimalItem/DecimalField.tsx +1 -1
  369. package/src/components/FormComponents/ItemParts/DisplayUnitText.tsx +5 -1
  370. package/src/components/FormComponents/ItemParts/ItemFieldGrid.tsx +5 -3
  371. package/src/components/FormComponents/ItemParts/ItemTextSwitcher.tsx +2 -2
  372. package/src/components/FormComponents/QuantityItem/QuantityUnitField.tsx +1 -10
  373. package/src/components/Renderer/FormBodyPageContainer.tsx +2 -2
  374. package/src/components/Renderer/FormBodyPaginated.tsx +1 -1
  375. package/src/components/Renderer/FormBodyTabbed.tsx +8 -7
  376. package/src/theme/typography.ts +2 -2
  377. package/tsconfig.json +1 -1
  378. package/.storybook/main.ts +0 -34
  379. package/.storybook/preview.tsx +0 -40
  380. package/src/stories/assets/fhirClient/mockFhirClient.ts +0 -52
  381. package/src/stories/assets/patients/PatSmartForm.ts +0 -281
  382. package/src/stories/assets/practitioners/PracPrimaryPeter.ts +0 -38
  383. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreAllergyIntolerance.json +0 -209
  384. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreCondition.json +0 -220
  385. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreEncounter.json +0 -299
  386. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreImmunization.json +0 -175
  387. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreMedicationRequest.json +0 -229
  388. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBP.json +0 -359
  389. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyHeight.json +0 -195
  390. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyWeight.json +0 -195
  391. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationHeartRate.json +0 -195
  392. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationSmokingStatus.json +0 -174
  393. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePatient.json +0 -495
  394. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitioner.json +0 -139
  395. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitionerRole.json +0 -216
  396. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreProcedure.json +0 -199
  397. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreRespirationRate.json +0 -195
  398. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreWaistCircumference.json +0 -195
  399. package/src/stories/assets/questionnaires/QAdvancedAdditionalDisplayContent.ts +0 -113
  400. package/src/stories/assets/questionnaires/QAdvancedControlAppearance.ts +0 -865
  401. package/src/stories/assets/questionnaires/QAdvancedOther.ts +0 -494
  402. package/src/stories/assets/questionnaires/QAdvancedTextApperance.ts +0 -503
  403. package/src/stories/assets/questionnaires/QAttachment.ts +0 -38
  404. package/src/stories/assets/questionnaires/QAuCoreTesting.ts +0 -3796
  405. package/src/stories/assets/questionnaires/QBehaviorCalculations.ts +0 -643
  406. package/src/stories/assets/questionnaires/QBehaviorChoiceRestriction.ts +0 -281
  407. package/src/stories/assets/questionnaires/QBehaviorOther.ts +0 -1241
  408. package/src/stories/assets/questionnaires/QBehaviorValueConstraints.ts +0 -508
  409. package/src/stories/assets/questionnaires/QBoolean.ts +0 -180
  410. package/src/stories/assets/questionnaires/QButtonTester.ts +0 -497
  411. package/src/stories/assets/questionnaires/QChoice.ts +0 -493
  412. package/src/stories/assets/questionnaires/QDate.ts +0 -56
  413. package/src/stories/assets/questionnaires/QDateTime.ts +0 -56
  414. package/src/stories/assets/questionnaires/QDecimal.ts +0 -56
  415. package/src/stories/assets/questionnaires/QDisplay.ts +0 -197
  416. package/src/stories/assets/questionnaires/QFormPopulation.ts +0 -1349
  417. package/src/stories/assets/questionnaires/QGroup.ts +0 -52
  418. package/src/stories/assets/questionnaires/QGroupTableTester.ts +0 -461
  419. package/src/stories/assets/questionnaires/QIdRemoverDebugger.ts +0 -161
  420. package/src/stories/assets/questionnaires/QInteger.ts +0 -119
  421. package/src/stories/assets/questionnaires/QItemControlDisplay.ts +0 -558
  422. package/src/stories/assets/questionnaires/QItemControlGroup.ts +0 -1530
  423. package/src/stories/assets/questionnaires/QItemControlQuestion.ts +0 -1271
  424. package/src/stories/assets/questionnaires/QMbs715Tester.ts +0 -32888
  425. package/src/stories/assets/questionnaires/QOpenChoice.ts +0 -151
  426. package/src/stories/assets/questionnaires/QParameterisedValueSets.ts +0 -312
  427. package/src/stories/assets/questionnaires/QPrePopTester.ts +0 -543
  428. package/src/stories/assets/questionnaires/QQuantity.ts +0 -365
  429. package/src/stories/assets/questionnaires/QReference.ts +0 -38
  430. package/src/stories/assets/questionnaires/QSingleItems.ts +0 -251
  431. package/src/stories/assets/questionnaires/QString.ts +0 -131
  432. package/src/stories/assets/questionnaires/QTerminologyControl.ts +0 -59
  433. package/src/stories/assets/questionnaires/QText.ts +0 -169
  434. package/src/stories/assets/questionnaires/QTime.ts +0 -38
  435. package/src/stories/assets/questionnaires/QUrl.ts +0 -38
  436. package/src/stories/assets/questionnaires/QValidateTester.ts +0 -118
  437. package/src/stories/assets/questionnaires/index.ts +0 -43
  438. package/src/stories/itemTypes/Attachment.stories.tsx +0 -39
  439. package/src/stories/itemTypes/Boolean.stories.tsx +0 -65
  440. package/src/stories/itemTypes/Choice.stories.tsx +0 -78
  441. package/src/stories/itemTypes/Date.stories.tsx +0 -46
  442. package/src/stories/itemTypes/DateTime.stories.tsx +0 -45
  443. package/src/stories/itemTypes/Decimal.stories.tsx +0 -56
  444. package/src/stories/itemTypes/Display.stories.tsx +0 -55
  445. package/src/stories/itemTypes/Group.stories.tsx +0 -39
  446. package/src/stories/itemTypes/Integer.stories.tsx +0 -55
  447. package/src/stories/itemTypes/OpenChoice.stories.tsx +0 -64
  448. package/src/stories/itemTypes/Quantity.stories.tsx +0 -71
  449. package/src/stories/itemTypes/Reference.stories.tsx +0 -39
  450. package/src/stories/itemTypes/String.stories.tsx +0 -51
  451. package/src/stories/itemTypes/Text.stories.tsx +0 -51
  452. package/src/stories/itemTypes/Time.stories.tsx +0 -39
  453. package/src/stories/itemTypes/Url.stories.tsx +0 -39
  454. package/src/stories/sdc/AdvancedAdditionalDisplayContent.stories.tsx +0 -51
  455. package/src/stories/sdc/AdvancedControlAppearance.stories.tsx +0 -90
  456. package/src/stories/sdc/AdvancedOther.stories.tsx +0 -76
  457. package/src/stories/sdc/AdvancedTextAppearance.stories.tsx +0 -104
  458. package/src/stories/sdc/BehaviorCalculations.stories.tsx +0 -69
  459. package/src/stories/sdc/BehaviorChoiceRestriction.stories.tsx +0 -76
  460. package/src/stories/sdc/BehaviorOther.stories.tsx +0 -97
  461. package/src/stories/sdc/BehaviorValueConstraints.stories.tsx +0 -88
  462. package/src/stories/sdc/FormPopulation.stories.tsx +0 -97
  463. package/src/stories/sdc/ItemControlDisplay.stories.tsx +0 -69
  464. package/src/stories/sdc/ItemControlGroup.stories.tsx +0 -90
  465. package/src/stories/sdc/ItemControlQuestion.stories.tsx +0 -118
  466. package/src/stories/sdc/OtherExtensions.stories.tsx +0 -39
  467. package/src/stories/sdc/ParameterisedValueSets.stories.tsx +0 -48
  468. package/src/stories/storybookWrappers/BuildFormButtonForStorybook.tsx +0 -54
  469. package/src/stories/storybookWrappers/BuildFormButtonTesterWrapperForStorybook.tsx +0 -76
  470. package/src/stories/storybookWrappers/BuildFormWrapperForStorybook.tsx +0 -61
  471. package/src/stories/storybookWrappers/FormValidationTesterWrapperForStorybook.tsx +0 -70
  472. package/src/stories/storybookWrappers/FormValidationViewerForStorybook.tsx +0 -28
  473. package/src/stories/storybookWrappers/IdRemoverButtonForStorybook.tsx +0 -49
  474. package/src/stories/storybookWrappers/IdRemoverDebuggerWrapperForStorybook.tsx +0 -84
  475. package/src/stories/storybookWrappers/InitialiseFormWrapperForStorybook.tsx +0 -105
  476. package/src/stories/storybookWrappers/PrePopButtonForStorybook.tsx +0 -56
  477. package/src/stories/storybookWrappers/PrePopWrapperForStorybook.tsx +0 -114
  478. package/src/stories/storybookWrappers/TestCssSheet.css +0 -17
  479. package/src/stories/storybookWrappers/ValidateFormButtonForStorybook.tsx +0 -41
  480. package/src/stories/storybookWrappers/globals.ts +0 -18
  481. package/src/stories/storybookWrappers/iframeResizerChild.js +0 -1063
  482. package/src/stories/storybookWrappers/index.ts +0 -19
  483. package/src/stories/storybookWrappers/populateCallbackForStorybook.ts +0 -55
  484. package/src/stories/testing/AuCoreTester.stories.tsx +0 -196
  485. package/src/stories/testing/BuildFormButtonTesterWrapper.stories.tsx +0 -40
  486. package/src/stories/testing/GroupTableTester.stories.tsx +0 -39
  487. package/src/stories/testing/IdRemoverDebuggerWrapper.stories.tsx +0 -39
  488. package/src/stories/testing/Mbs715Tester.stories.tsx +0 -57
  489. package/src/stories/testing/PrePopButtonTesterWrapper.stories.tsx +0 -55
  490. package/src/stories/testing/ValidateFormTesterWrapper.stories.tsx +0 -39
@@ -1,365 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
-
18
- import type { Questionnaire, QuestionnaireResponse } from 'fhir/r4';
19
-
20
- export const qQuantityBasic: Questionnaire = {
21
- resourceType: 'Questionnaire',
22
- id: 'QuantityBasic',
23
- name: 'QuantityBasic',
24
- title: 'Quantity Basic',
25
- version: '0.1.0',
26
- status: 'draft',
27
- publisher: 'AEHRC CSIRO',
28
- date: '2024-05-01',
29
- url: 'https://smartforms.csiro.au/docs/components/quantity/basic',
30
- item: [
31
- {
32
- extension: [
33
- {
34
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
35
- valueCoding: { system: 'http://unitsofmeasure.org', code: 'kg', display: 'kg' }
36
- }
37
- ],
38
- linkId: 'body-weight',
39
- type: 'quantity',
40
- repeats: false,
41
- text: 'Body Weight'
42
- },
43
- {
44
- extension: [
45
- {
46
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
47
- valueCoding: { system: 'http://unitsofmeasure.org', code: 'kg', display: 'kg' }
48
- }
49
- ],
50
- linkId: 'body-weight-comparator',
51
- type: 'quantity',
52
- repeats: false,
53
- text: 'Body Weight (with comparator symbol)'
54
- }
55
- ]
56
- };
57
-
58
- export const qrQuantityBasicResponse: QuestionnaireResponse = {
59
- resourceType: 'QuestionnaireResponse',
60
- status: 'in-progress',
61
- item: [
62
- {
63
- linkId: 'body-weight',
64
- answer: [
65
- {
66
- valueQuantity: {
67
- value: 80,
68
- unit: 'kg',
69
- system: 'http://unitsofmeasure.org',
70
- code: 'kg'
71
- }
72
- }
73
- ],
74
- text: 'Body Weight'
75
- },
76
- {
77
- linkId: 'body-weight-comparator',
78
- answer: [
79
- {
80
- valueQuantity: {
81
- value: 90,
82
- comparator: '<',
83
- unit: 'kg',
84
- system: 'http://unitsofmeasure.org',
85
- code: 'kg'
86
- }
87
- }
88
- ],
89
- text: 'Body Weight (with comparator symbol)'
90
- }
91
- ],
92
- questionnaire: 'https://smartforms.csiro.au/docs/components/quantity/basic'
93
- };
94
-
95
- export const qQuantityUnitOption: Questionnaire = {
96
- resourceType: 'Questionnaire',
97
- id: 'QuantityUnitOption',
98
- name: 'QuantityUnitOption',
99
- title: 'Quantity UnitOption',
100
- version: '0.1.0',
101
- status: 'draft',
102
- publisher: 'AEHRC CSIRO',
103
- date: '2024-07-27',
104
- url: 'https://smartforms.csiro.au/docs/components/quantity/unit-option',
105
- item: [
106
- {
107
- linkId: 'duration-single-unit-guidance',
108
- text: 'If there is only one unitOption, it will be rendered as if a "http://hl7.org/fhir/StructureDefinition/questionnaire-unit" extension is used.',
109
- type: 'display'
110
- },
111
- {
112
- linkId: 'duration-single-unit',
113
- text: 'Duration (single unit)',
114
- type: 'quantity',
115
- extension: [
116
- {
117
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
118
- valueCoding: {
119
- system: 'http://unitsofmeasure.org',
120
- code: 'd',
121
- display: 'Day(s)'
122
- }
123
- }
124
- ]
125
- },
126
- {
127
- linkId: 'duration-multi-unit-guidance',
128
- text: 'If there are multiple unitOptions, they will be rendered in a separate dropdown field.',
129
- type: 'display'
130
- },
131
- {
132
- linkId: 'duration-multi-unit',
133
- text: 'Duration (multiple units)',
134
- type: 'quantity',
135
- extension: [
136
- {
137
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
138
- valueCoding: {
139
- system: 'http://unitsofmeasure.org',
140
- code: 'd',
141
- display: 'Day(s)'
142
- }
143
- },
144
- {
145
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
146
- valueCoding: {
147
- system: 'http://unitsofmeasure.org',
148
- code: 'wk',
149
- display: 'Week(s)'
150
- }
151
- },
152
- {
153
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
154
- valueCoding: {
155
- system: 'http://unitsofmeasure.org',
156
- code: 'mo',
157
- display: 'Month(s)'
158
- }
159
- },
160
- {
161
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
162
- valueCoding: {
163
- system: 'http://unitsofmeasure.org',
164
- code: 'a',
165
- display: 'Year(s)'
166
- }
167
- },
168
- {
169
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
170
- valueCoding: {
171
- system: 'http://unitsofmeasure.org',
172
- code: 's',
173
- display: 'Second(s)'
174
- }
175
- },
176
- {
177
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
178
- valueCoding: {
179
- system: 'http://unitsofmeasure.org',
180
- code: 'min',
181
- display: 'Minute(s)'
182
- }
183
- },
184
- {
185
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
186
- valueCoding: {
187
- system: 'http://unitsofmeasure.org',
188
- code: 'hour',
189
- display: 'Hour(s)'
190
- }
191
- }
192
- ]
193
- },
194
- {
195
- linkId: 'duration-multi-unit-comparator',
196
- text: 'Duration (multiple units, with comparator symbol)',
197
- type: 'quantity',
198
- extension: [
199
- {
200
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
201
- valueCoding: {
202
- system: 'http://unitsofmeasure.org',
203
- code: 'd',
204
- display: 'Day(s)'
205
- }
206
- },
207
- {
208
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
209
- valueCoding: {
210
- system: 'http://unitsofmeasure.org',
211
- code: 'wk',
212
- display: 'Week(s)'
213
- }
214
- },
215
- {
216
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
217
- valueCoding: {
218
- system: 'http://unitsofmeasure.org',
219
- code: 'mo',
220
- display: 'Month(s)'
221
- }
222
- },
223
- {
224
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
225
- valueCoding: {
226
- system: 'http://unitsofmeasure.org',
227
- code: 'a',
228
- display: 'Year(s)'
229
- }
230
- },
231
- {
232
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
233
- valueCoding: {
234
- system: 'http://unitsofmeasure.org',
235
- code: 's',
236
- display: 'Second(s)'
237
- }
238
- },
239
- {
240
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
241
- valueCoding: {
242
- system: 'http://unitsofmeasure.org',
243
- code: 'min',
244
- display: 'Minute(s)'
245
- }
246
- },
247
- {
248
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption',
249
- valueCoding: {
250
- system: 'http://unitsofmeasure.org',
251
- code: 'hour',
252
- display: 'Hour(s)'
253
- }
254
- }
255
- ]
256
- }
257
- ]
258
- };
259
-
260
- export const qrQuantityUnitOptionResponse: QuestionnaireResponse = {
261
- resourceType: 'QuestionnaireResponse',
262
- status: 'in-progress',
263
- item: [
264
- {
265
- linkId: 'duration-single-unit',
266
- answer: [
267
- {
268
- valueQuantity: {
269
- value: 2,
270
- unit: 'Day(s)',
271
- system: 'http://unitsofmeasure.org',
272
- code: 'd'
273
- }
274
- }
275
- ],
276
- text: 'Duration'
277
- },
278
- {
279
- linkId: 'duration-multi-unit',
280
- answer: [
281
- {
282
- valueQuantity: {
283
- value: 48,
284
- unit: 'Hour(s)',
285
- system: 'http://unitsofmeasure.org',
286
- code: 'hour'
287
- }
288
- }
289
- ],
290
- text: 'Duration'
291
- },
292
- {
293
- linkId: 'duration-multi-unit-comparator',
294
- answer: [
295
- {
296
- valueQuantity: {
297
- value: 48,
298
- comparator: '>=',
299
- unit: 'Hour(s)',
300
- system: 'http://unitsofmeasure.org',
301
- code: 'hour'
302
- }
303
- }
304
- ],
305
- text: 'Duration'
306
- }
307
- ],
308
- questionnaire: 'https://smartforms.csiro.au/docs/components/quantity/unit-option'
309
- };
310
-
311
- export const qQuantityCalculation: Questionnaire = {
312
- resourceType: 'Questionnaire',
313
- id: 'QuantityCalculation',
314
- name: 'QuantityCalculation',
315
- title: 'Quantity Calculation',
316
- version: '0.1.0',
317
- status: 'draft',
318
- publisher: 'AEHRC CSIRO',
319
- date: '2024-05-01',
320
- url: 'https://smartforms.csiro.au/docs/components/quantity/calculation',
321
- extension: [
322
- {
323
- url: 'http://hl7.org/fhir/StructureDefinition/variable',
324
- valueExpression: {
325
- name: 'durationInDays',
326
- language: 'text/fhirpath',
327
- expression: "item.where(linkId='duration-in-days').answer.value"
328
- }
329
- }
330
- ],
331
- item: [
332
- {
333
- extension: [
334
- {
335
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
336
- valueCoding: { system: 'http://unitsofmeasure.org', code: 'd', display: 'days' }
337
- }
338
- ],
339
- linkId: 'duration-in-days',
340
- type: 'quantity',
341
- repeats: false,
342
- text: 'Duration in Days'
343
- },
344
- {
345
- extension: [
346
- {
347
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
348
- valueCoding: { system: 'http://unitsofmeasure.org', code: 'h', display: 'hours' }
349
- },
350
- {
351
- url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression',
352
- valueExpression: {
353
- description: 'Duration In Hours',
354
- language: 'text/fhirpath',
355
- expression: '%durationInDays.value * 24'
356
- }
357
- }
358
- ],
359
- linkId: 'duration-in-hours',
360
- type: 'quantity',
361
- repeats: false,
362
- text: 'Duration in Hours'
363
- }
364
- ]
365
- };
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
-
18
- import type { Questionnaire } from 'fhir/r4';
19
-
20
- export const qReferenceBasic: Questionnaire = {
21
- resourceType: 'Questionnaire',
22
- id: 'ReferenceBasic',
23
- name: 'ReferenceBasic',
24
- title: 'Reference Basic',
25
- version: '0.1.0',
26
- status: 'draft',
27
- publisher: 'AEHRC CSIRO',
28
- date: '2024-05-01',
29
- url: 'https://smartforms.csiro.au/docs/components/reference/basic',
30
- item: [
31
- {
32
- linkId: 'patient-reference',
33
- type: 'reference',
34
- repeats: false,
35
- text: 'Patient Reference'
36
- }
37
- ]
38
- };
@@ -1,251 +0,0 @@
1
- import type { Questionnaire } from 'fhir/r4';
2
-
3
- export const qBooleanItem: Questionnaire = {
4
- resourceType: 'Questionnaire',
5
- id: 'BooleanBasic',
6
- name: 'BooleanBasic',
7
- title: 'Boolean Basic',
8
- version: '0.1.0',
9
- status: 'draft',
10
- publisher: 'AEHRC CSIRO',
11
- date: '2024-05-01',
12
- url: 'https://smartforms.csiro.au/docs/components/boolean',
13
- item: [
14
- {
15
- linkId: 'eaten-boolean',
16
- type: 'boolean',
17
- repeats: false,
18
- text: 'Have you eaten yet?'
19
- }
20
- ]
21
- };
22
-
23
- export const qDecimalItem: Questionnaire = {
24
- resourceType: 'Questionnaire',
25
- id: 'DecimalBasic',
26
- name: 'DecimalBasic',
27
- title: 'Decimal Basic',
28
- version: '0.1.0',
29
- status: 'draft',
30
- publisher: 'AEHRC CSIRO',
31
- date: '2024-05-01',
32
- url: 'https://smartforms.csiro.au/docs/components/decimal',
33
- item: [
34
- {
35
- linkId: 'weight-decimal',
36
- type: 'decimal',
37
- repeats: false,
38
- text: 'Weight in kg'
39
- }
40
- ]
41
- };
42
-
43
- export const qIntegerItem: Questionnaire = {
44
- resourceType: 'Questionnaire',
45
- id: 'IntegerBasic',
46
- name: 'IntegerBasic',
47
- title: 'Integer Basic',
48
- version: '0.1.0',
49
- status: 'draft',
50
- publisher: 'AEHRC CSIRO',
51
- date: '2024-05-01',
52
- url: 'https://smartforms.csiro.au/docs/components/integer',
53
- item: [
54
- {
55
- linkId: 'age',
56
- type: 'integer',
57
- repeats: false,
58
- text: 'Age'
59
- }
60
- ]
61
- };
62
-
63
- export const qDateItem: Questionnaire = {
64
- resourceType: 'Questionnaire',
65
- id: 'DateBasic',
66
- name: 'DateBasic',
67
- title: 'Date Basic',
68
- version: '0.1.0',
69
- status: 'draft',
70
- publisher: 'AEHRC CSIRO',
71
- date: '2024-05-01',
72
- url: 'https://smartforms.csiro.au/docs/components/date',
73
- item: [
74
- {
75
- linkId: 'dob-date',
76
- type: 'date',
77
- repeats: false,
78
- text: 'Date of birth'
79
- }
80
- ]
81
- };
82
-
83
- export const qDateTimeItem: Questionnaire = {
84
- resourceType: 'Questionnaire',
85
- id: 'DateTimeBasic',
86
- name: 'DateTimeBasic',
87
- title: 'DateTime Basic',
88
- version: '0.1.0',
89
- status: 'draft',
90
- publisher: 'AEHRC CSIRO',
91
- date: '2024-05-01',
92
- url: 'https://smartforms.csiro.au/docs/components/datetime',
93
- item: [
94
- {
95
- linkId: 'dob-datetime',
96
- type: 'dateTime',
97
- repeats: false,
98
- text: 'Datetime of birth'
99
- }
100
- ]
101
- };
102
-
103
- export const qTimeItem: Questionnaire = {
104
- resourceType: 'Questionnaire',
105
- id: 'TimeBasic',
106
- name: 'TimeBasic',
107
- title: 'Time Basic',
108
- version: '0.1.0',
109
- status: 'draft',
110
- publisher: 'AEHRC CSIRO',
111
- date: '2024-05-01',
112
- url: 'https://smartforms.csiro.au/docs/components/time',
113
- item: [
114
- {
115
- linkId: 'last-meal-time',
116
- type: 'time',
117
- repeats: false,
118
- text: 'Time of last meal'
119
- }
120
- ]
121
- };
122
-
123
- export const QSingleItems: Questionnaire = {
124
- resourceType: 'Questionnaire',
125
- id: 'StringBasic',
126
- name: 'StringBasic',
127
- title: 'String Basic',
128
- version: '0.1.0',
129
- status: 'draft',
130
- publisher: 'AEHRC CSIRO',
131
- date: '2024-05-01',
132
- url: 'https://smartforms.csiro.au/docs/components/string',
133
- item: [
134
- {
135
- linkId: 'container',
136
- type: 'group',
137
- repeats: false,
138
- item: [
139
- {
140
- linkId: 'name-string',
141
- type: 'string',
142
- repeats: false,
143
- text: 'Name'
144
- }
145
- ]
146
- }
147
- ]
148
- };
149
-
150
- export const qTextItem: Questionnaire = {
151
- resourceType: 'Questionnaire',
152
- id: 'TextBasic',
153
- name: 'TextBasic',
154
- title: 'Text Basic',
155
- version: '0.1.0',
156
- status: 'draft',
157
- publisher: 'AEHRC CSIRO',
158
- date: '2024-05-01',
159
- url: 'https://smartforms.csiro.au/docs/components/text',
160
- item: [
161
- {
162
- linkId: 'details-text',
163
- type: 'text',
164
- repeats: false,
165
- text: 'Details of intermittent fasting'
166
- }
167
- ]
168
- };
169
-
170
- export const qUrlItem: Questionnaire = {
171
- resourceType: 'Questionnaire',
172
- id: 'UrlBasic',
173
- name: 'UrlBasic',
174
- title: 'URL Basic',
175
- version: '0.1.0',
176
- status: 'draft',
177
- publisher: 'AEHRC CSIRO',
178
- date: '2024-05-01',
179
- url: 'https://smartforms.csiro.au/docs/components/url',
180
- item: [
181
- {
182
- linkId: 'website-url',
183
- type: 'url',
184
- repeats: false,
185
- text: 'Website URL'
186
- }
187
- ]
188
- };
189
-
190
- export const qAttachmentItem: Questionnaire = {
191
- resourceType: 'Questionnaire',
192
- id: 'AttachmentBasic',
193
- name: 'AttachmentBasic',
194
- title: 'Attachment Basic',
195
- version: '0.1.0',
196
- status: 'draft',
197
- publisher: 'AEHRC CSIRO',
198
- date: '2024-05-01',
199
- url: 'https://smartforms.csiro.au/docs/components/attachment',
200
- item: [
201
- {
202
- linkId: 'file-attachment',
203
- type: 'attachment',
204
- repeats: false,
205
- text: 'File Attachment'
206
- }
207
- ]
208
- };
209
-
210
- export const qReferenceItem: Questionnaire = {
211
- resourceType: 'Questionnaire',
212
- id: 'ReferenceBasic',
213
- name: 'ReferenceBasic',
214
- title: 'Reference Basic',
215
- version: '0.1.0',
216
- status: 'draft',
217
- publisher: 'AEHRC CSIRO',
218
- date: '2024-05-01',
219
- url: 'https://smartforms.csiro.au/docs/components/reference',
220
- item: [
221
- {
222
- linkId: 'patient-reference',
223
- type: 'reference',
224
- repeats: false,
225
- text: 'Patient Reference'
226
- }
227
- ]
228
- };
229
-
230
- export const qQuantityItem: Questionnaire = {
231
- resourceType: 'Questionnaire',
232
- id: 'QuantityBasic',
233
- name: 'QuantityBasic',
234
- title: 'Quantity Basic',
235
- version: '0.1.0',
236
- status: 'draft',
237
- publisher: 'AEHRC CSIRO',
238
- date: '2024-05-01',
239
- url: 'https://smartforms.csiro.au/docs/components/quantity',
240
- item: [
241
- {
242
- linkId: 'body-weight',
243
- type: 'quantity',
244
- repeats: false,
245
- text: 'Body Weight'
246
- }
247
- ]
248
- };
249
-
250
- // choice
251
- // open-choice