fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
49 lines (48 loc) • 1.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Timing = void 0;
const base_1 = require("../../../core/r4/validators/base");
const builders_1 = require("../../builders");
const base_2 = require("../base");
class Timing extends base_2.BackboneElement {
/**
* @description Identifies specific times when the event occurs.
*/
event;
/**
* @description A set of rules that describe when the event is scheduled.
*/
repeat;
/**
* @description A code for the timing schedule (or just text in code.text).
*/
code;
/**
* @description Extensions for event
*/
_event;
toJson() {
return JSON.parse(JSON.stringify(this));
}
toPrettyString() {
return `Timing${JSON.stringify(this.toJson(), null, 2)}`;
}
toString() {
return `Timing${JSON.stringify(this.toJson())}`;
}
validate() {
return (0, base_1.ConformanceValidator)('Timing', this);
}
constructor(args) {
super();
if (args)
Object.assign(this, args);
}
builderInstance() {
return new builders_1.TimingBuilder();
}
serialize() {
return JSON.stringify(this.toJson());
}
}
exports.Timing = Timing;