OpenMRS version: 1.8.2 Webservices version: 0.8.21639
I tried posting a patient with the required fields, but it returned a ConversionException. Full error: https://pastebin.com/nqe3S2jB
I’m not sure if the webservices 0.8 version doesn’t support the posting of patient, or if my json format is lacking the required data or is has a wrong format. The document only showed that the not-null properties were “person” and “identifiers”. Is this a version webservices version problem, or a formatting problem?
body:
{
"person": {
"names": [
{
"givenName": "Inter",
"familyName": "Patient"
}
],
"gender": "M"
},
"identifiers": [
{
"identifier": "5000000",
"identifierType": {
"display": "Old Identification",
"links": [
{
"rel": "self",
"uri": "http://172.16.187.201:8080/openmrs/ws/rest/v1/patientidentifiertype/af09e0c3-ee19-48bb-9e1b-30681970c0e4"
}
]
},
"location": {
"uuid": "8d6c993e-c2cc-11de-8d13-0010c6dffd0f",
"display": "Unknown Location",
"links": [
{
"rel": "self",
"uri": "http://172.16.187.201:8080/openmrs/ws/rest/v1/location/8d6c993e-c2cc-11de-8d13-0010c6dffd0f"
}
]
}
}
]
}