Saltar al contenido principal
Esta página no tiene versión en español, así que te la mostramos en inglés.

Create Patient in OpenMRS

This job was provided by an OpenFn.org user via the job library API.

Metadata​

  • Name: Create Patient in OpenMRS
  • Adaptor: @openfn/language-openmrs
  • Adaptor Version: latest
  • Created almost 7 years ago
  • Updated almost 7 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)
}]
})
)
)