UNPKG

fhirbuilder

Version:
161 lines (160 loc) 5.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QuestionnaireEnableWhen = void 0; const base_1 = require("../base"); const base_2 = require("../../../core/r4/validators/base"); /** * @version R4 (v4.0.1) * @summary FHIR® Specification by HL7® * @description Class for QuestionnaireEnableWhen BackboneElement undefined * @property {string} question * @property {IElement} _question * @property {string} operator * @property {IElement} _operator * @property {boolean} answerBoolean * @property {IElement} _answerBoolean * @property {number} answerDecimal * @property {IElement} _answerDecimal * @property {number} answerInteger * @property {IElement} _answerInteger * @property {string} answerDate * @property {IElement} _answerDate * @property {string} answerDateTime * @property {IElement} _answerDateTime * @property {string} answerTime * @property {IElement} _answerTime * @property {string} answerString * @property {IElement} _answerString * @property {ICoding} answerCoding * @property {IQuantity} answerQuantity * @property {IReference} answerReference * @author Roberto Araneda Espinoza */ class QuestionnaireEnableWhen extends base_1.BackboneElement { /** * @description The linkId for the question whose answer (or lack of answer) governs whether this item is enabled. */ question; /** * @description Extensions for question */ _question; /** * @description Specifies the criteria by which the question is enabled. */ operator; /** * @description Extensions for operator */ _operator; /** * @description A value that the referenced question is tested using the specified operator in order for the item to be enabled. */ answerBoolean; /** * @description Extensions for answerBoolean */ _answerBoolean; /** * @description A value that the referenced question is tested using the specified operator in order for the item to be enabled. */ answerDecimal; /** * @description Extensions for answerDecimal */ _answerDecimal; /** * @description A value that the referenced question is tested using the specified operator in order for the item to be enabled. */ answerInteger; /** * @description Extensions for answerInteger */ _answerInteger; /** * @description A value that the referenced question is tested using the specified operator in order for the item to be enabled. */ answerDate; /** * @description Extensions for answerDate */ _answerDate; /** * @description A value that the referenced question is tested using the specified operator in order for the item to be enabled. */ answerDateTime; /** * @description Extensions for answerDateTime */ _answerDateTime; /** * @description A value that the referenced question is tested using the specified operator in order for the item to be enabled. */ answerTime; /** * @description Extensions for answerTime */ _answerTime; /** * @description A value that the referenced question is tested using the specified operator in order for the item to be enabled. */ answerString; /** * @description Extensions for answerString */ _answerString; /** * @description A value that the referenced question is tested using the specified operator in order for the item to be enabled. */ answerCoding; /** * @description A value that the referenced question is tested using the specified operator in order for the item to be enabled. */ answerQuantity; /** * @description A value that the referenced question is tested using the specified operator in order for the item to be enabled. */ answerReference; /** * @description Returns a JSON representation of the model * @returns {Record<string, any>} */ toJson() { return JSON.parse(JSON.stringify(this)); } /** * @description Returns a string representation of the model * @returns {string} */ toString() { return `QuestionnaireEnableWhen${JSON.stringify(this.toJson())}`; } /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString() { return `QuestionnaireEnableWhen${JSON.stringify(this.toJson(), null, 2)}`; } /** * @description Returns a serialized string representation of the model * @returns {string} */ serialize() { return JSON.stringify(this.toJson()); } /** * @description Validates the model * @returns {isValid: boolean, operationOutcome: IOperationOutcome} */ validate() { return (0, base_2.ConformanceValidator)('QuestionnaireEnableWhen', this); } constructor(args) { super(); if (args) Object.assign(this, args); } } exports.QuestionnaireEnableWhen = QuestionnaireEnableWhen;