UNPKG

fhirbuilder

Version:
71 lines (70 loc) 2.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProcedurePerformer = 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 ProcedurePerformer BackboneElement undefined * @property {ICodeableConcept} function * @property {IReference} actor * @property {IReference} onBehalfOf * @author Roberto Araneda Espinoza */ class ProcedurePerformer extends base_1.BackboneElement { /** * @description Distinguishes the type of involvement of the performer in the procedure. For example, surgeon, anaesthetist, endoscopist. */ function; /** * @description The practitioner who was involved in the procedure. */ actor; /** * @description The organization the device or practitioner was acting on behalf of. */ onBehalfOf; /** * @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 `ProcedurePerformer${JSON.stringify(this.toJson())}`; } /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString() { return `ProcedurePerformer${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)('ProcedurePerformer', this); } constructor(args) { super(); if (args) Object.assign(this, args); } } exports.ProcedurePerformer = ProcedurePerformer;