fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
92 lines (91 loc) • 2.17 kB
TypeScript
import { AddressTypeType, AddressUseType, IAddress, IElement, IPeriod } from 'fhirtypes/dist/r4';
import { Element } from '../base/Element';
import { ISerializable } from '../base/ISerializable';
import { IValidatable } from '../base/IValidatable';
export declare class Address extends Element implements IAddress, ISerializable, IValidatable {
constructor(args?: IAddress);
toJson(): Record<string, any>;
toPrettyString(): string;
toString(): string;
serialize(): string;
validate(): {
isValid: boolean;
operationOutcome: import("fhirtypes/dist/r4").IOperationOutcome;
};
/**
* @description home | work | temp | old | billing - purpose of this address
*/
use?: AddressUseType;
/**
* @description postal | physical | both
*/
type?: AddressTypeType;
/**
* @description Text representation of the address
*/
text?: string;
/**
* @description Street name, number, direction & P.O. Box etc.
*/
line?: string[];
/**
* @description Name of city, town etc.
*/
city?: string;
/**
* @description District name (aka county)
*/
district?: string;
/**
* @description Sub-unit of country (abbreviations ok)
*/
state?: string;
/**
* @description Postal code for area
*/
postalCode?: string;
/**
* @description Country (e.g. can be ISO 3166 2 or 3-letter code)
*/
country?: string;
/**
* @description Time period when address was/is in use
*/
period?: IPeriod;
/**
* Extensions for use
*/
_use?: IElement;
/**
* Extensions for type
*/
_type?: IElement;
/**
*
*/
_text?: IElement;
/**
* Extensions for line
*/
_line?: IElement[];
/**
* Extensions for city
*/
_city?: IElement;
/**
* Extensions for district
*/
_district?: IElement;
/**
* Extensions for state
*/
_state?: IElement;
/**
* Extensions for postalCode
*/
_postalCode?: IElement;
/**
* Extensions for country
*/
_country?: IElement;
}