getValidationRules: Utility function for getting validation rules dynamically...

View source: R/getValidationRules.R

getValidationRulesR Documentation

Utility function for getting validation rules dynamically from DHIS2 and parsing them into a data frame

Description

d2Parser will parse a compliant DHIS2 XML,JSON or CSV file and transform it into a standard data frame which can be used in subsequent DATIM validation routines

Usage

getValidationRules(
  remove_decoration = FALSE,
  d2session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

remove_decoration

Remove decoration of curly braces present in the raw validation metadata.

d2session

DHIS2 Session id

Value

Returns a data frame of validation rules consisting of name, left and right side operators and strategies


jason-p-pickering/datim-validation documentation built on April 20, 2023, 5:32 a.m.