@aehrc/smart-forms-renderer 0.1.0
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/dist/api/populate.d.ts +8 -0
- package/dist/components/Alert.styles.d.ts +12 -0
- package/dist/components/BackToTopButton/BackToTopButton.d.ts +7 -0
- package/dist/components/Box.styles.d.ts +28 -0
- package/dist/components/FormComponents/BooleanItem/BooleanField.d.ts +8 -0
- package/dist/components/FormComponents/BooleanItem/BooleanItem.d.ts +9 -0
- package/dist/components/FormComponents/DateItem/DateField.d.ts +12 -0
- package/dist/components/FormComponents/DateItem/DateItem.d.ts +9 -0
- package/dist/components/FormComponents/DateTimeItem/DateTimeField.d.ts +12 -0
- package/dist/components/FormComponents/DateTimeItem/DateTimeItem.d.ts +9 -0
- package/dist/components/FormComponents/DecimalItem/DecimalField.d.ts +15 -0
- package/dist/components/FormComponents/DecimalItem/DecimalItem.d.ts +9 -0
- package/dist/components/FormComponents/DisplayItem/DisplayInstructions.d.ts +6 -0
- package/dist/components/FormComponents/DisplayItem/DisplayInstructions.styles.d.ts +9 -0
- package/dist/components/FormComponents/DisplayItem/DisplayItem.d.ts +7 -0
- package/dist/components/FormComponents/GridGroup/GridGroup.d.ts +10 -0
- package/dist/components/FormComponents/GridGroup/GridRow.d.ts +11 -0
- package/dist/components/FormComponents/GridGroup/GridTable.d.ts +11 -0
- package/dist/components/FormComponents/GroupItem/GroupHeading.d.ts +9 -0
- package/dist/components/FormComponents/GroupItem/GroupItem.d.ts +15 -0
- package/dist/components/FormComponents/GroupItem/GroupItem.styles.d.ts +11 -0
- package/dist/components/FormComponents/GroupItem/GroupItemSwitcher.d.ts +10 -0
- package/dist/components/FormComponents/GroupItem/NextTabButton.d.ts +7 -0
- package/dist/components/FormComponents/GroupItem/NextTabButtonWrapper.d.ts +8 -0
- package/dist/components/FormComponents/IntegerItem/IntegerField.d.ts +15 -0
- package/dist/components/FormComponents/IntegerItem/IntegerItem.d.ts +9 -0
- package/dist/components/FormComponents/Item.styles.d.ts +6 -0
- package/dist/components/FormComponents/ItemParts/ContextDisplayItem.d.ts +7 -0
- package/dist/components/FormComponents/ItemParts/FadingCheckIcon.d.ts +6 -0
- package/dist/components/FormComponents/ItemParts/ItemFieldGrid.d.ts +10 -0
- package/dist/components/FormComponents/ItemParts/ItemLabelText.d.ts +7 -0
- package/dist/components/FormComponents/ItemParts/ItemLabelWrapper.d.ts +7 -0
- package/dist/components/FormComponents/ItemParts/QItemCheckboxSingle.d.ts +10 -0
- package/dist/components/FormComponents/ItemParts/QItemCheckboxSingleWithOpenLabel.d.ts +10 -0
- package/dist/components/FormComponents/ItemParts/QItemRadioButtonWithOpenLabel.d.ts +10 -0
- package/dist/components/FormComponents/Lists.styles.d.ts +11 -0
- package/dist/components/FormComponents/QItemChoice/QItemChoice.d.ts +9 -0
- package/dist/components/FormComponents/QItemChoice/QItemChoiceAutocomplete.d.ts +9 -0
- package/dist/components/FormComponents/QItemChoice/QItemChoiceCheckboxAnswerOption.d.ts +11 -0
- package/dist/components/FormComponents/QItemChoice/QItemChoiceCheckboxAnswerValueSet.d.ts +11 -0
- package/dist/components/FormComponents/QItemChoice/QItemChoiceRadioAnswerOption.d.ts +11 -0
- package/dist/components/FormComponents/QItemChoice/QItemChoiceRadioAnswerValueSet.d.ts +11 -0
- package/dist/components/FormComponents/QItemChoice/QItemChoiceRadioSingle.d.ts +8 -0
- package/dist/components/FormComponents/QItemChoice/QItemChoiceSelectAnswerOption.d.ts +9 -0
- package/dist/components/FormComponents/QItemChoice/QItemChoiceSelectAnswerValueSet.d.ts +9 -0
- package/dist/components/FormComponents/QItemOpenChoice/QItemOpenChoice.d.ts +9 -0
- package/dist/components/FormComponents/QItemOpenChoice/QItemOpenChoiceAutocomplete.d.ts +9 -0
- package/dist/components/FormComponents/QItemOpenChoice/QItemOpenChoiceCheckboxAnswerOption.d.ts +11 -0
- package/dist/components/FormComponents/QItemOpenChoice/QItemOpenChoiceRadioAnswerOption.d.ts +11 -0
- package/dist/components/FormComponents/QItemOpenChoice/QItemOpenChoiceSelectAnswerOption.d.ts +9 -0
- package/dist/components/FormComponents/QItemOpenChoice/QItemOpenChoiceSelectAnswerValueSet.d.ts +9 -0
- package/dist/components/FormComponents/RepeatGroup/AddItemButton.d.ts +8 -0
- package/dist/components/FormComponents/RepeatGroup/DeleteItemButton.d.ts +9 -0
- package/dist/components/FormComponents/RepeatGroup/RepeatGroup.d.ts +10 -0
- package/dist/components/FormComponents/RepeatGroup/RepeatGroupItem.d.ts +13 -0
- package/dist/components/FormComponents/RepeatItem/AddItemButton.d.ts +8 -0
- package/dist/components/FormComponents/RepeatItem/DeleteItemButton.d.ts +9 -0
- package/dist/components/FormComponents/RepeatItem/RepeatField.d.ts +12 -0
- package/dist/components/FormComponents/RepeatItem/RepeatItem.d.ts +9 -0
- package/dist/components/FormComponents/RepeatItem/RepeatItem.styles.d.ts +22 -0
- package/dist/components/FormComponents/SingleItem/SingleItem.d.ts +9 -0
- package/dist/components/FormComponents/SingleItem/SingleItemSwitcher.d.ts +9 -0
- package/dist/components/FormComponents/StringItem/StringField.d.ts +15 -0
- package/dist/components/FormComponents/StringItem/StringItem.d.ts +9 -0
- package/dist/components/FormComponents/Tables/DeleteRowButton.d.ts +9 -0
- package/dist/components/FormComponents/Tables/QItemGroupTable.d.ts +10 -0
- package/dist/components/FormComponents/Tables/QItemGroupTableRow.d.ts +10 -0
- package/dist/components/FormComponents/Tables/Table.styles.d.ts +10 -0
- package/dist/components/FormComponents/TextItem/TextField.d.ts +14 -0
- package/dist/components/FormComponents/TextItem/TextItem.d.ts +9 -0
- package/dist/components/FormComponents/Textfield.styles.d.ts +5 -0
- package/dist/components/FormComponents/TimeItem/TimeField.d.ts +12 -0
- package/dist/components/FormComponents/TimeItem/TimeItem.d.ts +9 -0
- package/dist/components/FormComponents/Typography.styles.d.ts +6 -0
- package/dist/components/FormComponents/UrlItem/UrlField.d.ts +14 -0
- package/dist/components/FormComponents/UrlItem/UrlItem.d.ts +9 -0
- package/dist/components/FormRenderer/FormBodyCollapsible.d.ts +9 -0
- package/dist/components/FormRenderer/FormBodySingleCollapsible.d.ts +12 -0
- package/dist/components/FormRenderer/FormBodySingleCollapsibleWrapper.d.ts +12 -0
- package/dist/components/FormRenderer/FormBodyTabbed.d.ts +9 -0
- package/dist/components/FormRenderer/FormRenderer.d.ts +3 -0
- package/dist/components/FormRenderer/FormTitle.d.ts +7 -0
- package/dist/components/FormRenderer/FormTopLevelItem.d.ts +9 -0
- package/dist/components/FormRenderer/SmartFormsRenderer.d.ts +9 -0
- package/dist/components/FormRenderer/index.d.ts +1 -0
- package/dist/components/Iconify/Iconify.d.ts +10 -0
- package/dist/components/Lists.styles.d.ts +11 -0
- package/dist/components/Tabs/CompleteTabButton.d.ts +7 -0
- package/dist/components/Tabs/FormBodySingleTab.d.ts +10 -0
- package/dist/components/Tabs/FormBodyTabList.d.ts +10 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/hooks/useBackToTop.d.ts +2 -0
- package/dist/hooks/useDebounce.d.ts +2 -0
- package/dist/hooks/useDecimalCalculatedExpression.d.ts +14 -0
- package/dist/hooks/useHidden.d.ts +3 -0
- package/dist/hooks/useInitialiseGroupTable.d.ts +4 -0
- package/dist/hooks/useInitialiseRenderer.d.ts +3 -0
- package/dist/hooks/useInitialiseRepeatAnswers.d.ts +4 -0
- package/dist/hooks/useInitialiseRepeatGroups.d.ts +4 -0
- package/dist/hooks/useIntegerCalculatedExpression.d.ts +13 -0
- package/dist/hooks/useQueryClient.d.ts +3 -0
- package/dist/hooks/useRenderingExtensions.d.ts +13 -0
- package/dist/hooks/useResponsive.d.ts +2 -0
- package/dist/hooks/useStringCalculatedExpression.d.ts +12 -0
- package/dist/hooks/useTerminologyServerQuery.d.ts +11 -0
- package/dist/hooks/useValidationError.d.ts +3 -0
- package/dist/hooks/useValueSetCodings.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +10481 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +10526 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/answerExpression.interface.d.ts +5 -0
- package/dist/interfaces/calculatedExpression.interface.d.ts +4 -0
- package/dist/interfaces/choice.enum.d.ts +20 -0
- package/dist/interfaces/enableWhen.interface.d.ts +15 -0
- package/dist/interfaces/groupTable.interface.d.ts +5 -0
- package/dist/interfaces/populate.interface.d.ts +41 -0
- package/dist/interfaces/questionnaireStore.interface.d.ts +18 -0
- package/dist/interfaces/regex.interface.d.ts +4 -0
- package/dist/interfaces/renderProps.interface.d.ts +13 -0
- package/dist/interfaces/repeatGroup.interface.d.ts +9 -0
- package/dist/interfaces/repeatItem.interface.d.ts +5 -0
- package/dist/interfaces/tab.interface.d.ts +6 -0
- package/dist/interfaces/valueSet.interface.d.ts +5 -0
- package/dist/interfaces/variables.interface.d.ts +9 -0
- package/dist/setup-jest.d.ts +1 -0
- package/dist/stores/useConfigStore.d.ts +18 -0
- package/dist/stores/useQuestionnaireResponseStore.d.ts +14 -0
- package/dist/stores/useQuestionnaireStore.d.ts +34 -0
- package/dist/stories/FormRendererWrapper.stories.d.ts +11 -0
- package/dist/stories/SmartFormsRenderer.stories.d.ts +14 -0
- package/dist/utils/calculatedExpression.d.ts +14 -0
- package/dist/utils/choice.d.ts +44 -0
- package/dist/utils/debounce.d.ts +2 -0
- package/dist/utils/emptyResource.d.ts +3 -0
- package/dist/utils/enableWhen.d.ts +47 -0
- package/dist/utils/enableWhenExpression.d.ts +13 -0
- package/dist/utils/fhirpath.d.ts +19 -0
- package/dist/utils/initialiseForm.d.ts +20 -0
- package/dist/utils/itemControl.d.ts +108 -0
- package/dist/utils/mapItem.d.ts +18 -0
- package/dist/utils/openChoice.d.ts +22 -0
- package/dist/utils/parseInputs.d.ts +4 -0
- package/dist/utils/populate.d.ts +16 -0
- package/dist/utils/populateCallback.d.ts +6 -0
- package/dist/utils/populateContexts.d.ts +13 -0
- package/dist/utils/populateInputParams.d.ts +8 -0
- package/dist/utils/qItem.d.ts +32 -0
- package/dist/utils/qrItem.d.ts +42 -0
- package/dist/utils/questionnaireStoreUtils/addAdditionalVariables.d.ts +2 -0
- package/dist/utils/questionnaireStoreUtils/createQuestionaireModel.d.ts +3 -0
- package/dist/utils/questionnaireStoreUtils/extractContainedValueSets.d.ts +13 -0
- package/dist/utils/questionnaireStoreUtils/extractLaunchContext.d.ts +3 -0
- package/dist/utils/questionnaireStoreUtils/extractOtherExtensions.d.ts +34 -0
- package/dist/utils/questionnaireStoreUtils/extractTabs.d.ts +3 -0
- package/dist/utils/questionnaireStoreUtils/extractVariables.d.ts +15 -0
- package/dist/utils/questionnaireStoreUtils/resolveValueSets.d.ts +7 -0
- package/dist/utils/tabs.d.ts +75 -0
- package/dist/utils/valueSet.d.ts +21 -0
- package/package.json +71 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InputParameters, OutputParameters } from 'sdc-populate';
|
|
2
|
+
import type Client from 'fhirclient/lib/Client';
|
|
3
|
+
import type { OperationOutcome } from 'fhir/r4';
|
|
4
|
+
export declare const HEADERS: {
|
|
5
|
+
'Content-Type': string;
|
|
6
|
+
Accept: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function requestPopulate(fhirClient: Client, inputParameters: InputParameters): Promise<OutputParameters | OperationOutcome>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledAlert: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
component?: import("react").ElementType<any>;
|
|
5
|
+
ref?: import("react").Ref<unknown>;
|
|
6
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
7
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
9
|
+
}, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "ref" | "children" | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
10
|
+
color: 'info' | 'error';
|
|
11
|
+
}, {}, {}>;
|
|
12
|
+
export declare const StyledNavItemIcon: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemIconProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const QGroupContainerBox: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
component?: import("react").ElementType<any>;
|
|
5
|
+
ref?: import("react").Ref<unknown>;
|
|
6
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
7
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
9
|
+
}, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "ref" | "children" | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
10
|
+
cardElevation: number;
|
|
11
|
+
isRepeated: boolean;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
export declare const FullWidthFormComponentBox: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
14
|
+
children?: import("react").ReactNode;
|
|
15
|
+
component?: import("react").ElementType<any>;
|
|
16
|
+
ref?: import("react").Ref<unknown>;
|
|
17
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
18
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
20
|
+
}, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "ref" | "children" | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
21
|
+
export declare const FormTitleWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
22
|
+
children?: import("react").ReactNode;
|
|
23
|
+
component?: import("react").ElementType<any>;
|
|
24
|
+
ref?: import("react").Ref<unknown>;
|
|
25
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
26
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
27
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
28
|
+
}, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "ref" | "children" | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
3
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
4
|
+
interface BooleanItemProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
}
|
|
8
|
+
declare function BooleanItem(props: BooleanItemProps): React.JSX.Element;
|
|
9
|
+
export default BooleanItem;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithIsTabledAttribute } from '../../../interfaces/renderProps.interface';
|
|
3
|
+
import type { Dayjs } from 'dayjs';
|
|
4
|
+
interface DateFieldProps extends PropsWithIsTabledAttribute {
|
|
5
|
+
value: Dayjs | null;
|
|
6
|
+
displayPrompt: string;
|
|
7
|
+
entryFormat: string;
|
|
8
|
+
readOnly: boolean;
|
|
9
|
+
onDateChange: (newValue: Dayjs | null) => unknown;
|
|
10
|
+
}
|
|
11
|
+
declare function DateField(props: DateFieldProps): React.JSX.Element;
|
|
12
|
+
export default DateField;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
3
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
4
|
+
interface DateItemProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
}
|
|
8
|
+
declare function DateItem(props: DateItemProps): React.JSX.Element;
|
|
9
|
+
export default DateItem;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
3
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
4
|
+
interface DateTimeItemProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
}
|
|
8
|
+
declare function DateTimeItem(props: DateTimeItemProps): React.JSX.Element;
|
|
9
|
+
export default DateTimeItem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithIsTabledAttribute } from '../../../interfaces/renderProps.interface';
|
|
3
|
+
interface DecimalFieldProps extends PropsWithIsTabledAttribute {
|
|
4
|
+
linkId: string;
|
|
5
|
+
input: string;
|
|
6
|
+
feedback: string;
|
|
7
|
+
displayPrompt: string;
|
|
8
|
+
displayUnit: string;
|
|
9
|
+
entryFormat: string;
|
|
10
|
+
readOnly: boolean;
|
|
11
|
+
calcExpUpdated: boolean;
|
|
12
|
+
onInputChange: (value: string) => void;
|
|
13
|
+
}
|
|
14
|
+
declare function DecimalField(props: DecimalFieldProps): React.JSX.Element;
|
|
15
|
+
export default DecimalField;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
3
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
4
|
+
interface DecimalItemProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
}
|
|
8
|
+
declare function DecimalItem(props: DecimalItemProps): React.JSX.Element;
|
|
9
|
+
export default DecimalItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DisplayInstructionsWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
component?: import("react").ElementType<any>;
|
|
5
|
+
ref?: import("react").Ref<unknown>;
|
|
6
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
7
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
9
|
+
}, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "ref" | "children" | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
3
|
+
import type { PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
4
|
+
interface GridGroupProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem> {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
groupCardElevation: number;
|
|
8
|
+
}
|
|
9
|
+
declare function GridGroup(props: GridGroupProps): React.JSX.Element;
|
|
10
|
+
export default GridGroup;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
3
|
+
import type { PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
4
|
+
interface GridRowProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem> {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
columnLabels: string[];
|
|
8
|
+
numOfColumns: number;
|
|
9
|
+
}
|
|
10
|
+
declare function GridRow(props: GridRowProps): React.JSX.Element;
|
|
11
|
+
export default GridRow;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
3
|
+
import type { PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
4
|
+
interface GridTableProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem> {
|
|
5
|
+
qItems: QuestionnaireItem[];
|
|
6
|
+
qrItems: QuestionnaireResponseItem[];
|
|
7
|
+
qItemsIndexMap: Record<string, number>;
|
|
8
|
+
columnLabels: string[];
|
|
9
|
+
}
|
|
10
|
+
declare function GridTable(props: GridTableProps): React.JSX.Element;
|
|
11
|
+
export default GridTable;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithIsRepeatedAttribute } from '../../../interfaces/renderProps.interface';
|
|
3
|
+
import type { QuestionnaireItem } from 'fhir/r4';
|
|
4
|
+
interface GroupHeadingProps extends PropsWithIsRepeatedAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
tabIsMarkedAsComplete?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const GroupHeading: React.NamedExoticComponent<GroupHeadingProps>;
|
|
9
|
+
export default GroupHeading;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
3
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
4
|
+
import type { Tabs } from '../../../interfaces/tab.interface';
|
|
5
|
+
interface GroupItemProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute {
|
|
6
|
+
qItem: QuestionnaireItem;
|
|
7
|
+
qrItem: QuestionnaireResponseItem;
|
|
8
|
+
groupCardElevation: number;
|
|
9
|
+
tabIsMarkedAsComplete?: boolean;
|
|
10
|
+
tabs?: Tabs;
|
|
11
|
+
currentTabIndex?: number;
|
|
12
|
+
goToNextTab?: (nextTabIndex: number) => unknown;
|
|
13
|
+
}
|
|
14
|
+
declare function GroupItem(props: GroupItemProps): React.JSX.Element;
|
|
15
|
+
export default GroupItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const GroupCard: import("@emotion/styled").StyledComponent<Omit<import("@mui/material").PaperOwnProps, "classes"> & {
|
|
3
|
+
classes?: Partial<import("@mui/material").CardClasses>;
|
|
4
|
+
raised?: boolean;
|
|
5
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
6
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
8
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "elevation" | "square" | "sx" | "variant" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
9
|
+
elevation: number;
|
|
10
|
+
isRepeated: boolean;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithQrItemChangeHandler, PropsWithQrRepeatGroupChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
3
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
4
|
+
interface GroupItemSwitcherProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithQrRepeatGroupChangeHandler {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItemOrItems: QuestionnaireResponseItem | QuestionnaireResponseItem[];
|
|
7
|
+
groupCardElevation: number;
|
|
8
|
+
}
|
|
9
|
+
declare function GroupItemSwitcher(props: GroupItemSwitcherProps): React.JSX.Element;
|
|
10
|
+
export default GroupItemSwitcher;
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithIsTabledAttribute } from '../../../interfaces/renderProps.interface';
|
|
3
|
+
interface IntegerFieldProps extends PropsWithIsTabledAttribute {
|
|
4
|
+
linkId: string;
|
|
5
|
+
value: number;
|
|
6
|
+
feedback: string;
|
|
7
|
+
displayPrompt: string;
|
|
8
|
+
displayUnit: string;
|
|
9
|
+
entryFormat: string;
|
|
10
|
+
readOnly: boolean;
|
|
11
|
+
calcExpUpdated: boolean;
|
|
12
|
+
onInputChange: (value: string) => void;
|
|
13
|
+
}
|
|
14
|
+
declare function IntegerField(props: IntegerFieldProps): React.JSX.Element;
|
|
15
|
+
export default IntegerField;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
3
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
4
|
+
interface IntegerItemProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
}
|
|
8
|
+
declare function IntegerItem(props: IntegerItemProps): React.JSX.Element;
|
|
9
|
+
export default IntegerItem;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const QFormGroup: import("@emotion/styled").StyledComponent<import("@mui/material").FormGroupProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
3
|
+
export declare const QRadioGroup: import("@emotion/styled").StyledComponent<import("@mui/material").RadioGroupProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
+
export declare const QItemTypography: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
5
|
+
ref?: import("react").Ref<HTMLSpanElement>;
|
|
6
|
+
}, "classes" | "className" | "style" | "color" | "children" | "p" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "sx" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY" | "typography" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem } from 'fhir/r4';
|
|
3
|
+
interface GroupHeadingIconProps {
|
|
4
|
+
displayItem: QuestionnaireItem;
|
|
5
|
+
}
|
|
6
|
+
declare const ContextDisplayItem: React.NamedExoticComponent<GroupHeadingIconProps>;
|
|
7
|
+
export default ContextDisplayItem;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { QuestionnaireItem } from 'fhir/r4';
|
|
4
|
+
interface ItemFieldGridProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
qItem: QuestionnaireItem;
|
|
7
|
+
displayInstructions: string;
|
|
8
|
+
}
|
|
9
|
+
declare function ItemFieldGrid(props: ItemFieldGridProps): React.JSX.Element;
|
|
10
|
+
export default ItemFieldGrid;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
readOnly: boolean;
|
|
6
|
+
isChecked: boolean;
|
|
7
|
+
onCheckedChange: (value: string) => unknown;
|
|
8
|
+
}
|
|
9
|
+
declare function QItemCheckboxSingle(props: Props): React.JSX.Element;
|
|
10
|
+
export default QItemCheckboxSingle;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
value: string | null;
|
|
4
|
+
label: string;
|
|
5
|
+
isChecked: boolean;
|
|
6
|
+
onCheckedChange: (checked: boolean) => unknown;
|
|
7
|
+
onInputChange: (input: string) => unknown;
|
|
8
|
+
}
|
|
9
|
+
declare function QItemCheckboxSingleWithOpenLabel(props: Props): React.JSX.Element;
|
|
10
|
+
export default QItemCheckboxSingleWithOpenLabel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
value: string | null;
|
|
4
|
+
label: string;
|
|
5
|
+
readOnly: boolean;
|
|
6
|
+
isSelected: boolean;
|
|
7
|
+
onInputChange: (input: string) => unknown;
|
|
8
|
+
}
|
|
9
|
+
declare function QItemRadioButtonWithOpenLabel(props: Props): React.JSX.Element;
|
|
10
|
+
export default QItemRadioButtonWithOpenLabel;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PrimarySelectableList: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
classes?: Partial<import("@mui/material").ListClasses>;
|
|
5
|
+
dense?: boolean;
|
|
6
|
+
disablePadding?: boolean;
|
|
7
|
+
subheader?: import("react").ReactNode;
|
|
8
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
9
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
|
|
10
|
+
ref?: import("react").Ref<HTMLUListElement>;
|
|
11
|
+
}, "children" | "sx" | "dense" | keyof import("@mui/material/OverridableComponent").CommonProps | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
3
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
4
|
+
interface Props extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
}
|
|
8
|
+
declare function QItemChoice(props: Props): React.JSX.Element;
|
|
9
|
+
export default QItemChoice;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
3
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
4
|
+
interface QItemChoiceAutocompleteProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
}
|
|
8
|
+
declare function QItemChoiceAutocomplete(props: QItemChoiceAutocompleteProps): React.JSX.Element;
|
|
9
|
+
export default QItemChoiceAutocomplete;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QItemChoiceOrientation } from '../../../interfaces/choice.enum';
|
|
3
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
4
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
5
|
+
interface QItemChoiceCheckboxProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute {
|
|
6
|
+
qItem: QuestionnaireItem;
|
|
7
|
+
qrItem: QuestionnaireResponseItem;
|
|
8
|
+
orientation: QItemChoiceOrientation;
|
|
9
|
+
}
|
|
10
|
+
declare function QItemChoiceCheckboxAnswerOption(props: QItemChoiceCheckboxProps): React.JSX.Element;
|
|
11
|
+
export default QItemChoiceCheckboxAnswerOption;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
3
|
+
import { QItemChoiceOrientation } from '../../../interfaces/choice.enum';
|
|
4
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
5
|
+
interface Props extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute {
|
|
6
|
+
qItem: QuestionnaireItem;
|
|
7
|
+
qrItem: QuestionnaireResponseItem;
|
|
8
|
+
orientation: QItemChoiceOrientation;
|
|
9
|
+
}
|
|
10
|
+
declare function QItemChoiceCheckboxAnswerValueSet(props: Props): React.JSX.Element;
|
|
11
|
+
export default QItemChoiceCheckboxAnswerValueSet;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QItemChoiceOrientation } from '../../../interfaces/choice.enum';
|
|
3
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
4
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
5
|
+
interface Props extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute {
|
|
6
|
+
qItem: QuestionnaireItem;
|
|
7
|
+
qrItem: QuestionnaireResponseItem;
|
|
8
|
+
orientation: QItemChoiceOrientation;
|
|
9
|
+
}
|
|
10
|
+
declare function QItemChoiceRadioAnswerOption(props: Props): React.JSX.Element;
|
|
11
|
+
export default QItemChoiceRadioAnswerOption;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QItemChoiceOrientation } from '../../../interfaces/choice.enum';
|
|
3
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
4
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
5
|
+
interface Props extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute {
|
|
6
|
+
qItem: QuestionnaireItem;
|
|
7
|
+
qrItem: QuestionnaireResponseItem;
|
|
8
|
+
orientation: QItemChoiceOrientation;
|
|
9
|
+
}
|
|
10
|
+
declare function QItemChoiceRadioAnswerValueSet(props: Props): React.JSX.Element;
|
|
11
|
+
export default QItemChoiceRadioAnswerValueSet;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
3
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
4
|
+
interface Props extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
}
|
|
8
|
+
declare function QItemChoiceSelectAnswerOption(props: Props): React.JSX.Element;
|
|
9
|
+
export default QItemChoiceSelectAnswerOption;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
3
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
4
|
+
interface Props extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
}
|
|
8
|
+
declare function QItemChoiceSelectAnswerValueSet(props: Props): React.JSX.Element;
|
|
9
|
+
export default QItemChoiceSelectAnswerValueSet;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
3
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
4
|
+
interface Props extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
}
|
|
8
|
+
declare function QItemOpenChoice(props: Props): React.JSX.Element;
|
|
9
|
+
export default QItemOpenChoice;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
3
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
4
|
+
interface QItemOpenChoiceAutocompleteProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute {
|
|
5
|
+
qItem: QuestionnaireItem;
|
|
6
|
+
qrItem: QuestionnaireResponseItem;
|
|
7
|
+
}
|
|
8
|
+
declare function QItemOpenChoiceAutocomplete(props: QItemOpenChoiceAutocompleteProps): React.JSX.Element;
|
|
9
|
+
export default QItemOpenChoiceAutocomplete;
|
package/dist/components/FormComponents/QItemOpenChoice/QItemOpenChoiceCheckboxAnswerOption.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QItemChoiceOrientation } from '../../../interfaces/choice.enum';
|
|
3
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
4
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
5
|
+
interface QItemOpenChoiceCheckboxProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute {
|
|
6
|
+
qItem: QuestionnaireItem;
|
|
7
|
+
qrItem: QuestionnaireResponseItem;
|
|
8
|
+
orientation: QItemChoiceOrientation;
|
|
9
|
+
}
|
|
10
|
+
declare function QItemOpenChoiceCheckboxAnswerOption(props: QItemOpenChoiceCheckboxProps): React.JSX.Element;
|
|
11
|
+
export default QItemOpenChoiceCheckboxAnswerOption;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QItemChoiceOrientation } from '../../../interfaces/choice.enum';
|
|
3
|
+
import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
|
|
4
|
+
import type { PropsWithIsRepeatedAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
|
|
5
|
+
interface QItemOpenChoiceRadioProps extends PropsWithQrItemChangeHandler<QuestionnaireResponseItem>, PropsWithIsRepeatedAttribute {
|
|
6
|
+
qItem: QuestionnaireItem;
|
|
7
|
+
qrItem: QuestionnaireResponseItem;
|
|
8
|
+
orientation: QItemChoiceOrientation;
|
|
9
|
+
}
|
|
10
|
+
declare function QItemOpenChoiceRadioAnswerOption(props: QItemOpenChoiceRadioProps): React.JSX.Element;
|
|
11
|
+
export default QItemOpenChoiceRadioAnswerOption;
|