@aehrc/smart-forms-renderer 0.34.1 → 0.34.2

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 (88) hide show
  1. package/package.json +1 -1
  2. package/lib/components/FormComponents/ChoiceItems/CheckboxFields.d.ts +0 -11
  3. package/lib/components/FormComponents/ChoiceItems/CheckboxFields.js +0 -41
  4. package/lib/components/FormComponents/ChoiceItems/CheckboxFields.js.map +0 -1
  5. package/lib/components/FormComponents/ChoiceItems/CheckboxOptionFields.d.ts +0 -11
  6. package/lib/components/FormComponents/ChoiceItems/CheckboxOptionFields.js +0 -41
  7. package/lib/components/FormComponents/ChoiceItems/CheckboxOptionFields.js.map +0 -1
  8. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetView.d.ts +0 -13
  9. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetView.js +0 -46
  10. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetView.js.map +0 -1
  11. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxFields.d.ts +0 -11
  12. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxFields.js +0 -41
  13. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxFields.js.map +0 -1
  14. package/lib/components/FormComponents/DateTimeItem/DateTimeField.d.ts +0 -12
  15. package/lib/components/FormComponents/DateTimeItem/DateTimeField.js +0 -34
  16. package/lib/components/FormComponents/DateTimeItem/DateTimeField.js.map +0 -1
  17. package/lib/components/FormComponents/DateTimeItem/DateTimeItem.d.ts +0 -9
  18. package/lib/components/FormComponents/DateTimeItem/DateTimeItem.js +0 -60
  19. package/lib/components/FormComponents/DateTimeItem/DateTimeItem.js.map +0 -1
  20. package/lib/components/FormComponents/GroupItem/NextTabButtonWrapper.d.ts +0 -8
  21. package/lib/components/FormComponents/GroupItem/NextTabButtonWrapper.js +0 -57
  22. package/lib/components/FormComponents/GroupItem/NextTabButtonWrapper.js.map +0 -1
  23. package/lib/components/FormComponents/ItemParts/RadioAnswerOptionButtons.d.ts +0 -8
  24. package/lib/components/FormComponents/ItemParts/RadioAnswerOptionButtons.js +0 -37
  25. package/lib/components/FormComponents/ItemParts/RadioAnswerOptionButtons.js.map +0 -1
  26. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxFields.d.ts +0 -18
  27. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxFields.js +0 -48
  28. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxFields.js.map +0 -1
  29. package/lib/components/StoryWrappers/BuildFormWrapper.d.ts +0 -7
  30. package/lib/components/StoryWrappers/BuildFormWrapper.js +0 -57
  31. package/lib/components/StoryWrappers/BuildFormWrapper.js.map +0 -1
  32. package/lib/hooks/useDisplayCalculatedExpression.d.ts +0 -3
  33. package/lib/hooks/useDisplayCalculatedExpression.js +0 -40
  34. package/lib/hooks/useDisplayCalculatedExpression.js.map +0 -1
  35. package/lib/hooks/useInitaliseFhirClient.d.ts +0 -1
  36. package/lib/hooks/useInitaliseFhirClient.js +0 -55
  37. package/lib/hooks/useInitaliseFhirClient.js.map +0 -1
  38. package/lib/hooks/useInitialiseRenderer.d.ts +0 -4
  39. package/lib/hooks/useInitialiseRenderer.js +0 -62
  40. package/lib/hooks/useInitialiseRenderer.js.map +0 -1
  41. package/lib/hooks/useNextPreviousVisibleTabs.d.ts +0 -6
  42. package/lib/hooks/useNextPreviousVisibleTabs.js +0 -63
  43. package/lib/hooks/useNextPreviousVisibleTabs.js.map +0 -1
  44. package/lib/hooks/useQueryClient.d.ts +0 -3
  45. package/lib/hooks/useQueryClient.js +0 -29
  46. package/lib/hooks/useQueryClient.js.map +0 -1
  47. package/lib/hooks/useRepeatitemState.d.ts +0 -0
  48. package/lib/hooks/useRepeatitemState.js +0 -2
  49. package/lib/hooks/useRepeatitemState.js.map +0 -1
  50. package/lib/interfaces/repopulateItems.interface.d.ts +0 -0
  51. package/lib/interfaces/repopulateItems.interface.js +0 -2
  52. package/lib/interfaces/repopulateItems.interface.js.map +0 -1
  53. package/lib/setup-jest.js +0 -1
  54. package/lib/stories/InitialiseFormWrapperForStorybook.d.ts +0 -29
  55. package/lib/stories/InitialiseFormWrapperForStorybook.js +0 -65
  56. package/lib/stories/InitialiseFormWrapperForStorybook.js.map +0 -1
  57. package/lib/stories/MedicalHistoryTable.stories.js +0 -45
  58. package/lib/stories/SmartFormsRenderer.stories.js +0 -117
  59. package/lib/stories/StorybookWrappers/BuildFormButtonForStorybook.d.ts +0 -8
  60. package/lib/stories/StorybookWrappers/BuildFormButtonForStorybook.js +0 -44
  61. package/lib/stories/StorybookWrappers/BuildFormButtonForStorybook.js.map +0 -1
  62. package/lib/stories/StorybookWrappers/BuildFormButtonTesterWrapperForStorybook.d.ts +0 -18
  63. package/lib/stories/StorybookWrappers/BuildFormButtonTesterWrapperForStorybook.js +0 -48
  64. package/lib/stories/StorybookWrappers/BuildFormButtonTesterWrapperForStorybook.js.map +0 -1
  65. package/lib/stories/StorybookWrappers/PrePopButtonForStorybook.d.ts +0 -7
  66. package/lib/stories/StorybookWrappers/PrePopButtonForStorybook.js +0 -32
  67. package/lib/stories/StorybookWrappers/PrePopButtonForStorybook.js.map +0 -1
  68. package/lib/stories/StorybookWrappers/PrePopWrapperForStorybook.d.ts +0 -21
  69. package/lib/stories/StorybookWrappers/PrePopWrapperForStorybook.js +0 -83
  70. package/lib/stories/StorybookWrappers/PrePopWrapperForStorybook.js.map +0 -1
  71. package/lib/stories/StorybookWrappers/populateCallbackForStorybook.d.ts +0 -8
  72. package/lib/stories/StorybookWrappers/populateCallbackForStorybook.js +0 -46
  73. package/lib/stories/StorybookWrappers/populateCallbackForStorybook.js.map +0 -1
  74. package/lib/stories/index.d.ts +0 -1
  75. package/lib/stories/index.js +0 -18
  76. package/lib/stories/index.js.map +0 -1
  77. package/lib/utils/buildForm.d.ts +0 -8
  78. package/lib/utils/buildForm.js +0 -26
  79. package/lib/utils/buildForm.js.map +0 -1
  80. package/lib/utils/buildForms.d.ts +0 -0
  81. package/lib/utils/buildForms.js +0 -2
  82. package/lib/utils/buildForms.js.map +0 -1
  83. /package/lib/stories/{StorybookWrappers → storybookWrappers}/InitialiseFormWrapperForStorybook.d.ts +0 -0
  84. /package/lib/stories/{StorybookWrappers → storybookWrappers}/InitialiseFormWrapperForStorybook.js +0 -0
  85. /package/lib/stories/{StorybookWrappers → storybookWrappers}/InitialiseFormWrapperForStorybook.js.map +0 -0
  86. /package/lib/stories/{StorybookWrappers → storybookWrappers}/index.d.ts +0 -0
  87. /package/lib/stories/{StorybookWrappers → storybookWrappers}/index.js +0 -0
  88. /package/lib/stories/{StorybookWrappers → storybookWrappers}/index.js.map +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aehrc/smart-forms-renderer",
