Create more than one patient, using rest api through postman

Hello OpenMRS Community,

I am trying to create many patients at the same time using rest api through postman, my payload: [ { “identifiers”: [ { “identifier”: “1234”, “identifierType”: “c232dcdc-ff90-48dc-8b60-87db22e5b39a”, “location”: “e8e30e97-f678-46b1-b6c9-aefa1f1ca6d2”, “preferred”: true } ], “person”: { “gender”: “M”, “birthdate”: “1944-07-01”, “names”: [ { “givenName”: “KIKI”, “familyName”: “KO”, “middleName”: “” } ] } }, { “identifiers”: [ { “identifier”: “89870”, “identifierType”: “c232dcdc-ff90-48dc-8b60-87db22e5b39a”, “location”: “e8e30e97-f678-46b1-b6c9-aefa1f1ca6d2”, “preferred”: true } ], “person”: { “gender”: “M”, “birthdate”: “1940-07-01”, “names”: [ { “givenName”: “KOka”, “familyName”: “Test”, “middleName”: “” } ] } } ]

Error logs: creating patients in openmrs using rest api error logs - Pastebin.com

That’s not supported using the core REST API.

1 Like