fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
61 lines (60 loc) • 2.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HealthcareServiceNotAvailableBuilder = void 0;
const models_1 = require("../../models");
const base_1 = require("../base");
/**
* @version R4 (v4.0.1)
* @summary FHIR® Specification by HL7®
* @description Class for building a HealthcareServiceNotAvailable
* @class HealthcareServiceNotAvailableBuilder
* @extends {BackboneBuilder}
* @implements {IHealthcareServiceNotAvailableBuilder}
* @author Roberto Araneda Espinoza
*/
class HealthcareServiceNotAvailableBuilder extends base_1.BackboneBuilder {
healthcareServiceNotAvailable;
constructor() {
super();
this.healthcareServiceNotAvailable = new models_1.HealthcareServiceNotAvailable();
}
/**
* @description Adds a primitive extension to the element
* @param param - the field to add the extension to
* @param extension - the extension to add
* @returns {this}
* @example addPrimitiveExtension('_value', { value: 'test' })
*/
addPrimitiveExtension(param, extension) {
this.healthcareServiceNotAvailable[param] = extension;
return this;
}
/**
* @description Builds the model
* @returns {HealthcareServiceNotAvailable}
*/
build() {
return Object.assign(this.healthcareServiceNotAvailable, super.build());
}
/**
* @description Sets the description value
* @description The reason that can be presented to the user as to why this time is not available.
* @param value - the value to set
* @returns {this}
*/
setDescription(value) {
this.healthcareServiceNotAvailable.description = value;
return this;
}
/**
* @description Sets the during value
* @description Service is not available (seasonally or for a public holiday) from this date.
* @param value - the value to set
* @returns {this}
*/
setDuring(value) {
this.healthcareServiceNotAvailable.during = value;
return this;
}
}
exports.HealthcareServiceNotAvailableBuilder = HealthcareServiceNotAvailableBuilder;