Tross
ELATION

Upload Document

Upload document in Elation

POSThttps://api.ontross.com/api/integrations/elation/upload-document
Request Fields
input
object
required
input.patient_id
string
required
Elation patient ID
input.title
string
required
Document title shown on the chart
input.document_type
string
Elation document type code
Default
"MiscReport"
input.tag_names
array
Document tag names, resolved to tag IDs
input.doc_tag_ids
array
Document tag IDs (alternative to tag_names)
input.reviewer_user_id
string
User ID the document is routed to for review
input.reviewer_name
string
Reviewer name, resolved to a user ID (alternative to reviewer_user_id)
input.content_type
string
MIME type of the uploaded file
Default
"application/pdf"
input.urgent
boolean
Flag the document as urgent
Default
false
input.timezone
string
IANA time zone for the document date
Default
"America/Chicago"
auth_id
string
required
Saved Elation authentication ID
files
array
required
Select exactly one document to upload (maximum 50 MiB)
Output Fields
report_id
string
Report id
patient_id
string
Patient id
title
string
Title
report_type
string
Report type
reviewer_user_id
string
Reviewer user id
doc_tags
array
List of doc tags.
document_date
string
Document date
is_on_hold
boolean
Is on hold
file
object
File object.
file.id
string
Id
file.original_filename
string
Original filename
file.content_type
string
Content type
Code
curl --request POST \
  --url https://api.ontross.com/api/integrations/elation/upload-document \
  --header 'X-API-Key: REPLACE_KEY_VALUE' \
  --header 'content-type: application/json' \
  --data '{"input":{"patient_id":"247133564108801","title":"RPM Monthly Report - BP","document_type":"MiscReport","tag_names":["RPM"],"doc_tag_ids":["string"],"reviewer_user_id":"string","reviewer_name":"string","content_type":"application/pdf","urgent":false,"timezone":"America/Chicago"},"auth_id":"auth_uuid_here","files":["<select exactly one document>"]}'
Request BODY
{
  "input": {
    "patient_id": "247133564108801",
    "title": "RPM Monthly Report - BP",
    "document_type": "MiscReport",
    "tag_names": [
      "RPM"
    ],
    "doc_tag_ids": [
      "string"
    ],
    "reviewer_user_id": "string",
    "reviewer_name": "string",
    "content_type": "application/pdf",
    "urgent": false,
    "timezone": "America/Chicago"
  },
  "auth_id": "auth_uuid_here",
  "files": [
    "<select exactly one document>"
  ]
}