ddi-react-data-model
v1.0.5
Published
Transformations, Formatter and utils library for the DDI data model
Downloads
3
Readme
ddi-react-data-model
Package for the data model library built during the VIDA incubator
Installation
yarn add ddi-react-data-model
Import and usage
Import
import {
dataAdapters as da,
dataTransformations as dt,
} from "ddi-react-data-model"
Example usage
let data = da.dhis2Adapter({ data: response })
data = dt.selectColumns(data, { columns: ["ou", "pe", "dx"] })
const dataAgg = dt.agg(data, {
groupBy: ["pe"],
aggregations: [["value", "mean"]],
})