Skip to main content
The Medera Coding API converts unstructured clinical contexts (encounter notes, discharge summaries, transcripts) into structured medical codes. Every response contains two top-level lists, codes and candidates, each holding code objects with system, code, display, confidence, anchor, and severity_qualifier_suggestions.

The top level

Deciding whether a medical entity should be coded is a difficult and often subjective decision. Every diagnosis, symptom, or health context in a clinical note should not be coded. For instance, a symptom should only be coded if it is not commonly associated with one of the patient’s diagnoses. A chronic condition should only be coded if it affects patient care. Therefore, two lists are returned at the top level: codes and candidates.
  • codes contains the medical entities that the model confidently predicts should be coded.
  • candidates contains entities that are clinically relevant but not strictly required — optional codes that may warrant human review.
Recommendation: When building a coding interface, include both lists but visualize them differently. To present all entities indicated by a clinical note without concern for billing rules, merge the two lists into one display.

Each code object

Each list contains code objects. Each object represents one medical entity (condition, symptom, health context, medication, or procedure, depending on the coding system).

Sequencing

For coding systems where order affects reimbursement — ICD-10-CM and ICD-10-PCS — Medera returns codes in clinical-significance order. The principal diagnosis or principal procedure appears first, followed by secondary diagnoses and additional procedures. You can use the position of a code in the codes array directly without re-sorting.
Sequencing is currently in alpha for ICD-10-CM and ICD-10-PCS. See the feature matrix for availability per system.

Confidence calibration

Codes without an anchor are never returned. Codes that score LOW or below are filtered or moved to candidates.

What’s next

https://mintcdn.com/medera-357fd587/n1mgcc3nR2sq_PoL/icons/ui/zap.svg?fit=max&auto=format&n=n1mgcc3nR2sq_PoL&q=85&s=279c57d41af922abbba25c4afddfc3fe

Quickstart

Send your first request.
https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/settings.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=d4e5b78d0364e67249682468c3175436

How it works

Request structure, best practices.
https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/layers.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=b19e6f39887a8a61762fcb53957d2271

Coding Systems

Feature matrix per system.
https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/clipboard-check.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=9cf869d685b45a2ec31be2b3d675a841

Encounter Coding

Use case walkthrough.