UNPKG

fhirbuilder

Version:
71 lines (70 loc) 2.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConditionStage = 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 ConditionStage BackboneElement undefined * @property {ICodeableConcept} summary * @property {IReference[]} assessment * @property {ICodeableConcept} type * @author Roberto Araneda Espinoza */ class ConditionStage extends base_1.BackboneElement { /** * @description A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific. */ summary; /** * @description Reference to a formal record of the evidence on which the staging assessment is based. */ assessment; /** * @description The kind of staging, such as pathological or clinical staging. */ type; /** * @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 `ConditionStage${JSON.stringify(this.toJson())}`; } /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString() { return `ConditionStage${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)('ConditionStage', this); } constructor(args) { super(); if (args) Object.assign(this, args); } } exports.ConditionStage = ConditionStage;