UNPKG

fhirbuilder

Version:
56 lines (55 loc) 2.04 kB
import { ICodeableConcept, IElement } from 'fhirtypes/dist/r4'; import { IPatientCommunication, IOperationOutcome } from 'fhirtypes/dist/r4'; import { BackboneElement, IValidatable, ISerializable } from '../base'; /** * @version R4 (v4.0.1) * @summary FHIR® Specification by HL7® * @description Class for PatientCommunication BackboneElement * @property {ICodeableConcept} language * @property {boolean} preferred * @property {IElement} _preferred * @author Roberto Araneda Espinoza */ export declare class PatientCommunication extends BackboneElement implements IPatientCommunication, IValidatable, ISerializable { /** * @description The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. "en" for English, or "en-US" for American English versus "en-EN" for England English. */ language: ICodeableConcept; /** * @description Indicates whether or not the patient prefers this language (over other languages he masters up a certain level). */ preferred?: boolean; /** * @description Extensions for preferred */ _preferred?: IElement; /** * @description Returns a JSON representation of the model * @returns {Record<string, any>} */ toJson(): Record<string, any>; /** * @description Returns a string representation of the model * @returns {string} */ toString(): string; /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString(): string; /** * @description Returns a serialized string representation of the model * @returns {string} */ serialize(): string; /** * @description Validates the model * @returns {isValid: boolean, operationOutcome: IOperationOutcome} */ validate(): { isValid: boolean; operationOutcome: IOperationOutcome; }; constructor(args?: IPatientCommunication); }