Guth
NewsDocs
Page actions
View as Markdown ↗
Explore MCP tools ↗

instrument implementation / implementation-contract

Anion Gap Calculator implementation

A source-bound implementation contract for Anion Gap Calculator; deployment and executable qualification remain separate.

Status: VERIFIED_CLEANLifecycle: implementation-contract

Binding contract

This record describes what an executable surface must bind and validate. It does not claim that a public calculator, package, or production route is deployed.

Record owner
Guth Instruments
Lifecycle
verified-clean
Evidence ID
t4-297
Effect
Computation or source lookup only

Input and validation requirements

Extreme finite inputs overflow during Cl + HCO3, producing Infinity and then an anion gap of -Infinity. The calculator should detect overflow or reject the result instead of treating it as a meaningful value.

Required corrections

No binding erratum is attached to this unique-name record. Implementers must still preserve the declared units, domain, and failure behavior.

Inspectable interface fixture

The sample below is evidence for interface and validation tests, not a production implementation.

{
  "inputs": {
    "Na": 140,
    "Cl": 104,
    "HCO3": 24,
    "units": "mmol/L"
  },
  "expected_outputs": {
    "anion_gap": 12,
    "anion_gap_units": "mmol/L",
    "normal_range_flag": true
  },
  "working": "AG = Na − (Cl + HCO3) = 140 − (104 + 24) = 140 − 128 = 12 mmol/L. Since 8 ≤ 12 ≤ 16, the normal-range flag is true."
}

Other records

Sources and evidence

These pointers bind the page to evidence. They do not grant authority or collapse verification into deployment.

  • VERIFIED_LEDGER.json
  • evidence-tranche4/tranche4-results.json