# Fill diagnostic report results from a scanned report

## Overview

[Video: Fill diagnostic report results from a scanned report](https://www.youtube.com/watch?v=9Q5H3mWUO4o)

This flow describes how to use [AI Vision](https://docs.ohc.network/apps/ai-vision.md) to fill the result fields of a [diagnostic report](https://docs.ohc.network/concepts/clinical/diagnostic-report.md) from images or PDF files of a printed report. You can also keep the files with the report.

## Pre-requisites

* Your deployment has installed the AI Vision app and the Filly backend service.
* You turned on AI Vision for your account. See [Turn on AI Vision for your account](https://docs.ohc.network/apps/ai-vision/turn-on-ai-vision.md).
* The diagnostic report is not final. AI Vision does not appear on a final report.
* You can enter results on this diagnostic report. See [Enter diagnostic report results](https://docs.ohc.network/flows/clinical/diagnostic-report/enter-diagnostic-report-results.md).
* You have the printed report as images or PDF files, or you can photograph it.
* You have the permission listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Use Filly | Lets AI Vision read the files of the report. You can hold it through a role in any organization of the facility. Default roles: Doctor, Nurse, Staff, Facility Admin and Administrator. Pharmacist and Volunteer do not have it by default. The **Autofill using AI Vision** banner appears without this permission. |

## Steps

### 1. Open the diagnostic report

Open the service request. Go to its diagnostic report. See [Enter diagnostic report results](https://docs.ohc.network/flows/clinical/diagnostic-report/enter-diagnostic-report-results.md).

![A diagnostic report that is not final, in its service request](/assets/images/fill-report-results-from-a-scan-1-a4bee5475dd7d1c974d75e38002c5f42.webp)

### 2. Find the AI Vision banner

Above the result fields, find the **Autofill using AI Vision** banner.

The banner tells you to review and edit the filled fields before you save.

![The Autofill using AI Vision banner above the result fields](/assets/images/fill-report-results-from-a-scan-2-b552e0532f911a0dae36c42602d4e2e5.webp)

### 3. Add the files of the report

Select **Upload Files**.

Choose the images or PDF files of the report.

On a small screen, you can select **Take Photo** to photograph the report instead.

The banner shows the number of files, for example "2 docs ready for extraction".

To add more files, select **Add Files**.

To remove a file, select the remove icon next to it. Its tooltip is **Remove**.

To clear the list, select **Discard**.

![Upload Files on the AI Vision banner](/assets/images/fill-report-results-from-a-scan-3-80aa43c222fd4c85af31e8be69657a8c.webp)

### 4. Keep the files with the report

This step is optional.

To attach the files to the diagnostic report, select **Keep these docs with the report**.

With this selected, AI Vision combines the files into one file and attaches it to the report. The file name is the patient name and the test name, joined by a dash.

![One file ready for extraction, with Keep these docs with the report](/assets/images/fill-report-results-from-a-scan-4-02c267a11671daf7973d8f953955ebf1.webp)

### 5. Start the autofill

Select the button that reads "Autofill from N docs". N is the number of files in the list.

If you do not have Can Use Filly in this facility, AI Vision shows "You do not have permission to use filly."

![The Autofill from 1 docs button](/assets/images/fill-report-results-from-a-scan-5-4954fd683708d6d5ab108633512ff52b.webp)

### 6. Check the filled values

AI Vision fills the result fields and marks each value that it filled:

* **Check this**: AI Vision read the value with low confidence.
* **Auto-filled**: any other value that AI Vision filled.

AI Vision shows "N values filled from M docs".

It also shows how many values it read with low confidence.

Compare each filled value with the printed report. Look carefully at each value marked **Check this**.

Correct the values that are wrong.

If AI Vision shows "No values could be read from this document. Try another photo or file.", use a clearer photo or another file.

![AI Vision\&#39;s message with the number of values filled](/assets/images/fill-report-results-from-a-scan-6-56759c76a414bc5f58a6aa6cfd69c328.webp)

![A result value marked Auto-filled](/assets/images/fill-report-results-from-a-scan-7-fffc5c3f6c6cfcd6a2a9b80db3138d7b.webp)

### 7. Save the report

Save the diagnostic report, as in [Enter diagnostic report results](https://docs.ohc.network/flows/clinical/diagnostic-report/enter-diagnostic-report-results.md).

![The saved report with its results and the kept file](/assets/images/fill-report-results-from-a-scan-8-35e81b8ff618d562fcd504401728d89f.webp)

## Expected Outcome

* The result fields of the report show the values that AI Vision read, with your corrections.
* Each value that AI Vision read with low confidence shows **Check this**.
* If you selected **Keep these docs with the report**, the report has the files attached as one file.

## Related

Concepts:

* [AI Vision](https://docs.ohc.network/apps/ai-vision.md)
* [Diagnostic Report](https://docs.ohc.network/concepts/clinical/diagnostic-report.md)

Flows:

* [Enter diagnostic report results](https://docs.ohc.network/flows/clinical/diagnostic-report/enter-diagnostic-report-results.md)
* [Review and approve diagnostic report results](https://docs.ohc.network/flows/clinical/diagnostic-report/review-and-approve-diagnostic-report-results.md)
* [Turn on AI Vision for your account](https://docs.ohc.network/apps/ai-vision/turn-on-ai-vision.md)