3
- "version": "0.34.1",
3
+ "version": "0.34.2",
4
4
  "description": "FHIR Structured Data Captured (SDC) rendering engine for Smart Forms",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireItemAnswerOption, QuestionnaireResponseItemAnswer } from 'fhir/r4';
3
- interface ChoiceCheckboxFieldsProps {
4
- qItem: QuestionnaireItem;
5
- options: QuestionnaireItemAnswerOption[];
6
- answers: QuestionnaireResponseItemAnswer[];
7
- readOnly: boolean;
8
- onCheckedChange: (newValue: string) => void;
9
- }
10
- declare function ChoiceCheckboxFields(props: ChoiceCheckboxFieldsProps): React.JSX.Element;
11
- export default ChoiceCheckboxFields;
@@ -1,41 +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
- import React from 'react';
18
- import { ChoiceItemOrientation } from '../../../interfaces/choice.enum';
19
- import QItemChoiceCheckboxSingle from '../ItemParts/CheckboxSingle';
20
- import { StyledFormGroup } from '../Item.styles';
21
- import { getChoiceOrientation } from '../../../utils/choice';
22
- function ChoiceCheckboxFields(props) {
23
- var _a;
24
- const { qItem, options, answers, readOnly, onCheckedChange } = props;
25
- const orientation = (_a = getChoiceOrientation(qItem)) !== null && _a !== void 0 ? _a : ChoiceItemOrientation.Vertical;
26
- return (React.createElement(StyledFormGroup, { row: orientation === ChoiceItemOrientation.Horizontal }, options.map((option) => {
27
- var _a, _b, _c;
28
- if (option['valueCoding']) {
29
- return (React.createElement(QItemChoiceCheckboxSingle, { key: (_a = option.valueCoding.code) !== null && _a !== void 0 ? _a : '', value: (_b = option.valueCoding.code) !== null && _b !== void 0 ? _b : '', label: (_c = option.valueCoding.display) !== null && _c !== void 0 ? _c : `${option.valueCoding.code}`, readOnly: readOnly, isChecked: answers.some((answer) => JSON.stringify(answer) === JSON.stringify(option)), onCheckedChange: onCheckedChange }));
30
- }
31
- if (option['valueString']) {
32
- return (React.createElement(QItemChoiceCheckboxSingle, { key: option.valueString, value: option.valueString, label: option.valueString, readOnly: readOnly, isChecked: answers.some((answer) => answer.valueString === option.valueString), onCheckedChange: onCheckedChange }));
33
- }
34
- if (option['valueInteger']) {
35
- return (React.createElement(QItemChoiceCheckboxSingle, { key: option.valueInteger, value: option.valueInteger.toString(), label: option.valueInteger.toString(), readOnly: readOnly, isChecked: answers.some((answer) => answer.valueInteger === option.valueInteger), onCheckedChange: onCheckedChange }));
36
- }
37
- return null;
38
- })));
39
- }
40
- export default ChoiceCheckboxFields;
41
- //# sourceMappingURL=CheckboxFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxFields.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/ChoiceItems/CheckboxFields.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAMxE,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAU7D,SAAS,oBAAoB,CAAC,KAAgC;;IAC5D,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAErE,MAAM,WAAW,GAAG,MAAA,oBAAoB,CAAC,KAAK,CAAC,mCAAI,qBAAqB,CAAC,QAAQ,CAAC;IAElF,OAAO,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,WAAW,KAAK,qBAAqB,CAAC,UAAU,IACnE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;QACtB,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE;YACzB,OAAO,CACL,oBAAC,yBAAyB,IACxB,GAAG,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,IAAI,mCAAI,EAAE,EAClC,KAAK,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,IAAI,mCAAI,EAAE,EACpC,KAAK,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,OAAO,mCAAI,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,EACjE,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,CAAC,IAAI,CACrB,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAC9D,EACD,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE;YACzB,OAAO,CACL,oBAAC,yBAAyB,IACxB,GAAG,EAAE,MAAM,CAAC,WAAW,EACvB,KAAK,EAAE,MAAM,CAAC,WAAW,EACzB,KAAK,EAAE,MAAM,CAAC,WAAW,EACzB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,KAAK,MAAM,CAAC,WAAW,CAAC,EAC9E,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,IAAI,MAAM,CAAC,cAAc,CAAC,EAAE;YAC1B,OAAO,CACL,oBAAC,yBAAyB,IACxB,GAAG,EAAE,MAAM,CAAC,YAAY,EACxB,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EACrC,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EACrC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,KAAK,MAAM,CAAC,YAAY,CAAC,EAChF,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACc,CACnB,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireItemAnswerOption, QuestionnaireResponseItemAnswer } from 'fhir/r4';
3
- interface CheckboxFieldsProps {
4
- qItem: QuestionnaireItem;
5
- options: QuestionnaireItemAnswerOption[];
6
- answers: QuestionnaireResponseItemAnswer[];
7
- readOnly: boolean;
8
- onCheckedChange: (newValue: string) => void;
9
- }
10
- declare function CheckboxOptionFields(props: CheckboxFieldsProps): React.JSX.Element;
11
- export default CheckboxOptionFields;
@@ -1,41 +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
- import React from 'react';
18
- import { ChoiceItemOrientation } from '../../../interfaces/choice.enum';
19
- import CheckboxSingle from '../ItemParts/CheckboxSingle';
20
- import { StyledFormGroup } from '../Item.styles';
21
- import { getChoiceOrientation } from '../../../utils/choice';
22
- function CheckboxOptionFields(props) {
23
- var _a;
24
- const { qItem, options, answers, readOnly, onCheckedChange } = props;
25
- const orientation = (_a = getChoiceOrientation(qItem)) !== null && _a !== void 0 ? _a : ChoiceItemOrientation.Vertical;
26
- return (React.createElement(StyledFormGroup, { row: orientation === ChoiceItemOrientation.Horizontal }, options.map((option) => {
27
- var _a, _b, _c;
28
- if (option['valueCoding']) {
29
- return (React.createElement(CheckboxSingle, { key: (_a = option.valueCoding.code) !== null && _a !== void 0 ? _a : '', value: (_b = option.valueCoding.code) !== null && _b !== void 0 ? _b : '', label: (_c = option.valueCoding.display) !== null && _c !== void 0 ? _c : `${option.valueCoding.code}`, readOnly: readOnly, isChecked: answers.some((answer) => JSON.stringify(answer) === JSON.stringify(option)), onCheckedChange: onCheckedChange }));
30
- }
31
- if (option['valueString']) {
32
- return (React.createElement(CheckboxSingle, { key: option.valueString, value: option.valueString, label: option.valueString, readOnly: readOnly, isChecked: answers.some((answer) => answer.valueString === option.valueString), onCheckedChange: onCheckedChange }));
33
- }
34
- if (option['valueInteger']) {
35
- return (React.createElement(CheckboxSingle, { key: option.valueInteger, value: option.valueInteger.toString(), label: option.valueInteger.toString(), readOnly: readOnly, isChecked: answers.some((answer) => answer.valueInteger === option.valueInteger), onCheckedChange: onCheckedChange }));
36
- }
37
- return null;
38
- })));
39
- }
40
- export default CheckboxOptionFields;
41
- //# sourceMappingURL=CheckboxOptionFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxOptionFields.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/ChoiceItems/CheckboxOptionFields.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAMxE,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAU7D,SAAS,oBAAoB,CAAC,KAA0B;;IACtD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAErE,MAAM,WAAW,GAAG,MAAA,oBAAoB,CAAC,KAAK,CAAC,mCAAI,qBAAqB,CAAC,QAAQ,CAAC;IAElF,OAAO,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,WAAW,KAAK,qBAAqB,CAAC,UAAU,IACnE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;QACtB,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE;YACzB,OAAO,CACL,oBAAC,cAAc,IACb,GAAG,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,IAAI,mCAAI,EAAE,EAClC,KAAK,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,IAAI,mCAAI,EAAE,EACpC,KAAK,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,OAAO,mCAAI,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,EACjE,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,CAAC,IAAI,CACrB,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAC9D,EACD,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE;YACzB,OAAO,CACL,oBAAC,cAAc,IACb,GAAG,EAAE,MAAM,CAAC,WAAW,EACvB,KAAK,EAAE,MAAM,CAAC,WAAW,EACzB,KAAK,EAAE,MAAM,CAAC,WAAW,EACzB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,KAAK,MAAM,CAAC,WAAW,CAAC,EAC9E,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,IAAI,MAAM,CAAC,cAAc,CAAC,EAAE;YAC1B,OAAO,CACL,oBAAC,cAAc,IACb,GAAG,EAAE,MAAM,CAAC,YAAY,EACxB,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EACrC,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EACrC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,KAAK,MAAM,CAAC,YAAY,CAAC,EAChF,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACc,CACnB,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC"}
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireItemAnswerOption, QuestionnaireResponseItemAnswer } from 'fhir/r4';
3
- import type { TerminologyError } from '../../../hooks/useValueSetCodings';
4
- interface ChoiceCheckboxAnswerValueSetViewProps {
5
- qItem: QuestionnaireItem;
6
- options: QuestionnaireItemAnswerOption[];
7
- answers: QuestionnaireResponseItemAnswer[];
8
- readOnly: boolean;
9
- terminologyError: TerminologyError;
10
- onCheckedChange: (newValue: string) => void;
11
- }
12
- declare function ChoiceCheckboxAnswerValueSetView(props: ChoiceCheckboxAnswerValueSetViewProps): React.JSX.Element;
13
- export default ChoiceCheckboxAnswerValueSetView;
@@ -1,46 +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
- import React from 'react';
18
- import { StyledAlert } from '../../Alert.styles';
19
- import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline';
20
- import Typography from '@mui/material/Typography';
21
- import { getChoiceOrientation } from '../../../utils/choice';
22
- import { ChoiceItemOrientation } from '../../../interfaces/choice.enum';
23
- import CheckboxOptionList from './CheckboxOptionList';
24
- import { StyledFormGroup } from '../Item.styles';
25
- function ChoiceCheckboxAnswerValueSetView(props) {
26
- var _a;
27
- const { qItem, options, answers, readOnly, terminologyError, onCheckedChange } = props;
28
- const orientation = (_a = getChoiceOrientation(qItem)) !== null && _a !== void 0 ? _a : ChoiceItemOrientation.Vertical;
29
- if (options.length > 0) {
30
- return (React.createElement(StyledFormGroup, { row: orientation === ChoiceItemOrientation.Horizontal },
31
- React.createElement(CheckboxOptionList, { options: options, answers: answers, readOnly: readOnly, onCheckedChange: onCheckedChange })));
32
- }
33
- if (terminologyError.error) {
34
- return (React.createElement(StyledAlert, { color: "error" },
35
- React.createElement(ErrorOutlineIcon, { color: "error", sx: { pr: 0.75 } }),
36
- React.createElement(Typography, { variant: "subtitle2" },
37
- "There was an error fetching options from the terminology server for",
38
- ' ',
39
- terminologyError.answerValueSet)));
40
- }
41
- return (React.createElement(StyledAlert, { color: "error" },
42
- React.createElement(ErrorOutlineIcon, { color: "error", sx: { pr: 0.75 } }),
43
- React.createElement(Typography, { variant: "subtitle2" }, "Unable to fetch options from the questionnaire or launch context")));
44
- }
45
- export default ChoiceCheckboxAnswerValueSetView;
46
- //# sourceMappingURL=ChoiceCheckboxAnswerValueSetView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChoiceCheckboxAnswerValueSetView.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAWjD,SAAS,gCAAgC,CAAC,KAA4C;;IACpF,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAEvF,MAAM,WAAW,GAAG,MAAA,oBAAoB,CAAC,KAAK,CAAC,mCAAI,qBAAqB,CAAC,QAAQ,CAAC;IAElF,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;QACtB,OAAO,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,WAAW,KAAK,qBAAqB,CAAC,UAAU;YACpE,oBAAC,kBAAkB,IACjB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,eAAe,GAChC,CACc,CACnB,CAAC;KACH;IAED,IAAI,gBAAgB,CAAC,KAAK,EAAE;QAC1B,OAAO,CACL,oBAAC,WAAW,IAAC,KAAK,EAAC,OAAO;YACxB,oBAAC,gBAAgB,IAAC,KAAK,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAI;YACpD,oBAAC,UAAU,IAAC,OAAO,EAAC,WAAW;;gBACuC,GAAG;gBACtE,gBAAgB,CAAC,cAAc,CACrB,CACD,CACf,CAAC;KACH;IAED,OAAO,CACL,oBAAC,WAAW,IAAC,KAAK,EAAC,OAAO;QACxB,oBAAC,gBAAgB,IAAC,KAAK,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAI;QACpD,oBAAC,UAAU,IAAC,OAAO,EAAC,WAAW,uEAElB,CACD,CACf,CAAC;AACJ,CAAC;AAED,eAAe,gCAAgC,CAAC"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireItemAnswerOption, QuestionnaireResponseItemAnswer } from 'fhir/r4';
3
- interface ChoiceCheckboxFieldsProps {
4
- qItem: QuestionnaireItem;
5
- options: QuestionnaireItemAnswerOption[];
6
- answers: QuestionnaireResponseItemAnswer[];
7
- readOnly: boolean;
8
- onCheckedChange: (newValue: string) => void;
9
- }
10
- declare function ChoiceCheckboxFields(props: ChoiceCheckboxFieldsProps): React.JSX.Element;
11
- export default ChoiceCheckboxFields;
@@ -1,41 +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
- import React from 'react';
18
- import { ChoiceItemOrientation } from '../../../interfaces/choice.enum';
19
- import CheckboxSingle from '../ItemParts/CheckboxSingle';
20
- import { StyledFormGroup } from '../Item.styles';
21
- import { getChoiceOrientation } from '../../../utils/choice';
22
- function ChoiceCheckboxFields(props) {
23
- var _a;
24
- const { qItem, options, answers, readOnly, onCheckedChange } = props;
25
- const orientation = (_a = getChoiceOrientation(qItem)) !== null && _a !== void 0 ? _a : ChoiceItemOrientation.Vertical;
26
- return (React.createElement(StyledFormGroup, { row: orientation === ChoiceItemOrientation.Horizontal }, options.map((option) => {
27
- var _a, _b, _c;
28
- if (option['valueCoding']) {
29
- return (React.createElement(CheckboxSingle, { key: (_a = option.valueCoding.code) !== null && _a !== void 0 ? _a : '', value: (_b = option.valueCoding.code) !== null && _b !== void 0 ? _b : '', label: (_c = option.valueCoding.display) !== null && _c !== void 0 ? _c : `${option.valueCoding.code}`, readOnly: readOnly, isChecked: answers.some((answer) => JSON.stringify(answer) === JSON.stringify(option)), onCheckedChange: onCheckedChange }));
30
- }
31
- if (option['valueString']) {
32
- return (React.createElement(CheckboxSingle, { key: option.valueString, value: option.valueString, label: option.valueString, readOnly: readOnly, isChecked: answers.some((answer) => answer.valueString === option.valueString), onCheckedChange: onCheckedChange }));
33
- }
34
- if (option['valueInteger']) {
35
- return (React.createElement(CheckboxSingle, { key: option.valueInteger, value: option.valueInteger.toString(), label: option.valueInteger.toString(), readOnly: readOnly, isChecked: answers.some((answer) => answer.valueInteger === option.valueInteger), onCheckedChange: onCheckedChange }));
36
- }
37
- return null;
38
- })));
39
- }
40
- export default ChoiceCheckboxFields;
41
- //# sourceMappingURL=ChoiceCheckboxFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChoiceCheckboxFields.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/ChoiceItems/ChoiceCheckboxFields.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAMxE,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAU7D,SAAS,oBAAoB,CAAC,KAAgC;;IAC5D,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAErE,MAAM,WAAW,GAAG,MAAA,oBAAoB,CAAC,KAAK,CAAC,mCAAI,qBAAqB,CAAC,QAAQ,CAAC;IAElF,OAAO,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,WAAW,KAAK,qBAAqB,CAAC,UAAU,IACnE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;QACtB,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE;YACzB,OAAO,CACL,oBAAC,cAAc,IACb,GAAG,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,IAAI,mCAAI,EAAE,EAClC,KAAK,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,IAAI,mCAAI,EAAE,EACpC,KAAK,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,OAAO,mCAAI,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,EACjE,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,CAAC,IAAI,CACrB,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAC9D,EACD,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE;YACzB,OAAO,CACL,oBAAC,cAAc,IACb,GAAG,EAAE,MAAM,CAAC,WAAW,EACvB,KAAK,EAAE,MAAM,CAAC,WAAW,EACzB,KAAK,EAAE,MAAM,CAAC,WAAW,EACzB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,KAAK,MAAM,CAAC,WAAW,CAAC,EAC9E,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,IAAI,MAAM,CAAC,cAAc,CAAC,EAAE;YAC1B,OAAO,CACL,oBAAC,cAAc,IACb,GAAG,EAAE,MAAM,CAAC,YAAY,EACxB,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EACrC,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EACrC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,KAAK,MAAM,CAAC,YAAY,CAAC,EAChF,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACc,CACnB,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { PropsWithIsTabledAttribute } from '../../../interfaces/renderProps.interface';
3
- import type { Dayjs } from 'dayjs';
4
- interface DateTimeFieldProps extends PropsWithIsTabledAttribute {
5
- value: Dayjs | null;
6
- displayPrompt: string;
7
- entryFormat: string;
8
- readOnly: boolean;
9
- onDateTimeChange: (newValue: Dayjs | null) => unknown;
10
- }
11
- declare function DateTimeField(props: DateTimeFieldProps): React.JSX.Element;
12
- export default DateTimeField;
@@ -1,34 +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
- import React from 'react';
18
- import { DateTimePicker as MuiDateTimePicker, LocalizationProvider } from '@mui/x-date-pickers';
19
- import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
20
- import Box from '@mui/material/Box';
21
- import { TEXT_FIELD_WIDTH } from '../Textfield.styles';
22
- function DateTimeField(props) {
23
- const { value, displayPrompt, entryFormat, readOnly, isTabled, onDateTimeChange } = props;
24
- return (React.createElement(LocalizationProvider, { dateAdapter: AdapterDayjs },
25
- React.createElement(Box, { "data-test": "q-item-date-time-field" },
26
- React.createElement(MuiDateTimePicker, { format: entryFormat !== '' ? entryFormat : 'DD/MM/YYYY hh:mm A', value: value, disabled: readOnly, label: displayPrompt, sx: { maxWidth: !isTabled ? TEXT_FIELD_WIDTH : 3000, minWidth: 160 }, onChange: onDateTimeChange, slotProps: {
27
- textField: {
28
- size: 'small',
29
- fullWidth: true
30
- }
31
- } }))));
32
- }
33
- export default DateTimeField;
34
- //# sourceMappingURL=DateTimeField.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateTimeField.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/DateTimeItem/DateTimeField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAUvD,SAAS,aAAa,CAAC,KAAyB;IAC9C,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IAE1F,OAAO,CACL,oBAAC,oBAAoB,IAAC,WAAW,EAAE,YAAY;QAC7C,oBAAC,GAAG,iBAAW,wBAAwB;YACrC,oBAAC,iBAAiB,IAChB,MAAM,EAAE,WAAW,KAAK,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,oBAAoB,EAC/D,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,aAAa,EACpB,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,EACpE,QAAQ,EAAE,gBAAgB,EAC1B,SAAS,EAAE;oBACT,SAAS,EAAE;wBACT,IAAI,EAAE,OAAO;wBACb,SAAS,EAAE,IAAI;qBAChB;iBACF,GACD,CACE,CACe,CACxB,CAAC;AACJ,CAAC;AAED,eAAe,aAAa,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithParentIsReadOnlyAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
3
- import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
4
- interface DateTimeItemProps extends PropsWithQrItemChangeHandler, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithParentIsReadOnlyAttribute {
5
- qItem: QuestionnaireItem;
6
- qrItem: QuestionnaireResponseItem | null;
7
- }
8
- declare function DateTimeItem(props: DateTimeItemProps): React.JSX.Element;
9
- export default DateTimeItem;
@@ -1,60 +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
- import React from 'react';
18
- import useRenderingExtensions from '../../../hooks/useRenderingExtensions';
19
- import { createEmptyQrItem } from '../../../utils/qrItem';
20
- import { FullWidthFormComponentBox } from '../../Box.styles';
21
- import ItemFieldGrid from '../ItemParts/ItemFieldGrid';
22
- import DateTimeField from './DateTimeField';
23
- import dayjs from 'dayjs';
24
- import useReadOnly from '../../../hooks/useReadOnly';
25
- import { useQuestionnaireStore } from '../../../stores';
26
- function DateTimeItem(props) {
27
- const { qItem, qrItem, isRepeated, isTabled, parentIsReadOnly, onQrItemChange } = props;
28
- const onFocusLinkId = useQuestionnaireStore.use.onFocusLinkId();
29
- const readOnly = useReadOnly(qItem, parentIsReadOnly);
30
- const { displayPrompt, entryFormat } = useRenderingExtensions(qItem);
31
- // Init input value
32
- let dateTimeString = null;
33
- if (qrItem === null || qrItem === void 0 ? void 0 : qrItem.answer) {
34
- if (qrItem === null || qrItem === void 0 ? void 0 : qrItem.answer[0].valueDate) {
35
- dateTimeString = qrItem.answer[0].valueDate;
36
- }
37
- else if (qrItem === null || qrItem === void 0 ? void 0 : qrItem.answer[0].valueDateTime) {
38
- dateTimeString = qrItem.answer[0].valueDateTime;
39
- }
40
- }
41
- const dateTimeDayJs = dateTimeString ? dayjs(dateTimeString) : null;
42
- // Event handlers
43
- function handleDateTimeChange(newValue) {
44
- const emptyQrItem = createEmptyQrItem(qItem);
45
- if (newValue) {
46
- onQrItemChange(Object.assign(Object.assign({}, emptyQrItem), { answer: [{ valueDateTime: newValue.format() }] }));
47
- }
48
- else {
49
- onQrItemChange(emptyQrItem);
50
- }
51
- }
52
- if (isRepeated) {
53
- return (React.createElement(DateTimeField, { value: dateTimeDayJs, displayPrompt: displayPrompt, entryFormat: entryFormat, readOnly: readOnly, onDateTimeChange: handleDateTimeChange, isTabled: isTabled }));
54
- }
55
- return (React.createElement(FullWidthFormComponentBox, { "data-test": "q-item-date-time-box", "data-linkid": qItem.linkId, onClick: () => onFocusLinkId(qItem.linkId) },
56
- React.createElement(ItemFieldGrid, { qItem: qItem, readOnly: readOnly },
57
- React.createElement(DateTimeField, { value: dateTimeDayJs, displayPrompt: displayPrompt, entryFormat: entryFormat, readOnly: readOnly, onDateTimeChange: handleDateTimeChange, isTabled: isTabled }))));
58
- }
59
- export default DateTimeItem;
60
- //# sourceMappingURL=DateTimeItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateTimeItem.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/DateTimeItem/DateTimeItem.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAWxD,SAAS,YAAY,CAAC,KAAwB;IAC5C,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAExF,MAAM,aAAa,GAAG,qBAAqB,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;IAEhE,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;IACtD,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAErE,mBAAmB;IACnB,IAAI,cAAc,GAAkB,IAAI,CAAC;IACzC,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,EAAE;QAClB,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE;YAC/B,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7C;aAAM,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,CAAC,EAAE,aAAa,EAAE;YAC1C,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;SACjD;KACF;IACD,MAAM,aAAa,GAAG,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAEpE,iBAAiB;IACjB,SAAS,oBAAoB,CAAC,QAAsB;QAClD,MAAM,WAAW,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,QAAQ,EAAE;YACZ,cAAc,iCAAM,WAAW,KAAE,MAAM,EAAE,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,IAAG,CAAC;SACpF;aAAM;YACL,cAAc,CAAC,WAAW,CAAC,CAAC;SAC7B;IACH,CAAC;IAED,IAAI,UAAU,EAAE;QACd,OAAO,CACL,oBAAC,aAAa,IACZ,KAAK,EAAE,aAAa,EACpB,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,oBAAoB,EACtC,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;KACH;IAED,OAAO,CACL,oBAAC,yBAAyB,iBACd,sBAAsB,iBACnB,KAAK,CAAC,MAAM,EACzB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC;QAC1C,oBAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ;YAC7C,oBAAC,aAAa,IACZ,KAAK,EAAE,aAAa,EACpB,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,oBAAoB,EACtC,QAAQ,EAAE,QAAQ,GAClB,CACY,CACU,CAC7B,CAAC;AACJ,CAAC;AAED,eAAe,YAAY,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { Tabs } from '../../../interfaces/tab.interface';
3
- interface NextTabButtonWrapperProps {
4
- currentTabIndex?: number;
5
- tabs?: Tabs;
6
- }
7
- declare const NextTabButtonWrapper: React.NamedExoticComponent<NextTabButtonWrapperProps>;
8
- export default NextTabButtonWrapper;
@@ -1,57 +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
- import React, { memo } from 'react';
18
- import Box from '@mui/material/Box';
19
- import { findNumOfVisibleTabs, getNextVisibleTabIndex } from '../../../utils/tabs';
20
- import { useQuestionnaireStore } from '../../../stores';
21
- import NextTabButton from './NextTabButton';
22
- const NextTabButtonWrapper = memo(function NextTabWrapper(props) {
23
- const { currentTabIndex, tabs } = props;
24
- const enableWhenIsActivated = useQuestionnaireStore.use.enableWhenIsActivated();
25
- const enableWhenItems = useQuestionnaireStore.use.enableWhenItems();
26
- const enableWhenExpressions = useQuestionnaireStore.use.enableWhenExpressions();
27
- const switchTab = useQuestionnaireStore.use.switchTab();
28
- const tabsNotDefined = currentTabIndex === undefined || tabs === undefined;
29
- function handleNextTabClick() {
30
- if (tabsNotDefined) {
31
- return;
32
- }
33
- const nextVisibleTabIndex = getNextVisibleTabIndex({
34
- tabs,
35
- currentTabIndex,
36
- enableWhenIsActivated,
37
- enableWhenItems,
38
- enableWhenExpressions
39
- });
40
- switchTab(nextVisibleTabIndex);
41
- // Scroll to top of page
42
- window.scrollTo(0, 0);
43
- }
44
- if (tabsNotDefined) {
45
- return null;
46
- }
47
- if (currentTabIndex === Object.keys(tabs).length - 1) {
48
- return null;
49
- }
50
- const buttonIsDisabled = findNumOfVisibleTabs(tabs, enableWhenIsActivated, enableWhenItems, enableWhenExpressions) <= 1;
51
- return (React.createElement(Box, { display: "flex", mt: 3 },
52
- React.createElement(NextTabButton, { isDisabled: buttonIsDisabled, onNextTabClick: handleNextTabClick }),
53
- React.createElement(Box, { flexGrow: 1 }),
54
- React.createElement(NextTabButton, { isDisabled: buttonIsDisabled, onNextTabClick: handleNextTabClick })));
55
- });
56
- export default NextTabButtonWrapper;
57
- //# sourceMappingURL=NextTabButtonWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NextTabButtonWrapper.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/GroupItem/NextTabButtonWrapper.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAO5C,MAAM,oBAAoB,GAAG,IAAI,CAAC,SAAS,cAAc,CAAC,KAAgC;IACxF,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAExC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC,GAAG,CAAC,qBAAqB,EAAE,CAAC;IAChF,MAAM,eAAe,GAAG,qBAAqB,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC;IACpE,MAAM,qBAAqB,GAAG,qBAAqB,CAAC,GAAG,CAAC,qBAAqB,EAAE,CAAC;IAChF,MAAM,SAAS,GAAG,qBAAqB,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;IAExD,MAAM,cAAc,GAAG,eAAe,KAAK,SAAS,IAAI,IAAI,KAAK,SAAS,CAAC;IAE3E,SAAS,kBAAkB;QACzB,IAAI,cAAc,EAAE;YAClB,OAAO;SACR;QAED,MAAM,mBAAmB,GAAG,sBAAsB,CAAC;YACjD,IAAI;YACJ,eAAe;YACf,qBAAqB;YACrB,eAAe;YACf,qBAAqB;SACtB,CAAC,CAAC;QACH,SAAS,CAAC,mBAAmB,CAAC,CAAC;QAE/B,wBAAwB;QACxB,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC;IAED,IAAI,cAAc,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;IAED,IAAI,eAAe,KAAK,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;QACpD,OAAO,IAAI,CAAC;KACb;IAED,MAAM,gBAAgB,GACpB,oBAAoB,CAAC,IAAI,EAAE,qBAAqB,EAAE,eAAe,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAEjG,OAAO,CACL,oBAAC,GAAG,IAAC,OAAO,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC;QACvB,oBAAC,aAAa,IAAC,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,kBAAkB,GAAI;QACnF,oBAAC,GAAG,IAAC,QAAQ,EAAE,CAAC,GAAI;QACpB,oBAAC,aAAa,IAAC,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,kBAAkB,GAAI,CAC/E,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem } from 'fhir/r4';
3
- interface RadioAnswerOptionButtonsProps {
4
- qItem: QuestionnaireItem;
5
- readOnly: boolean;
6
- }
7
- declare function RadioAnswerOptionButtons(props: RadioAnswerOptionButtonsProps): React.JSX.Element;
8
- export default RadioAnswerOptionButtons;
@@ -1,37 +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
- import React from 'react';
18
- import ChoiceRadioSingle from '../ChoiceItems/ChoiceRadioSingle';
19
- function RadioAnswerOptionButtons(props) {
20
- var _a;
21
- const { qItem, readOnly } = props;
22
- return (React.createElement(React.Fragment, null, (_a = qItem.answerOption) === null || _a === void 0 ? void 0 : _a.map((option) => {
23
- var _a, _b, _c;
24
- if (option['valueCoding']) {
25
- return (React.createElement(ChoiceRadioSingle, { key: (_a = option.valueCoding.code) !== null && _a !== void 0 ? _a : '', value: (_b = option.valueCoding.code) !== null && _b !== void 0 ? _b : '', label: (_c = option.valueCoding.display) !== null && _c !== void 0 ? _c : `${option.valueCoding.code}`, readOnly: readOnly }));
26
- }
27
- if (option['valueString']) {
28
- return (React.createElement(ChoiceRadioSingle, { key: option.valueString, value: option.valueString, label: option.valueString, readOnly: readOnly }));
29
- }
30
- if (option['valueInteger']) {
31
- return (React.createElement(ChoiceRadioSingle, { key: option.valueInteger, value: option.valueInteger.toString(), label: option.valueInteger.toString(), readOnly: readOnly }));
32
- }
33
- return null;
34
- })));
35
- }
36
- export default RadioAnswerOptionButtons;
37
- //# sourceMappingURL=RadioAnswerOptionButtons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioAnswerOptionButtons.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/ItemParts/RadioAnswerOptionButtons.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AAQjE,SAAS,wBAAwB,CAAC,KAAoC;;IACpE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAElC,OAAO,CACL,0CACG,MAAA,KAAK,CAAC,YAAY,0CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;QAClC,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE;YACzB,OAAO,CACL,oBAAC,iBAAiB,IAChB,GAAG,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,IAAI,mCAAI,EAAE,EAClC,KAAK,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,IAAI,mCAAI,EAAE,EACpC,KAAK,EAAE,MAAA,MAAM,CAAC,WAAW,CAAC,OAAO,mCAAI,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,EACjE,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;SACH;QAED,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE;YACzB,OAAO,CACL,oBAAC,iBAAiB,IAChB,GAAG,EAAE,MAAM,CAAC,WAAW,EACvB,KAAK,EAAE,MAAM,CAAC,WAAW,EACzB,KAAK,EAAE,MAAM,CAAC,WAAW,EACzB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;SACH;QAED,IAAI,MAAM,CAAC,cAAc,CAAC,EAAE;YAC1B,OAAO,CACL,oBAAC,iBAAiB,IAChB,GAAG,EAAE,MAAM,CAAC,YAAY,EACxB,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EACrC,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EACrC,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;SACH;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACD,CACJ,CAAC;AACJ,CAAC;AAED,eAAe,wBAAwB,CAAC"}
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireItemAnswerOption, QuestionnaireResponseItemAnswer } from 'fhir/r4';
3
- import { TerminologyError } from '../../../hooks/useValueSetCodings';
4
- interface OpenChoiceCheckboxFieldsProps {
5
- qItem: QuestionnaireItem;
6
- options: QuestionnaireItemAnswerOption[];
7
- answers: QuestionnaireResponseItemAnswer[];
8
- openLabelText: string | null;
9
- openLabelValue: string;
10
- openLabelChecked: boolean;
11
- readOnly: boolean;
12
- terminologyError: TerminologyError;
13
- onOptionChange: (changedOptionValue: string) => void;
14
- onOpenLabelCheckedChange: (checked: boolean) => void;
15
- onOpenLabelInputChange: (input: string) => void;
16
- }
17
- declare function OpenChoiceCheckboxFields(props: OpenChoiceCheckboxFieldsProps): React.JSX.Element;
18
- export default OpenChoiceCheckboxFields;
@@ -1,48 +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
- import React from 'react';
18
- import { ChoiceItemOrientation } from '../../../interfaces/choice.enum';
19
- import CheckboxSingleWithOpenLabel from '../ItemParts/CheckboxSingleWithOpenLabel';
20
- import { getChoiceOrientation } from '../../../utils/choice';
21
- import { StyledFormGroup } from '../Item.styles';
22
- import CheckboxOptionList from '../ChoiceItems/CheckboxOptionList';
23
- import { StyledAlert } from '../../Alert.styles';
24
- import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline';
25
- import Typography from '@mui/material/Typography';
26
- function OpenChoiceCheckboxFields(props) {
27
- var _a;
28
- const { qItem, options, answers, openLabelText, openLabelValue, openLabelChecked, readOnly, terminologyError, onOptionChange, onOpenLabelCheckedChange, onOpenLabelInputChange } = props;
29
- const orientation = (_a = getChoiceOrientation(qItem)) !== null && _a !== void 0 ? _a : ChoiceItemOrientation.Vertical;
30
- if (options.length > 0) {
31
- return (React.createElement(StyledFormGroup, { row: orientation === ChoiceItemOrientation.Horizontal },
32
- React.createElement(CheckboxOptionList, { options: options, answers: answers, readOnly: readOnly, onCheckedChange: onOptionChange }),
33
- openLabelText !== null ? (React.createElement(CheckboxSingleWithOpenLabel, { value: openLabelValue, label: openLabelText, isChecked: openLabelChecked, onCheckedChange: onOpenLabelCheckedChange, onInputChange: onOpenLabelInputChange })) : null));
34
- }
35
- if (terminologyError.error) {
36
- return (React.createElement(StyledAlert, { color: "error" },
37
- React.createElement(ErrorOutlineIcon, { color: "error", sx: { pr: 0.75 } }),
38
- React.createElement(Typography, { variant: "subtitle2" },
39
- "There was an error fetching options from the terminology server for",
40
- ' ',
41
- terminologyError.answerValueSet)));
42
- }
43
- return (React.createElement(StyledAlert, { color: "error" },
44
- React.createElement(ErrorOutlineIcon, { color: "error", sx: { pr: 0.75 } }),
45
- React.createElement(Typography, { variant: "subtitle2" }, "Unable to fetch options from the questionnaire or launch context")));
46
- }
47
- export default OpenChoiceCheckboxFields;
48
- //# sourceMappingURL=OpenChoiceCheckboxFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenChoiceCheckboxFields.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxFields.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,2BAA2B,MAAM,0CAA0C,CAAC;AAMnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAiBlD,SAAS,wBAAwB,CAAC,KAAoC;;IACpE,MAAM,EACJ,KAAK,EACL,OAAO,EACP,OAAO,EACP,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACvB,GAAG,KAAK,CAAC;IAEV,MAAM,WAAW,GAAG,MAAA,oBAAoB,CAAC,KAAK,CAAC,mCAAI,qBAAqB,CAAC,QAAQ,CAAC;IAElF,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;QACtB,OAAO,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,WAAW,KAAK,qBAAqB,CAAC,UAAU;YACpE,oBAAC,kBAAkB,IACjB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,cAAc,GAC/B;YAED,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,CACxB,oBAAC,2BAA2B,IAC1B,KAAK,EAAE,cAAc,EACrB,KAAK,EAAE,aAAa,EACpB,SAAS,EAAE,gBAAgB,EAC3B,eAAe,EAAE,wBAAwB,EACzC,aAAa,EAAE,sBAAsB,GACrC,CACH,CAAC,CAAC,CAAC,IAAI,CACQ,CACnB,CAAC;KACH;IAED,IAAI,gBAAgB,CAAC,KAAK,EAAE;QAC1B,OAAO,CACL,oBAAC,WAAW,IAAC,KAAK,EAAC,OAAO;YACxB,oBAAC,gBAAgB,IAAC,KAAK,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAI;YACpD,oBAAC,UAAU,IAAC,OAAO,EAAC,WAAW;;gBACuC,GAAG;gBACtE,gBAAgB,CAAC,cAAc,CACrB,CACD,CACf,CAAC;KACH;IAED,OAAO,CACL,oBAAC,WAAW,IAAC,KAAK,EAAC,OAAO;QACxB,oBAAC,gBAAgB,IAAC,KAAK,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAI;QACpD,oBAAC,UAAU,IAAC,OAAO,EAAC,WAAW,uEAElB,CACD,CACf,CAAC;AACJ,CAAC;AAED,eAAe,wBAAwB,CAAC"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { Questionnaire } from 'fhir/r4';
3
- interface BuildFormWrapperProps {
4
- questionnaire: Questionnaire;
5
- }
6
- declare function BuildFormWrapper(props: BuildFormWrapperProps): React.JSX.Element;
7
- export default BuildFormWrapper;