UNPKG

fhirbuilder

Version:
62 lines (61 loc) 2.19 kB
import { ICodeableConcept, IHumanName, IContactPoint, IAddress } from 'fhirtypes/dist/r4'; import { OrganizationContact } from '../../models'; import { BackboneBuilder, IBuildable } from '../base'; /** * @description Interface for chaining the building of a OrganizationContact * @interface IOrganizationContactBuilder * @extends {IBuildable<OrganizationContact>} */ interface IOrganizationContactBuilder extends IBuildable<OrganizationContact> { setPurpose(value: ICodeableConcept): this; setName(value: IHumanName): this; addTelecom(value: IContactPoint): this; setAddress(value: IAddress): this; } /** * @version R4 (v4.0.1) * @summary FHIR® Specification by HL7® * @description Class for building a OrganizationContact * @class OrganizationContactBuilder * @extends {BackboneBuilder} * @implements {IOrganizationContactBuilder} * @author Roberto Araneda Espinoza */ export declare class OrganizationContactBuilder extends BackboneBuilder implements IOrganizationContactBuilder { private readonly organizationContact; constructor(); /** * @description Builds the model * @returns {OrganizationContact} */ build(): OrganizationContact; /** * @description Sets the purpose value * @description Indicates a purpose for which the contact can be reached. * @param value - the value to set * @returns {this} */ setPurpose(value: ICodeableConcept): this; /** * @description Sets the name value * @description A name associated with the contact. * @param value - the value to set * @returns {this} */ setName(value: IHumanName): this; /** * @description Adds a value to the telecom array * @description A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. * @param value - the value to add * @returns {this} */ addTelecom(value: IContactPoint): this; /** * @description Sets the address value * @description Visiting or postal addresses for the contact. * @param value - the value to set * @returns {this} */ setAddress(value: IAddress): this; } export {};