fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
56 lines (55 loc) • 2.26 kB
TypeScript
import { IElement, IPeriod } from 'fhirtypes/dist/r4';
import { HealthcareServiceNotAvailable } from '../../models';
import { BackboneBuilder, IBuildable } from '../base';
import { ExtractUnderscoreKeys } from '../../../core/commons/utils';
type PrimitiveExtensionFields = ExtractUnderscoreKeys<HealthcareServiceNotAvailable>;
/**
* @description Interface for chaining the building of a HealthcareServiceNotAvailable
* @interface IHealthcareServiceNotAvailableBuilder
* @extends {IBuildable<HealthcareServiceNotAvailable>}
*/
interface IHealthcareServiceNotAvailableBuilder extends IBuildable<HealthcareServiceNotAvailable> {
setDescription(value: string): this;
setDuring(value: IPeriod): this;
}
/**
* @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
*/
export declare class HealthcareServiceNotAvailableBuilder extends BackboneBuilder implements IHealthcareServiceNotAvailableBuilder {
private readonly healthcareServiceNotAvailable;
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 {HealthcareServiceNotAvailable}
*/
build(): HealthcareServiceNotAvailable;
/**
* @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: string): 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: IPeriod): this;
}
export {};