remapDEs | R Documentation |
Function which converts data element codes, names or shortnames
to another class of identifiers. remapDes
should be supplied a vector
of data elements (names, codes or shortnames) along with the other required
paramaters. It will return a vector of identifiers of a different class.
remapDEs(
des_in,
mode_in = "code",
mode_out = "id",
d2session = dynGet("d2_default_session", inherits = TRUE)
)
des_in |
A vector of data element identifiers (codes, names, or shortNames). |
mode_in |
Should be one of code, name,shortName or id. This is the class we are mapping from. |
mode_out |
Should be one of code,name,shortName or id. This is the class we are mapping to. |
d2session |
DHIS2 Session id |
Returns a vector of DATIM uids for each data element which needs to be remapped.
## Not run:
d <- d2Parser("myfile.csv",type="csv")
d$de_codes <- remapOUs(d$dataElements,mode_in="id",mode_out="code")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.