UNPKG

fhirbuilder

Version:
76 lines (75 loc) 2.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OrganizationContact = 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 OrganizationContact BackboneElement undefined * @property {ICodeableConcept} purpose * @property {IHumanName} name * @property {IContactPoint[]} telecom * @property {IAddress} address * @author Roberto Araneda Espinoza */ class OrganizationContact extends base_1.BackboneElement { /** * @description Indicates a purpose for which the contact can be reached. */ purpose; /** * @description A name associated with the contact. */ name; /** * @description A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. */ telecom; /** * @description Visiting or postal addresses for the contact. */ address; /** * @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 `OrganizationContact${JSON.stringify(this.toJson())}`; } /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString() { return `OrganizationContact${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)('OrganizationContact', this); } constructor(args) { super(); if (args) Object.assign(this, args); } } exports.OrganizationContact = OrganizationContact;