UNPKG

fhirbuilder

Version:
75 lines (74 loc) 2.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoverageCostToBeneficiary = 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 CoverageCostToBeneficiary BackboneElement * @property {ICodeableConcept} type * @property {IQuantity} valueQuantity * @property {IMoney} valueMoney * @property {ICoverageException[]} exception * @author Roberto Araneda Espinoza */ class CoverageCostToBeneficiary extends base_1.BackboneElement { /** * @description The category of patient centric costs associated with treatment. */ type; /** * @description The amount due from the patient for the cost category. */ valueQuantity; /** * @description The amount due from the patient for the cost category. */ valueMoney; /** * @description A suite of codes indicating exceptions or reductions to patient costs and their effective periods. */ exception; /** * @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 `CoverageCostToBeneficiary${JSON.stringify(this.toJson())}`; } /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString() { return `CoverageCostToBeneficiary${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)('CoverageCostToBeneficiary', this); } constructor(args) { super(); if (args) Object.assign(this, args); } } exports.CoverageCostToBeneficiary = CoverageCostToBeneficiary;