QuestionnaireItem

Represents an item (question or group) within a questionnaire.

QuestionnaireItem = object

Represents an item (question or group) within a questionnaire. Can contain nested items for hierarchical question structures.

Properties

linkId

linkId: string | null

Unique identifier for this item


prefix

prefix: string | null

E.g. "1(a)", "2.5.3"


text

text: string | null

Primary text for the item


type

type: string | null

The type of questionnaire item


enableBehavior

enableBehavior: string | null

Controls how multiple items are enabled


required

required: boolean | null

Whether the item must be included


repeats

repeats: boolean | null

Whether the item may repeat


readOnly

readOnly: boolean | null

Don't allow human editing


maxLength

maxLength: number | null

No more than this many characters


item

item: (QuestionnaireItem | null)[] | null

Nested items (for hierarchical questions)


extension

extension: (string | null)[] | null

Additional extensions (complex structure maintained as-is)


enableWhen

enableWhen: (string | null)[] | null

Enable when conditions (complex structure maintained as-is)


answerOption

answerOption: (string | null)[] | null

Permitted answer options (complex structure maintained as-is)


initial

initial: (string | null)[] | null

Default values (complex structure maintained as-is)