/** * FHIR Version R5 * The following is auto generated resource definition. * * OpenAPI spec version: 3.0.1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { Canonical } from './canonical'; import { Code } from './code'; import { Coding } from './coding'; import { Extension } from './extension'; import { QuestionnaireAnswerOption } from './questionnaireAnswerOption'; import { QuestionnaireEnableWhen } from './questionnaireEnableWhen'; import { QuestionnaireInitial } from './questionnaireInitial'; import { Uri } from './uri'; /** * A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection. */ export interface QuestionnaireItem { id?: string; /** * May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. */ extension?: Array; /** * May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). */ modifierExtension?: Array; linkId?: string; definition?: Uri; /** * A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers). */ code?: Array; prefix?: string; text?: string; type?: Code; /** * A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true. */ enableWhen?: Array; enableBehavior?: Code; disabledDisplay?: Code; required?: boolean; repeats?: boolean; readOnly?: boolean; maxLength?: number; answerConstraint?: Code; answerValueSet?: Canonical; /** * One of the permitted answers for the question. */ answerOption?: Array; /** * One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input. */ initial?: Array; /** * Text, questions and other groups to be nested beneath a question or group. */ item?: Array; }