generate_tei_payload: Generate TEI payload

View source: R/import_teis.R

generate_tei_payloadR Documentation

Generate TEI payload

Description

Create a tracked entity instance payload from a line list

Usage

generate_tei_payload(
  events,
  tracked_entity_type = NULL,
  tea = NULL,
  tea_mapping = NULL,
  is_a360connect_type = TRUE,
  is_a360connect_enrollment_type = TRUE
)

Arguments

events

A data.frame of events to generate a payload.

tracked_entity_type

DHIS2 ID, the type of tracked entity attribute.

tea

A vector, specifies the tracked attributes.

tea_mapping

A data.frame object containing the tracked entity attributes and their uids.

is_a360connect_type

Logical. Use this to bypass a360connect settings.

is_a360connect_enrollment_type

Logical, Use this to bypass a360connect settings.

Value

A list, TEI payload


psi-mis/a360connect documentation built on Nov. 22, 2022, 12:36 p.m.