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

Unable to create/update patient record with phenotypes without specifying nonstandard_features[] through REST API

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.3-milestone-6
    • Fix Version/s: 1.3-rc-1
    • Component/s: None
    • Labels:

      Description

      This no longer works in PT1.3M6 (it worked in PT1.3M5):

      curl -u Admin:admin -H "Content-Type: application/json" -X POST -d '{ "features": [{"id": "HP:0000593", "label": "Abnormality of the anterior chamber", "type": "phenotype", "observed":"yes"}], "sex":"F"}' http://localhost:8080/rest/patients
      

      This is the only way to create a patient record with phenotype:

      curl -u Admin:admin -H "Content-Type: application/json" -X POST -d '{ "features": [{"id": "HP:0000593", "label": "Abnormality of the anterior chamber", "type": "phenotype", "observed":"yes"}], "sex":"F", "nonstandard_features": []}' http://localhost:8080/rest/patients
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                veronikaslc Veronika Koltunova
                Reporter:
                sasha Sasha Andjic
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: