Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/sagar-grv/ayush-synapse/llms.txt

Use this file to discover all available pages before exploring further.

Ayush Synapse exposes FHIR R4 CodeSystem resources for both coding systems. These resources describe the code set metadata and individual concept definitions, and can be consumed by any FHIR-compatible client or EMR system.

GET /codesystem/namaste

Method: GET
Path: /codesystem/namaste
Auth: None (demo mode)
Returns a FHIR R4 CodeSystem resource for all loaded NAMASTE codes.

Response Fields

FieldValue
resourceType"CodeSystem"
id"namaste-codes"
name"NAMASTE Codes"
descriptionNational AYUSH Morbidity & Standardized Terminologies Electronic codes
status"active"
contentPopulated concept array
Each entry in the concept array contains:
FieldDescription
codeThe NAMASTE code identifier (e.g. NAM-001)
displayHuman-readable label for the concept
definitionClinical definition of the concept

Example

curl -X GET http://localhost:5000/codesystem/namaste
Response (truncated)
{
  "resourceType": "CodeSystem",
  "id": "namaste-codes",
  "url": "http://example.com/codesystem/namaste-codes",
  "version": "1.0.0",
  "name": "NAMASTE Codes",
  "title": "NAMASTE Codes",
  "status": "active",
  "description": "National AYUSH Morbidity & Standardized Terminologies Electronic codes",
  "concept": [
    {
      "code": "NAM-001",
      "display": "Common Cold",
      "definition": "An upper respiratory tract infection caused by various viruses"
    },
    {
      "code": "NAM-002",
      "display": "Headache",
      "definition": "Pain in the head or upper neck"
    },
    {
      "code": "NAM-003",
      "display": "Fever",
      "definition": "Elevated body temperature above normal range"
    }
  ]
}

GET /codesystem/icd11

Method: GET
Path: /codesystem/icd11
Auth: None (demo mode)
Returns a FHIR R4 CodeSystem resource combining both ICD-11 TM2 and ICD-11 Biomedicine codes into a single resource.

Response Fields

FieldValue
resourceType"CodeSystem"
id"icd11-codes"
name"ICD-11 Codes"
descriptionInternational Classification of Diseases 11th Revision codes including TM2 and Biomedicine
status"active"
contentCombined concept array from TM2 and Biomedicine code sets

Example

curl -X GET http://localhost:5000/codesystem/icd11
Response (truncated)
{
  "resourceType": "CodeSystem",
  "id": "icd11-codes",
  "url": "http://example.com/codesystem/icd11-codes",
  "version": "1.0.0",
  "name": "ICD-11 Codes",
  "title": "ICD-11 Codes",
  "status": "active",
  "description": "International Classification of Diseases 11th Revision codes including TM2 and Biomedicine",
  "concept": [
    {
      "code": "TM2-001",
      "display": "Wind-Cold Invasion",
      "definition": "Invasion of Wind-Cold pathogenic factor"
    },
    {
      "code": "TM2-002",
      "display": "Wind-Heat Invasion",
      "definition": "Invasion of Wind-Heat pathogenic factor"
    },
    {
      "code": "BM-001",
      "display": "Acute Nasopharyngitis",
      "definition": "Acute inflammation of the nasal passages and pharynx"
    }
  ]
}
Both CodeSystem resources follow the FHIR R4 CodeSystem structure. The status field is set to "active" for all resources. See the FHIR R4 CodeSystem schema for the full specification.

Build docs developers (and LLMs) love