Creating patient via API doesn't give back its location

Description

When creating a patient via the API it doesn't return the patient's id/location:

The API I used:

/patients
HTTP method: POST
Accepted media type:
application/json
Media type:
application/json
Result:
If successful, creates a new patient record and returns its location, otherwise provides an error report

The JSON I used: {"patient_name":{"last_name":"Smith","first_name":"TestPatient"},"external_id":"testsub001"}

In version 1.2.4 and in 1.2.5 this call creates the patient in Phenotips but the API doesn’t send the location back [it's null] (location == P00000X ?)

In version 1.3 (milestone 4) this call creates a patient without passing the first name, last name values AND doesn’t send the location back.

Environment

None

Activity

Show:
Sergiu Dumitriu
January 20, 2017, 4:42 AM

Weird, I don't see anything weird in there. But since 1.3-milestone-5 is out, can you try to update to this version instead and see if the error still occurs?

Csaba Halmagyi
January 19, 2017, 12:09 PM

Sorry for the delay, here is the output:

Sergiu Dumitriu
January 10, 2017, 7:23 PM

This is for the 1.2.4 version, can you do the same for the 1.3-milestone-4 version?

Csaba Halmagyi
January 9, 2017, 8:17 AM

Please find the output attached.

Sergiu Dumitriu
January 5, 2017, 4:27 PM

Can you send me the output of find /var/lib/phenotips/ -name *xed please?

Cannot Reproduce

Assignee

Sergiu Dumitriu

Reporter

Csaba Halmagyi

Labels