UNPKG

fhirbuilder

Version:
47 lines (46 loc) 1.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContactDetail = void 0; const base_1 = require("../base"); const base_2 = require("../../../core/r4/validators/base"); /** * @name ContactDetail * @description Specifies contact information for a person or organization. * @see <a href="https://www.hl7.org/fhir/R4/metadatatypes.html#ContactDetail">ContactDetail</a> * @version R4 * @extends {Element} */ class ContactDetail extends base_1.Element { /** * @description The name of an individual to contact. */ name; /** * @description Extensions for name */ _name; /** * @description The contact details for the individual (if a name was provided) or the organization. */ telecom; toJson() { return JSON.parse(JSON.stringify(this)); } toPrettyString() { return `ContactDetail${JSON.stringify(this.toJson(), null, 2)}`; } toString() { return `ContactDetail${JSON.stringify(this.toJson())}`; } validate() { return (0, base_2.ConformanceValidator)('ContactDetail', this); } constructor(args) { super(); Object.assign(this, args); } serialize() { return JSON.stringify(this.toJson()); } } exports.ContactDetail = ContactDetail;