fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
136 lines (135 loc) • 4.85 kB
TypeScript
import { IElement, IAttachment, ICoding, IQuantity, IReference } from 'fhirtypes/dist/r4';
import { QuestionnaireInitial } from '../../models';
import { BackboneBuilder, IBuildable } from '../base';
import { ExtractUnderscoreKeys } from '../../../core/commons/utils';
type PrimitiveExtensionFields = ExtractUnderscoreKeys<QuestionnaireInitial>;
/**
* @description Interface for chaining the building of a QuestionnaireInitial
* @interface IQuestionnaireInitialBuilder
* @extends {IBuildable<QuestionnaireInitial>}
*/
interface IQuestionnaireInitialBuilder extends IBuildable<QuestionnaireInitial> {
setValueBoolean(value: boolean): this;
setValueDecimal(value: number): this;
setValueInteger(value: number): this;
setValueDate(value: string): this;
setValueDateTime(value: string): this;
setValueTime(value: string): this;
setValueString(value: string): this;
setValueUri(value: string): this;
setValueAttachment(value: IAttachment): this;
setValueCoding(value: ICoding): this;
setValueQuantity(value: IQuantity): this;
setValueReference(value: IReference): this;
}
/**
* @version R4 (v4.0.1)
* @summary FHIR® Specification by HL7®
* @description Class for building a QuestionnaireInitial
* @class QuestionnaireInitialBuilder
* @extends {BackboneBuilder}
* @implements {IQuestionnaireInitialBuilder}
* @author Roberto Araneda Espinoza
*/
export declare class QuestionnaireInitialBuilder extends BackboneBuilder implements IQuestionnaireInitialBuilder {
private readonly questionnaireInitial;
constructor();
/**
* @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: PrimitiveExtensionFields, extension: IElement): this;
/**
* @description Builds the model
* @returns {QuestionnaireInitial}
*/
build(): QuestionnaireInitial;
/**
* @description Sets the valueBoolean value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueBoolean(value: boolean): this;
/**
* @description Sets the valueDecimal value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueDecimal(value: number): this;
/**
* @description Sets the valueInteger value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueInteger(value: number): this;
/**
* @description Sets the valueDate value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueDate(value: string): this;
/**
* @description Sets the valueDateTime value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueDateTime(value: string): this;
/**
* @description Sets the valueTime value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueTime(value: string): this;
/**
* @description Sets the valueString value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueString(value: string): this;
/**
* @description Sets the valueUri value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueUri(value: string): this;
/**
* @description Sets the valueAttachment value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueAttachment(value: IAttachment): this;
/**
* @description Sets the valueCoding value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueCoding(value: ICoding): this;
/**
* @description Sets the valueQuantity value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueQuantity(value: IQuantity): this;
/**
* @description Sets the valueReference value
* @description The actual value to for an initial answer.
* @param value - the value to set
* @returns {this}
*/
setValueReference(value: IReference): this;
}
export {};