Workflow or API calls:
Reminder: If this is referring to a client domain or EHR activity—not the public sandbox—do not include API request data or live patient data.
Background Information:
Hi.
I'm working on an integration with Oracle Health and trying to use the following REST API endpoint to send a message to a set of recipients:
POST /20241001/patientMessages/sentItems
My goal is to send a message that includes:
- A subject and body (in XHTML format as required), (Done)
- One or more recipients, (Done)
- The only thing that I have is sending attachments such as JPG images and PDF files.
According to the official documentation https://docs.oracle.com/en/industries/health/millennium-platform-apis/mcfap/op-20241001-patientmessages-sentitems-post.html, the request body allows for an attachments
field, but each attachment only accepts id
, name
, and version
– no field for the actual file content (like base64 or multipart).
This suggests that files must be uploaded beforehand and then referenced by ID and version, but I haven’t been able to find any clear documentation on:
- How to upload attachments before sending the message,
- Which endpoint should be used for that upload,
- How to obtain the
id
and version
to include in the message payload.
Has anyone successfully sent messages with attachments using this API? Any guidance or working examples would be greatly appreciated.
Thanks in advance!
Developer questions:
Are you an OPN Member? No
Have you signed up to be in the Healthcare Developer Track? No
Are you a registered Code Program member? No
Does your App have a presence on the Oracle Healthcare App Marketplace? No