Skip to main content
Completing this quickstart gets you a working code prediction response from the Medera Coding API. You can then explore the full API and use cases from there.

Prerequisites

  • A Medera Console account — sign up at the Medera Console.
  • A Developer API Key — see Creating Clients to generate one with read:phi and write:phi scopes for the appropriate project.
1

Install the SDK

Choose the SDK for your stack.
2

Initialize the client

Replace the placeholders with values from your Console.
The SDKs handle token acquisition, refresh, and retries automatically. There is no need to manage bearer tokens manually.
3

Send a prediction request

POST a clinical note (or a documentId) to /api/therapy/suggest-codes. The code_systems field controls which classifications are applied.| Parameter | Type | Required | Description | | :--- | :--- | :--- | :--- | | code_systems | string[] | Yes | One or more coding systems. Recommended pairs in Coding Systems. | | context | object | Yes | The clinical input: { "documentId": "doc_abc" } or { "text": "..." }. | | min_confidence | number | No | Filter out predictions below this threshold (default 0.5). |
4

Read the response

A successful response returns three top-level fields: - codes — the model’s high-confidence predictions. Each entry includes code, display, confidence, anchor (with documentId, span, and quote), and optional severity_qualifier_suggestions. - candidates — lower-confidence codes worth reviewing. - usageInfo — credits consumed for this request.
5

Combine coding systems

Most US encounters require more than one coding system. Pass multiple values in code_systems — for example, pairing ICD-10-CM with CPT for an outpatient visit. The response includes codes from all requested systems in the same codes array, each tagged with its system.
See Coding Systems for recommended pairings by encounter type.

Next steps

https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/book.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=491b19a75d428ef8cd36d8afc2d3612c

Code Prediction

Endpoint, supported features, coding system options.
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 schema, response fields, evidence spans, filtering.
https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/briefcase.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=e3d3baf1f1b5e34ef4f39570ffe07db1

Use cases

Encounter coding, CDI review, revenue cycle.
Contact us if you need help getting started or run into issues. medera.info/contact