Workflow Guide

End-to-end workflow for configuring, processing, storing, and viewing Machine Flags in LIMS.

👤 Mohammad Yameen📅 Updated: Jun 5, 2026🏷️ workflow🏷️ interfacing🏷️ machine-flags

Machine Flags Workflow Guide

This guide explains the complete workflow required to configure, process, and view Machine Flags inside the LIMS platform.

The workflow includes:

  1. Enabling Machine Flags for a pathology test
  2. Mapping the test to a device
  3. Sending Machine Flags from the interfacing application
  4. Processing and storing flags in LIMS
  5. Viewing Machine Flags in the UI

High Level Workflow

Enable Machine Flags for Test

Map Test with Device

Bill Patient with Configured Test

Device Processes Sample

Interfacing Parses Raw String

Machine Flags Sent to LIMS API

LIMS Stores Flags in MongoDB

Flags Visible in Report UI

Step 1 - Enable Machine Flags for a Test

Machine Flags can only be configured for Pathology Tests.

Configuration Steps

1. Open Profile & Report Management

Go to Admin Module → Profile & Report Management

2. Select the Required Pathology Test

Open the pathology report/test for which Machine Flags should be enabled.

Example:

  • CBC
  • Lipid Profile
  • Total Cholesterol

3. Open Test Information Config Section

Inside the selected test Test Information → Config

4. Enable Device Flags Option

Enable the checkbox Enable Device Flags (Store results in MongoDB)

Machine Flags Configuration

5. Save Changes

Click Save to apply the configuration.

[!NOTE] The Enable Device Flags checkbox is only visible for Pathology Tests.

[!IMPORTANT] Enabling this option converts the test into a document test, meaning parameter values and Machine Flags are stored inside MongoDB.


Step 2 - Configure Device Test Mapping

Before Machine Flags can be received from interfacing, the test must be mapped to a lab device and its parameters.

Why Mapping Is Required

The interfacing application sends results using device-specific parameter identifiers such as:

  • HGB
  • HCT
  • PLT

LIMS must know which report parameter each identifier corresponds to.

Example Mapping

LIMS ParameterDevice Parameter
HemoglobinHGB
HematocritHCT
PlateletsPLT

Configuration

Navigate to Operation Module → Device / Instrument Management

  1. Open the required device.
  2. Add the pathology test.
  3. Configure parameter mappings.
  4. Save the mapping.

Once completed, incoming device results can be matched with the correct report parameters.

Machine Flags Device Mapping Config


Step 3 - Bill Patient with Configured Test

After enabling Machine Flags:

  1. Create a patient bill
  2. Add the Machine Flag enabled pathology test
  3. Complete sample collection

Example: Patient Bill → CBC Test Added → Sample Collected


Step 4 - Device Generates Results

After a patient sample is processed, the lab device generates a raw result payload containing the test results and any associated machine-generated indicators.

The format of this payload varies between devices and may use protocols such as HL7, ASTM, or vendor-specific formats. In addition to parameter values, the payload can also contain:

  • Parameter values
  • Test-level flags
  • Parameter-level flags

Example:

OBX|25|NM|718-7^HGB^LN||11.3|g/dL|11.5-17.5|L~A|||F

Step 5 - Interfacing Parses Machine Flags

The interfacing application receives the raw device string and passes it to the device parser.

The parser:

  • Extracts parameter values
  • Extracts sample-level flags
  • Extracts parameter-level flags
  • Generates structured JSON payload

Parsed Payload Example

{
    "labId": 11957,
    "sampleId": "000114626",
    "deviceAuth": "f94032be-5e1f-47fd-96a1-92a66c6014c3",
    "test_flags": [
        "DUMMY TEST FLAG1",
        "FLAG2"
    ],
    "data": {
        "values": [
            {
                "testName": "hmg",
                "value": 110.12,
                "param_flags": [
                    "P1",
                    "H~N"
                ]
            },
            {
                "testName": "hct",
                "value": 123.12
            },
            {
                "testName": "rbc",
                "value": 11.1
            },
            {
                "testName": "wbc",
                "value": 45.34
            },
            {
                "testName": "plats",
                "value": 220000,
                "param_flags": [
                    "A++"
                ]
            },
            {
                "testName": "mcv",
                "value": 19
            },
            {
                "testName": "mch",
                "value": 22
            }
        ]
    }
}

Payload Structure

Sample level flags are Stored at root level "test_flags": [] These flags apply to the entire test/sample.

Parameter level flags are stored inside parameter object "param_flags": [] These flags apply only to that specific parameter.

Important Behaviour

Device behaviour may vary. A device can send:

ScenarioSupported
Only Test Flags
Only Parameter Flags
Both Test + Parameter Flags
Partial Parameter Flags
No Flags

[!NOTE] It is completely valid for some parameters to contain flags while others do not.


Step 6 - LIMS API Processing

After payload generation, the interfacing application sends the payload to the LIMS Data Partial API.

  1. Validates device authentication
  2. Matches sample ID
  3. Maps device parameters
  4. Processes parameter values
  5. Stores Machine Flags
  6. Saves report values into MongoDB

Step 7 - Viewing Machine Flags in LIMS

Machine Flags become visible after report values are processed successfully.

Pending Report Screen

To view Machine Flags Operation Module → Pending Report

Open the report for which Machine Flags were received.

Machine Flags Report Entry Modal View Image

Overview Tab

Machine Flags are also visible in the report Overview tab.

Machine Flags Overview View Image


Device Results Validation Screen

Machine Flags are also shown in Device Results Validation screen.

Machine Flags Device Results Validation Image


PDF Preview Behaviour

Machine Flags are not visible when the report is opened in PDF Preview Mode

[!IMPORTANT] Machine Flags are not displayed in normal PDF report preview mode.


End-to-End Example

CBC Test Configured

CBC Mapped with Alinity

Patient Sample Processed

Alinity Sends Raw Result String

Interfacing Parser Extracts Flags

Parsed Payload Sent to LIMS API

LIMS Stores Flags in MongoDB

Flags Visible in Report UI

Summary

Machine Flags workflow involves:

  1. Configuring pathology tests
  2. Mapping tests with devices
  3. Parsing raw device data
  4. Sending structured payloads
  5. Storing flags in MongoDB
  6. Displaying flags in report UI

This workflow enables laboratories to preserve and display device-generated abnormalities, warnings, and review indicators directly inside the LIMS ecosystem.

On this page