| accordionOverride | - |
| autocompleteOverride | - |
| BaseRenderer | Main component of the form-rendering engine. Renders the Questionnaire and QuestionnaireResponse defined in the state management stores QuestionnaireStore and QuestionnaireResponseStore respectively. Use buildForm() in your wrapping component or in an event handler to initialise the form. |
| buildBundleFromObservationArray | - |
| buildForm | Build the form with an initial Questionnaire and an optional filled QuestionnaireResponse. If a QuestionnaireResponse is not provided, an empty QuestionnaireResponse is set as the initial QuestionnaireResponse. |
| buttonOverride | - |
| canBeObservationExtracted | Checks whether a Questionnaire or any of its items contains a valid sdc-questionnaire-observationExtract extension (and if it's at the item level, a valid item.code too). Array.prototype.some() is short-circuiting, so it will return true as soon as it finds a valid extension. |
| cardOverride | - |
| ChoiceRadioSingle | - |
| createEmptyQrGroup | Create an empty group qrItem from a given group qItem |
| createEmptyQrItem | Create an empty qrItem from a given qItem, optionally with an answer key |
| DecimalField | - |
| destroyForm | Destroy the form to clean up the questionnaire and questionnaireResponse stores. |
| extractObservationBased | Extract an array of Observations from a QuestionnaireResponse and its source Questionnaire. |
| generateItemsToRepopulate | Compare latest data from the server with the current QuestionnaireResponse and decide items to re-populate |
| getDecimalPrecision | Check if the decimal value has a quantity precision for the decimal value |
| getQrItemsIndex | Generate an array of QuestionnaireResponseItems corresponding to its QuestionnaireItem indexes an array. QuestionnaireItems without a corresponding QuestionnaireResponseItem is set as undefined. i.e. QItems = [QItem0, QItem1, QItem2]. Only QItem0 and QItem2 have QrItems Generated array: [QrItem0, undefined, QrItem2] Note: There's a bug where if the qItems are child items from a repeat group, the function fails at the isRepeatGroup line. Ensure that repeat groups are handled prior to calling this function. |
| getQuestionnaireItem | - |
| getResponse | Get the filled QuestionnaireResponse at its current state. If no changes have been made to the form, the initial QuestionnaireResponse is returned. |
| getSectionHeading | Returns the section heading text for a given linkId in a questionnaire, used to label tab sections. |
| GridGroup | Main component to render a Group Grid (grid) Questionnaire item. |
| GroupItem | - |
| GroupTable | Main component to render a Group Table (gtable) Questionnaire item. |
| initialiseQuestionnaireResponse | Initialise a questionnaireResponse from a given questionnaire optionally takes in an existing questionnaireResponse to be initialised |
| inputOverride | - |
| isHiddenByEnableWhen | - |
| isRepeatItemAndNotCheckbox | Check if qItem is a repeat item AND if it isn't a checkbox item Note: repeat checkbox items are rendered as multi-select checkbox instead of being rendered as a traditional repeat item |
| isSpecificItemControl | Check if the extension has an itemControl code equal to the given itemControlCode |
| ItemFieldGrid | - |
| mapQItemsIndex | Generate a dictionary of QuestionnaireItems linkIds mapped to their respective array indexes <linkId, QItemIndex> i.e. { ee2589d5: 0, f9aaa187: 1, 88cab112: 2 } where ee2589d5, f9aaa187 and 88cab112 are linkIds of QItem0, QItem1 and QItem2 respectively |
| paperOverride | - |
| parseDecimalStringToFloat | - |
| parseDecimalStringWithPrecision | - |
| parseFhirDateTimeToDisplayDateTime | Parse a FHIR dateTime string to a human-readable display format. Supports full and partial FHIR dateTime values. |
| parseFhirDateToDisplayDate | Parse a FHIR date string to a human-readable display format. |
| removeEmptyAnswersFromResponse | Remove all empty/hidden answers from the filled QuestionnaireResponse. This takes into account enableWhens, enableWhenExpressions, items without item.answer, empty item.answer arrays and empty strings. This does not remove items that are hidden by the http://hl7.org/fhir/StructureDefinition/questionnaire-hidden extension. |
| removeInternalIdsFromResponse | Remove all instances of item.answer.id from the filled QuestionnaireResponse. These IDs are used internally for rendering repeating items, and can be safely left out of the final response. |
| rendererThemeComponentOverrides | - |
| RendererThemeProvider | Default theme used by the renderer using Material UI. You can customise your own theme by defining a new ThemeProvider. |
| RepeatGroup | Main component to render a repeating, group Questionnaire item. Store and manages the state of multiple instances of GroupItem in a repeating group. |
| RepeatItem | Main component to render a repeating, non-group Questionnaire item. |
| repopulateForm | Re-populate the form with a provided (already filled) QuestionnaireResponse. |
| repopulateResponse | Re-populate checked items in the re-population dialog into the current QuestionnaireResponse |
| SingleItem | Main component to render a repeating, non-group Questionnaire item. Store and manages the state of multiple instances of SingleItem in a repeating item. |
| SmartFormsRenderer | A self-initialising wrapper around the BaseRenderer rendering engine. |
| speedDialOverride | - |
| StringField | - |
| tableOverride | - |
| updateQrItemsInGroup | Updates the QuestionnaireResponseItem group by adding/removing a new/modified child QuestionnaireResponseItem into/from a qrGroup Takes either a single newQrItem or an array of newQrItems |
| useBuildForm | React hook wrapping around buildForm to build a form from a Questionnaire and an optional filled QuestionnaireResponse. If a QuestionnaireResponse is not provided, an empty QuestionnaireResponse is set as the initial QuestionnaireResponse. |
| useDisplayCqfAndCalculatedExpression | Returns the value of a cqf-expression, calculatedExpression or ItemTextAriaLabelExpression. |
| useHidden | React hook to determine if a QuestionnaireItem is hidden via item.hidden, enableWhens, enableWhenExpressions. When checking for repeating group enableWhen items, the parentRepeatGroupIndex should be provided. |
| useReadOnly | - |
| useRendererQueryClient | Default QueryClient used by the renderer. You can customise your own QueryClient with your own options, use v5 of @tanstack/react-query. |
| useRenderingExtensions | - |
| useResponsive | A hook to determine if the screen size matches a given breakpoint query. |
| useValidationFeedback | - |
| useValueSetCodings | - |