fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
71 lines (70 loc) • 2.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EncounterParticipant = 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 EncounterParticipant BackboneElement
undefined
* @property {ICodeableConcept[]} type
* @property {IPeriod} period
* @property {IReference} individual
* @author Roberto Araneda Espinoza
*/
class EncounterParticipant extends base_1.BackboneElement {
/**
* @description Role of participant in encounter.
*/
type;
/**
* @description The period of time that the specified participant participated in the encounter. These can overlap or be sub-sets of the overall encounter's period.
*/
period;
/**
* @description Persons involved in the encounter other than the patient.
*/
individual;
/**
* @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 `EncounterParticipant${JSON.stringify(this.toJson())}`;
}
/**
* @description Returns a pretty string representation of the model
* @returns {string}
*/
toPrettyString() {
return `EncounterParticipant${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)('EncounterParticipant', this);
}
constructor(args) {
super();
if (args)
Object.assign(this, args);
}
}
exports.EncounterParticipant = EncounterParticipant;