fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
50 lines (49 loc) • 1.54 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EncounterClassHistoryBuilder = 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 EncounterClassHistory
* @class EncounterClassHistoryBuilder
* @extends {BackboneBuilder}
* @implements {IEncounterClassHistoryBuilder}
* @author Roberto Araneda Espinoza
*/
class EncounterClassHistoryBuilder extends base_1.BackboneBuilder {
encounterClassHistory;
constructor() {
super();
this.encounterClassHistory = new models_1.EncounterClassHistory();
}
/**
* @description Builds the model
* @returns {EncounterClassHistory}
*/
build() {
return Object.assign(this.encounterClassHistory, super.build());
}
/**
* @description Sets the class value
* @description inpatient | outpatient | ambulatory | emergency +.
* @param value - the value to set
* @returns {this}
*/
setClass(value) {
this.encounterClassHistory.class = value;
return this;
}
/**
* @description Sets the period value
* @description The time that the episode was in the specified class.
* @param value - the value to set
* @returns {this}
*/
setPeriod(value) {
this.encounterClassHistory.period = value;
return this;
}
}
exports.EncounterClassHistoryBuilder = EncounterClassHistoryBuilder;