Skip to main content

LabTestCondition

idstringnullable
namestringnullable
resultResultEnumnullable

Possible values: [pass, fail, data, na]

samples object[]nullable

Test condition readings and the samples each one applies to.

Send only one of these two fields, never both:

  • sampleNames when the Lab Test Form includes the Sample Information component.
  • sampleNumbers when it does not.
  • Array [
  • datastringnullable

    The reading recorded for these samples.

    Example: Grade 4-5
    resultstringrequired

    The outcome recorded for these samples.

    Possible values: [pass, fail, data]

    Example: pass
    sampleNumbersinteger[]

    Samples identified by position in the Product's sample list, counting from 1. A number greater than the Product's sample size is rejected.

    Example: [1,2]
    sampleNamesstring[]

    Samples identified by their sampleName on the Product. Each name must match one of the Product's samples: names are checked against the samples sent in the same request when the request carries the Product, and against the Product's stored samples otherwise.

    Example: ["Lot A","Lot B"]
    unitstringnullable

    Unit of measure of data for these samples, such as in, mm or ppm. Free text: it is not checked against a list of units, no conversion is applied, and data is stored exactly as sent. Leading and trailing spaces are removed, and an empty value means no unit. The unit is stored as sent, even when the Test Condition has a different unit configured on Inspectorio. Not the same field as the Product's unit, which is the unit of its sample size.

    Possible values: <= 20 characters

    Example: in
  • ]
  • followUpAction objectnullable
    commentstringnullable
    attachments object[]nullable
  • Array [
  • fileIdstring<uuid>required
    labelstringnullable
  • ]
  • failureCategoryIdstringnullable
    failureCategoryNamestringnullable
    failureIdstringnullable
    failureNamestringnullable
    failureSeveritystringnullable

    Possible values: [critical, major, minor]

    LabTestCondition
    {
    "id": "string",
    "name": "string",
    "result": "pass",
    "samples": [
    {
    "data": "Grade 4-5",
    "result": "pass",
    "sampleNumbers": [
    1,
    2
    ],
    "sampleNames": [
    "Lot A",
    "Lot B"
    ],
    "unit": "in"
    }
    ],
    "followUpAction": {
    "comment": "string",
    "attachments": [
    {
    "fileId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "label": "string"
    }
    ],
    "failureCategoryId": "string",
    "failureCategoryName": "string",
    "failureId": "string",
    "failureName": "string",
    "failureSeverity": "critical"
    }
    }