/pheno/symptoms

  • Description

    Retrieve all symptoms in the phenotypic layer, and optionally, select a specific source and snapshot. For each symptom you will get their name, cui, and the semantic types they are associated to.

  • URL (PATH)

    /pheno/symptoms?source={source}&snapshot={snapshot}&token={token}

  • Method

    GET

  • Authentication

    Optional (token)

  • Request parameters & Path variables
    Parameter Description
    source
    [alphanumeric]
    optional
    always paired with snapshot
    Name of the information source
    snapshot
    [alphanumeric]
    optional
    always paired with source
    Date of the information extraction, with the the following format: “yyyy-mm-dd”
    token
    [alphanumeric]
    optional
    Optional access key to save the current query in your profile
  • Example request
                                         https://disnet.ctb.upm.es/api/disnet/pheno/symptoms?source=wikipedia&snapshot=2020-01-01&token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": [
        {
          "name": "Acute abdomen",
          "cui": "C0000727",
          "semanticTypes": [
            "sosy"
          ]
        },
        {
          "name": "Abdominal cramps",
          "cui": "C0000729",
          "semanticTypes": [
            "sosy"
          ]
        },
        ...
      ]
    }
                                    
  • Error response (application/json)

    Common errors

    Source error

    Snapshot error

    Snapshot format error