Skip to main content

LabTestDetailPropertyItemForItem

itemIdstring
testConditions object[]
  • Array [
  • idstring

    Test condition ID

    Example: TC001
    namestring

    Test condition name

    Example: Color Change
    resultResultEnum

    Test condition result

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

    Example: pass
    samples object[]
  • Array [
  • datastring

    Sample data

    Example: Grade 4-5
    resultResultEnum

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

    Example: pass
    sampleNumbersinteger[]

    Sample numbers (1-based position of the sample within the Product). An entry is null when the reading was recorded by a sample name that no longer matches a sample of the Product.

    Example: [1,2,3]
    sampleNamesstring[]

    Names of the Product's samples this reading applies to, taken from the sampleName values the Product declares. Empty [] when the reading was recorded by sample number only. Otherwise index-aligned with sampleNumbers, and an entry is null where that sample was recorded by number.

    Example: ["Lot A","Lot B","Lot C"]
  • ]
  • followUpAction object
    commentstring

    Follow-up action comment

    Example: No action required
    attachments object[]
  • Array [
  • namestring

    Attachment name

    Example: test-report.pdf
    urlstring

    Attachment URL

    Example: https://example.com/files/test-report.pdf
    labelstringnullable

    Attachment label

    Example: Test Report
  • ]
  • failureCategoryIdstringnullable

    Failure category ID

    Example: null
    failureCategoryNamestringnullable

    Failure category name

    Example: null
    failureIdstringnullable

    Failure ID

    Example: null
    failureNamestringnullable

    Failure name

    Example: null
    failureSeveritystringnullable

    Failure severity

    Possible values: [critical, major, minor]

    Example: critical
  • ]
  • LabTestDetailPropertyItemForItem
    {
    "itemId": "string",
    "testConditions": [
    {
    "id": "TC001",
    "name": "Color Change",
    "result": "pass",
    "samples": [
    {
    "data": "Grade 4-5",
    "result": "pass",
    "sampleNumbers": [
    1,
    2,
    3
    ],
    "sampleNames": [
    "Lot A",
    "Lot B",
    "Lot C"
    ]
    }
    ],
    "followUpAction": {
    "comment": "No action required",
    "attachments": [
    {
    "name": "test-report.pdf",
    "url": "https://example.com/files/test-report.pdf",
    "label": "Test Report"
    }
    ],
    "failureCategoryId": null,
    "failureCategoryName": null,
    "failureId": null,
    "failureName": null,
    "failureSeverity": "critical"
    }
    }
    ]
    }