@samply/lens
    Preparing search index...

    Type Alias LensResult

    Site result contains the stratum counts for each stratifier (e.g gender) in the stratifiers field and the total count of patients, samples, etc. in the totals field.

    Example:

    {
    "stratifiers": {
    "gender": {
    "female": 31,
    "male": 43
    },
    "diagnosis": {
    "C34.0": 26,
    "C34.2": 28,
    "C34.8": 25
    },
    },
    "totals": {
    "patients": 74,
    "samples": 312
    }
    }
    type LensResult = {
        stratifiers: Record<string, Record<string, number>>;
        totals: Record<string, number>;
    }
    Index
    stratifiers: Record<string, Record<string, number>>
    totals: Record<string, number>