User manual · Chapter 8

Lab reports

Samples collected in the field go to a laboratory, and the laboratory sends back a report. Upload that report to aQRate and it reads the document, finds each sample, and links it to the submission with the same Sample ID. When you approve the report, the results are written onto those submissions. An assistant beside the report explains each link and answers questions about the results.

The examples in this chapter use a Water Sample form. Six drinking-water samples, BV-01 to BV-06, were collected on work order WO-00004, and the laboratory's certificate of analysis gives lead, copper, coliforms and turbidity for each one.

8.1 Preparing the form#

aQRate matches samples by their Sample ID, the identifier written on the bottle label. The form needs one question that holds it: a Sample ID question from the components, or a QR code or barcode question with Use as Sample ID turned on.

  1. Open the form in the builder (chapter 2) and click the Sample ID question.
  2. Under Lab Integration, type the name of a result as the lab prints it, for example Lead. Add its Unit and choose Numeric for a number or Qualitative for a word such as Absent.
  3. Click Add analyte. Repeat for each result, then click Save form.
The results the lab reports, on the Sample ID question
Figure 8.1 The results the lab reports, on the Sample ID question
  1. 1The results this lab reports, each with its unit
  2. 2Add another result

Each result becomes a hidden question on the form, listed in the builder under Lab Results. People filling in the form never see these questions. They stay empty until an approved lab report fills them in.

8.2 Uploading a lab report#

  1. Open Lab Reports and click Upload report.
  2. Drop the lab's PDF or Excel (.xlsx) file on the box, or click the box to choose the file.
Uploading a lab report
Figure 8.2 Uploading a lab report
  1. 1Drop the lab’s PDF or Excel file here

There is nothing else to fill in. The file uploads and the report opens while it is read, which usually takes less than a minute.

8.3 The report workspace#

The report opens with the lab's document on the left and the assistant on the right. Drag the bar between them to give either side more room.

A lab report, read and matched
Figure 8.3 A lab report, read and matched
  1. 1Where the report is: upload, read, match, review, approve
  2. 2The document, the values read from it, the samples and their links
  3. 3How each sample was linked, and why
  4. 4Approve to put the values on the samples
  • The step bar shows where the report is: Upload, Read, Match, Review and Approve. The line under a step says what is happening, such as Matching…, All 6 linked, or what is waiting for you.
  • The tabs. Document shows the lab's own pages. Values lists every result read from it, Samples & links shows where each sample went, Analytes lists the results the report contains, and Overview gives the report's details and how it was read.
  • The assistant explains each link it made. Here every sample was Matched automatically, because only one submission holds each Sample ID. Undo beside a link takes it back, and Undo all takes back every link.

The same sample IDs can appear on more than one submission, for example when every visit numbers its samples S1 to S10. The assistant then tells them apart by the work order or project number on the report, the place, the date and who took the samples. When it still cannot decide, the report shows Needs your answer and the assistant asks: Your answer is needed, with the choices it found. Pick one, or click Answer in my own words. Tick Remember this for next time to turn your answer into a rule (see "The playbook" below).

8.4 Checking the values#

The Values tab lists each sample by the lab's own sample number, with every result read for it. A number on the tab counts the values the reader is less sure of; check those first.

The values read from the report
Figure 8.4 The values read from the report
  1. 1Click a value to correct it

To correct a value, click it. In Correct this value, type the value exactly as the lab wrote it, qualifier and all, such as <0.001 or ND. Add a Note to say why it changed, and click Save. A corrected value shows a pencil. Clicking an empty cell offers Add value instead.

Correcting a value
Figure 8.5 Correcting a value

The Samples & links tab has one row per sample: the lab's number with the Sample ID in brackets, then the submission it is linked to and how the link was made, such as Matched automatically, Matched by the assistant or Linked by a person.

Each sample and the submission it is linked to
Figure 8.6 Each sample and the submission it is linked to
  1. 1How the sample was linked
  2. 2Link it to a different submission
  3. 3Match the samples again
  • Link links the sample to a different submission. Search by number, sample ID, work order or who submitted it. Each match lists why it fits, such as the same Sample ID, the same work order or the same day, and Link here links it.
  • The buttons beside Link unlink the sample, undo its last link, and correct the sample's details.
  • Re-check matches matches every sample again, for example after you add a missing submission.
Linking a sample to a submission
Figure 8.7 Linking a sample to a submission

8.6 Asking the assistant#

Type a question in Ask about this report, or tell the assistant what you know at the bottom of the assistant, or click the microphone to say it. It answers from the report's values and samples, and can show the results as a table. You can also tell it what you know, such as "S1 to S5 are from the Riverside visit", and it uses that to link the samples.

Asking about the results
Figure 8.8 Asking about the results

Listen reads an answer aloud. The top of the assistant shows what its AI work has cost, such as AI CA$0.01, which comes out of your plan's AI credit.

8.7 Approving the report#

Results reach the submissions only when you approve. Click Approve at the top of the page, or in the assistant. The step bar then reads Values are on the inspections, and the report is Ready.

The report approved
Figure 8.9 The report approved
  1. 1Approved: the values are on the samples

If some values could not be read, aQRate asks first: check them, or click Approve anyway. If a value would replace one written by another lab report, answer the assistant's question about it before you approve.

Once three reports laid out the same way have been approved without a correction, aQRate trusts that layout, and the next one approves itself when its samples are linked. The step bar then says Approves itself once matching is settled, and the assistant says Approved automatically. A report that needed a corrected value or column mapping still stops for you, and that layout earns trust again from the start.

8.8 Results on a submission#

Open a linked submission to see its results. Each one fills its own hidden question, marked LAB, and Lab values from 26-118407 names the report it came from.

Lab results on a submission
Figure 8.10 Lab results on a submission
  1. 1The lab report these values came from
  2. 2A value written by the lab report

The submission's Lab links tab lists every lab sample linked to it and why it matched, with Unlink on each row. Auto-match looks for lab samples that belong to this submission.

8.9 All lab reports#

Lab Reports lists every report with its laboratory, status, customer, samples, how many are linked, how sure the reader was, and the date reported. The chips along the top show only one status. A report waiting for you also says so on a card above the list.

All lab reports
Figure 8.11 All lab reports
  1. 1Upload a lab report
  2. 2The rules the assistant follows
  3. 3Reports waiting for you
Status Meaning
Queued Uploaded, waiting to be read
Processing Being read and matched
Needs review Read and matched, waiting for you to approve
Ready Approved: the results are on the submissions
Failed The document could not be read; open it and read it again

The menu at the end of a row opens the report, reads it again, or deletes it.

8.10 The playbook#

When the same sample IDs keep appearing on more than one submission, a rule tells the assistant how to choose. Click Playbook on Lab Reports to see the rules.

The playbook
Figure 8.12 The playbook

A rule can pick by the report's work order, by place, by sample date, by who took the samples, by a field's value or by a column of the report. It can also choose which level of a repeated form gets the link, or leave the assistant a note. Most rules come from your answers: tick Remember this for next time and the rule waits here under Proposed, with Use this rule, Adjust first and Dismiss. You can also write one yourself with Add a rule. A rule applies from the next report, and every link it makes can be undone from that report.

8.11 Reading a report again#

If the reader got a document wrong, or the step bar says it could only partly read it, open the menu at the top of the report and choose Read the document again.

Reading a document again
Figure 8.13 Reading a document again

Links carry over to samples that read the same, values you typed are kept, and a column mapping you corrected stays saved. To tell the reader which column holds which result without reading again, choose Correct the column mapping in the same menu.