Skip to main content

GET /cid/

Retrieves a specific CID (International Classification of Diseases) code from the database.

Path Parameters

code
string
required
The CID code identifier (e.g., “A00”, “B15.0”)

Response

code
string
The CID code identifier
description
string
Description of the disease or condition

Example Request

cURL
curl http://localhost:8080/cid/A00
JavaScript
const response = await fetch('http://localhost:8080/cid/A00');
const cid = await response.json();
console.log(cid);

Example Response

200 OK
{
  "code": "A00",
  "description": "Cólera"
}
404 Not Found
{
  "error": "CID code not found"
}

Error Responses

Status CodeDescription
200CID code found and returned
404CID code not found in database

Use Cases

  • Validate a CID code before creating a diagnosis
  • Display disease information for a specific code
  • Look up disease descriptions
CID codes follow the ICD-10 (International Classification of Diseases, 10th Revision) standard.

Build docs developers (and LLMs) love