fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
61 lines (60 loc) • 1.93 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConditionStageBuilder = 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 ConditionStage
* @class ConditionStageBuilder
* @extends {BackboneBuilder}
* @implements {IConditionStageBuilder}
* @author Roberto Araneda Espinoza
*/
class ConditionStageBuilder extends base_1.BackboneBuilder {
conditionStage;
constructor() {
super();
this.conditionStage = new models_1.ConditionStage();
}
/**
* @description Builds the model
* @returns {ConditionStage}
*/
build() {
return Object.assign(this.conditionStage, super.build());
}
/**
* @description Sets the summary value
* @description A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific.
* @param value - the value to set
* @returns {this}
*/
setSummary(value) {
this.conditionStage.summary = value;
return this;
}
/**
* @description Adds a value to the assessment array
* @description Reference to a formal record of the evidence on which the staging assessment is based.
* @param value - the value to add
* @returns {this}
*/
addAssessment(value) {
this.conditionStage.assessment = this.conditionStage.assessment || [];
this.conditionStage.assessment.push(value);
return this;
}
/**
* @description Sets the type value
* @description The kind of staging, such as pathological or clinical staging.
* @param value - the value to set
* @returns {this}
*/
setType(value) {
this.conditionStage.type = value;
return this;
}
}
exports.ConditionStageBuilder = ConditionStageBuilder;