Finnrick - Ensuring a Safer and More Transparent Supply ChainBETA

Alex's Rules

Purity should be 95% or more, and a catastrophic fail below 80%, ignore batch claims for quantity, and a pass is between -10% and +20%, catastrophic if less than -20% or more than +50%. Positive endotoxins results are a fail, below LOQ and negative are a pass. Identity fail is a catastrophic failure.

jsonlogic9991b8cd2874
Created: Tue 2 Dec 2025 04:54
Updated: Tue 2 Dec 2025 04:54

Analysis Rules (4)

endotoxins

Endotoxin test

Created Tue 2 Dec 2025 04:54
JsonLogic Rule:
{
  "if": [
    {
      ">=": [
        {
          "var": "result.measure_value"
        },
        0
      ]
    },
    "Pass",
    "Fail"
  ]
}

identity

Identity confirmation test

Created Tue 2 Dec 2025 04:54
JsonLogic Rule:
{
  "if": [
    {
      ">=": [
        {
          "var": "result.measure_value"
        },
        0
      ]
    },
    "Pass",
    "Fail"
  ]
}

purity

Purity percentage measurement

Created Tue 2 Dec 2025 04:54
JsonLogic Rule:
{
  "if": [
    {
      ">=": [
        {
          "var": "result.measure_value"
        },
        0
      ]
    },
    "Pass",
    "Fail"
  ]
}

quantity

Quantity measurement in mg

Created Tue 2 Dec 2025 04:54
JsonLogic Rule:
{
  "if": [
    {
      ">=": [
        {
          "var": "result.measure_value"
        },
        0
      ]
    },
    "Pass",
    "Fail"
  ]
}

JsonLogic Data Context

Available variables for use in analysis rules

result.*

measure_value (number | null)
measure_flag (string | null)
result_date (string)
unit (string | null)
notes (string | null)
exception (string | null)
loq (number | null)
method (string | null)

sample.*

batch_quantity (number | null)
label_quantity (number | null)
registered_date (string)
batch_id (string | null)
batch_source (string | null)
storage_location (string | null)

test.*

tested_date (string | null)
coa_date (string | null)
coa_url (string | null)
coa_id (string | null)

Valid Return Values

• "Pass"
• "Fail"
• "Catastrophic"
• "Neutral"

See jsonlogic.com for operator reference.