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

Status

Assignee

Sergiu Dumitriu

Reporter

Csaba Halmagyi

Labels

External issue ID

None

External issue ID

None

Affects versions

1.2.4
1.3-milestone-4
1.2.5

Priority

Medium
Configure