fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
91 lines (90 loc) • 2.69 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppointmentParticipant = 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 AppointmentParticipant BackboneElement
undefined
* @property {ICodeableConcept[]} type
* @property {IReference} actor
* @property {string} required
* @property {IElement} _required
* @property {string} status
* @property {IElement} _status
* @property {IPeriod} period
* @author Roberto Araneda Espinoza
*/
class AppointmentParticipant extends base_1.BackboneElement {
/**
* @description Role of participant in the appointment.
*/
type;
/**
* @description A Person, Location/HealthcareService or Device that is participating in the appointment.
*/
actor;
/**
* @description Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.
*/
required;
/**
* @description Extensions for required
*/
_required;
/**
* @description Participation status of the actor.
*/
status;
/**
* @description Extensions for status
*/
_status;
/**
* @description Participation period of the actor.
*/
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 `AppointmentParticipant${JSON.stringify(this.toJson())}`;
}
/**
* @description Returns a pretty string representation of the model
* @returns {string}
*/
toPrettyString() {
return `AppointmentParticipant${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)('AppointmentParticipant', this);
}
constructor(args) {
super();
if (args)
Object.assign(this, args);
}
}
exports.AppointmentParticipant = AppointmentParticipant;