UNPKG

fhirbuilder

Version:
156 lines (155 loc) 4.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QuestionnaireInitial = 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 QuestionnaireInitial BackboneElement undefined * @property {boolean} valueBoolean * @property {IElement} _valueBoolean * @property {number} valueDecimal * @property {IElement} _valueDecimal * @property {number} valueInteger * @property {IElement} _valueInteger * @property {string} valueDate * @property {IElement} _valueDate * @property {string} valueDateTime * @property {IElement} _valueDateTime * @property {string} valueTime * @property {IElement} _valueTime * @property {string} valueString * @property {IElement} _valueString * @property {string} valueUri * @property {IElement} _valueUri * @property {IAttachment} valueAttachment * @property {ICoding} valueCoding * @property {IQuantity} valueQuantity * @property {IReference} valueReference * @author Roberto Araneda Espinoza */ class QuestionnaireInitial extends base_1.BackboneElement { /** * @description The actual value to for an initial answer. */ valueBoolean; /** * @description Extensions for valueBoolean */ _valueBoolean; /** * @description The actual value to for an initial answer. */ valueDecimal; /** * @description Extensions for valueDecimal */ _valueDecimal; /** * @description The actual value to for an initial answer. */ valueInteger; /** * @description Extensions for valueInteger */ _valueInteger; /** * @description The actual value to for an initial answer. */ valueDate; /** * @description Extensions for valueDate */ _valueDate; /** * @description The actual value to for an initial answer. */ valueDateTime; /** * @description Extensions for valueDateTime */ _valueDateTime; /** * @description The actual value to for an initial answer. */ valueTime; /** * @description Extensions for valueTime */ _valueTime; /** * @description The actual value to for an initial answer. */ valueString; /** * @description Extensions for valueString */ _valueString; /** * @description The actual value to for an initial answer. */ valueUri; /** * @description Extensions for valueUri */ _valueUri; /** * @description The actual value to for an initial answer. */ valueAttachment; /** * @description The actual value to for an initial answer. */ valueCoding; /** * @description The actual value to for an initial answer. */ valueQuantity; /** * @description The actual value to for an initial answer. */ valueReference; /** * @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 `QuestionnaireInitial${JSON.stringify(this.toJson())}`; } /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString() { return `QuestionnaireInitial${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)('QuestionnaireInitial', this); } constructor(args) { super(); if (args) Object.assign(this, args); } } exports.QuestionnaireInitial = QuestionnaireInitial;