Copyright | (c) Target RWE 2023 |
---|---|
License | BSD3 |
Maintainer | bbrown@targetrwe.com ljackman@targetrwe.com dpritchard@targetrwe.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- type CohortSpecMap t m a = Map Text (CohortSpec t m a)
- data CohortSpec t m a = MkCohortSpec {
- runIndices :: NonEmpty (Event t m a) -> IndexSet a
- runCriteria :: NonEmpty (Event t m a) -> Interval a -> Criteria
- runVariables :: NonEmpty (Event t m a) -> Interval a -> VariableRow
- module Cohort.IndexSet
- data Criterion = MkCriterion {
- statusLabel :: Text
- status :: Status
- data Status
- includeIf :: Bool -> Status
- excludeIf :: Bool -> Status
Types for Cohort data
type CohortSpecMap t m a = Map Text (CohortSpec t m a) Source #
Container for CohortSpec
for different cohorts, as given by the Text
keys.
data CohortSpec t m a Source #
A container for all logic needed to construct a cohort. The provided
functions will be run on subject-level data, subject-by-subject. Logic will
be executed as part of a
pipeline. The type CohortApp
CohortApp
itself
is not exported, but the user will create such a pipeline via the exported
cohortMain
.
Note runVariables
must construct *all* output variables. For a more
detailed explanation of the cohort-building pipeline, see the Hasklepias
module documentation from `hasklepias-main`.
MkCohortSpec | |
|
Index
module Cohort.IndexSet
Criteria
A Status
paired with some descriptive label.
MkCriterion | |
|
Indication of whether a given subject should be included or excluded from the cohort.