CHW case to DHIS2
Metadata
- Name: CHW case to DHIS2
- Adaptor:
@openfn/language-dhis2
- Adaptor Version:
latest
- Created over 1 year ago
- Updated over 1 year ago
- Score: 0 (an indicator of how useful this job may be)
Key Functions
create
, dataValue
Expression
create('trackedEntityInstances', {
trackedEntityType: 'nEenWmSyUEp', // a person
orgUnit: 'DiszpKrYNg8',
attributes: [
{
attribute: 'w75KJ2mc4zz', // attribute id for first name
value: dataValue('case.firstName')(state) // data from submission
},
{
attribute: 'zDhUuAYrxNC', // attribute id for last name
value: dataValue('case.lastName')(state) // data from another submission field
}
]
});