Quick Summary
A 14-clinic, multi-specialty provider group could read data out of Oracle Health, but its referral and scheduling app couldn’t write anything back. So every referral and every appointment change had to be typed into the chart a second time. Bacancy Technology built an Oracle Health FHIR write-back service that files referral orders and appointment updates directly into Cerner Millennium. It checks every record before sending it, retries anything that fails, and logs each write. After a sandbox phase and a two-clinic pilot, the service went live across all 14 clinics. Manual re-entry per encounter dropped by 62%, and 98.4% of writes were filed with no staff help.
Introduction
A 14-clinic, multi-specialty provider group came to us with a problem their front desk dealt with every day. Their referral and scheduling app pulled patient data from Oracle Health (many staff still call it Cerner), but it had no way to send anything back. Each referral and each rescheduled appointment was entered in the app, then entered again in the chart. The group asked us to remove that second step.
Writing into an EHR takes more care than reading from it. This Insight explains how we built that Oracle Health FHIR write-back: how we got write access, mapped the data, handled failures, secured every write, and rolled it out across all 14 clinics.
Why Read-Only Oracle Health Access Caused Double Entry
Read-only access gave the app a view of the chart, but no way to change it. Every action that started in the app had to be finished by hand in Oracle Health, and that one gap caused four separate problems.
| What Was Happening | Why It Was Risky | Who Felt It |
|---|
| Referrals made in the app were retyped into Oracle Health | Every referral was entered twice, and a typo in either place created two versions of the same order | Front-desk staff and referral coordinators |
| Appointment changes had to be made in both systems | A reschedule missed in the chart meant clinicians saw the wrong visit time | Schedulers, clinicians, and patients |
| The app record and the chart record weren't linked | When the two disagreed, nobody could tell which one was right | Clinic managers |
| Changes had no shared trail | Answering "who changed this and when" meant digging through two systems by hand | The compliance team |
This group wasn’t unusual. In KLAS’s 2025 clinician survey, 35% of nurses said they spend three or more hours a week on duplicative or unproductive documentation.
Closing this kind of gap between an app and an EHR is the core of our EHR integration services work. For this client, the gap came down to one missing permission: the app couldn’t write.
How We Got Write Access to Oracle Health (Cerner) FHIR APIs
Our first job was getting permission to write. The client’s app could already read from Oracle Health, but write access is a separate permission. The client had to approve it, and for the scopes we needed, they requested it through a contract with Oracle Health
Before asking for anything, our Cerner developers sat down with the client’s team and listed every write the app genuinely needed. We kept it to four:
- Create a referral order
- Create an appointment
- Update an appointment (reschedule)
- Cancel an appointment
Keeping the list short made approval easier. The client’s IT and security leads reviewed the four write types and our audit-logging plan, saw exactly what the app would and wouldn’t change in the chart, and signed off. We ran the approval in parallel with our sandbox build, so it never held up development.
How We Mapped Referral Orders and Appointment Updates to FHIR R4 Resources
Next, we had to translate the app’s data into FHIR R4, the format Oracle Health uses to exchange records. We mapped two kinds of records, and each had its own rules.
Referral Orders
We turned each referral in the app into a Oracle Health, carrying the patient, the referring provider, the specialty, the reason, and the priority. Before writing any code, we went through the field list with the clinic staff, because they knew which fields are always filled in and which ones are often left blank.
Appointment Creates, Reschedules, and Cancellations
We mapped appointments to the FHIR Appointment resource. A new booking became a create, a reschedule became an update to the start and end time, and a cancellation became a status change. We also made sure the practitioner was always attached. Without it, an appointment can be created successfully yet never appear in the doctor’s schedule search, a problem developers have reported on Oracle’s own forum
Here’s the final mapping:.
| App Field | Oracle Health FHIR R4 Element | Check Before Writing |
|---|
| Patient | Patient reference | Must match an existing patient in Oracle Health |
| Referring provider | Requesting practitioner | Must be an active provider
|
| Referral specialty | Specialty code | Must come from the approved code list |
| Referral reason | Reason code | Required, never blank
|
| Appointment time | Appointment start and end | Must be in the future and within clinic hours
|
| Appointment provider | Appointment participant | Required, so the visit shows in the provider's schedule
|
| Appointment change | Appointment status | Must be a valid change, for example booked to cancelled
|
How We Validated Every Oracle Health Write and Made Sure Nothing Was Lost
A wrong record in a patient’s chart does more harm than a missing one. So we built the service around one rule: check everything before it’s sent, and never lose anything that fails.
- We checked every record before sending it. Each one ran through the checks in the mapping table. A referral with no reason or an appointment with no provider was stopped before it reached Oracle Health and sent to a review queue with the reason.
- We gave every write its own reference number. That way, a retry could never create a second copy of the same referral.
- We retried temporary failures automatically. Timeouts and short outages happen on any live system, so the service tried again on a set schedule, waiting a little longer after each attempt.
- We parked failures instead of dropping them. Anything that still failed went to an error queue inside the app, explained in plain words for staff, not a technical error code.
- We handled Oracle’s own rejections the same way. Even when a record passed our checks, Oracle Health could still reject it under its own rules. Those rejections were logged, explained, and sent to the same queue.
That’s where the 98.4% figure comes from. Out of every 1,000 writes, about 984 went into Oracle Health with no human involved. The other 16 landed in the queue for a staff member to fix and resend. Most of those came down to a few predictable causes: patient details that didn’t match a record in Oracle Health, a provider who was inactive or not set up at the receiving clinic, a referral code outside the approved list, or an appointment time that clashed with the clinic’s schedule.
How We Secured Each Write With Role-Based Access and a Full Audit Trail
Every write had to be both allowed and traceable.
- We tied permissions to job roles. Using OAuth 2.0, the standard sign-in and permission system Oracle Health uses for connected apps, we let schedulers create and change appointments and let referral coordinators file referrals. No one got broader write access than their job needed.
- We kept access short-lived. Access tokens expire quickly and renew in the background, so a lost or stolen token stops working soon after.
- We logged every single write. Each entry records who triggered it, which patient record it touched, what changed, when it happened, how Oracle Health responded, and which app record it came from.
- We made the logs easy to search. When someone asks who moved an appointment or filed a referral, the answer is one search away. We keep these logs for six years, matching the retention period HIPAA sets for compliance documentation.
These are the same access controls and PHI safeguards our HIPAA compliance services team puts in place on every healthcare project. On this project, we built them in from day one instead of adding them at the end.
How We Rolled Out the Integration: Sandbox, 2-Clinic Pilot, Then All 14 Clinics
We didn’t switch on all 14 clinics at once. We moved in three stages, and each one had to pass clear checks before we started the next, so any problem would show up in front of a few people instead of the whole group.
| Stage | What We Tested | What Had to Pass Before Moving On |
|---|
| Sandbox | Every write type against Oracle's FHIR sandbox, using test patients only | Every write type working, and every failure landing in the queue correctly |
| 2-clinic pilot | Real referrals and appointments from real staff, double-checked against the chart | At least 97% of writes filed automatically for four weeks in a row, with no wrong records found in daily chart spot checks |
| All 14 clinics | The remaining 12 clinics, added in smaller groups rather than all at once | Each group matching the pilot's results before the next one went live, then daily checks for 30 days and weekly reviews after that |
We put the most effort into the sandbox stage, Oracle’s separate practice environment, because that’s where most problems should be caught.
Is your team still typing the same referrals and appointments into two systems?
Our EHR Software Development team extends the EHR you already use with referral and scheduling workflows that connect to your apps, so every record is entered once and every change can be traced.
Results After the Oracle Health FHIR Write-Back Rollout
Once all 14 clinics were live, staff stopped retyping referrals and appointment changes for most encounters, and the chart and the app stayed in agreement.
| Metric | Before | After |
|---|
| Manual re-entry per encounter | Every referral and appointment change typed twice | 62% less |
| Writes filed with no staff help | None (all manual) | 98.4% |
| Clinics live | 0 | 14 |
| Every write traceable to who, what, and when | No | YesYes |
Conclusion
For Bacancy Technology, the hard part of this project was never sending data into Oracle Health. It was making sure every write was permitted, correct, recoverable, and traceable before it touched a patient’s chart. The client didn’t need a new app. They needed the one they already had to write back, not just read. For any provider group facing the same double entry, the better question isn’t whether write-back is possible, but which records to write back first. Referrals and appointments made sense here because staff handled them at almost every visit, and mistakes in them reached patients directly. Starting with the records that cause the most retyping keeps the first release small and the payoff easy to measure.
Frequently Asked Questions (FAQs)
Yes, for some resources. Each Oracle Health environment publishes a capability statement at its FHIR metadata endpoint, which lists the resources that accept creates and updates. Checking it early shows what’s technically possible before any scope request is made.
Yes. Oracle acquired Cerner in 2022 and now sells its EHR under the Oracle Health name. Many staff and developers still say “Cerner,” and product names like Millennium and PowerChart are still in everyday use.
No. Oracle runs FHIR APIs on both Millennium and its newer AI Application Suite, and its FHIR change log notes that supported capabilities differ between the two. A write that works on one platform needs to be tested again on the other.
No. Referrals and appointments written by the app appear in the chart and schedule like any others, so clinicians keep working in Oracle Health as before. The change is on the app side, where staff now enter each record once.
Yes, but the access step changes with each vendor. Epic, athenahealth, and Oracle Health each grant write access differently and allow writes to different resources, so permissions have to be scoped separately for every EHR.