@aehrc/smart-forms-renderer 1.0.0-alpha.42.dev10 → 1.0.0-alpha.42.dev2
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.
- package/.storybook/main.ts +34 -0
- package/.storybook/preview.tsx +40 -0
- package/lib/components/Alert.styles.d.ts +2 -2
- package/lib/components/Box.styles.d.ts +3 -3
- package/lib/components/FormComponents/AttachmentItem/AttachmentField.js +2 -2
- package/lib/components/FormComponents/AttachmentItem/AttachmentField.js.map +1 -1
- package/lib/components/FormComponents/AttachmentItem/AttachmentFieldWrapper.js +1 -1
- package/lib/components/FormComponents/AttachmentItem/AttachmentFieldWrapper.js.map +1 -1
- package/lib/components/FormComponents/AttachmentItem/AttachmentFileCollector.js +1 -1
- package/lib/components/FormComponents/AttachmentItem/AttachmentFileCollector.js.map +1 -1
- package/lib/components/FormComponents/AttachmentItem/AttachmentFileDropBox.js +1 -1
- package/lib/components/FormComponents/AttachmentItem/AttachmentFileDropBox.js.map +1 -1
- package/lib/components/FormComponents/AttachmentItem/AttachmentFileDropBox.styles.d.ts +1 -1
- package/lib/components/FormComponents/AttachmentItem/AttachmentItem.js +1 -1
- package/lib/components/FormComponents/AttachmentItem/AttachmentItem.js.map +1 -1
- package/lib/components/FormComponents/AttachmentItem/AttachmentUrlField.js +3 -3
- package/lib/components/FormComponents/AttachmentItem/AttachmentUrlField.js.map +1 -1
- package/lib/components/FormComponents/BooleanItem/BooleanField.js +4 -4
- package/lib/components/FormComponents/BooleanItem/BooleanField.js.map +1 -1
- package/lib/components/FormComponents/BooleanItem/BooleanItem.js +2 -2
- package/lib/components/FormComponents/BooleanItem/BooleanItem.js.map +1 -1
- package/lib/components/FormComponents/Button.styles.d.ts +0 -1
- package/lib/components/FormComponents/ChoiceItems/CheckboxOptionList.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteField.js +2 -2
- package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteField.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteItem.js +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceAutocompleteItem.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.js +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js +2 -2
- package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.js +3 -3
- package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js +2 -2
- package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceItemSwitcher.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.js +3 -3
- package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.js +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.js +5 -5
- package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.js +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.js +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetFields.js +3 -3
- package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetFields.js.map +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetItem.js +1 -1
- package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerValueSetItem.js.map +1 -1
- package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateField.js +2 -2
- package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateField.js.map +1 -1
- package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateItem.js +1 -1
- package/lib/components/FormComponents/DateTimeItems/CustomDateItem/CustomDateItem.js.map +1 -1
- package/lib/components/FormComponents/DateTimeItems/CustomDateItem/DatePicker.js +2 -2
- package/lib/components/FormComponents/DateTimeItems/CustomDateItem/DatePicker.js.map +1 -1
- package/lib/components/FormComponents/DateTimeItems/CustomDateItem/DatePickerButton.js +2 -2
- package/lib/components/FormComponents/DateTimeItems/CustomDateItem/DatePickerButton.js.map +1 -1
- package/lib/components/FormComponents/DateTimeItems/CustomDateItem/MuiDatePicker.d.ts +1 -2
- package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomDateTimeItem.js +1 -1
- package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomDateTimeItem.js.map +1 -1
- package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.js +2 -2
- package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/CustomTimeField.js.map +1 -1
- package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/DateTimeField.js +1 -1
- package/lib/components/FormComponents/DateTimeItems/CustomDateTimeItem/DateTimeField.js.map +1 -1
- package/lib/components/FormComponents/DateTimeItems/utils/parseDate.js.map +1 -1
- package/lib/components/FormComponents/DateTimeItems/utils/parseTime.js.map +1 -1
- package/lib/components/FormComponents/DecimalItem/DecimalField.js +1 -1
- package/lib/components/FormComponents/DecimalItem/DecimalField.js.map +1 -1
- package/lib/components/FormComponents/DecimalItem/DecimalItem.js +2 -2
- package/lib/components/FormComponents/DecimalItem/DecimalItem.js.map +1 -1
- package/lib/components/FormComponents/DisplayItem/DisplayInstructions.js +1 -1
- package/lib/components/FormComponents/DisplayItem/DisplayInstructions.js.map +1 -1
- package/lib/components/FormComponents/DisplayItem/DisplayInstructions.styles.d.ts +1 -1
- package/lib/components/FormComponents/DisplayItem/DisplayItem.js +1 -1
- package/lib/components/FormComponents/DisplayItem/DisplayItem.js.map +1 -1
- package/lib/components/FormComponents/GridGroup/GridGroup.js +2 -2
- package/lib/components/FormComponents/GridGroup/GridGroup.js.map +1 -1
- package/lib/components/FormComponents/GridGroup/GridRow.js +2 -2
- package/lib/components/FormComponents/GridGroup/GridRow.js.map +1 -1
- package/lib/components/FormComponents/GridGroup/GridTable.js +2 -2
- package/lib/components/FormComponents/GridGroup/GridTable.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/GroupAccordion.styles.d.ts +12 -13
- package/lib/components/FormComponents/GroupItem/GroupHeading.js +2 -2
- package/lib/components/FormComponents/GroupItem/GroupHeading.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/GroupItem.js +1 -1
- package/lib/components/FormComponents/GroupItem/GroupItem.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/GroupItem.styles.d.ts +0 -1
- package/lib/components/FormComponents/GroupItem/GroupItemSwitcher.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/GroupItemView.js +7 -7
- package/lib/components/FormComponents/GroupItem/GroupItemView.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/NextPageButton.js +1 -1
- package/lib/components/FormComponents/GroupItem/NextPageButton.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/NextTabButton.js +1 -1
- package/lib/components/FormComponents/GroupItem/NextTabButton.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/PageButtonWrapper.js +1 -1
- package/lib/components/FormComponents/GroupItem/PageButtonWrapper.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/PreviousPageButton.js +1 -1
- package/lib/components/FormComponents/GroupItem/PreviousPageButton.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/PreviousTabButton.js +1 -1
- package/lib/components/FormComponents/GroupItem/PreviousTabButton.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/TabButtonsWrapper.js +1 -1
- package/lib/components/FormComponents/GroupItem/TabButtonsWrapper.js.map +1 -1
- package/lib/components/FormComponents/IntegerItem/IntegerField.js +1 -1
- package/lib/components/FormComponents/IntegerItem/IntegerField.js.map +1 -1
- package/lib/components/FormComponents/IntegerItem/IntegerItem.js +1 -1
- package/lib/components/FormComponents/IntegerItem/IntegerItem.js.map +1 -1
- package/lib/components/FormComponents/Item.styles.d.ts +0 -1
- package/lib/components/FormComponents/ItemParts/CheckboxSingle.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/CheckboxSingleWithOpenLabel.js +1 -1
- package/lib/components/FormComponents/ItemParts/CheckboxSingleWithOpenLabel.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/ClearInputButton.js +3 -3
- package/lib/components/FormComponents/ItemParts/ClearInputButton.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/ContextDisplayItem.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/DisplayUnitText.js +1 -1
- package/lib/components/FormComponents/ItemParts/DisplayUnitText.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/FadingCheckIcon.js +1 -1
- package/lib/components/FormComponents/ItemParts/FadingCheckIcon.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/FlyoverHoverCard.js +3 -3
- package/lib/components/FormComponents/ItemParts/FlyoverHoverCard.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/FlyoverItem.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/ItemFieldGrid.js +1 -1
- package/lib/components/FormComponents/ItemParts/ItemFieldGrid.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/ItemLabel.js +2 -2
- package/lib/components/FormComponents/ItemParts/ItemLabel.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/ItemTextSwitcher.js +3 -3
- package/lib/components/FormComponents/ItemParts/ItemTextSwitcher.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/RadioButtonWithOpenLabel.js +1 -1
- package/lib/components/FormComponents/ItemParts/RadioButtonWithOpenLabel.js.map +1 -1
- package/lib/components/FormComponents/ItemParts/RadioOptionList.js.map +1 -1
- package/lib/components/FormComponents/Lists.styles.d.ts +0 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteField.js +4 -4
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteField.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteItem.js +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceAutocompleteItem.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.js +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.js +2 -2
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetFields.js +3 -3
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetFields.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetItem.js +2 -2
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetItem.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceItemSwitcher.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.js +2 -2
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.js +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetFields.js +4 -4
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetFields.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetItem.js +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetItem.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionField.js +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionField.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionItem.js +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerOptionItem.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetField.js +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetField.js.map +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetItem.js +1 -1
- package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceSelectAnswerValueSetItem.js.map +1 -1
- package/lib/components/FormComponents/QuantityItem/QuantityComparatorField.js +1 -1
- package/lib/components/FormComponents/QuantityItem/QuantityComparatorField.js.map +1 -1
- package/lib/components/FormComponents/QuantityItem/QuantityField.js +1 -1
- package/lib/components/FormComponents/QuantityItem/QuantityField.js.map +1 -1
- package/lib/components/FormComponents/QuantityItem/QuantityItem.js +2 -2
- package/lib/components/FormComponents/QuantityItem/QuantityItem.js.map +1 -1
- package/lib/components/FormComponents/QuantityItem/QuantityUnitField.js +5 -1
- package/lib/components/FormComponents/QuantityItem/QuantityUnitField.js.map +1 -1
- package/lib/components/FormComponents/RepeatGroup/AddItemButton.js +1 -1
- package/lib/components/FormComponents/RepeatGroup/AddItemButton.js.map +1 -1
- package/lib/components/FormComponents/RepeatGroup/DeleteItemButton.js +1 -1
- package/lib/components/FormComponents/RepeatGroup/DeleteItemButton.js.map +1 -1
- package/lib/components/FormComponents/RepeatGroup/RepeatGroup.js.map +1 -1
- package/lib/components/FormComponents/RepeatGroup/RepeatGroupItem.js +1 -1
- package/lib/components/FormComponents/RepeatGroup/RepeatGroupItem.js.map +1 -1
- package/lib/components/FormComponents/RepeatGroup/RepeatGroupView.js +9 -9
- package/lib/components/FormComponents/RepeatGroup/RepeatGroupView.js.map +1 -1
- package/lib/components/FormComponents/RepeatItem/AddItemButton.js +1 -1
- package/lib/components/FormComponents/RepeatItem/AddItemButton.js.map +1 -1
- package/lib/components/FormComponents/RepeatItem/RemoveItemButton.js +1 -1
- package/lib/components/FormComponents/RepeatItem/RemoveItemButton.js.map +1 -1
- package/lib/components/FormComponents/RepeatItem/RepeatField.js +1 -1
- package/lib/components/FormComponents/RepeatItem/RepeatField.js.map +1 -1
- package/lib/components/FormComponents/RepeatItem/RepeatItem.js +3 -3
- package/lib/components/FormComponents/RepeatItem/RepeatItem.js.map +1 -1
- package/lib/components/FormComponents/RepeatItem/RepeatItem.styles.d.ts +0 -1
- package/lib/components/FormComponents/SingleItem/NestedSingleItemAccordion.styles.d.ts +13 -14
- package/lib/components/FormComponents/SingleItem/SingleItem.js.map +1 -1
- package/lib/components/FormComponents/SingleItem/SingleItemSwitcher.js.map +1 -1
- package/lib/components/FormComponents/SingleItem/SingleItemView.js +3 -3
- package/lib/components/FormComponents/SingleItem/SingleItemView.js.map +1 -1
- package/lib/components/FormComponents/SingleItem/SingleNestedItems.js +2 -2
- package/lib/components/FormComponents/SingleItem/SingleNestedItems.js.map +1 -1
- package/lib/components/FormComponents/SingleItem/StopPropagationWrapper.js +2 -2
- package/lib/components/FormComponents/SingleItem/StopPropagationWrapper.js.map +1 -1
- package/lib/components/FormComponents/SliderItem/Slider.styles.d.ts +2 -3
- package/lib/components/FormComponents/SliderItem/SliderDisplayValue.js +1 -1
- package/lib/components/FormComponents/SliderItem/SliderDisplayValue.js.map +1 -1
- package/lib/components/FormComponents/SliderItem/SliderField.js +2 -2
- package/lib/components/FormComponents/SliderItem/SliderField.js.map +1 -1
- package/lib/components/FormComponents/SliderItem/SliderItem.js +2 -2
- package/lib/components/FormComponents/SliderItem/SliderItem.js.map +1 -1
- package/lib/components/FormComponents/SliderItem/SliderLabels.js +2 -2
- package/lib/components/FormComponents/SliderItem/SliderLabels.js.map +1 -1
- package/lib/components/FormComponents/StringItem/StringField.js +1 -1
- package/lib/components/FormComponents/StringItem/StringField.js.map +1 -1
- package/lib/components/FormComponents/StringItem/StringItem.js +1 -1
- package/lib/components/FormComponents/StringItem/StringItem.js.map +1 -1
- package/lib/components/FormComponents/Tables/AddRowButton.js +1 -1
- package/lib/components/FormComponents/Tables/AddRowButton.js.map +1 -1
- package/lib/components/FormComponents/Tables/GroupTable.js.map +1 -1
- package/lib/components/FormComponents/Tables/GroupTableBody.js +2 -2
- package/lib/components/FormComponents/Tables/GroupTableBody.js.map +1 -1
- package/lib/components/FormComponents/Tables/GroupTableRow.js +2 -2
- package/lib/components/FormComponents/Tables/GroupTableRow.js.map +1 -1
- package/lib/components/FormComponents/Tables/GroupTableRowCells.js +1 -1
- package/lib/components/FormComponents/Tables/GroupTableRowCells.js.map +1 -1
- package/lib/components/FormComponents/Tables/GroupTableView.js +6 -6
- package/lib/components/FormComponents/Tables/GroupTableView.js.map +1 -1
- package/lib/components/FormComponents/Tables/RemoveRowButton.js +1 -1
- package/lib/components/FormComponents/Tables/RemoveRowButton.js.map +1 -1
- package/lib/components/FormComponents/Tables/SelectRowButton.js +1 -1
- package/lib/components/FormComponents/Tables/SelectRowButton.js.map +1 -1
- package/lib/components/FormComponents/Tables/Table.styles.d.ts +0 -1
- package/lib/components/FormComponents/TextItem/TextField.js +1 -1
- package/lib/components/FormComponents/TextItem/TextField.js.map +1 -1
- package/lib/components/FormComponents/TextItem/TextItem.js +1 -1
- package/lib/components/FormComponents/TextItem/TextItem.js.map +1 -1
- package/lib/components/FormComponents/TimeItem/TimeField.js +2 -2
- package/lib/components/FormComponents/TimeItem/TimeField.js.map +1 -1
- package/lib/components/FormComponents/TimeItem/TimeItem.js +1 -1
- package/lib/components/FormComponents/TimeItem/TimeItem.js.map +1 -1
- package/lib/components/FormComponents/UrlItem/UrlField.js +1 -1
- package/lib/components/FormComponents/UrlItem/UrlField.js.map +1 -1
- package/lib/components/FormComponents/UrlItem/UrlItem.js +1 -1
- package/lib/components/FormComponents/UrlItem/UrlItem.js.map +1 -1
- package/lib/components/Lists.styles.d.ts +0 -1
- package/lib/components/Renderer/BaseRenderer.js +3 -3
- package/lib/components/Renderer/BaseRenderer.js.map +1 -1
- package/lib/components/Renderer/FormBodyCollapsible.js +2 -2
- package/lib/components/Renderer/FormBodyCollapsible.js.map +1 -1
- package/lib/components/Renderer/FormBodyPageContainer.js +3 -3
- package/lib/components/Renderer/FormBodyPageContainer.js.map +1 -1
- package/lib/components/Renderer/FormBodyPaginated.js +4 -4
- package/lib/components/Renderer/FormBodyPaginated.js.map +1 -1
- package/lib/components/Renderer/FormBodySingleCollapsible.js +3 -3
- package/lib/components/Renderer/FormBodySingleCollapsible.js.map +1 -1
- package/lib/components/Renderer/FormBodySingleCollapsibleWrapper.js +1 -1
- package/lib/components/Renderer/FormBodySingleCollapsibleWrapper.js.map +1 -1
- package/lib/components/Renderer/FormBodyTabbed.js +3 -3
- package/lib/components/Renderer/FormBodyTabbed.js.map +1 -1
- package/lib/components/Renderer/FormTopLevelItem.js +2 -2
- package/lib/components/Renderer/FormTopLevelItem.js.map +1 -1
- package/lib/components/Renderer/SmartFormsRenderer.js +2 -2
- package/lib/components/Renderer/SmartFormsRenderer.js.map +1 -1
- package/lib/components/Tabs/CompleteTabButton.js +1 -1
- package/lib/components/Tabs/CompleteTabButton.js.map +1 -1
- package/lib/components/Tabs/FormBodySingleTab.js +2 -2
- package/lib/components/Tabs/FormBodySingleTab.js.map +1 -1
- package/lib/components/Tabs/FormBodyTabList.js +1 -1
- package/lib/components/Tabs/FormBodyTabList.js.map +1 -1
- package/lib/components/Tabs/FormBodyTabListWrapper.js +1 -1
- package/lib/components/Tabs/FormBodyTabListWrapper.js.map +1 -1
- package/lib/components/Tabs/ShowCompletedTabsSection.js +2 -2
- package/lib/components/Tabs/ShowCompletedTabsSection.js.map +1 -1
- package/lib/hooks/UseFileDrop.js.map +1 -1
- package/lib/hooks/useAttachmentUrlValidation.js.map +1 -1
- package/lib/hooks/useBooleanCalculatedExpression.js.map +1 -1
- package/lib/hooks/useBuildForm.js.map +1 -1
- package/lib/hooks/useCodingCalculatedExpression.js.map +1 -1
- package/lib/hooks/useDateTimeNonEmpty.js.map +1 -1
- package/lib/hooks/useDateValidation.js.map +1 -1
- package/lib/hooks/useDecimalCalculatedExpression.js.map +1 -1
- package/lib/hooks/useDisplayCqfAndCalculatedExpression.js.map +1 -1
- package/lib/hooks/useFocusTabHeading.js.map +1 -1
- package/lib/hooks/useGroupTableRows.d.ts +0 -1
- package/lib/hooks/useHidden.js.map +1 -1
- package/lib/hooks/useInitialiseForm.js.map +1 -1
- package/lib/hooks/useInitialiseGroupTableRows.js.map +1 -1
- package/lib/hooks/useInitialiseRepeatAnswers.js.map +1 -1
- package/lib/hooks/useInitialiseRepeatGroups.js.map +1 -1
- package/lib/hooks/useIntegerCalculatedExpression.js.map +1 -1
- package/lib/hooks/useNextAndPreviousVisiblePages.js.map +1 -1
- package/lib/hooks/useNextAndPreviousVisibleTabs.js.map +1 -1
- package/lib/hooks/useOpenLabel.d.ts +0 -1
- package/lib/hooks/useOpenLabel.js.map +1 -1
- package/lib/hooks/useParseXhtml.js +1 -1
- package/lib/hooks/useParseXhtml.js.map +1 -1
- package/lib/hooks/useQuantityCalculatedExpression.js.map +1 -1
- package/lib/hooks/useReadOnly.js.map +1 -1
- package/lib/hooks/useResponsive.js.map +1 -1
- package/lib/hooks/useStringCalculatedExpression.js.map +1 -1
- package/lib/hooks/useTerminologyServerQuery.js.map +1 -1
- package/lib/hooks/useTimeValidation.js.map +1 -1
- package/lib/hooks/useValidationFeedback.js +1 -1
- package/lib/hooks/useValidationFeedback.js.map +1 -1
- package/lib/hooks/useValueSetCodings.js.map +1 -1
- package/lib/stores/questionnaireStore.d.ts +1 -1
- package/lib/stores/questionnaireStore.js +1 -1
- package/lib/stores/questionnaireStore.js.map +1 -1
- package/lib/stores/rendererStylingStore.d.ts +4 -4
- package/lib/stores/selector.js.map +1 -1
- package/lib/stories/storybookWrappers/InitialiseFormWrapperForStorybook.js +2 -2
- package/lib/stories/storybookWrappers/InitialiseFormWrapperForStorybook.js.map +1 -1
- package/lib/theme/RendererThemeProvider.js +1 -1
- package/lib/theme/RendererThemeProvider.js.map +1 -1
- package/lib/theme/themeOptions.js +24 -24
- package/lib/theme/themeOptions.js.map +1 -1
- package/lib/theme/typography.js +15 -15
- package/lib/theme/typography.js.map +1 -1
- package/lib/utils/calculatedExpression.js.map +1 -1
- package/lib/utils/choice.js.map +1 -1
- package/lib/utils/computedUpdates.js.map +1 -1
- package/lib/utils/enableWhen.js.map +1 -1
- package/lib/utils/enableWhenExpression.js.map +1 -1
- package/lib/utils/extractObservation.js.map +1 -1
- package/lib/utils/fhirpath.js +1 -1
- package/lib/utils/fhirpath.js.map +1 -1
- package/lib/utils/fileUtils.js.map +1 -1
- package/lib/utils/formChanges.js.map +1 -1
- package/lib/utils/genericRecursive.js.map +1 -1
- package/lib/utils/getExpressionsFromItem.js.map +1 -1
- package/lib/utils/headingVariant.js.map +1 -1
- package/lib/utils/initialise.js.map +1 -1
- package/lib/utils/itemControl.js.map +1 -1
- package/lib/utils/manageForm.js.map +1 -1
- package/lib/utils/mapItem.js.map +1 -1
- package/lib/utils/misc.js.map +1 -1
- package/lib/utils/openChoice.js.map +1 -1
- package/lib/utils/page.js.map +1 -1
- package/lib/utils/parameterisedValueSets.js.map +1 -1
- package/lib/utils/parseInputs.js.map +1 -1
- package/lib/utils/qItem.js.map +1 -1
- package/lib/utils/qrItem.js.map +1 -1
- package/lib/utils/quantity.js.map +1 -1
- package/lib/utils/questionnaireResponseStoreUtils/updatableResponseItems.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/addAdditionalVariables.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/addDisplayToCodings.js +4 -4
- package/lib/utils/questionnaireStoreUtils/addDisplayToCodings.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/extractContainedValueSets.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/extractLaunchContext.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/extractOtherExtensions.js +1 -1
- package/lib/utils/questionnaireStoreUtils/extractOtherExtensions.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/extractPages.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/extractTabs.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/extractTargetConstraint.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/extractVariables.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/insertAnswerOptions.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/resolveValueSets.js +1 -1
- package/lib/utils/questionnaireStoreUtils/resolveValueSets.js.map +1 -1
- package/lib/utils/removeEmptyAnswers.js.map +1 -1
- package/lib/utils/removeRepeatId.js.map +1 -1
- package/lib/utils/repopulateIntoResponse.js.map +1 -1
- package/lib/utils/repopulateItems.js.map +1 -1
- package/lib/utils/slider.js.map +1 -1
- package/lib/utils/tabs.js.map +1 -1
- package/lib/utils/targetConstraint.js +2 -2
- package/lib/utils/targetConstraint.js.map +1 -1
- package/lib/utils/validate.d.ts +40 -40
- package/lib/utils/validate.js.map +1 -1
- package/lib/utils/valueSet.js.map +1 -1
- package/package.json +22 -17
- package/src/components/FormComponents/DecimalItem/DecimalField.tsx +1 -1
- package/src/components/FormComponents/ItemParts/DisplayUnitText.tsx +1 -5
- package/src/components/FormComponents/ItemParts/ItemTextSwitcher.tsx +2 -2
- package/src/components/FormComponents/QuantityItem/QuantityUnitField.tsx +10 -1
- package/src/stories/assets/fhirClient/mockFhirClient.ts +52 -0
- package/src/stories/assets/patients/PatSmartForm.ts +281 -0
- package/src/stories/assets/practitioners/PracPrimaryPeter.ts +38 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreAllergyIntolerance.json +209 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreCondition.json +220 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreEncounter.json +299 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreImmunization.json +175 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreMedicationRequest.json +229 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBP.json +359 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyHeight.json +195 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyWeight.json +195 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationHeartRate.json +195 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationSmokingStatus.json +174 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePatient.json +495 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitioner.json +139 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitionerRole.json +216 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreProcedure.json +199 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreRespirationRate.json +195 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreWaistCircumference.json +195 -0
- package/src/stories/assets/questionnaires/QAdvancedAdditionalDisplayContent.ts +113 -0
- package/src/stories/assets/questionnaires/QAdvancedControlAppearance.ts +865 -0
- package/src/stories/assets/questionnaires/QAdvancedOther.ts +494 -0
- package/src/stories/assets/questionnaires/QAdvancedTextApperance.ts +503 -0
- package/src/stories/assets/questionnaires/QAttachment.ts +38 -0
- package/src/stories/assets/questionnaires/QAuCoreTesting.ts +3796 -0
- package/src/stories/assets/questionnaires/QBehaviorCalculations.ts +643 -0
- package/src/stories/assets/questionnaires/QBehaviorChoiceRestriction.ts +281 -0
- package/src/stories/assets/questionnaires/QBehaviorOther.ts +1241 -0
- package/src/stories/assets/questionnaires/QBehaviorValueConstraints.ts +508 -0
- package/src/stories/assets/questionnaires/QBoolean.ts +180 -0
- package/src/stories/assets/questionnaires/QButtonTester.ts +497 -0
- package/src/stories/assets/questionnaires/QChoice.ts +493 -0
- package/src/stories/assets/questionnaires/QDate.ts +56 -0
- package/src/stories/assets/questionnaires/QDateTime.ts +56 -0
- package/src/stories/assets/questionnaires/QDecimal.ts +56 -0
- package/src/stories/assets/questionnaires/QDisplay.ts +197 -0
- package/src/stories/assets/questionnaires/QFormPopulation.ts +1349 -0
- package/src/stories/assets/questionnaires/QGroup.ts +52 -0
- package/src/stories/assets/questionnaires/QGroupTableTester.ts +461 -0
- package/src/stories/assets/questionnaires/QIdRemoverDebugger.ts +161 -0
- package/src/stories/assets/questionnaires/QInteger.ts +119 -0
- package/src/stories/assets/questionnaires/QItemControlDisplay.ts +558 -0
- package/src/stories/assets/questionnaires/QItemControlGroup.ts +1530 -0
- package/src/stories/assets/questionnaires/QItemControlQuestion.ts +1271 -0
- package/src/stories/assets/questionnaires/QMbs715Tester.ts +32888 -0
- package/src/stories/assets/questionnaires/QOpenChoice.ts +151 -0
- package/src/stories/assets/questionnaires/QParameterisedValueSets.ts +312 -0
- package/src/stories/assets/questionnaires/QPrePopTester.ts +543 -0
- package/src/stories/assets/questionnaires/QQuantity.ts +365 -0
- package/src/stories/assets/questionnaires/QReference.ts +38 -0
- package/src/stories/assets/questionnaires/QSingleItems.ts +251 -0
- package/src/stories/assets/questionnaires/QString.ts +131 -0
- package/src/stories/assets/questionnaires/QTerminologyControl.ts +59 -0
- package/src/stories/assets/questionnaires/QText.ts +169 -0
- package/src/stories/assets/questionnaires/QTime.ts +38 -0
- package/src/stories/assets/questionnaires/QUrl.ts +38 -0
- package/src/stories/assets/questionnaires/QValidateTester.ts +118 -0
- package/src/stories/assets/questionnaires/index.ts +43 -0
- package/src/stories/itemTypes/Attachment.stories.tsx +39 -0
- package/src/stories/itemTypes/Boolean.stories.tsx +65 -0
- package/src/stories/itemTypes/Choice.stories.tsx +78 -0
- package/src/stories/itemTypes/Date.stories.tsx +46 -0
- package/src/stories/itemTypes/DateTime.stories.tsx +45 -0
- package/src/stories/itemTypes/Decimal.stories.tsx +56 -0
- package/src/stories/itemTypes/Display.stories.tsx +55 -0
- package/src/stories/itemTypes/Group.stories.tsx +39 -0
- package/src/stories/itemTypes/Integer.stories.tsx +55 -0
- package/src/stories/itemTypes/OpenChoice.stories.tsx +64 -0
- package/src/stories/itemTypes/Quantity.stories.tsx +71 -0
- package/src/stories/itemTypes/Reference.stories.tsx +39 -0
- package/src/stories/itemTypes/String.stories.tsx +51 -0
- package/src/stories/itemTypes/Text.stories.tsx +51 -0
- package/src/stories/itemTypes/Time.stories.tsx +39 -0
- package/src/stories/itemTypes/Url.stories.tsx +39 -0
- package/src/stories/sdc/AdvancedAdditionalDisplayContent.stories.tsx +51 -0
- package/src/stories/sdc/AdvancedControlAppearance.stories.tsx +90 -0
- package/src/stories/sdc/AdvancedOther.stories.tsx +76 -0
- package/src/stories/sdc/AdvancedTextAppearance.stories.tsx +104 -0
- package/src/stories/sdc/BehaviorCalculations.stories.tsx +69 -0
- package/src/stories/sdc/BehaviorChoiceRestriction.stories.tsx +76 -0
- package/src/stories/sdc/BehaviorOther.stories.tsx +97 -0
- package/src/stories/sdc/BehaviorValueConstraints.stories.tsx +88 -0
- package/src/stories/sdc/FormPopulation.stories.tsx +97 -0
- package/src/stories/sdc/ItemControlDisplay.stories.tsx +69 -0
- package/src/stories/sdc/ItemControlGroup.stories.tsx +90 -0
- package/src/stories/sdc/ItemControlQuestion.stories.tsx +118 -0
- package/src/stories/sdc/OtherExtensions.stories.tsx +39 -0
- package/src/stories/sdc/ParameterisedValueSets.stories.tsx +48 -0
- package/src/stories/storybookWrappers/BuildFormButtonForStorybook.tsx +54 -0
- package/src/stories/storybookWrappers/BuildFormButtonTesterWrapperForStorybook.tsx +76 -0
- package/src/stories/storybookWrappers/BuildFormWrapperForStorybook.tsx +61 -0
- package/src/stories/storybookWrappers/FormValidationTesterWrapperForStorybook.tsx +70 -0
- package/src/stories/storybookWrappers/FormValidationViewerForStorybook.tsx +28 -0
- package/src/stories/storybookWrappers/IdRemoverButtonForStorybook.tsx +49 -0
- package/src/stories/storybookWrappers/IdRemoverDebuggerWrapperForStorybook.tsx +84 -0
- package/src/stories/storybookWrappers/InitialiseFormWrapperForStorybook.tsx +105 -0
- package/src/stories/storybookWrappers/PrePopButtonForStorybook.tsx +56 -0
- package/src/stories/storybookWrappers/PrePopWrapperForStorybook.tsx +114 -0
- package/src/stories/storybookWrappers/TestCssSheet.css +17 -0
- package/src/stories/storybookWrappers/ValidateFormButtonForStorybook.tsx +41 -0
- package/src/stories/storybookWrappers/globals.ts +18 -0
- package/src/stories/storybookWrappers/iframeResizerChild.js +1063 -0
- package/src/stories/storybookWrappers/index.ts +19 -0
- package/src/stories/storybookWrappers/populateCallbackForStorybook.ts +55 -0
- package/src/stories/testing/AuCoreTester.stories.tsx +196 -0
- package/src/stories/testing/BuildFormButtonTesterWrapper.stories.tsx +40 -0
- package/src/stories/testing/GroupTableTester.stories.tsx +39 -0
- package/src/stories/testing/IdRemoverDebuggerWrapper.stories.tsx +39 -0
- package/src/stories/testing/Mbs715Tester.stories.tsx +57 -0
- package/src/stories/testing/PrePopButtonTesterWrapper.stories.tsx +55 -0
- package/src/stories/testing/ValidateFormTesterWrapper.stories.tsx +39 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,1530 @@
|
|
|
1
|
+
import type { Questionnaire } from 'fhir/r4';
|
|
2
|
+
|
|
3
|
+
export const qItemControlGroupGTableRepeats: Questionnaire = {
|
|
4
|
+
resourceType: 'Questionnaire',
|
|
5
|
+
id: 'ItemControlGroupGTableRepeats',
|
|
6
|
+
name: 'ItemControlGroupGTableRepeats',
|
|
7
|
+
title: 'Item Control Group GTable - Repeats',
|
|
8
|
+
version: '0.1.0',
|
|
9
|
+
status: 'draft',
|
|
10
|
+
publisher: 'AEHRC CSIRO',
|
|
11
|
+
date: '2024-05-01',
|
|
12
|
+
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-group-gtable-repeats',
|
|
13
|
+
contained: [
|
|
14
|
+
{
|
|
15
|
+
resourceType: 'ValueSet',
|
|
16
|
+
id: 'MedicalHistory',
|
|
17
|
+
url: 'https://smartforms.csiro.au/ig/ValueSet/MedicalHistory',
|
|
18
|
+
name: 'MedicalHistory',
|
|
19
|
+
title: 'Medical History',
|
|
20
|
+
status: 'draft',
|
|
21
|
+
experimental: false,
|
|
22
|
+
description:
|
|
23
|
+
'The Medical History value set includes values that may be used to represent medical history, operations and hospital admissions.',
|
|
24
|
+
compose: {
|
|
25
|
+
include: [
|
|
26
|
+
{
|
|
27
|
+
system: 'http://snomed.info/sct',
|
|
28
|
+
filter: [
|
|
29
|
+
{
|
|
30
|
+
property: 'constraint',
|
|
31
|
+
op: '=',
|
|
32
|
+
value:
|
|
33
|
+
'^32570581000036105|Problem/Diagnosis reference set| OR ^32570141000036105|Procedure foundation reference set|'
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
resourceType: 'ValueSet',
|
|
42
|
+
id: 'condition-clinical',
|
|
43
|
+
extension: [
|
|
44
|
+
{
|
|
45
|
+
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-wg',
|
|
46
|
+
valueCode: 'pc'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status',
|
|
50
|
+
valueCode: 'trial-use'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm',
|
|
54
|
+
valueInteger: 3
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
url: 'http://hl7.org/fhir/ValueSet/condition-clinical',
|
|
58
|
+
identifier: [
|
|
59
|
+
{
|
|
60
|
+
system: 'urn:ietf:rfc:3986',
|
|
61
|
+
value: 'urn:oid:2.16.840.1.113883.4.642.3.164'
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
version: '4.0.1',
|
|
65
|
+
name: 'ConditionClinicalStatusCodes',
|
|
66
|
+
title: 'Condition Clinical Status Codes',
|
|
67
|
+
status: 'draft',
|
|
68
|
+
experimental: false,
|
|
69
|
+
publisher: 'FHIR Project team',
|
|
70
|
+
contact: [
|
|
71
|
+
{
|
|
72
|
+
telecom: [
|
|
73
|
+
{
|
|
74
|
+
system: 'url',
|
|
75
|
+
value: 'http://hl7.org/fhir'
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
description: 'Preferred value set for Condition Clinical Status.',
|
|
81
|
+
copyright: 'Copyright © 2011+ HL7. Licensed under Creative Commons "No Rights Reserved".',
|
|
82
|
+
compose: {
|
|
83
|
+
include: [
|
|
84
|
+
{
|
|
85
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical'
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
expansion: {
|
|
90
|
+
identifier: 'urn:uuid:79d21cca-9f34-4cfa-9020-17eee95eeed8',
|
|
91
|
+
timestamp: '2024-04-02T14:17:12+10:00',
|
|
92
|
+
total: 6,
|
|
93
|
+
parameter: [
|
|
94
|
+
{
|
|
95
|
+
name: 'version',
|
|
96
|
+
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'used-codesystem',
|
|
100
|
+
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'warning-draft',
|
|
104
|
+
valueUri: 'http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1'
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'warning-trial-use',
|
|
108
|
+
valueUri: 'http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1'
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'warning-trial-use',
|
|
112
|
+
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'warning-draft',
|
|
116
|
+
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
contains: [
|
|
120
|
+
{
|
|
121
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
122
|
+
code: 'active',
|
|
123
|
+
display: 'Active'
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
127
|
+
code: 'inactive',
|
|
128
|
+
display: 'Inactive'
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
132
|
+
code: 'recurrence',
|
|
133
|
+
display: 'Recurrence'
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
137
|
+
code: 'relapse',
|
|
138
|
+
display: 'Relapse'
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
142
|
+
code: 'remission',
|
|
143
|
+
display: 'Remission'
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
147
|
+
code: 'resolved',
|
|
148
|
+
display: 'Resolved'
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
item: [
|
|
155
|
+
{
|
|
156
|
+
extension: [
|
|
157
|
+
{
|
|
158
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
159
|
+
valueCodeableConcept: {
|
|
160
|
+
coding: [
|
|
161
|
+
{
|
|
162
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
163
|
+
code: 'gtable'
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
linkId: 'medical-history',
|
|
170
|
+
text: 'Medical history and current problems list',
|
|
171
|
+
type: 'group',
|
|
172
|
+
repeats: true,
|
|
173
|
+
item: [
|
|
174
|
+
{
|
|
175
|
+
extension: [
|
|
176
|
+
{
|
|
177
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
178
|
+
valueCodeableConcept: {
|
|
179
|
+
coding: [
|
|
180
|
+
{
|
|
181
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
182
|
+
code: 'autocomplete'
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
linkId: 'medical-history-condition',
|
|
189
|
+
text: 'Condition',
|
|
190
|
+
type: 'open-choice',
|
|
191
|
+
answerValueSet: '#MedicalHistory'
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
extension: [
|
|
195
|
+
{
|
|
196
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
197
|
+
valueCodeableConcept: {
|
|
198
|
+
coding: [
|
|
199
|
+
{
|
|
200
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
201
|
+
code: 'drop-down'
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
linkId: 'medical-history-status',
|
|
208
|
+
text: 'Clinical Status',
|
|
209
|
+
type: 'choice',
|
|
210
|
+
answerValueSet: '#condition-clinical'
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
linkId: 'medical-history-onset',
|
|
214
|
+
text: 'Onset Date',
|
|
215
|
+
type: 'date'
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
linkId: 'medical-history-recorded',
|
|
219
|
+
text: 'Recorded Date',
|
|
220
|
+
type: 'date'
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
export const qItemControlGroupGTableSingle: Questionnaire = {
|
|
228
|
+
resourceType: 'Questionnaire',
|
|
229
|
+
id: 'ItemControlGroupGTableSingle',
|
|
230
|
+
name: 'ItemControlGroupGTableSingle',
|
|
231
|
+
title: 'Item Control Group GTable - Single',
|
|
232
|
+
version: '0.1.0',
|
|
233
|
+
status: 'draft',
|
|
234
|
+
publisher: 'AEHRC CSIRO',
|
|
235
|
+
date: '2024-05-01',
|
|
236
|
+
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-group-gtable-single',
|
|
237
|
+
contained: [
|
|
238
|
+
{
|
|
239
|
+
resourceType: 'ValueSet',
|
|
240
|
+
id: 'MedicalHistory',
|
|
241
|
+
url: 'https://smartforms.csiro.au/ig/ValueSet/MedicalHistory',
|
|
242
|
+
name: 'MedicalHistory',
|
|
243
|
+
title: 'Medical History',
|
|
244
|
+
status: 'draft',
|
|
245
|
+
experimental: false,
|
|
246
|
+
description:
|
|
247
|
+
'The Medical History value set includes values that may be used to represent medical history, operations and hospital admissions.',
|
|
248
|
+
compose: {
|
|
249
|
+
include: [
|
|
250
|
+
{
|
|
251
|
+
system: 'http://snomed.info/sct',
|
|
252
|
+
filter: [
|
|
253
|
+
{
|
|
254
|
+
property: 'constraint',
|
|
255
|
+
op: '=',
|
|
256
|
+
value:
|
|
257
|
+
'^32570581000036105|Problem/Diagnosis reference set| OR ^32570141000036105|Procedure foundation reference set|'
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
resourceType: 'ValueSet',
|
|
266
|
+
id: 'condition-clinical',
|
|
267
|
+
extension: [
|
|
268
|
+
{
|
|
269
|
+
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-wg',
|
|
270
|
+
valueCode: 'pc'
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status',
|
|
274
|
+
valueCode: 'trial-use'
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm',
|
|
278
|
+
valueInteger: 3
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
url: 'http://hl7.org/fhir/ValueSet/condition-clinical',
|
|
282
|
+
identifier: [
|
|
283
|
+
{
|
|
284
|
+
system: 'urn:ietf:rfc:3986',
|
|
285
|
+
value: 'urn:oid:2.16.840.1.113883.4.642.3.164'
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
version: '4.0.1',
|
|
289
|
+
name: 'ConditionClinicalStatusCodes',
|
|
290
|
+
title: 'Condition Clinical Status Codes',
|
|
291
|
+
status: 'draft',
|
|
292
|
+
experimental: false,
|
|
293
|
+
publisher: 'FHIR Project team',
|
|
294
|
+
contact: [
|
|
295
|
+
{
|
|
296
|
+
telecom: [
|
|
297
|
+
{
|
|
298
|
+
system: 'url',
|
|
299
|
+
value: 'http://hl7.org/fhir'
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
description: 'Preferred value set for Condition Clinical Status.',
|
|
305
|
+
copyright: 'Copyright © 2011+ HL7. Licensed under Creative Commons "No Rights Reserved".',
|
|
306
|
+
compose: {
|
|
307
|
+
include: [
|
|
308
|
+
{
|
|
309
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical'
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
expansion: {
|
|
314
|
+
identifier: 'urn:uuid:79d21cca-9f34-4cfa-9020-17eee95eeed8',
|
|
315
|
+
timestamp: '2024-04-02T14:17:12+10:00',
|
|
316
|
+
total: 6,
|
|
317
|
+
parameter: [
|
|
318
|
+
{
|
|
319
|
+
name: 'version',
|
|
320
|
+
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
name: 'used-codesystem',
|
|
324
|
+
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
name: 'warning-draft',
|
|
328
|
+
valueUri: 'http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1'
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
name: 'warning-trial-use',
|
|
332
|
+
valueUri: 'http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1'
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
name: 'warning-trial-use',
|
|
336
|
+
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
name: 'warning-draft',
|
|
340
|
+
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
contains: [
|
|
344
|
+
{
|
|
345
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
346
|
+
code: 'active',
|
|
347
|
+
display: 'Active'
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
351
|
+
code: 'inactive',
|
|
352
|
+
display: 'Inactive'
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
356
|
+
code: 'recurrence',
|
|
357
|
+
display: 'Recurrence'
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
361
|
+
code: 'relapse',
|
|
362
|
+
display: 'Relapse'
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
366
|
+
code: 'remission',
|
|
367
|
+
display: 'Remission'
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
371
|
+
code: 'resolved',
|
|
372
|
+
display: 'Resolved'
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
item: [
|
|
379
|
+
{
|
|
380
|
+
extension: [
|
|
381
|
+
{
|
|
382
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
383
|
+
valueCodeableConcept: {
|
|
384
|
+
coding: [
|
|
385
|
+
{
|
|
386
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
387
|
+
code: 'gtable'
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
linkId: 'medical-history',
|
|
394
|
+
text: 'Medical history and current problems list',
|
|
395
|
+
type: 'group',
|
|
396
|
+
repeats: false,
|
|
397
|
+
item: [
|
|
398
|
+
{
|
|
399
|
+
extension: [
|
|
400
|
+
{
|
|
401
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
402
|
+
valueCodeableConcept: {
|
|
403
|
+
coding: [
|
|
404
|
+
{
|
|
405
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
406
|
+
code: 'autocomplete'
|
|
407
|
+
}
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
],
|
|
412
|
+
linkId: 'medical-history-condition',
|
|
413
|
+
text: 'Condition',
|
|
414
|
+
type: 'open-choice',
|
|
415
|
+
answerValueSet: '#MedicalHistory'
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
extension: [
|
|
419
|
+
{
|
|
420
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
421
|
+
valueCodeableConcept: {
|
|
422
|
+
coding: [
|
|
423
|
+
{
|
|
424
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
425
|
+
code: 'drop-down'
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
linkId: 'medical-history-status',
|
|
432
|
+
text: 'Clinical Status',
|
|
433
|
+
type: 'choice',
|
|
434
|
+
answerValueSet: '#condition-clinical'
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
linkId: 'medical-history-onset',
|
|
438
|
+
text: 'Onset Date',
|
|
439
|
+
type: 'date'
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
linkId: 'medical-history-recorded',
|
|
443
|
+
text: 'Recorded Date',
|
|
444
|
+
type: 'date'
|
|
445
|
+
}
|
|
446
|
+
]
|
|
447
|
+
}
|
|
448
|
+
]
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
export const qItemControlGroupGridSingleRow: Questionnaire = {
|
|
452
|
+
resourceType: 'Questionnaire',
|
|
453
|
+
id: 'ItemControlGroupGridSingleRow',
|
|
454
|
+
name: 'ItemControlGroupGridSingleRow',
|
|
455
|
+
title: 'Item Control Group Grid - Single Row',
|
|
456
|
+
version: '0.1.0',
|
|
457
|
+
status: 'draft',
|
|
458
|
+
publisher: 'AEHRC CSIRO',
|
|
459
|
+
date: '2024-05-01',
|
|
460
|
+
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-group-grid-1',
|
|
461
|
+
item: [
|
|
462
|
+
{
|
|
463
|
+
linkId: 'parent-container',
|
|
464
|
+
type: 'group',
|
|
465
|
+
repeats: false,
|
|
466
|
+
item: [
|
|
467
|
+
{
|
|
468
|
+
extension: [
|
|
469
|
+
{
|
|
470
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
471
|
+
valueCodeableConcept: {
|
|
472
|
+
coding: [
|
|
473
|
+
{
|
|
474
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
475
|
+
version: '1.0.0',
|
|
476
|
+
code: 'grid'
|
|
477
|
+
}
|
|
478
|
+
]
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
linkId: 'blood-pressure-grid',
|
|
483
|
+
type: 'group',
|
|
484
|
+
repeats: false,
|
|
485
|
+
item: [
|
|
486
|
+
{
|
|
487
|
+
linkId: 'blood-pressure-group',
|
|
488
|
+
text: 'Blood pressure',
|
|
489
|
+
type: 'group',
|
|
490
|
+
repeats: false,
|
|
491
|
+
item: [
|
|
492
|
+
{
|
|
493
|
+
extension: [
|
|
494
|
+
{
|
|
495
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
496
|
+
valueCoding: {
|
|
497
|
+
system: 'http://unitsofmeasure.org',
|
|
498
|
+
code: 'mm[Hg]',
|
|
499
|
+
display: 'mm Hg'
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
linkId: 'blood-pressure-systolic',
|
|
504
|
+
text: 'Systolic',
|
|
505
|
+
type: 'integer',
|
|
506
|
+
repeats: false
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
extension: [
|
|
510
|
+
{
|
|
511
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
512
|
+
valueCoding: {
|
|
513
|
+
system: 'http://unitsofmeasure.org',
|
|
514
|
+
code: 'mm[Hg]',
|
|
515
|
+
display: 'mm Hg'
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
linkId: 'blood-pressure-diastolic',
|
|
520
|
+
text: 'Diastolic',
|
|
521
|
+
type: 'integer',
|
|
522
|
+
repeats: false
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
linkId: 'blood-pressure-date',
|
|
526
|
+
text: 'Date performed',
|
|
527
|
+
type: 'date',
|
|
528
|
+
repeats: false
|
|
529
|
+
}
|
|
530
|
+
]
|
|
531
|
+
}
|
|
532
|
+
]
|
|
533
|
+
}
|
|
534
|
+
]
|
|
535
|
+
}
|
|
536
|
+
]
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
export const qItemControlGroupGridMultiRow: Questionnaire = {
|
|
540
|
+
resourceType: 'Questionnaire',
|
|
541
|
+
id: 'ItemControlGroupGridMultiRow',
|
|
542
|
+
name: 'ItemControlGroupGridMultiRow',
|
|
543
|
+
title: 'Item Control Group Grid - Multi Row',
|
|
544
|
+
version: '0.1.0',
|
|
545
|
+
status: 'draft',
|
|
546
|
+
publisher: 'AEHRC CSIRO',
|
|
547
|
+
date: '2024-05-01',
|
|
548
|
+
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-group-grid-2',
|
|
549
|
+
item: [
|
|
550
|
+
{
|
|
551
|
+
linkId: 'parent-container',
|
|
552
|
+
text: '',
|
|
553
|
+
type: 'group',
|
|
554
|
+
repeats: false,
|
|
555
|
+
item: [
|
|
556
|
+
{
|
|
557
|
+
extension: [
|
|
558
|
+
{
|
|
559
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
560
|
+
valueCodeableConcept: {
|
|
561
|
+
coding: [
|
|
562
|
+
{
|
|
563
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
564
|
+
version: '1.0.0',
|
|
565
|
+
code: 'grid'
|
|
566
|
+
}
|
|
567
|
+
]
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
],
|
|
571
|
+
linkId: 'grid-group',
|
|
572
|
+
type: 'group',
|
|
573
|
+
repeats: false,
|
|
574
|
+
item: [
|
|
575
|
+
{
|
|
576
|
+
linkId: 'height-row',
|
|
577
|
+
text: 'Height',
|
|
578
|
+
type: 'group',
|
|
579
|
+
repeats: false,
|
|
580
|
+
item: [
|
|
581
|
+
{
|
|
582
|
+
extension: [
|
|
583
|
+
{
|
|
584
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
585
|
+
valueCoding: {
|
|
586
|
+
system: 'http://unitsofmeasure.org',
|
|
587
|
+
code: 'cm',
|
|
588
|
+
display: 'cm'
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
],
|
|
592
|
+
linkId: 'height-value',
|
|
593
|
+
text: 'Value',
|
|
594
|
+
type: 'decimal',
|
|
595
|
+
repeats: false
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
linkId: 'height-date-performed',
|
|
599
|
+
text: 'Date performed',
|
|
600
|
+
type: 'date',
|
|
601
|
+
repeats: false
|
|
602
|
+
}
|
|
603
|
+
]
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
linkId: 'weight-row',
|
|
607
|
+
text: 'Weight',
|
|
608
|
+
type: 'group',
|
|
609
|
+
repeats: false,
|
|
610
|
+
item: [
|
|
611
|
+
{
|
|
612
|
+
extension: [
|
|
613
|
+
{
|
|
614
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
615
|
+
valueCoding: {
|
|
616
|
+
system: 'http://unitsofmeasure.org',
|
|
617
|
+
code: 'kg',
|
|
618
|
+
display: 'kg'
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
linkId: 'weight-value',
|
|
623
|
+
text: 'Value',
|
|
624
|
+
type: 'decimal',
|
|
625
|
+
repeats: false
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
linkId: 'weight-date-performed',
|
|
629
|
+
text: 'Date performed',
|
|
630
|
+
type: 'date',
|
|
631
|
+
repeats: false
|
|
632
|
+
}
|
|
633
|
+
]
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
linkId: 'bmi-row',
|
|
637
|
+
text: 'BMI',
|
|
638
|
+
type: 'group',
|
|
639
|
+
repeats: false,
|
|
640
|
+
item: [
|
|
641
|
+
{
|
|
642
|
+
extension: [
|
|
643
|
+
{
|
|
644
|
+
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression',
|
|
645
|
+
valueExpression: {
|
|
646
|
+
description: 'BMI calculation',
|
|
647
|
+
language: 'text/fhirpath',
|
|
648
|
+
expression: '(%weight/((%height/100).power(2))).round(1)'
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
653
|
+
valueCoding: {
|
|
654
|
+
system: 'http://unitsofmeasure.org',
|
|
655
|
+
code: 'kg/m2',
|
|
656
|
+
display: 'kg/m2'
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
],
|
|
660
|
+
linkId: 'bmi-value',
|
|
661
|
+
text: 'Value',
|
|
662
|
+
type: 'decimal',
|
|
663
|
+
repeats: false,
|
|
664
|
+
readOnly: false
|
|
665
|
+
}
|
|
666
|
+
]
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
linkId: 'heart-rate-row',
|
|
670
|
+
text: 'Heart rate',
|
|
671
|
+
type: 'group',
|
|
672
|
+
repeats: false,
|
|
673
|
+
item: [
|
|
674
|
+
{
|
|
675
|
+
extension: [
|
|
676
|
+
{
|
|
677
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
678
|
+
valueCoding: {
|
|
679
|
+
system: 'http://unitsofmeasure.org',
|
|
680
|
+
code: '/min',
|
|
681
|
+
display: '/min'
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
linkId: 'heart-rate-value',
|
|
686
|
+
text: 'Value',
|
|
687
|
+
type: 'integer',
|
|
688
|
+
repeats: false
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
linkId: 'heart-rate-date-performed',
|
|
692
|
+
text: 'Date performed',
|
|
693
|
+
type: 'date',
|
|
694
|
+
repeats: false
|
|
695
|
+
}
|
|
696
|
+
]
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
linkId: 'heart-rhythm-row',
|
|
700
|
+
text: 'Heart rhythm',
|
|
701
|
+
type: 'group',
|
|
702
|
+
repeats: false,
|
|
703
|
+
item: [
|
|
704
|
+
{
|
|
705
|
+
extension: [
|
|
706
|
+
{
|
|
707
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
708
|
+
valueCodeableConcept: {
|
|
709
|
+
coding: [
|
|
710
|
+
{
|
|
711
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
712
|
+
code: 'radio-button'
|
|
713
|
+
}
|
|
714
|
+
]
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
],
|
|
718
|
+
linkId: 'heart-rhythm-value',
|
|
719
|
+
text: 'Value',
|
|
720
|
+
type: 'choice',
|
|
721
|
+
repeats: false,
|
|
722
|
+
answerOption: [
|
|
723
|
+
{
|
|
724
|
+
valueCoding: {
|
|
725
|
+
system: 'http://snomed.info/sct',
|
|
726
|
+
code: '271636001',
|
|
727
|
+
display: 'Pulse regular'
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
valueCoding: {
|
|
732
|
+
system: 'http://snomed.info/sct',
|
|
733
|
+
code: '61086009',
|
|
734
|
+
display: 'Pulse irregular'
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
]
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
linkId: 'heart-rhythm-date-performed',
|
|
741
|
+
text: 'Date performed',
|
|
742
|
+
type: 'date',
|
|
743
|
+
repeats: false
|
|
744
|
+
}
|
|
745
|
+
]
|
|
746
|
+
}
|
|
747
|
+
]
|
|
748
|
+
}
|
|
749
|
+
]
|
|
750
|
+
}
|
|
751
|
+
]
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
export const qItemControlDisplayTabContainer: Questionnaire = {
|
|
755
|
+
resourceType: 'Questionnaire',
|
|
756
|
+
id: 'ItemControlGroupTabContainer',
|
|
757
|
+
name: 'ItemControlGroupTabContainer',
|
|
758
|
+
title: 'Item Control Group Tab Container',
|
|
759
|
+
version: '0.1.0',
|
|
760
|
+
status: 'draft',
|
|
761
|
+
publisher: 'AEHRC CSIRO',
|
|
762
|
+
date: '2024-05-01',
|
|
763
|
+
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-group-tab-container',
|
|
764
|
+
item: [
|
|
765
|
+
{
|
|
766
|
+
extension: [
|
|
767
|
+
{
|
|
768
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
769
|
+
valueCodeableConcept: {
|
|
770
|
+
coding: [
|
|
771
|
+
{
|
|
772
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
773
|
+
version: '1.0.0',
|
|
774
|
+
code: 'tab-container'
|
|
775
|
+
}
|
|
776
|
+
]
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
],
|
|
780
|
+
linkId: 'tab-container',
|
|
781
|
+
type: 'group',
|
|
782
|
+
repeats: false,
|
|
783
|
+
item: [
|
|
784
|
+
{
|
|
785
|
+
linkId: 'tab-about-health-check',
|
|
786
|
+
text: 'About the health check',
|
|
787
|
+
type: 'group',
|
|
788
|
+
repeats: false,
|
|
789
|
+
item: [
|
|
790
|
+
{
|
|
791
|
+
linkId: 'health-check-eligible',
|
|
792
|
+
text: 'Eligible for health check',
|
|
793
|
+
type: 'boolean',
|
|
794
|
+
repeats: false
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
linkId: 'health-check-in-progress',
|
|
798
|
+
text: 'Health check already in progress?',
|
|
799
|
+
type: 'boolean',
|
|
800
|
+
repeats: false
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
linkId: 'health-check-last-completed',
|
|
804
|
+
text: 'Date of last completed health check',
|
|
805
|
+
type: 'date',
|
|
806
|
+
repeats: false
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
linkId: 'health-check-this-commenced',
|
|
810
|
+
text: 'Date and time this health check commenced',
|
|
811
|
+
type: 'dateTime',
|
|
812
|
+
repeats: false
|
|
813
|
+
}
|
|
814
|
+
]
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
extension: [
|
|
818
|
+
{
|
|
819
|
+
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-shortText',
|
|
820
|
+
valueString: 'Current priorities'
|
|
821
|
+
}
|
|
822
|
+
],
|
|
823
|
+
linkId: 'tab-current-priorities',
|
|
824
|
+
text: 'Current health/patient priorities',
|
|
825
|
+
type: 'group',
|
|
826
|
+
repeats: false,
|
|
827
|
+
item: [
|
|
828
|
+
{
|
|
829
|
+
extension: [
|
|
830
|
+
{
|
|
831
|
+
url: 'http://hl7.org/fhir/StructureDefinition/entryFormat',
|
|
832
|
+
valueString: 'Enter details'
|
|
833
|
+
}
|
|
834
|
+
],
|
|
835
|
+
linkId: 'current-priorities-important-things',
|
|
836
|
+
text: 'What are the important things for you in this health check today?',
|
|
837
|
+
type: 'text',
|
|
838
|
+
repeats: false
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
extension: [
|
|
842
|
+
{
|
|
843
|
+
url: 'http://hl7.org/fhir/StructureDefinition/entryFormat',
|
|
844
|
+
valueString: 'Enter details'
|
|
845
|
+
}
|
|
846
|
+
],
|
|
847
|
+
linkId: 'current-priorities-worried-things',
|
|
848
|
+
text: 'Is there anything you are worried about?',
|
|
849
|
+
type: 'text',
|
|
850
|
+
repeats: false
|
|
851
|
+
}
|
|
852
|
+
]
|
|
853
|
+
}
|
|
854
|
+
]
|
|
855
|
+
}
|
|
856
|
+
]
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
export const qItemControlGroupPage: Questionnaire = {
|
|
860
|
+
resourceType: 'Questionnaire',
|
|
861
|
+
id: 'ItemControlGroupPage',
|
|
862
|
+
name: 'ItemControlGroupPage',
|
|
863
|
+
title: 'Item Control Group Page',
|
|
864
|
+
version: '0.1.0',
|
|
865
|
+
status: 'draft',
|
|
866
|
+
publisher: 'AEHRC CSIRO',
|
|
867
|
+
date: '2024-07-24',
|
|
868
|
+
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-group-page',
|
|
869
|
+
item: [
|
|
870
|
+
{
|
|
871
|
+
linkId: '1',
|
|
872
|
+
text: 'Page 1',
|
|
873
|
+
type: 'group',
|
|
874
|
+
extension: [
|
|
875
|
+
{
|
|
876
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
877
|
+
valueCodeableConcept: {
|
|
878
|
+
coding: [
|
|
879
|
+
{
|
|
880
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
881
|
+
code: 'page',
|
|
882
|
+
display: 'Page'
|
|
883
|
+
}
|
|
884
|
+
],
|
|
885
|
+
text: 'Page'
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
],
|
|
889
|
+
item: [
|
|
890
|
+
{
|
|
891
|
+
linkId: '1.1',
|
|
892
|
+
text: 'ANC ID',
|
|
893
|
+
type: 'string',
|
|
894
|
+
required: true,
|
|
895
|
+
maxLength: 8,
|
|
896
|
+
extension: [
|
|
897
|
+
{
|
|
898
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-instruction',
|
|
899
|
+
valueString: 'Unique ANC ID'
|
|
900
|
+
}
|
|
901
|
+
]
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
linkId: '1.2',
|
|
905
|
+
text: 'First name',
|
|
906
|
+
type: 'string',
|
|
907
|
+
required: true,
|
|
908
|
+
maxLength: 30,
|
|
909
|
+
extension: [
|
|
910
|
+
{
|
|
911
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-instruction',
|
|
912
|
+
valueString: 'Given name'
|
|
913
|
+
}
|
|
914
|
+
]
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
linkId: '1.3',
|
|
918
|
+
text: 'Last name',
|
|
919
|
+
type: 'string',
|
|
920
|
+
required: true,
|
|
921
|
+
maxLength: 50,
|
|
922
|
+
extension: [
|
|
923
|
+
{
|
|
924
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-instruction',
|
|
925
|
+
valueString: 'Family name'
|
|
926
|
+
}
|
|
927
|
+
]
|
|
928
|
+
}
|
|
929
|
+
]
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
linkId: '2',
|
|
933
|
+
text: 'Page 2',
|
|
934
|
+
type: 'group',
|
|
935
|
+
extension: [
|
|
936
|
+
{
|
|
937
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
938
|
+
valueCodeableConcept: {
|
|
939
|
+
coding: [
|
|
940
|
+
{
|
|
941
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
942
|
+
code: 'page',
|
|
943
|
+
display: 'Page'
|
|
944
|
+
}
|
|
945
|
+
],
|
|
946
|
+
text: 'Page'
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
],
|
|
950
|
+
item: [
|
|
951
|
+
{
|
|
952
|
+
linkId: '2.1',
|
|
953
|
+
text: 'Mobile number',
|
|
954
|
+
type: 'integer',
|
|
955
|
+
maxLength: 8,
|
|
956
|
+
required: true,
|
|
957
|
+
extension: [
|
|
958
|
+
{
|
|
959
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-instruction',
|
|
960
|
+
valueString: 'Mobile phone number'
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
url: 'http://hl7.org/fhir/StructureDefinition/maxValue',
|
|
964
|
+
valueInteger: 200000
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
url: 'http://hl7.org/fhir/StructureDefinition/minValue',
|
|
968
|
+
valueInteger: 10
|
|
969
|
+
}
|
|
970
|
+
]
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
linkId: '2.2',
|
|
974
|
+
text: 'Receive SMS Notifications?',
|
|
975
|
+
type: 'boolean',
|
|
976
|
+
required: true
|
|
977
|
+
}
|
|
978
|
+
]
|
|
979
|
+
}
|
|
980
|
+
]
|
|
981
|
+
};
|
|
982
|
+
|
|
983
|
+
export const qItemControlGroupPageContainer: Questionnaire = {
|
|
984
|
+
resourceType: 'Questionnaire',
|
|
985
|
+
id: 'ItemControlGroupPage',
|
|
986
|
+
name: 'ItemControlGroupPage',
|
|
987
|
+
title: 'Item Control Group Page',
|
|
988
|
+
version: '0.1.0',
|
|
989
|
+
status: 'draft',
|
|
990
|
+
publisher: 'AEHRC CSIRO',
|
|
991
|
+
date: '2024-07-24',
|
|
992
|
+
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-group-page',
|
|
993
|
+
item: [
|
|
994
|
+
{
|
|
995
|
+
extension: [
|
|
996
|
+
{
|
|
997
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
998
|
+
valueCodeableConcept: {
|
|
999
|
+
coding: [
|
|
1000
|
+
{
|
|
1001
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1002
|
+
version: '1.0.0',
|
|
1003
|
+
code: 'page'
|
|
1004
|
+
}
|
|
1005
|
+
]
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
],
|
|
1009
|
+
linkId: 'page-container',
|
|
1010
|
+
type: 'group',
|
|
1011
|
+
repeats: false,
|
|
1012
|
+
item: [
|
|
1013
|
+
{
|
|
1014
|
+
linkId: 'page-about-health-check',
|
|
1015
|
+
text: 'About the health check',
|
|
1016
|
+
type: 'group',
|
|
1017
|
+
repeats: false,
|
|
1018
|
+
item: [
|
|
1019
|
+
{
|
|
1020
|
+
linkId: 'health-check-eligible',
|
|
1021
|
+
text: 'Eligible for health check',
|
|
1022
|
+
type: 'boolean',
|
|
1023
|
+
repeats: false
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
linkId: 'health-check-in-progress',
|
|
1027
|
+
text: 'Health check already in progress?',
|
|
1028
|
+
type: 'boolean',
|
|
1029
|
+
repeats: false
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
linkId: 'health-check-last-completed',
|
|
1033
|
+
text: 'Date of last completed health check',
|
|
1034
|
+
type: 'date',
|
|
1035
|
+
repeats: false
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
linkId: 'health-check-this-commenced',
|
|
1039
|
+
text: 'Date and time this health check commenced',
|
|
1040
|
+
type: 'dateTime',
|
|
1041
|
+
repeats: false
|
|
1042
|
+
}
|
|
1043
|
+
]
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
extension: [
|
|
1047
|
+
{
|
|
1048
|
+
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-shortText',
|
|
1049
|
+
valueString: 'Current priorities'
|
|
1050
|
+
}
|
|
1051
|
+
],
|
|
1052
|
+
linkId: 'page-current-priorities',
|
|
1053
|
+
text: 'Current health/patient priorities',
|
|
1054
|
+
type: 'group',
|
|
1055
|
+
repeats: false,
|
|
1056
|
+
item: [
|
|
1057
|
+
{
|
|
1058
|
+
extension: [
|
|
1059
|
+
{
|
|
1060
|
+
url: 'http://hl7.org/fhir/StructureDefinition/entryFormat',
|
|
1061
|
+
valueString: 'Enter details'
|
|
1062
|
+
}
|
|
1063
|
+
],
|
|
1064
|
+
linkId: 'current-priorities-important-things',
|
|
1065
|
+
text: 'What are the important things for you in this health check today?',
|
|
1066
|
+
type: 'text',
|
|
1067
|
+
repeats: false
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
extension: [
|
|
1071
|
+
{
|
|
1072
|
+
url: 'http://hl7.org/fhir/StructureDefinition/entryFormat',
|
|
1073
|
+
valueString: 'Enter details'
|
|
1074
|
+
}
|
|
1075
|
+
],
|
|
1076
|
+
linkId: 'current-priorities-worried-things',
|
|
1077
|
+
text: 'Is there anything you are worried about?',
|
|
1078
|
+
type: 'text',
|
|
1079
|
+
repeats: false
|
|
1080
|
+
}
|
|
1081
|
+
]
|
|
1082
|
+
}
|
|
1083
|
+
]
|
|
1084
|
+
}
|
|
1085
|
+
]
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
export const qItemControlGroupPageNonTopLevelPageContainer: Questionnaire = {
|
|
1089
|
+
resourceType: 'Questionnaire',
|
|
1090
|
+
id: 'bit-of-everything',
|
|
1091
|
+
status: 'draft',
|
|
1092
|
+
title: 'A bit of everything',
|
|
1093
|
+
subjectType: ['Patient', 'Person', 'Practitioner'],
|
|
1094
|
+
item: [
|
|
1095
|
+
{
|
|
1096
|
+
linkId: 'summary',
|
|
1097
|
+
type: 'display',
|
|
1098
|
+
text: 'This questionnaire is a bit of everything. It contains virtually every question type we might need in 80% of most surveys.'
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
extension: [
|
|
1102
|
+
{
|
|
1103
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
1104
|
+
valueCodeableConcept: {
|
|
1105
|
+
coding: [
|
|
1106
|
+
{
|
|
1107
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1108
|
+
version: '1.0.0',
|
|
1109
|
+
code: 'page'
|
|
1110
|
+
}
|
|
1111
|
+
]
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
],
|
|
1115
|
+
linkId: 'page-container',
|
|
1116
|
+
type: 'group',
|
|
1117
|
+
repeats: false,
|
|
1118
|
+
item: [
|
|
1119
|
+
{
|
|
1120
|
+
linkId: 'group-basic1',
|
|
1121
|
+
type: 'group',
|
|
1122
|
+
text: 'A group of basic questions 1',
|
|
1123
|
+
item: [
|
|
1124
|
+
{
|
|
1125
|
+
linkId: 'radio-choice1',
|
|
1126
|
+
type: 'choice',
|
|
1127
|
+
text: 'A question with radio button choices',
|
|
1128
|
+
answerValueSet: 'http://hl7.org/fhir/ValueSet/yesnodontknow',
|
|
1129
|
+
extension: [
|
|
1130
|
+
{
|
|
1131
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
1132
|
+
valueCodeableConcept: {
|
|
1133
|
+
coding: [
|
|
1134
|
+
{
|
|
1135
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1136
|
+
code: 'radio-button'
|
|
1137
|
+
}
|
|
1138
|
+
]
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation',
|
|
1143
|
+
valueCode: 'vertical'
|
|
1144
|
+
}
|
|
1145
|
+
]
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
linkId: 'dropdown-choice1',
|
|
1149
|
+
type: 'choice',
|
|
1150
|
+
text: 'A question with dropdown choices',
|
|
1151
|
+
answerValueSet: 'http://hl7.org/fhir/ValueSet/yesnodontknow',
|
|
1152
|
+
extension: [
|
|
1153
|
+
{
|
|
1154
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
1155
|
+
valueCodeableConcept: {
|
|
1156
|
+
coding: [
|
|
1157
|
+
{
|
|
1158
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1159
|
+
code: 'drop-down'
|
|
1160
|
+
}
|
|
1161
|
+
]
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
]
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
linkId: 'checkbox-choice1',
|
|
1168
|
+
type: 'choice',
|
|
1169
|
+
text: 'A question with checkbox choices',
|
|
1170
|
+
answerValueSet: 'http://hl7.org/fhir/ValueSet/yesnodontknow',
|
|
1171
|
+
repeats: true,
|
|
1172
|
+
extension: [
|
|
1173
|
+
{
|
|
1174
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
1175
|
+
valueCodeableConcept: {
|
|
1176
|
+
coding: [
|
|
1177
|
+
{
|
|
1178
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1179
|
+
code: 'check-box'
|
|
1180
|
+
}
|
|
1181
|
+
]
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation',
|
|
1186
|
+
valueCode: 'vertical'
|
|
1187
|
+
}
|
|
1188
|
+
]
|
|
1189
|
+
}
|
|
1190
|
+
]
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
linkId: 'group-basic2',
|
|
1194
|
+
type: 'group',
|
|
1195
|
+
text: 'A group of basic questions 2',
|
|
1196
|
+
item: [
|
|
1197
|
+
{
|
|
1198
|
+
linkId: 'radio-choice2',
|
|
1199
|
+
type: 'choice',
|
|
1200
|
+
text: 'A question with radio button choices',
|
|
1201
|
+
answerValueSet: 'http://hl7.org/fhir/ValueSet/yesnodontknow',
|
|
1202
|
+
extension: [
|
|
1203
|
+
{
|
|
1204
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
1205
|
+
valueCodeableConcept: {
|
|
1206
|
+
coding: [
|
|
1207
|
+
{
|
|
1208
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1209
|
+
code: 'radio-button'
|
|
1210
|
+
}
|
|
1211
|
+
]
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation',
|
|
1216
|
+
valueCode: 'vertical'
|
|
1217
|
+
}
|
|
1218
|
+
]
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
linkId: 'dropdown-choice2',
|
|
1222
|
+
type: 'choice',
|
|
1223
|
+
text: 'A question with dropdown choices',
|
|
1224
|
+
answerValueSet: 'http://hl7.org/fhir/ValueSet/yesnodontknow',
|
|
1225
|
+
extension: [
|
|
1226
|
+
{
|
|
1227
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
1228
|
+
valueCodeableConcept: {
|
|
1229
|
+
coding: [
|
|
1230
|
+
{
|
|
1231
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1232
|
+
code: 'drop-down'
|
|
1233
|
+
}
|
|
1234
|
+
]
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
]
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
linkId: 'checkbox-choice2',
|
|
1241
|
+
type: 'choice',
|
|
1242
|
+
text: 'A question with checkbox choices',
|
|
1243
|
+
answerValueSet: 'http://hl7.org/fhir/ValueSet/yesnodontknow',
|
|
1244
|
+
repeats: true,
|
|
1245
|
+
extension: [
|
|
1246
|
+
{
|
|
1247
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
1248
|
+
valueCodeableConcept: {
|
|
1249
|
+
coding: [
|
|
1250
|
+
{
|
|
1251
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1252
|
+
code: 'check-box'
|
|
1253
|
+
}
|
|
1254
|
+
]
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation',
|
|
1259
|
+
valueCode: 'vertical'
|
|
1260
|
+
}
|
|
1261
|
+
]
|
|
1262
|
+
}
|
|
1263
|
+
]
|
|
1264
|
+
}
|
|
1265
|
+
]
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
linkId: 'group-conditional',
|
|
1269
|
+
type: 'group',
|
|
1270
|
+
text: 'A group of conditional logic workflow',
|
|
1271
|
+
item: [
|
|
1272
|
+
{
|
|
1273
|
+
linkId: 'condition',
|
|
1274
|
+
text: 'Try to insert a positive/negative number',
|
|
1275
|
+
type: 'decimal',
|
|
1276
|
+
initial: [
|
|
1277
|
+
{
|
|
1278
|
+
valueInteger: 0
|
|
1279
|
+
}
|
|
1280
|
+
],
|
|
1281
|
+
extension: [
|
|
1282
|
+
{
|
|
1283
|
+
url: 'http://hl7.org/fhir/StructureDefinition/minValue',
|
|
1284
|
+
valueInteger: -10
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
url: 'http://hl7.org/fhir/StructureDefinition/maxValue',
|
|
1288
|
+
valueInteger: 10
|
|
1289
|
+
}
|
|
1290
|
+
]
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
linkId: 'conditional-gt5',
|
|
1294
|
+
type: 'display',
|
|
1295
|
+
text: 'An item that appears when the slider entry > 0',
|
|
1296
|
+
enableWhen: [
|
|
1297
|
+
{
|
|
1298
|
+
question: 'condition',
|
|
1299
|
+
operator: '>',
|
|
1300
|
+
answerDecimal: 0
|
|
1301
|
+
}
|
|
1302
|
+
]
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
linkId: 'conditional-lt5',
|
|
1306
|
+
type: 'display',
|
|
1307
|
+
text: 'An item that appears when the slider entry < 0',
|
|
1308
|
+
enableWhen: [
|
|
1309
|
+
{
|
|
1310
|
+
question: 'condition',
|
|
1311
|
+
operator: '<',
|
|
1312
|
+
answerDecimal: 0
|
|
1313
|
+
}
|
|
1314
|
+
]
|
|
1315
|
+
}
|
|
1316
|
+
]
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
linkId: 'autofill',
|
|
1320
|
+
type: 'group',
|
|
1321
|
+
text: 'A group of questions with autofill options',
|
|
1322
|
+
item: [
|
|
1323
|
+
{
|
|
1324
|
+
linkId: 'diagnosis',
|
|
1325
|
+
text: 'Diagnosis',
|
|
1326
|
+
type: 'open-choice',
|
|
1327
|
+
repeats: true,
|
|
1328
|
+
answerValueSet: 'https://clinicaltables.nlm.nih.gov/fhir/R4/ValueSet/icd10cm',
|
|
1329
|
+
extension: [
|
|
1330
|
+
{
|
|
1331
|
+
url: 'http://hl7.org/fhir/StructureDefinition/terminology-server',
|
|
1332
|
+
valueUrl: 'https://clinicaltables.nlm.nih.gov/fhir/R4'
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
1336
|
+
valueCodeableConcept: {
|
|
1337
|
+
coding: [
|
|
1338
|
+
{
|
|
1339
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1340
|
+
code: 'autocomplete'
|
|
1341
|
+
}
|
|
1342
|
+
]
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
]
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
linkId: 'medications_table',
|
|
1349
|
+
text: 'Medications',
|
|
1350
|
+
type: 'group',
|
|
1351
|
+
repeats: true,
|
|
1352
|
+
extension: [
|
|
1353
|
+
{
|
|
1354
|
+
url: 'http://hl7.org/fhir/StructureDefinition/terminology-server',
|
|
1355
|
+
valueUrl: 'https://clinicaltables.nlm.nih.gov/fhir/R4'
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
1359
|
+
valueCodeableConcept: {
|
|
1360
|
+
coding: [
|
|
1361
|
+
{
|
|
1362
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1363
|
+
code: 'gtable'
|
|
1364
|
+
}
|
|
1365
|
+
]
|
|
1366
|
+
}
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
1370
|
+
valueExpression: {
|
|
1371
|
+
name: 'strengthFormLookup',
|
|
1372
|
+
language: 'application/x-fhir-query',
|
|
1373
|
+
expression:
|
|
1374
|
+
"https://clinicaltables.nlm.nih.gov/fhir/R4/CodeSystem/$lookup?system=https://clinicaltables.nlm.nih.gov/fhir/CodeSystem/rxterms&code={{item.where(linkId='medication').answer.valueCoding.code}}&property=STRENGTHS_AND_FORMS"
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
],
|
|
1378
|
+
item: [
|
|
1379
|
+
{
|
|
1380
|
+
linkId: 'medication',
|
|
1381
|
+
text: 'Medication Name',
|
|
1382
|
+
type: 'choice',
|
|
1383
|
+
answerValueSet: 'https://clinicaltables.nlm.nih.gov/fhir/R4/ValueSet/rxterms',
|
|
1384
|
+
extension: [
|
|
1385
|
+
{
|
|
1386
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
1387
|
+
valueCodeableConcept: {
|
|
1388
|
+
coding: [
|
|
1389
|
+
{
|
|
1390
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1391
|
+
code: 'autocomplete',
|
|
1392
|
+
display: 'Auto-complete'
|
|
1393
|
+
}
|
|
1394
|
+
],
|
|
1395
|
+
text: 'Auto-complete'
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
]
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
linkId: 'strength',
|
|
1402
|
+
text: 'Strength',
|
|
1403
|
+
type: 'open-choice',
|
|
1404
|
+
extension: [
|
|
1405
|
+
{
|
|
1406
|
+
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression',
|
|
1407
|
+
valueExpression: {
|
|
1408
|
+
language: 'text/fhirpath',
|
|
1409
|
+
expression:
|
|
1410
|
+
"%strengthFormLookup.parameter.where(name='property' and part.where(name='code' and value='STRENGTHS_AND_FORMS').exists()).part.where(name='value').value"
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
]
|
|
1414
|
+
}
|
|
1415
|
+
]
|
|
1416
|
+
}
|
|
1417
|
+
]
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
linkId: 'scoring',
|
|
1421
|
+
type: 'group',
|
|
1422
|
+
text: 'A group of questions with automatic scoring',
|
|
1423
|
+
item: [
|
|
1424
|
+
{
|
|
1425
|
+
linkId: 'question-table',
|
|
1426
|
+
text: 'A table with questions in its rows and choices in its columns',
|
|
1427
|
+
type: 'group',
|
|
1428
|
+
item: [
|
|
1429
|
+
{
|
|
1430
|
+
linkId: 'question-1',
|
|
1431
|
+
type: 'choice',
|
|
1432
|
+
text: 'What is it?',
|
|
1433
|
+
answerOption: [
|
|
1434
|
+
{
|
|
1435
|
+
valueCoding: {
|
|
1436
|
+
code: '0',
|
|
1437
|
+
display: 'This'
|
|
1438
|
+
}
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
valueCoding: {
|
|
1442
|
+
code: '1',
|
|
1443
|
+
display: 'That'
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
]
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
linkId: 'question-2',
|
|
1450
|
+
type: 'choice',
|
|
1451
|
+
text: 'What is it again?',
|
|
1452
|
+
answerOption: [
|
|
1453
|
+
{
|
|
1454
|
+
valueCoding: {
|
|
1455
|
+
code: '0',
|
|
1456
|
+
display: 'This'
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
valueCoding: {
|
|
1461
|
+
code: '1',
|
|
1462
|
+
display: 'That'
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
]
|
|
1466
|
+
}
|
|
1467
|
+
],
|
|
1468
|
+
extension: [
|
|
1469
|
+
{
|
|
1470
|
+
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
1471
|
+
valueCodeableConcept: {
|
|
1472
|
+
coding: [
|
|
1473
|
+
{
|
|
1474
|
+
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
1475
|
+
code: 'table'
|
|
1476
|
+
}
|
|
1477
|
+
]
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
]
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
linkId: 'scored-items',
|
|
1484
|
+
type: 'decimal',
|
|
1485
|
+
text: 'Score',
|
|
1486
|
+
extension: [
|
|
1487
|
+
{
|
|
1488
|
+
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
1489
|
+
valueExpression: {
|
|
1490
|
+
name: 'answer1',
|
|
1491
|
+
language: 'text/fhirpath',
|
|
1492
|
+
expression:
|
|
1493
|
+
"%resource.item.where(linkId='scoring').item.where(linkId='question-table').item.where(linkId='question-1').answer.valueCoding.code.toDecimal()"
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
1498
|
+
valueExpression: {
|
|
1499
|
+
name: 'answer2',
|
|
1500
|
+
language: 'text/fhirpath',
|
|
1501
|
+
expression:
|
|
1502
|
+
"%resource.item.where(linkId='scoring').item.where(linkId='question-table').item.where(linkId='question-2').answer.valueCoding.code.toDecimal()"
|
|
1503
|
+
}
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression',
|
|
1507
|
+
valueExpression: {
|
|
1508
|
+
language: 'text/fhirpath',
|
|
1509
|
+
expression: '%answer1 + %answer2'
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
],
|
|
1513
|
+
enableWhen: [
|
|
1514
|
+
{
|
|
1515
|
+
question: 'question-1',
|
|
1516
|
+
operator: 'exists',
|
|
1517
|
+
answerBoolean: true
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
question: 'question-2',
|
|
1521
|
+
operator: 'exists',
|
|
1522
|
+
answerBoolean: true
|
|
1523
|
+
}
|
|
1524
|
+
],
|
|
1525
|
+
enableBehavior: 'all'
|
|
1526
|
+
}
|
|
1527
|
+
]
|
|
1528
|
+
}
|
|
1529
|
+
]
|
|
1530
|
+
};
|