Copyright | (c) TargetRWE 2023 |
---|---|

License | BSD3 |

Maintainer | bbrown@targetrwe.com ljackman@targetrwe.com dpritchard@targetrwe.com |

Safe Haskell | Safe-Inferred |

Language | Haskell2010 |

# Documentation

A type containing a `Data.Set.`

of type `Set`

`Interval b`

, values of which
serve as index times when defining cohorts. In cohort terminology, indices are
the points in time at which an observational unit
can be assessed whether it meets the criteria for inclusion in the cohort. For
example, when `i`

is `Interval Day`

, then index events are days.

A reason for using a set as the underlying type is that indices must be unique within a subject. A subject cannot have multiple observational units for a given index.

Construct an `IndexSet`

using `toList`

.