Ingest files
Technical previewSubmits PDF, TIFF, JPEG or PNG files as multipart/form-data, one files part per file. Text is extracted page by page before the response is returned.
The response is a receipt: ingestion continues after it is returned, so poll the ingestion to follow it. intake comes back index-aligned with the files you sent. If text extraction fails or runs past its deadline, the request is rejected and nothing is stored.
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}$Request Body
multipart/form-data
The files, one files part each.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/patients/string/ingestions/files" \ -F files="[ \"string\" ]"{ "ingestionId": "string", "source": "fhir/r4", "mimeType": "string", "receivedAt": "string", "status": "pending", "staged": { "facts": 0, "events": 0, "narratives": 0, "messages": 0 }, "intake": [ { "unit": "resource", "received": 0, "entries": [ { "kind": "string", "label": "string", "count": 1, "pageNumbers": [ 1 ], "outcome": "structured", "reason": "unsupported", "limit": { "name": "file_bytes", "value": 1 } } ], "sessionId": "string", "filename": "string" } ], "startedAt": "string", "completedAt": "string", "failure": { "code": "string", "message": "string" }}