ValidateNameIdPairs: ValidateNameIdPairs(names, ids, type)

View source: R/dhis2api.R

ValidateNameIdPairsR Documentation

ValidateNameIdPairs(names, ids, type)

Description

Checks name list and paired id list (same length) and verifies they correspond to each other

Usage

ValidateNameIdPairs(
  names,
  ids,
  type,
  exact = TRUE,
  d2_session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

names

string vector - names of spcific class of metadata - category option, indicator etc

ids

string vector - ids of specific class of metadata - category option, indicator etc

type

string - metadata endpoint - cataegoryOptions, indicators, etc

exact

boolean - exact = true matches the full name in datim with the name provided exact = false is a case sensitive serch that the name provided is part of the name in datim

Value

dplyr::all_equal response for exact = true or tibble of mismatches if exact = false


pepfar-datim/data-pack-commons documentation built on Feb. 6, 2024, 9:46 p.m.