> For the complete documentation index, see [llms.txt](https://documentation.qure.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.qure.ai/api/platform-api/api-specifications/fetching-results.md).

# Fetching Results

The processed series results can be fetched via API call.

Use the following sample script to get the processed series results.

{% code title="Python" overflow="wrap" %}

```python
# Make the HTTP Get request to the service
r = requests.get(URL, headers={'Authorization': 'Token {}'.format(TOKEN)})
```

{% endcode %}

## Fetching the Results

<mark style="color:blue;">`GET`</mark> `http://BASE URL + results/ + [SERIES INSTANCE UID]`

Use the URL to make a GET call.

#### Path Parameters

| Name                                  | Type   | Description                      |
| ------------------------------------- | ------ | -------------------------------- |
| URL<mark style="color:red;">\*</mark> | String | The URL pointing to the service. |

#### Headers

| Name                                            | Type   | Description   |
| ----------------------------------------------- | ------ | ------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer token. |

{% tabs %}
{% tab title="200: OK Results Successfully Retrieved" %}
{% code title="Json" %}

```json
{
    "success": true,
    "message": "Results retrieved successfully!",
    "triage_status": "Routine/Critical",
    "usecase": "qxr/qer/qct/not_implemented",
    "result": {
         "report": "string",
         "files": {
             "output_type": ["pre_signed_urls"],
             .
             .
             .
         }
     },
     "report": []
}
```

{% endcode %}
{% endtab %}

{% tab title="202: Accepted Processing" %}
{% code title="Json" %}

```json
{
    "success": false,
    "message": "Image Series with resource_uid series_instance_uid is under process. Please check back in some time.
}
```

{% endcode %}
{% endtab %}

{% tab title="400: Bad Request Invalid Usec ases" %}
{% code title="Json" %}

```json
{
    "success": false,
    "message": "Not a valid use case",
    "debug_info": {
        "reason": "string"
    },
    "remarks": "{}",
    "result": {}
}
```

{% endcode %}
{% endtab %}

{% tab title="401: Unauthorized Invalid Token" %}
{% code title="Json" %}

```json
{
    "message": "Invalid token header. No credentials provided.",
    "next": "/accounts/login/",
    "authenticated": false
}
```

{% endcode %}
{% endtab %}

{% tab title="403: Forbidden Access Denied" %}
{% code title="Json" %}

```json
{
    "success": false,
    "message": "Access denied!"
}
```

{% endcode %}
{% endtab %}

{% tab title="404: Not Found Series Instance UID Not Found" %}
{% code title="Json" %}

```json
{
    "success": false,
    "message": "Series with SeriesInstanceUID series_instance_uid is not yet uploaded!"
}
```

{% endcode %}
{% endtab %}

{% tab title="409: Conflict Series with resource\_uid series\_instance\_uid has not yet been invoked for computation. You can invoke by doing a GET on base\_url/compute/series\_instance\_uid." %}
{% code title="Json" %}

```json
{
    "success": false,
    "message": "Series with resource_uid series_instance_uid has not yet been invoked for computation. You can invoke by doing a GET on base_url/compute/series_instance_uid."
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

### Response Attribute

<table><thead><tr><th width="214">Attribute</th><th width="121">Value type</th><th width="230">Description</th><th>Sample Value</th></tr></thead><tbody><tr><td><pre><code>success
</code></pre></td><td>Boolean</td><td><p>It indicates whether the API call was successful or not.</p><ul><li><strong>True</strong>: The call was successful.</li><li><strong>False</strong>: The call was not successful.</li></ul></td><td><pre class="language-json"><code class="lang-json">"success": true
</code></pre></td></tr><tr><td><pre><code>message
</code></pre></td><td>String</td><td>It validates the post call action based on the response status code. </td><td><pre class="language-json"><code class="lang-json">"message": "Results retrieved successfully!"
</code></pre></td></tr><tr><td><pre><code>triage_status
</code></pre></td><td>String</td><td><p>It prioritize the results.</p><ul><li><strong>Critical</strong>: It indicates high priority results and requires an expert supervision.</li><li><strong>Routine</strong>: It indicates standard priority results and requires an expert supervision.</li></ul></td><td><pre class="language-json"><code class="lang-json">"triage_status": "Routine"
</code></pre></td></tr><tr><td><pre><code>usecase
</code></pre></td><td>String</td><td><p>It indicates type of usecase results.</p><ol><li><strong>qXR</strong>: Chest X-rays results.</li><li><strong>qER</strong>: Head CT scans results.</li><li><strong>qCT</strong>: Lungs X-rays results.</li><li><strong>Not implemented</strong>: No usecase defined.  </li></ol></td><td><pre class="language-json"><code class="lang-json">"usecase": "qer"
</code></pre></td></tr><tr><td><pre><code>result
</code></pre></td><td>String</td><td>It contains the results of the API call.<br>For more information, see <a href="/pages/rcWVa9UfOfKvLsbo2OIW">Output Specification</a>.</td><td><pre class="language-json"><code class="lang-json">"result": {
        "report": "No intracranial hemorrhage found",
        "files": {
                "reports": [],
                "sc_key_slices": [],
                "sc": [],
                "gsps": [],
                "sc_png": []
        }
},
</code></pre></td></tr></tbody></table>
