General usage
Applications API
Completions API
Files API
Knowledge Graphs API
Vision API
Tools API
Medical comprehend
Analyze unstructured medical text to extract entities labeled with standardized medical codes and confidence scores.
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your Writer API key.
Body
application/json
Response
200 - application/json
The response is of type object
.
Was this page helpful?
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>"
}
]
}