Text search (keyword-based)

GET/construe/codes/{codesystem}/search/text
RequiresBearerauthentication

Path parameters

codesystemstringrequired

Query parameters

qstringrequired
versionstringoptional
limitintegeroptionaldefault 20
Returns  

Response fields

systemobjectrequired
namestringrequired
versionstringrequired
resultsobject[]required
codestringrequired
descriptionstringrequired
foundintegerrequired
GETRequest
# Get authentication token
PHENOML_TOKEN=$(curl -X POST "https://experiment.app.pheno.ml/v2/auth/token" \
  -u "$PHENOML_CLIENT_ID:$PHENOML_CLIENT_SECRET" \
  | jq -r '.access_token')

curl -X GET "https://experiment.app.pheno.ml/construe/codes/ICD-10-CM/search/text?q=E11.65&limit=5" \
  -H "Authorization: Bearer $PHENOML_TOKEN"
200 OKExample Response
{
  "system": {
    "name": "ICD-10-CM",
    "version": "2025"
  },
  "results": [
    {
      "code": "E11.65",
      "description": "Type 2 diabetes mellitus with hyperglycemia"
    },
    {
      "code": "E11.649",
      "description": "Type 2 diabetes mellitus with hypoglycemia without coma"
    },
    {
      "code": "E11.69",
      "description": "Type 2 diabetes mellitus with other specified complication"
    }
  ],
  "found": 3
}