Create Patient in OpenMRS
Metadata
- Name: Create Patient in OpenMRS
- Adaptor:
@openfn/language-openmrs - Adaptor Version:
latest - Created about 6 years ago
- Updated about 6 years ago
- Score: 0 (an indicator of how useful this job may be)
Key Functions
dataValue, field, fields
Expression
//Job to create patient in OpenMRS
patient(
fields(
field("gender", dataValue("form.gender")), //map values from CommCare forms
field("names", function(state) {
return [{
"patient_id": dataValue("form.case.@case_id")(state),
"creator": dataValue("form.user")(state)
}]
})
)
)