extract_document_metadata
Extract structured medical metadata from documents to identify findings, diagnoses, medications, providers, and generate patient-friendly summaries for cancer care management.
Instructions
Extract and store structured medical metadata from a document.
Uses AI to analyze the document text and extract findings, diagnoses, medications, providers, and a patient-friendly summary. Results are persisted in the structured_metadata column.
Args: document_id: The local document ID to extract metadata from.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "extract_document_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |