Complex Intervals
Periodic Interval of Time (PIVL)
CHI defines one Periodic Interval of Time specialization type:
- PIVL<TS.DATETIME> – Periodic Interval of Time
Below are the basic rules for each of the interval specification types:
| Attribute | Conformance | Notes |
|---|---|---|
| frequency | mandatory | Wraps numerator and denominator |
| numerator | mandatory | Identifies the number of repetitions within a given time period and must follow the INT.NONNEG specification |
| denominator | mandatory | Identifies the time period and must follow the PQ.TIME specification |
Note: The "phase", "period", "alignment" and "institutionSpecified" attributes are not allowed.
Example: “3 times per day” would be specified as:
<effectiveTime xsi:type="PIVL_TS">
<frequency>
<numerator xsi:type="INT" specializationType="INT.NONNEG" value="3"/>
<denominator xsi:type="PQ" specializationType="PQ.TIME" value="1" unit="d"/>
</frequency>
</effectiveTime>
General Timing Specification (GTS)
This data type is used to convey two pieces of information: The overall time-period when something occurred (or is to occur) (represented by the first “comp” element), as well as how often it should/did occur within that time-period (represented by the second “comp” element).
CHI defines one General Timing Specification specialization type:
- GTS.BOUNDEDPIVL – General Timing Specification (Time-range and Frequency)
Below are the basic rules for each of the interval specification types:
| Attribute | Conformance | Notes |
|---|---|---|
| comp | mandatory | Wraps low and high and should comply with IVL<TS.FULLDATE>. Indicates overall time-period. Has mandatory attribute "operator" with value "I" |
| low | - | |
| high | - | |
| comp | mandatory | Wraps frequency and should comform to PIVL<TS.DATETIME> |
| frequency | mandatory | Wraps numerator and denominator |
| numerator | mandatory | Identifies the number of repetitions within a given time period and must follow the INT.NONNEG specification |
| denominator | mandatory | Identifies the time period and must follow the PQ.TIME specification |
Example: "3 times/day beginning August 3rd 2005 for 3 weeks" would be specified as:
<effectiveTime xsi:type="SXPR_TS">
<comp xsi:type="IVL_TS" operator="I">
<low xsi:type="TS" specializationType="TS.FULLDATE" value= "20050803"/>
<width xsi:type="TS" specializationType="TS.FULLDATE" value="3" unit="wk"/>
</comp>
<comp xsi:type="PIVL_TS">
<frequency>
<numerator xsi:type="INT" specializationType="INT.NONNEG" value="3"/>
<denominator xsi:type="PQ" specializationType="PQ.TIME" value="1" unit="d"/>
</frequency>
</comp>
</effectiveTime>
