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>"
}
]
}
Analyze unstructured medical text to extract entities labeled with standardized medical codes and confidence scores.
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>"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your Writer API key.
The response is of type object
.
Was this page helpful?