getMechanismsMap: Get Mechanisms Map

View source: R/getMechanismsMap.R

getMechanismsMapR Documentation

Get Mechanisms Map

Description

Utility function to produce a map of valid mechanisms. If no organisation unit is provided, assumed to be global.

Usage

getMechanismsMap(
  organisationUnit = NA,
  include_default = TRUE,
  d2session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

organisationUnit

Organisation unit ancestor.

d2session

DHIS2 Session id

Value

Returns a data frame of name,code,id, and categoryOptionCombo (which is the UID of interest) along with start and endDates of the mechanisms


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