UNPKG

fhirbuilder

Version:
75 lines (74 loc) 2.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CareTeamParticipant = 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 CareTeamParticipant BackboneElement * @property {ICodeableConcept[]} role * @property {IReference} member * @property {IReference} onBehalfOf * @property {IPeriod} period * @author Roberto Araneda Espinoza */ class CareTeamParticipant extends base_1.BackboneElement { /** * @description Indicates specific responsibility of an individual within the care team, such as "Primary care physician", "Trained social worker counselor", "Caregiver", etc. */ role; /** * @description The specific person or organization who is participating/expected to participate in the care team. */ member; /** * @description The organization of the practitioner. */ onBehalfOf; /** * @description Indicates when the specific member or organization did (or is intended to) come into effect and end. */ period; /** * @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 `CareTeamParticipant${JSON.stringify(this.toJson())}`; } /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString() { return `CareTeamParticipant${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)('CareTeamParticipant', this); } constructor(args) { super(); if (args) Object.assign(this, args); } } exports.CareTeamParticipant = CareTeamParticipant;