Turn residency management rotation blocks into time-boxed access at every participating site — EHR security template by PGY level and specialty, badge zones, and prescribing identity — behind a readiness gate for license, certifications, immunizations, and site training. Handles block swaps, leave, July 1 PGY advancement, night float, and visiting students, and produces per-hospital CMS IRIS FTE extracts from one schedule version with no resident over 1.0 FTE.
Tags: healthcare, provider, academic-medical-center, graduate-medical-education, residency, workforce, identity-access-management, joiner-mover-leaver, cms-iris, cost-report, api-led, process-api, event-driven, epic
Rotating Trainees: Residency Schedules to Time-Boxed Access Across Partner Sites
Review the regulatory requirements before implementing. The regulatory details in this blueprint are general guidance, not legal or compliance advice — rules change, and state licensing and controlled-substance rules vary. Before you build, have the GME office and each hospital's reimbursement team confirm:
- Step 5: the CMS IRIS XML format, FTE weighting by initial residency period, and the 1.0 FTE cap per resident across hospitals.
- Step 3: residents prescribing under the hospital's DEA registration with an internal suffix (21 CFR 1301.22(c)), and any state controlled-substance rules.
- Step 2: training license or permit rules for residents in your state.
- Prerequisites and step 4: program letter of agreement requirements with participating sites, and visiting student terms.
Deliverable: A trainee rotation Process API that turns residency management system rotation blocks into time-boxed access at each participating site — EHR security template by PGY level and specialty, badge access, and prescribing identity — behind a readiness gate, and that produces a per-hospital FTE extract for the CMS Intern and Resident Information System (IRIS) that never counts a resident more than once.
Objective: Residents and fellows at an academic medical center rarely work in one place. A PGY-2 might spend four weeks at the university hospital, four at a children's hospital, and four at a county clinic, each with its own EHR instance, badge system, and onboarding rules — and the schedule changes weekly as people swap blocks and cover leave. Access follows tickets, so trainees show up on day one of a rotation without a login, or keep access to sites they left months ago. Every hospital also claims resident FTEs on its cost report from the same master schedule, and when the schedules disagree, the same resident gets counted at two hospitals and triggers a duplicate review. Working looks like access that starts before the block and ends after it without anyone filing a request, trainees who can't be activated at a site until they're ready for it, and an FTE extract that ties back to the rotation schedule.
Employee and Practitioner Data: Workday to EHR and Salesforce covers employees: joiner, mover, and leaver events from HR into the EHR provider record and access systems. This plan covers rotating trainees. HR says who is employed, and the rotation schedule says where they work and when, so a rotation block becomes a time-boxed access window at a participating site.
What's Getting Built
- Residency management (System API) — trainees, programs, PGY levels, rotation blocks, and leave from
{residency_management_system} · GET /trainees?program=, GET /rotations?since=, GET /leave?since=
- Call schedules (System API) — night float and call assignments from
{call_schedule_system} · GET /assignments?site=&from=&to=
- Readiness gate (Process API) — checks license, life support certification, immunizations, background check, and site-required training before activation ·
GET /trainees/{id}/readiness?site=
- Rotation access (Process API) — plans and executes time-boxed access per block and site through each participating site's connectors ·
POST /rotation-access/plans, GET /rotation-access?site=&date=
- Participating site connectors (System API) — EHR accounts and templates, badge, and directory per
{participating_site} · PUT /sites/{siteId}/accounts/{trainee}, DELETE /sites/{siteId}/accounts/{trainee}
- Visiting learners (Process API) — time-boxed student access for visiting rotations accepted through VSLO or a local application ·
POST /visiting-learners
- IRIS extract (Process API) — FTE per resident per hospital per cost reporting period, with overlap checks ·
POST /iris/extracts, GET /iris/extracts/{id}/overlaps
Prerequisites
- HR employment events from the sponsoring institution or employing hospital, and a credentialing source that owns licensure.
{residency_management_system} API or extract access for rotations and leave; {call_schedule_system} access if night and call assignments drive unit access.
- Program letters of agreement with each participating site, and each site's onboarding requirements as data: required training, immunizations, and lead time.
- An access matrix per site: EHR security template by PGY level and specialty, badge zones, and whether trainees prescribe under the hospital's DEA registration with an internal suffix.
- Agreement with each hospital's reimbursement team that the rotation schedule is the primary source for IRIS.
- Named owners: the GME office for schedules and readiness, and each site's access team for its matrix.
Choose your path
- Sponsoring institution employs trainees — Choose when the university or GME sponsor is the employer. The sponsor's HR is the joiner and leaver source, and partner hospitals receive trainees as affiliates for the length of each rotation.
- Partner hospital employs trainees — Choose when the main teaching hospital employs residents and the school holds the schedule. Hospital HR stays the source, and rotations to other sites are time-boxed affiliate access.
Both paths use the same rotation-driven access plan; only the employment source differs.
Architecture
1. Rotations as the access trigger
- Read rotation blocks and changes from the residency management system on every change, not once a month; block swaps are routine.
- Turn each block into an access window at its site: open
{access_lead_days} before the start for onboarding, close {access_grace_days} after the end for note completion.
- A changed block updates the window; a cancelled block closes it. Access at a site is always the union of the trainee's current windows there.
2. Readiness before activation
- Check each trainee against the site's requirements before the window opens: training license or permit, life support certification, immunizations, background check, and site EHR training.
- Create the account in a disabled state and activate it when readiness passes. Missing items go to the trainee and the program coordinator with the block start date, well before it.
- Expiry during a block — an expired certification, for example — suspends clinical access. Don't wait for someone to notice.
3. Templates, badges, and prescribing
- Apply the site's EHR security template for the trainee's PGY level and specialty, and the badge zones for the rotation's units.
- Where trainees prescribe under the hospital's DEA registration, assign the internal suffix per site and remove it when the window closes.
- Use call and night float assignments to add after-hours unit access and on-call directory entries for exactly those nights.
4. Leave, advancement, and visitors
- Leave of absence pauses every window that overlaps it and resumes access on return; extended leave extends training dates in the residency system, not in each site.
- Advance PGY levels on
{academic_year_start} as a mover event at every site: the new template applies that morning, and the old one is removed in the same transaction.
- Give visiting medical students accepted through VSLO or local applications the same time-boxed pattern with a student template, and no prescribing.
5. IRIS FTE extract
- Compute FTE per resident per hospital from rotation days in the cost reporting period, weighted per the resident's initial residency period status.
- Check that each resident's total across all hospitals doesn't exceed 1.0 FTE for any overlapping period, and send overlaps to the GME office before any hospital files.
- Produce the IRIS XML each hospital submits with its cost report, from the same schedule version for every hospital, so their FTEs tie to each other and to the cost report.
6. Security and compliance
- Access windows are enforced by the platform, not by reminders; a closed window revokes access at every site the same day.
- Log every activation, template change, and revocation with the rotation block that caused it, as evidence for each site's access audit.
- Trainee personal data shared with sites is limited to what each site's access matrix needs; immunization detail stays with the readiness gate, and sites see pass or fail.
- Complete the shared Healthcare integration configuration checklist.
Configure with your own values: {residency_management_system}, {call_schedule_system}, {sponsoring_institution}, {participating_site}, {dea_suffix}, {access_lead_days}, {access_grace_days}, {academic_year_start}.
Sample payload — rotation access plan
{
"trainee": { "id": "TR-20417", "program": "INTERNAL_MEDICINE", "pgy": 2, "employer": "{sponsoring_institution}" },
"rotation": { "blockId": "AY26-B07", "site": "{participating_site}", "service": "INPATIENT_WARDS", "start": "2026-01-05", "end": "2026-02-01" },
"window": { "opens": "2025-12-29", "closes": "2026-02-04" },
"readiness": {
"status": "PASSED",
"checks": { "trainingLicense": "VALID", "lifeSupport": "VALID", "immunizations": "PASS", "siteEhrTraining": "COMPLETE" }
},
"access": {
"ehrTemplate": "RESIDENT_PGY2_IM",
"badgeZones": ["WARDS_5N", "WARDS_6N"],
"deaSuffix": "{dea_suffix}",
"nightFloat": [{ "date": "2026-01-19", "units": ["ICU_STEPDOWN"] }]
},
"iris": { "hospital": "{participating_site}", "days": 28, "weight": 1.0 }
}
Deterministic checks
- Access at a site on any date equals the union of the trainee's rotation windows there; recomputing from the schedule always yields the same plan.
- An account is never active at a site outside a window, or before readiness passes.
- A cancelled block closes its window and revokes access on the next run, and the revocation is logged against the block.
POST /iris/extracts flags any resident whose FTE across hospitals exceeds 1.0 for an overlapping period, and marks the extract not ready to file.
- Access plans are idempotent on trainee, block, and site; a redelivered schedule change never creates a duplicate account.
- MUnit suites cover block swaps, leave, PGY advancement, readiness failures, and overlap detection.
Testing and validation
- Replay one academic year of schedules and compare computed windows with access tickets actually filed.
- Swap two residents' blocks the day before start and confirm both sites update in one run.
- Put a trainee on leave mid-block and confirm access pauses and resumes.
- Build IRIS extracts for two hospitals from the same schedule and confirm no resident exceeds 1.0 FTE.
Phased rollout
Phase 1 — Connect
- Read rotations and readiness for one program and compute access plans in shadow mode against current tickets.
Phase 2 — Map and validate
- Turn on automated windows at the primary teaching hospital, then one participating site; build the first IRIS extract in parallel with reimbursement.
Phase 3 — Production
- Onboard every program and site, add call-driven access and visiting learners, and file IRIS from the pipeline.
Success metrics
- Trainees with working access at 8 a.m. on the first day of a block.
- Accounts active outside any rotation window — the target is zero.
- Access tickets for rotations, trending toward zero.
- IRIS duplicate-review findings, and hours to prepare IRIS per hospital.
- Platform: schedule-change-to-access latency.
Troubleshooting
- A resident has no login on day one — Likely cause: readiness failed quietly. Fix: alert the trainee and coordinator when the window opens with readiness pending, not on the start date.
- Former rotators still have access — Likely cause: windows closed only on the original block end, not on swaps. Fix: recompute windows from the schedule on every change.
- IRIS overlaps at filing time — Likely cause: each hospital pulled the schedule at a different time. Fix: extract all hospitals from the same schedule version and check overlaps first.
- Wrong template after July 1 — Likely cause: PGY advanced in the residency system but not applied as a mover event. Fix: schedule advancement for
{academic_year_start} and verify templates that morning.