An time interval is meant to denote an interval of time whose begin and end is defined by Timestamp.
|start||Timestamp||1..1||begin of interval. REQUIRED.|
|end||Timestamp||1..1||end of interval. REQUIRED.|
The following message could be used to represent the interval from March 15, 2020, 1PM to March 25, 2020, 9PM.
timeInterval: start: "2020-03-15T13:00:00Z" end: "2020-03-25T09:00:00Z"
The date and time of the start of the interval.
The date and time of the end of the interval.
In some cases it may be desirable to shift all specific dates in a phenopacket by the same random amount. For instance, we might shift all dates by 2 years. In this case the above interval element would be represented as follows
timeInterval: start: "2018-03-15T13:00:00Z" end: "2018-03-25T09:00:00Z"