UNPKG

fhirtypes

Version:
35 lines (34 loc) 1.52 kB
import { IElement } from '../base'; /** * @summary FHIR R4 * @description Time range defined by start and end date/time. * @property {string} start - Starting time with inclusive boundary * @property {string} end - End time with inclusive boundary, if not ongoing * @property {IElement} _start - Extension of start * @property {IElement} _end - Extension of end * @see http://www.hl7.org/fhir/R4/datatypes.html#Period http://www.hl7.org/fhir/R4/datatypes.html#Period * @author Roberto Araneda */ export interface IPeriod extends IElement { /** * @description Starting time with inclusive boundary * @description A date, date-time or partial date (e.g. just year or year + month) as used in human communication. The format is YYYY, YYYY-MM, YYYY-MM-DD or YYYY-MM-DDThh:mm:ss+zz:zz * @description The time "24:00" is not allowed. * @example 2018, 1973-06, 1905-08-23, 2015-02-07T13:28:17-05:00 or 2017-01-01T00:00:00.000Z */ start?: string; /** * @description End time with inclusive boundary, if not ongoing * @description A date, date-time or partial date (e.g. just year or year + month) as used in human communication. The format is YYYY, YYYY-MM, YYYY-MM-DD or YYYY-MM-DDThh:mm:ss+zz:zz * @example 2018, 1973-06, 1905-08-23, 2015-02-07T13:28:17-05:00 or 2017-01-01T00:00:00.000Z */ end?: string; /** * @description Extension of start */ _start?: IElement; /** * @description Extension of end */ _end?: IElement; }