fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
73 lines (72 loc) • 3.02 kB
TypeScript
import { IElement } from 'fhirtypes/dist/r4';
import { HealthcareServiceAvailableTime } from '../../models';
import { BackboneBuilder, IBuildable } from '../base';
import { ExtractUnderscoreKeys } from '../../../core/commons/utils';
import { DaysOfWeekType } from 'fhirtypes/dist/r4/types';
type PrimitiveExtensionFields = ExtractUnderscoreKeys<HealthcareServiceAvailableTime>;
/**
* @description Interface for chaining the building of a HealthcareServiceAvailableTime
* @interface IHealthcareServiceAvailableTimeBuilder
* @extends {IBuildable<HealthcareServiceAvailableTime>}
*/
interface IHealthcareServiceAvailableTimeBuilder extends IBuildable<HealthcareServiceAvailableTime> {
addDaysOfWeek(value: DaysOfWeekType): this;
setAllDay(value: boolean): this;
setAvailableStartTime(value: string): this;
setAvailableEndTime(value: string): this;
}
/**
* @version R4 (v4.0.1)
* @summary FHIR® Specification by HL7®
* @description Class for building a HealthcareServiceAvailableTime
* @class HealthcareServiceAvailableTimeBuilder
* @extends {BackboneBuilder}
* @implements {IHealthcareServiceAvailableTimeBuilder}
* @author Roberto Araneda Espinoza
*/
export declare class HealthcareServiceAvailableTimeBuilder extends BackboneBuilder implements IHealthcareServiceAvailableTimeBuilder {
private readonly healthcareServiceAvailableTime;
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<T extends PrimitiveExtensionFields>(param: T, extension: IElement): this;
/**
* @description Builds the model
* @returns {HealthcareServiceAvailableTime}
*/
build(): HealthcareServiceAvailableTime;
/**
* @description Adds a value to the daysOfWeek array
* @description Indicates which days of the week are available between the start and end Times.
* @param value - the value to add
* @returns {this}
*/
addDaysOfWeek(value: DaysOfWeekType): this;
/**
* @description Sets the allDay value
* @description Is this always available? (hence times are irrelevant) e.g. 24 hour service.
* @param value - the value to set
* @returns {this}
*/
setAllDay(value: boolean): this;
/**
* @description Sets the availableStartTime value
* @description The opening time of day. Note: If the AllDay flag is set, then this time is ignored.
* @param value - the value to set
* @returns {this}
*/
setAvailableStartTime(value: string): this;
/**
* @description Sets the availableEndTime value
* @description The closing time of day. Note: If the AllDay flag is set, then this time is ignored.
* @param value - the value to set
* @returns {this}
*/
setAvailableEndTime(value: string): this;
}
export {};