hasklepias-core-0.30.3: Domain-aware tools and types for constructing epidemiological cohorts
Copyright(c) Target RWE 2023
LicenseBSD3
Maintainerbbrown@targetrwe.com ljackman@targetrwe.com dpritchard@targetrwe.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cohort.Output

Description

 
Synopsis

Documentation

data CohortJSON Source #

Internal. Type controling the output shape of a Cohort.

Instances

Instances details
ToJSON CohortJSON Source # 
Instance details

Defined in Cohort.Output

Methods

toJSON :: CohortJSON -> Value

toEncoding :: CohortJSON -> Encoding

toJSONList :: [CohortJSON] -> Value

toEncodingList :: [CohortJSON] -> Encoding

Generic CohortJSON Source # 
Instance details

Defined in Cohort.Output

Associated Types

type Rep CohortJSON :: Type -> Type #

Show CohortJSON Source # 
Instance details

Defined in Cohort.Output

Eq CohortJSON Source # 
Instance details

Defined in Cohort.Output

type Rep CohortJSON Source # 
Instance details

Defined in Cohort.Output

type Rep CohortJSON = D1 ('MetaData "CohortJSON" "Cohort.Output" "hasklepias-core-0.30.3-inplace" 'False) (C1 ('MetaCons "MkCohortJSON" 'PrefixI 'True) (S1 ('MetaSel ('Just "attritionJSON") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttritionInfo) :*: S1 ('MetaSel ('Just "cohortJSON") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ObsUnitJSON])))

data ObsUnitJSON Source #

Internal. Type controling the output shape of each ObsUnit.

Constructors

MkObsUnitJSON 

Fields

Instances

Instances details
ToJSON ObsUnitJSON Source # 
Instance details

Defined in Cohort.Output

Methods

toJSON :: ObsUnitJSON -> Value

toEncoding :: ObsUnitJSON -> Encoding

toJSONList :: [ObsUnitJSON] -> Value

toEncodingList :: [ObsUnitJSON] -> Encoding

Generic ObsUnitJSON Source # 
Instance details

Defined in Cohort.Output

Associated Types

type Rep ObsUnitJSON :: Type -> Type #

Show ObsUnitJSON Source # 
Instance details

Defined in Cohort.Output

Eq ObsUnitJSON Source # 
Instance details

Defined in Cohort.Output

type Rep ObsUnitJSON Source # 
Instance details

Defined in Cohort.Output

toObsUnitJSON :: ToJSON a => ObsUnit a -> ObsUnitJSON Source #

Internal. Convert ObsUnit to ObsUnitJSON using the ToJSON instances for ObsId and VariableWrapped, to which the obsData are first converted.

toCohortJSON :: ToJSON a => CohortMap a -> CohortMapJSON Source #

Internal. Convert each Cohort in a CohortMap to CohortJSON.

type CohortMapJSON = Map Text CohortJSON Source #

Similar to CohortMap, but where the Cohorts have been mapped to a CohortJSON.