Create TEI (dhis2)
Metadataโ
- Name: Create TEI (dhis2)
- Adaptor:
@openfn/language-dhis2
- Adaptor Version:
v2.0.11
- Created almost 2 years ago
- Updated about 2 months ago
- Score: 18 (an indicator of how useful this job may be)
Key Functionsโ
createTEI
, dataValue
Expressionโ
createTEI({
orgUnit: 'DiszpKrYNg8',
trackedEntityType: 'nEenWmSyUEp',
program: 'uy2gU8kT1jF',
attributes: [
{ attribute: 'zDhUuAYrxNC', value: dataValue('body.Patient_name') },
{ attribute: 'w75KJ2mc4zz', value: dataValue('body.Last_Name_of_Patient') },
],
enrollments: [
{
orgUnit: 'DiszpKrYNg8',
program: 'uy2gU8kT1jF',
programState: 'oRySG82BKE6', // active
enrollmentDate: dataValue('body.Date'),
incidentDate: dataValue('body.Date'),
},
],
});