Register unstructured document
Registers an unstructured document by name and MIME type. Used for documents that cannot be parsed as FHIR or CDA (e.g., PDFs). The document is tracked as an ingest source but does not contribute extracted clinical entities.
Authorization
Bearer writeEach operation lists the OAuth scope (read or write) it requires.
In: header
Scope: write
Path Parameters
ID of the patient
^[A-Za-z0-9._-]{1,128}$Query Parameters
Block up to this many ms for the execution to reach terminal status. 0 or omitted = return immediately with current status.
0 <= value <= 30000Request Body
application/json
Document registration payload containing the file name and optional MIME type.
TypeScript Definitions
Use the request body type in TypeScript.
Registration payload for an unstructured document.
Response Body
application/json
curl -X POST "https://example.com/v1/patients/string/ingest/document" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "executionId": "string", "status": "pending", "sourceLabel": "fhir", "deltas": { "entitiesAdded": 0, "eventsAdded": 0, "relsAdded": 0 }, "warningsCount": 0, "error": { "code": "string", "message": "string" }, "skippedReason": "string", "patient": { "id": "string", "name": "string" }, "links": { "self": "string", "patient": "string" }}Ingest CDA POST
Submits a CDA/C-CDA XML document for ingestion. Body must be `text/plain`. Returns an `IngestExecutionEnvelope` immediately; use `?wait=<ms>` to block until terminal status.
Batch ingest POST
Submits FHIR bundles, CDA documents, and unstructured document registrations in a single request. Each source type is processed independently; the graph is rebuilt once after all sources are loaded.