Finnrick default
Default analysis set with standard rules for all test types (95/80 purity, ±20% quantity)
jsonlogicFinnrick
Created: Thu 27 Nov 2025 05:15
Updated: Thu 27 Nov 2025 05:15
Analysis Rules (4)
identity
Identity confirmation test
JsonLogic Rule:
{
"if": [
{
"==": [
{
"var": "result.measure_flag"
},
"Pass"
]
},
"Pass",
"Catastrophic"
]
}purity
Purity percentage measurement
JsonLogic Rule:
{
"if": [
{
">": [
{
"var": "result.measure_value"
},
95
]
},
"Pass",
{
"if": [
{
"<": [
{
"var": "result.measure_value"
},
80
]
},
"Catastrophic",
"Fail"
]
}
]
}quantity
Quantity measurement in mg
JsonLogic Rule:
{
"if": [
{
"var": "sample.batch_quantity"
},
{
"if": [
{
"and": [
{
">=": [
{
"var": "result.measure_value"
},
{
"*": [
{
"var": "sample.batch_quantity"
},
0.8
]
}
]
},
{
"<=": [
{
"var": "result.measure_value"
},
{
"*": [
{
"var": "sample.batch_quantity"
},
1.2
]
}
]
}
]
},
"Pass",
{
"if": [
{
"and": [
{
">=": [
{
"var": "result.measure_value"
},
{
"*": [
{
"var": "sample.batch_quantity"
},
0.5
]
}
]
},
{
"<=": [
{
"var": "result.measure_value"
},
{
"*": [
{
"var": "sample.batch_quantity"
},
1.5
]
}
]
}
]
},
"Fail",
"Catastrophic"
]
}
]
},
{
"if": [
{
"var": "sample.label_quantity"
},
{
"if": [
{
"and": [
{
">=": [
{
"var": "result.measure_value"
},
{
"*": [
{
"var": "sample.label_quantity"
},
0.8
]
}
]
},
{
"<=": [
{
"var": "result.measure_value"
},
{
"*": [
{
"var": "sample.label_quantity"
},
1.2
]
}
]
}
]
},
"Pass",
{
"if": [
{
"and": [
{
">=": [
{
"var": "result.measure_value"
},
{
"*": [
{
"var": "sample.label_quantity"
},
0.5
]
}
]
},
{
"<=": [
{
"var": "result.measure_value"
},
{
"*": [
{
"var": "sample.label_quantity"
},
1.5
]
}
]
}
]
},
"Fail",
"Catastrophic"
]
}
]
},
"Neutral"
]
}
]
}endotoxins
Endotoxin test
JsonLogic Rule:
{
"if": [
{
"in": [
{
"var": "result.measure_flag"
},
[
"Negative",
"Below LOQ"
]
]
},
"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.