Uploaded image for project: 'PhenoTips'
  1. PT-3007

Creating patient via API doesn't give back its location

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Cannot Reproduce
    • Affects versions: 1.2.4, 1.2.5, 1.3-milestone-4
    • Fix versions: None
    • Components: None
    • Labels:
    • Sprint:

      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.

        Attachments

          Activity

            People

            • Assignee:
              sdumitriu Sergiu Dumitriu
              Reporter:
              ch686 Csaba Halmagyi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: