Technology

Lab interpretation API for EHR, LIS and HIS vendors

Add patient-facing explanations, trend views and derived indices to the laboratory results your system already holds. The API is plain REST with JSON responses and is called from your integration layer.

The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call

EHR, LIS and HIS vendors and health IT integrators

Health IT and EHR vendors

Challenges in this sector

  • Results are stored, but not explained

    An EHR or LIS holds every value with its reference range, yet the patient portal shows a table that many patients cannot read. Writing and maintaining explanatory content for every analyte in a test catalogue is outside the scope of a software vendor.

  • External and historical results arrive as documents

    Reports from outside laboratories reach the record as scanned pages or PDF attachments. They are stored next to the structured data and cannot be charted or compared until someone enters the values by hand.

  • Every customer site uses different names and units

    Local test catalogues, languages and unit conventions vary between installations. A function that depends on a fixed code list has to be configured again for each hospital or laboratory.

  • New functions must fit a controlled release cycle

    Health IT products ship in planned, tested releases. For a vendor, a versioned external service with stable response keys is easier to qualify than a model embedded in the core product.

How the integration works

  1. Map observations to the parameters array

    In your interface engine or service layer, convert each result (for example an HL7 v2 OBX segment or a FHIR Observation) to a JSON row: analyte name as printed, result, unit, reference range and an evaluation. This mapping is done on your side; the API takes JSON and files, not HL7 or FHIR messages.

  2. Check a site catalogue with the validate endpoints

    Before a customer site goes into production, send representative panels to POST /api/v1/body-map/validate and POST /api/v1/blood-age/validate. The responses list recognised and unrecognised analyte names and the PhenoAge markers found, and they consume no quota.

  3. Send document-only results through the blood test endpoint

    For scanned or PDF reports from external laboratories, call POST /api/v12/18-09-2026/analyze with the file. The response contains data.metadata (patient, laboratory, lab date and results date) and data.parameters, which your system can present for review by staff before it is filed.

  4. Call the JSON modules from the results workflow

    When a new result is released, send 2 to 50 dated tests to POST /api/v1/analytics/trends/analyze, or 2 to 20 tests to POST /api/v1/bloodtest/comparison/analyze for a written comparison. Store the returned JSON with the encounter and render it in your portal or clinician view.

Diagram: How the integration works (Health IT and EHR vendors) – Map observations to the parameters array → Check a site catalogue with the validate endpoints → Send document-only results through the blood…
How the integration works: Health IT and EHR vendors. Recommended API modules: Blood test interpretation, Trend comparison, Body Map, Biological age, Family health.

Recommended API modules

Health AI APIs for lab results, DNA and nutrition

Use cases

  • An explanation panel next to each result in a patient portal, written in the language set in the patient record.
  • A trend tab in the clinician view that summarises what changed since the previous panel.
  • Structured import of external laboratory PDFs into the record, with review by staff before filing.
  • Derived indices shown beside a chemistry panel in a LIS report layout.
  • An optional function that an integrator enables per customer site and that is billed by actual calls.

Integration path

Place the calls in a server-side integration service between your result store and your presentation layer. Credentials are sent with each request and should be held in that service only. The body map and biological age modules accept up to 500 parameter rows per request. File analysis is a synchronous call that can run for some time, so queue it per document and write the result back when it returns (the documented example uses a 300-second client timeout). The DNA modules offer an asynchronous mode: ?async=1 answers 202 with a job_id, and you poll GET /api/jobs/<job_id>. GET /api/health is available for monitoring and POST /api/quota/check for the remaining quota. For extraction without interpretation, POST /api/icr/v1/kan returns the test parameters of a blood test document for 0.5 credits per call.

API documentation Getting started Authentication Endpoints Errors Rate limits

Data protection and compliance

As a vendor or integrator you normally act on behalf of a healthcare provider, who remains responsible for the patient data. Sending results to an external API adds a further recipient: cover it in the contracts and records your customers need under the GDPR or the health data rules of their country, and agree data processing terms and roles with Kantesti Ltd (api@kantesti.net) before production use. Minimise identifiers: the JSON modules need values, dates and in some cases age and gender, not names or record numbers. Send the security and data protection questions of your vendor assessment to the same address. The output is AI-supported educational information that supports and never replaces professional judgement. Kantesti is not a medical device and is not CE- or UKCA-marked, so it must not be positioned as a diagnostic component of your product.

Clinically reviewed by Thomas Klein, MD · Last reviewed November 30, 2026

Example request and response

Blood test interpretation POST /api/v12/18-09-2026/sandbox Sandbox Endpoint reference

curl -X POST "https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox" \
  -H "Authorization: Bearer kt_live_YOUR_API_KEY" \
  -F "language=en" \
  -F "file=@report.pdf"
import requests

resp = requests.post(
    "https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox",
    headers={"Authorization": "Bearer kt_live_YOUR_API_KEY"},
    data={"language": "en"},
    files={"file": open("report.pdf", "rb")},
    timeout=60,
)
print(resp.json())
const form = new FormData();
form.append("language", "en");
form.append("file", fileInput.files[0]); // your PDF or photo

const resp = await fetch("https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox", {
  method: "POST",
  headers: { Authorization: "Bearer kt_live_YOUR_API_KEY" },
  body: form,
});
console.log(await resp.json());
<?php
$ch = curl_init('https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox');
curl_setopt_array($ch, [
  CURLOPT_POST => true,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => ['Authorization: Bearer kt_live_YOUR_API_KEY'],
  CURLOPT_POSTFIELDS => [
    'language' => 'en',
    'file' => new CURLFile('report.pdf'),
  ],
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($result);
Response Sandbox
{
  "status": "success",
  "data": {
    "metadata": {
      "patient_name": "Jan Novák",
      "lab_city": "Prague",
      "lab_country": "Czech Republic",
      "lab_date": "2025-05-11",
      "lab_name": "BioLAB Medical Center",
      "patient_age": "45",
      "patient_sex": "Male",
      "results_date": "2025-05-26"
    },
    "parameters": [
      {
        "short_name": "PT Ratio",
        "long_name": "Prothrombin Time Ratio",
        "category": "Coagulation",
        "result": 0.94,
        "unit": null,
        "evaluation": "optimal",
        "type": "range",
        "range_min": 0.5,
        "range_max": 1.5,
        "range_normal_min": 0.8,
        "…": "+5"
      },
      "… +3"
    ],
    "interpretation": [
      {
        "title": "Introduction",
        "shortcode": "introduction",
        "subsections": [
          "…"
        ]
      },
      "… +3"
    ]
  },
  "timestamp": "2026-11-30T12:00:00.000000Z",
  "api_version": "v12",
  "sandbox": true,
  "sandbox_notice": "This is sandbox test data. No actual analysis was performed."
}

Sandbox response, shortened for this page. The playground shows the full body. Sample data only. No real patient data is sent or stored.

Questions

Does the API accept HL7 or FHIR messages?

The documented endpoints accept JSON and multipart/form-data file uploads. Convert HL7 v2 results or FHIR Observations to the parameters array in your interface layer. Each row needs an analyte name and, depending on the module, a result or an evaluation.

Do we have to map local test codes to a standard terminology first?

No. The body map and biological age modules match by the analyte name the laboratory printed, in 39 report languages including non-Latin scripts, and convert SI and conventional units. The validate endpoints show which names of a site catalogue are recognised.

Is the response format stable across releases?

JSON keys and codes are in English and stay the same in every response language. Endpoint paths include the version, and the documentation lists earlier versions that are maintained for backward compatibility. Model updates are applied to existing versions without a change of path, so the wording of an interpretation can change while the keys stay the same.

How are calls billed when we offer the function to our customers?

Billing is per call against one credit balance: one credit per successful analyze call in every module, and 0.5 credits for an ICR call. How you price the function for hospitals or laboratories is your decision.

Can the interpretation be written into the clinical record as a finding?

Store and label it as AI-supported educational information. It is not a diagnosis, it does not replace the judgement of the treating professional, and Kantesti is not a medical device.

Start building

Run a sample request in the playground, check the price per call, or write to the API team about your integration.

API support: api@kantesti.net

Kantesti® API illustration: Lab interpretation API for EHR, LIS and HIS vendors
Lab interpretation API for EHR, LIS and HIS vendors: send structured results or report files over REST and return explanations, trends and indices as JSON.