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


pepfar-datim/datim-validation documentation built on Oct. 17, 2024, 3:45 p.m.