
Get Data Value Change History from a DHIS2 Instance
Source:R/get_data_value_audits.R
get_data_value_audits.Rd
get_data_value_audits() retrieves the audit trail (who changed a data
value, when, and to what) from DHIS2's audits/dataValue endpoint.
Usage
get_data_value_audits(
data_elements = NULL,
org_units = NULL,
periods = NULL,
...,
retry = 2,
verbosity = 0,
timeout = 60,
auth = NULL,
call = caller_env()
)Arguments
- data_elements
Optional. A vector of data element ids to scope the query to.
- org_units
Optional. A vector of organisation unit ids to scope the query to.
- periods
Optional. A vector of ISO period strings to scope the query to.
- ...
Other query parameters supported by your DHIS2 instance's
audits/dataValueendpoint (e.g.categoryOptionCombo,attributeOptionCombo).- retry
Number of times to retry the API call in case of failure (defaults to 2).
- verbosity
Level of HTTP information to print during the call.
- timeout
Maximum number of seconds to wait for the API response.
- auth
Optional. The authentication object.
- call
The caller environment.
Value
A tibble of data value audit records (data element, period, org
unit, category/attribute option combos, value, modified date, audit
type), or NULL if none were found.