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.

The /conceptmap endpoint returns the full FHIR R4 ConceptMap resource describing how NAMASTE codes map to ICD-11 codes. This resource enables FHIR-compatible EMR systems to consume the mappings directly without any custom parsing.

Endpoint

Method: GET
Path: /conceptmap
Auth: None (demo mode)

Response

Returns a FHIR R4 ConceptMap JSON object.

Key Response Fields

FieldValue
resourceType"ConceptMap"
id"namaste-icd11-map"
name"NAMASTE to ICD-11 Mapping"
status"active"
sourceUrihttp://example.com/codesystem/namaste-codes
targetUrihttp://who.int/icd11/tm2
group[].elementArray of source concept elements, each with a target array
Each entry in group[].element contains:
FieldDescription
codeThe NAMASTE source code (e.g. NAM-001)
target[].codeThe mapped ICD-11 target code
target[].equivalenceThe mapping equivalence type

Example

curl -X GET http://localhost:5000/conceptmap
Response (truncated)
{
  "resourceType": "ConceptMap",
  "id": "namaste-icd11-map",
  "url": "http://example.com/conceptmap/namaste-icd11-map",
  "version": "1.0.0",
  "name": "NAMASTE to ICD-11 Mapping",
  "title": "NAMASTE to ICD-11 Mapping",
  "status": "active",
  "sourceUri": "http://example.com/codesystem/namaste-codes",
  "targetUri": "http://who.int/icd11/tm2",
  "group": [
    {
      "source": "http://example.com/codesystem/namaste-codes",
      "target": "http://who.int/icd11/tm2",
      "element": [
        {
          "code": "NAM-001",
          "target": [
            {
              "code": "TM2-001",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "code": "NAM-002",
          "target": [
            {
              "code": "TM2-002",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "code": "NAM-011",
          "target": [
            {
              "code": "BM-001",
              "equivalence": "equivalent"
            }
          ]
        }
      ]
    }
  ]
}

Source and Target URIs

The sourceUri and targetUri fields identify the code systems participating in the map:
FieldURI
sourceUrihttp://example.com/codesystem/namaste-codes
targetUrihttp://who.int/icd11/tm2
These URIs are also set as the source and target properties on the group object inside the ConceptMap, conforming to the FHIR R4 ConceptMap.group structure.
The ConceptMap includes all 85 concept mappings. If you need a simpler JSON format without the FHIR resource wrapping, use GET /mappings instead.

Build docs developers (and LLMs) love