Aggregate data values¶
DataValue + DataValueSet — the envelope /api/dataValueSets GET returns and the round-trippable shape analytics can serialise.
aggregate
¶
Typed models for DHIS2 aggregate data values (shim over generated/v42/oas).
Covers the /api/dataValueSets GET response (a DataValueSet envelope
containing a list of DataValues). The corresponding POST/import path
returns a WebMessageResponse (see dhis2w_client/envelopes.py).
Distinct from the generated DataElement / DataSet / CategoryOptionCombo
metadata models (those come out of /api/schemas codegen) — these describe
the runtime values captured against that metadata. OpenAPI ships both
shapes under components/schemas/{DataValue,DataValueSet}.
Classes¶
DataValue
¶
Bases: BaseModel
OpenAPI schema DataValue.
Source code in packages/dhis2w-client/src/dhis2w_client/generated/v42/oas/data_value.py
DataValueSet
¶
Bases: BaseModel
OpenAPI schema DataValueSet.