import type { QuestionnaireItemAnswerOption } from 'fhir/r4'; import type { JSX } from 'react'; /** * Rendering extensions read off a questionnaire item, as returned by `useRenderingExtensions`. * * Defined here rather than in `hooks/useRenderingExtensions` so that type-only consumers (such * as `QItemOverrideComponentProps`, which the headless `/engine` entrypoint reaches) do not * pull that hook's runtime imports into their type closure. */ export interface RenderingExtensions { displayUnit: string; displayPrompt: string; displayInstructions: string; displayFlyover: string | JSX.Element | JSX.Element[]; readOnly: boolean; entryFormat: string; required: boolean; quantityUnit: QuestionnaireItemAnswerOption | null; isRepopulatable: boolean; }