fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
81 lines (80 loc) • 2.64 kB
TypeScript
import { IElement, IQuestionnaireResponseAnswer, IQuestionnaireResponseItem, IOperationOutcome } from 'fhirtypes/dist/r4';
import { BackboneElement, IValidatable, ISerializable } from '../base';
/**
* @version R4 (v4.0.1)
* @summary FHIR® Specification by HL7®
* @description Class for QuestionnaireResponseItem BackboneElement
undefined
* @property {string} linkId
* @property {IElement} _linkId
* @property {string} definition
* @property {IElement} _definition
* @property {string} text
* @property {IElement} _text
* @property {IQuestionnaireResponseAnswer[]} answer
* @property {IQuestionnaireResponseItem[]} item
* @author Roberto Araneda Espinoza
*/
export declare class QuestionnaireResponseItem extends BackboneElement implements IQuestionnaireResponseItem, IValidatable, ISerializable {
/**
* @description The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.
*/
linkId: string;
/**
* @description Extensions for linkId
*/
_linkId?: IElement;
/**
* @description A reference to an [[[ElementDefinition]]] that provides the details for the item.
*/
definition?: string;
/**
* @description Extensions for definition
*/
_definition?: IElement;
/**
* @description Text that is displayed above the contents of the group or as the text of the question being answered.
*/
text?: string;
/**
* @description Extensions for text
*/
_text?: IElement;
/**
* @description The respondent's answer(s) to the question.
*/
answer?: IQuestionnaireResponseAnswer[];
/**
* @description Questions or sub-groups nested beneath a question or group.
*/
item?: IQuestionnaireResponseItem[];
/**
* @description Returns a JSON representation of the model
* @returns {Record<string, any>}
*/
toJson(): Record<string, any>;
/**
* @description Returns a string representation of the model
* @returns {string}
*/
toString(): string;
/**
* @description Returns a pretty string representation of the model
* @returns {string}
*/
toPrettyString(): string;
/**
* @description Returns a serialized string representation of the model
* @returns {string}
*/
serialize(): string;
/**
* @description Validates the model
* @returns {isValid: boolean, operationOutcome: IOperationOutcome}
*/
validate(): {
isValid: boolean;
operationOutcome: IOperationOutcome;
};
constructor(args?: IQuestionnaireResponseItem);
}