POST
/
v1
/
tools
/
comprehend
/
medical
curl --location --request POST https://api.writer.com/v1/tools/comprehend/medical \
 --header "Authorization: Bearer <token>" \
 --header "Content-Type: application/json" \
--data-raw '{"content":"the symptoms are soreness, a temperature and cough","response_type":"Entities"}'
{
  "entities": [
    {
      "category": "<string>",
      "begin_offset": 123,
      "end_offset": 123,
      "text": "<string>",
      "traits": [
        {
          "score": 123,
          "name": "<string>"
        }
      ],
      "concepts": [
        {
          "code": "<string>",
          "score": 123,
          "description": "<string>"
        }
      ],
      "score": 123,
      "attributes": [
        {
          "category": "<string>",
          "relationship_score": 123,
          "begin_offset": 123,
          "end_offset": 123,
          "text": "<string>",
          "traits": [
            {
              "score": 123,
              "name": "<string>"
            }
          ],
          "concepts": [
            {
              "code": "<string>",
              "score": 123,
              "description": "<string>"
            }
          ],
          "score": 123,
          "relationship_type": "<string>",
          "type": "<string>"
        }
      ],
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
content
string
required

The text to be analyzed.

response_type
enum<string>
required

The structure of the response to be returned. Entities returns medical entities, RxNorm returns medication information, ICD-10-CM returns diagnosis codes, and SNOMED CT returns medical concepts.

Available options:
Entities,
RxNorm,
ICD-10-CM,
SNOMED CT

Response

200 - application/json
entities
object[]
required

An array of medical entities extracted from the input text.