Medplum audit events and logging for compliance: what the platform covers and what it does not
A team running self-hosted Medplum must be able to show a regulator who accessed electronic protected health information (ePHI), what they did, and when. The HIPAA Security Rule does not certify anything. Under 45 CFR 164.312, audit controls sit within the technical safeguards, and an assessor, or the HHS Office for Civil Rights during a complaint or review, will look for evidence that the controls exist, run and are reviewed. Medplum supplies logging building blocks, but the covered entity or business associate owns the configuration, the retention period, the review process and the evidence. Medplum's compliance documentation describes compliance as a shared responsibility, and for a self-hosted deployment the customer carries the logging side of that split in full.
Before designing anything, confirm which of your FHIR interactions Medplum records as AuditEvent resources, which login and authentication events it writes, and which of those records you can export. Compare that list against the ePHI flows in your own system, including Bots, Subscriptions, the Medplum Agent and any reporting database that reads from the FHIR API. Each path that touches ePHI but bypasses the logged interface is a gap you must either close or document. Also confirm how resource history is kept, since version history answers a different question (what changed) than an access log (who looked). Ask your Medplum contact or check the Medplum documentation for each item rather than assuming coverage.
Several requirements stay with you regardless of platform. You must set retention periods that match your own policy and applicable rules, protect the log store from modification by administrators whose actions are being logged, forward events to a SIEM or other system where someone reviews them, and define who investigates an alert. You must also test that a sample access can be traced end to end from the audit record to the user and the device. Business associates should check that their subcontract terms under 45 CFR 164.314(a)(2)(i) cover how logs are handled. Medplum's own documentation is a starting point, not evidence of your compliance, so treat each item as an owned control with a named owner and a recurring review.
Which audit-related requirements Medplum helps meet and the configuration each needs
This table maps HIPAA technical safeguards and business associate contract terms to Medplum capabilities that touch audit trails and access. Each row marks whether the platform supports the need, whether configuration decides the outcome, or whether the customer owns it. Read it as a starting inventory for assessors, not as proof that Medplum satisfies any standard on its own.
| Requirement | What Medplum provides or what you configure | Ownership |
|---|---|---|
| Unique user identification (164.312(a)(2)(i), required) | Medplum Auth issues individual user identities, and each AuditEvent can be traced to the user who acted. Shared logins or service accounts defeat this. | Configuration-dependent |
| Automatic logoff (164.312(a)(2)(iii), addressable) | Session and token lifetimes are set in Medplum authentication settings. You decide the inactivity window and document why it fits your risk. | Configuration-dependent |
| Encryption and decryption (164.312(a)(2)(iv), addressable) | Medplum's documentation describes its platform controls, but in self-hosted deployments TLS, database and backup encryption, and key management are yours to implement and evidence. | Customer-owned |
| Audit controls (164.312(b)) | The server writes AuditEvent resources for FHIR interactions and login activity. You must confirm coverage for your use cases, forward logs to a SIEM and set retention. | Configuration-dependent |
| Person or entity authentication (164.312(d)) | Medplum supports MFA, external identity providers and client credentials for server-to-server access. Enforcing MFA for every human account is a policy you configure. | Configuration-dependent |
| Transmission security (164.312(e)) | Network paths between the Medplum server, PostgreSQL, Redis, the Agent and clients need encryption and access restrictions in your infrastructure. | Customer-owned |
| Business associate contract terms (164.314(a)(2)(i)) | Medplum's paid cloud plans include a BAA. In a self-hosted deployment you sign no Medplum BAA for your own hosting, so your subcontractors and incident reporting terms must cover the stack you run. | Customer-owned |
| Security Rule scope and evidence (45 CFR 164.302) | The Security Rule covers ePHI your covered entity or business associate creates, receives, maintains or transmits. Confirm which Medplum audit data counts as ePHI in your environment with counsel. | Customer-owned |
How AuditEvent resources record FHIR interactions in Medplum
AuditEvent resources are the FHIR-native record of who touched which data, and the first job on a self-hosted Medplum deployment is to confirm which interactions produce them in the version you run. Reads, searches, creates, updates and deletes against the FHIR R4 API are the interactions a regulator will ask about, so start by listing them and testing each one. Create a test project, perform one of each interaction with a known user, then query the AuditEvent resources that result. Record the outcome per interaction type, because coverage is the first thing an assessor will check. Confirm in Medplum's documentation for your installed version whether searches and failed requests are logged, and whether bulk or Bot-initiated access appears with its own agent identity. Treat any gap as a finding to close before go-live.
For each AuditEvent, verify the fields that answer the investigator's questions: who acted, on which resource, when, from where and through which client. In a test, check that the agent reference identifies the individual user rather than a shared service account, that the entity reference points to the correct Patient or other resource, and that the source or network address field is populated behind your load balancer or ingress. If the patient context is not stored as a direct field, confirm how Medplum records it and whether your query design can reconstruct it. Compare the timestamp against the server clock and your log platform, since mismatched time sources make reconstructed timelines unreliable. Confirm the exact field names with Medplum's documentation for your version, because the FHIR AuditEvent structure is generic and implementations vary in what they populate.
Resource history is the second half of the reconstruction. Each update creates a version, so you can read earlier states of a record and show what changed, while AuditEvent shows who made the change. Test this by editing a Patient or Observation, then retrieving its history and confirming that prior versions remain available. Confirm with Medplum's documentation whether history survives deletes, how long versions are kept in your database, and whether purging or retention jobs can remove them. Login logging is recorded separately from FHIR interactions, so test a successful sign-in, a failed attempt and an MFA challenge, and confirm each one appears where your SIEM expects it. Document the query you use to rebuild a single patient's access history, since that query is what you will show an auditor.
How audit records flow from Medplum to a SIEM and archive
The flow starts with a user or Bot calling the Medplum server, which authenticates through Medplum Auth, sometimes via an external identity provider outside your boundary. The server writes resource changes to PostgreSQL along with resource history and AuditEvent records, which are then exported to your SIEM and copied to an archive you control. Check that the SIEM receives every AuditEvent, that login events from the identity provider reach the same store, and that the archive's retention period is set by your own policy.
Audit records move from the Medplum server to a SIEM and a retained archive you control.
Audit evidence auditors ask for and how to keep it
Auditors rarely accept a claim that logging is turned on. They ask for samples, exports and records that show what was captured, where it went, who can change it and that it worked before go-live. The cards below cover the evidence set we would assemble for a self-hosted Medplum deployment and the tests that prove each item.
AuditEvent samples per interaction type
Collect a set of AuditEvent resources for each class of FHIR interaction your deployment performs, such as create, read, update, search and delete on patient-related resources, and bulk operations if you use them. Auditors read these samples to confirm that the user, the resource, the action and the time are recorded. Before go-live, run scripted interactions in a staging project, export the resulting AuditEvent records, and compare each field against your required data elements. Store the exports with the test script and the version of Medplum under test.
Medplum compliance docsLogin and MFA records
Authentication events show who got access to the system, through which identity provider, and whether a second factor was used. Export sign-in success and failure records, MFA enrollment and challenge events, and client credential token issuance for server-to-server accounts. Confirm that records from Medplum's own sign-in and any external identity provider both reach the log store, since a gap in either leaves an unexplained access path. Test with a deliberate failed login, a locked account and an MFA challenge, then keep the outputs.
Medplum authentication docsResource history exports
Resource history shows how a record changed over time, which matters when an auditor asks what a clinician saw or altered. Demonstrate that prior versions remain retrievable after an update, and that deletions and corrections leave a traceable trail. Export history for a sample of test patients and for records changed during testing, and document the export procedure so it can be repeated during an inspection. Confirm with your Medplum version whether history is retained indefinitely or subject to a purge process, and record the answer in your evidence file.
SIEM ingestion proof
Logs that never reach your security platform cannot support detection or investigation. Show the full path from Medplum's server logs and AuditEvent output into your SIEM, including the transport, the parser and the dashboards or alerts that read the fields. Test by generating known events in staging and confirming they appear in the SIEM with the expected timestamps and identities. Keep a screenshot or query export, the pipeline configuration and the date of the test. Ask your SIEM vendor how it handles delayed or dropped events, and document the alert you use to detect a silent pipeline failure.
Immutable storage of log records
Auditors ask whether someone with administrative access could edit or delete audit records without detection. Write logs to a store with write-once or object lock controls, or forward them to a separate account where the Medplum operators have no delete rights. Test by attempting to modify or delete a record as an administrator and confirming that the attempt is refused or recorded. Keep the storage configuration, the access policy and the test output together. Confirm the exact immutability features of your chosen storage product before you rely on them.
Retention policy and log store access reviews
Set a written retention period for each log category, driven by the obligations that apply to your organization, and show that the storage configuration enforces it. Review who holds read and administrative access to the log store on a schedule, and record each review with its reviewer, date and any changes made. Test retention by confirming that records older than the period are removed and that records within it remain. Ask your legal or compliance team to confirm the period, since the HIPAA Security Rule does not set a single retention figure for audit logs.
Retention decisions for audit logs by deployment choice
Keeping audit events only in the Medplum database is the simplest option to build. AuditEvent resources and resource history are written to the same PostgreSQL instance that serves clinical data, so they are queryable through the FHIR API and can be reviewed without another system. The trade-off is that the same database carries the storage growth, backup load and tuning pressure of both clinical records and logs, and anyone with broad database or administrative access can potentially alter or remove them.
- Query speed: Searches by patient, user or time window run against the live store, which suits targeted investigations but can slow down as the table grows.
- Cost drivers: Storage, backup size and database capacity all grow with log volume, so retention periods directly affect the size of your primary database.
- Log access control: Read access to AuditEvent resources and database credentials must be scoped separately, since a database administrator may be able to bypass application-level controls.
- Recovery: Logs are restored with the database, so a point-in-time restore may also roll back audit records written after the restore point, which needs to be documented.
- Deletion risk: Routine cleanup jobs must never purge audit data on the same schedule as clinical resources.
Confirm with your Medplum partner how audit records are indexed and how large the audit tables are expected to grow under your planned volume before committing to this option.
Streaming audit events to a SIEM moves retention and correlation into a system built for security analysis. Security teams can combine Medplum events with identity, network and endpoint logs, and set retention in the SIEM independently of the application database. The cost is a second system to run, integrate and secure, and retention in the SIEM becomes a contract with the SIEM vendor or operator rather than with Medplum.
- Query speed: Correlation and alerting are fast for recent data, but older data may be stored in cheaper tiers with slower search.
- Cost drivers: Ingestion volume, indexed versus archived storage and licensing tier usually dominate, so filtering noisy event types before forwarding can matter.
- Log access control: SIEM roles should separate analysts who read events from administrators who change retention or delete indexes.
- Recovery: Events already forwarded survive a database failure, but events that were never forwarded because of a pipeline outage may be lost unless the source keeps a buffer.
- Integrity: Confirm whether the SIEM can enforce immutability on stored events, because a forwarding pipeline alone does not guarantee that.
Ask for the SIEM's retention tiers, export options and access logging in writing, and test that a deleted or failed forwarding job raises an alert.
Archiving exported audit events to object storage with write-once controls is typically used for long-term, low-cost retention that must resist modification. Many object stores offer object locking or retention settings that block overwrite or deletion for a defined period, which supports evidence requirements. Retrieval is slower and less convenient than a SIEM, so most teams keep recent events in a SIEM or the database and archive older batches here.
- Query speed: Archived data is read in batches, usually through a query engine or restore job, so it is suited to audits and investigations rather than daily monitoring.
- Cost drivers: Storage class, retrieval frequency, egress and the number of objects and requests shape the bill, so batch size and lifecycle rules are worth designing early.
- Log access control: Object-level permissions, lock configuration and key management should be controlled by a different team from the Medplum platform team.
- Recovery: Archives are a separate copy, which helps after a database loss, but restoring them into a usable form needs a tested procedure.
- Lock configuration: Confirm the lock mode, who can change it, and whether it can be shortened or removed by an account administrator.
Test a full restore and an audit retrieval from the archive before relying on it as evidence, and confirm the write-once settings with your storage provider's documentation.
Setup sequence for audit logging on a self-hosted Medplum
This sequence takes a self-hosted Medplum from a confirmed version to a tested audit trail, with login logging, SIEM streaming, retention and an evidence package that a compliance team can review.
Confirm the Medplum version and upgrade path
The platform team records the running Medplum server version and the target version, then maps every minor version between them. Medplum's upgrade guidance says self-hosted deployments must move through each minor version in sequence, because skipping versions causes startup failures and long post-deploy data migrations. Logging behavior can change between versions, so each upgrade step should be followed by a repeat of the audit tests in the later steps. The step is done when the upgrade path is written down, approved by the change owner, and attached to the audit evidence file.
Enable and test AuditEvent capture
The platform engineer confirms that the Medplum server writes AuditEvent resources for the FHIR interactions the compliance team cares about, such as reads, searches, creates, updates and deletes on patient-related resources. Each interaction type is exercised in a non-production project with a test user, and the resulting AuditEvent entries are queried through the FHIR API to check the agent, entity, action, outcome and time fields. Gaps are logged as findings with an owner. The step closes when every key interaction type has a documented test result showing a matching AuditEvent.
Configure login and MFA logging
The identity team connects the chosen identity provider, whether Medplum Auth, an external provider or a corporate identity provider, and confirms which sign-in events, failures, token issuance and multi-factor challenges are recorded and where. Medplum's authentication documentation covers these identity options, but the team should verify in their own environment which login events reach the audit store and which stay inside the identity provider's own logs. Test accounts are used to produce a successful login, a failed password, a failed MFA challenge and a client credentials token. The step is done when each event type can be found in the agreed log location with a timestamp and user identifier.
Define export and streaming to the SIEM
The security engineer decides how audit records leave Medplum for the SIEM, whether by polling the AuditEvent API, using Subscriptions, or using a log shipper from the infrastructure layer, and confirms the chosen method with the SIEM vendor and Medplum documentation. The team defines the field mapping, parsing rules and an alert for missing log volume. Transport security and the service account used for export are reviewed against the access model. The step closes when a test event appears in the SIEM with the expected fields and the export job is shown to fail visibly if it stops.
Set retention and restrict access to logs
The compliance lead and the platform owner agree how long audit records and related infrastructure logs are kept, based on the regulations the organization answers to, and document the decision with its source. Storage is set up so that the database, the SIEM index and any archive are protected by encryption and by access limited to named roles, with administrator access to logs itself recorded. Deletion and purge jobs are reviewed so they cannot remove records early. The step is done when the retention schedule, the storage locations and the list of users with log access are signed off.
Run a test audit trail for a sample patient record
The team creates an illustrative test patient in a staging project, then performs a scripted set of actions: a clinician login, a search, a read, an update, an export and a logout, using a second account for a denied access attempt. They collect the AuditEvent entries, the resource version history for the patient, the login records and the SIEM copies, and check that all of them reconcile by time and identifier. Any mismatch becomes a defect with a retest. The step closes when one end-to-end trail can be reconstructed from the sign-in to the final change without manual gaps.
Document the evidence package
The compliance and platform teams assemble the evidence package: the configuration baseline, the upgrade record, the AuditEvent test results, the login and MFA test results, the SIEM mapping, the retention decision, the access list for logs and the sample trail. Each item is labeled with the date of the test and the Medplum version it covers. The package is reviewed by the team responsible for the external assessment, which may ask for different evidence depending on the framework. DeployOpen can prepare this package, but independent auditors and certification bodies decide whether it meets their requirements. The step is complete when the package is stored under change control and scheduled for retesting after each upgrade.
What Medplum does not cover for audit logging
Medplum produces audit events inside the application, but the audit trail a regulator expects is wider than the FHIR server. The cards below mark the duties that stay with your organization, whether you run Medplum on Medplum Cloud or on your own infrastructure.
Shared responsibility for compliance
Medplum's compliance documentation states that compliance is a shared responsibility between Medplum and its customers. Medplum's controls cover the platform it operates, but a self-hosted deployment makes your organization the owner of the audit controls around the application. Before you rely on any Medplum document, map each audit requirement to the party that operates the control and confirm that split in writing.
Medplum compliance docsNo HIPAA certification to hand over
HHS states that no Security Rule standard requires an entity to certify compliance, so there is no HIPAA certificate for Medplum or for your deployment. Medplum's other attestations do not substitute for evidence of your own audit controls. Ask your assessor which artifacts they will accept, such as configuration records, sampled audit events and access reviews, and collect them from your environment.
- HIPAA certifications
- 0
SIEM, alert rules and log review
Medplum can emit audit data, but forwarding it to a SIEM, writing detection rules and reviewing alerts are operational processes your team owns. Define who reviews access anomalies, how often, and how a review is recorded. Confirm with your security team which log sources feed the SIEM and whether alerts on break-glass or bulk export access exist.
Retention schedules and legal holds
How long audit records are kept, and when they are frozen for litigation or an investigation, is a decision for your legal, compliance and records teams. Medplum does not set your retention period for you. Document the schedule, the storage location for archived logs, and the procedure for placing and releasing a hold, and confirm that the schedule also covers PostgreSQL and backup copies.
Pending HHS Security Rule revision
HHS proposed a major Security Rule revision on 6 January 2025, and as of October 2026 no final rule has been published. The Unified Agenda projects final action for July 2027. Logging and monitoring requirements could change when the rule is finalized, so track the rulemaking and schedule a review of your audit design once the final text is published.
Proposed rule textInfrastructure logs outside Medplum
Audit events from the FHIR API do not show what happened at the operating system, database, Redis, load balancer, or cloud account layer. Your organization must collect and retain logs from each of those components, including administrative access to the database and changes to infrastructure code. Map each log source to an owner before go-live so gaps are found during design rather than during an assessment.
Audit logging questions buyers ask before hiring outside help
Can an outside consultant make our Medplum audit trail complete?
No consultant can guarantee completeness on its own, but a well-scoped engagement can make the trail complete for the interactions you define and verify it against them. Completeness depends on which FHIR interaction types, login paths and admin actions you list as in scope, and on whether each one produces an AuditEvent or a log entry you can query. The practical test is a written list of every interaction type and identity path, each mapped to the record that proves it, followed by test traffic that confirms those records appear. DeployOpen does not issue certifications or attestations. Independent auditors and certification bodies decide whether your evidence meets a given requirement.
What makes audit logging effort go up or down?
Effort tracks four things: how many FHIR interaction types you need to capture, how many identity providers sign users in, which SIEM or log platform receives the events, and how much logging and review you already have. Each interaction type adds mapping and testing. Each identity provider adds sign-in event handling and a check that failed and successful logins are both recorded. A SIEM with an existing ingestion pipeline is cheaper to connect than a new one. Existing controls, such as a central log platform, documented review procedures and retention rules, shorten the work because the gaps are smaller and easier to define.
How long does Medplum audit logging setup usually take?
Duration depends on scope, so no fixed figure applies. A narrow setup, with a single identity provider and one log destination, takes less time than a deployment covering several identity providers, a custom SIEM pipeline and retention rules agreed with legal and compliance teams. Ask any provider for a timeline tied to the written scope, the number of interaction types, the environments to test and the review cycles for the evidence. Timelines in a quote should also name the dependencies, such as access to the SIEM team and the approval of retention periods, because those often set the critical path.
What must our team provide during an audit logging engagement?
Your team provides access, test data and named owners. Access means a self-hosted Medplum test environment, administrative credentials for the identity provider, and read access to the SIEM or log platform. Test data means realistic but non-production patient, practitioner and admin records, so that test interactions produce events without exposing ePHI. Owners are the people who review the logs, approve retention periods and answer for incidents. Name at least one owner for security log review and one for retention, because evidence that nobody reviews rarely satisfies an assessor. Confirm with your compliance lead which records must be kept and for how long before work starts.
Can our own engineers set up Medplum audit events without a partner?
Yes, a capable engineering team can build and run audit logging in-house, provided it has the time and the skills to map Medplum's interaction types, validate events and maintain the pipeline after each upgrade. The main risk is not the first build but the ongoing work: new Medplum versions, new identity providers and changed SIEM rules all alter what gets logged. Before deciding, check whether your team has someone who can test event coverage, someone who owns the SIEM integration, and a plan for re-testing after each upgrade. If any of those are missing, a fixed-scope engagement can cover the initial build while your team takes over operations.
What should a fixed-scope quote for audit logging list?
A fixed-scope quote should list the deliverables, the boundaries and the responsibilities in writing before work starts. Ask for:
- The Medplum version and deployment target, such as AWS, Kubernetes or Ubuntu, with the environments in scope.
- The FHIR interaction types, login paths and admin actions to be captured, and the test cases that prove each one.
- The identity providers covered, and the SIEM or log platform receiving events, with the ingestion method.
- Retention and access rules for audit records, and who approves them.
- The evidence package delivered, the review meetings, and what is excluded, such as the auditor's work or the SIEM's own configuration.
The quote should also state the timeline, the handover of operations and any recurring retainer for upgrade retesting. DeployOpen does not publish a price list, so the written scope is what the quote follows from.
Does the HIPAA Security Rule require a certified audit logging setup?
No. HHS states that no Security Rule standard requires an entity to certify compliance, and private certifications do not prevent HHS from later finding a violation. The Office for Civil Rights enforces the rule through complaints, compliance reviews and audits, so the question is whether your records show the activity the rule expects, including the technical safeguards in 45 CFR 164.312. Confirm which of those safeguards your organization must evidence and which business associate duties apply to your deployment with your compliance lead and counsel. Do not treat any vendor or consultant label as proof of compliance.
What DeployOpen prepares and what an auditor or certifier decides
DeployOpen configures the audit logging described above inside your own infrastructure, tests that it records what it should, and assembles the evidence package your compliance and security teams need. In practice that means setting up AuditEvent generation for the FHIR interactions in scope, enabling and verifying login logging through your chosen identity provider, confirming that resource history is retained as designed, connecting the log stream to your SIEM, and writing down the retention decisions with their rationale. The evidence package typically covers configuration exports, test records showing events were produced and forwarded, access reviews of who can read or change the logs, and a runbook for the people who will operate the pipeline after handover. DeployOpen does not issue audit reports, attestations or certifications. Those come from independent auditors and certification bodies, and no HIPAA certification exists to be issued.
The HHS Office for Civil Rights enforces the HIPAA Security Rule through complaints, compliance reviews and audits, so the question that matters is whether your records would withstand an OCR inquiry or an assessor's sampling, not whether a vendor has signed off. Ask DeployOpen to state in the written scope which logs, retention periods and test cases are covered, and ask your legal and compliance advisers to confirm which obligations apply to your organization and whether the HIPAA Security Rule requirements for audit controls are fully met by the design you choose. Some decisions, such as how long to keep logs and who may review them, remain yours to make and document.
Plan for the auditor's first questions before the build starts. Assessors usually ask for proof that logging was enabled on the date you claim, that you can reproduce a sample of events from the log store, and that any change to logging configuration is itself recorded. Ask whether your team will be able to pull that evidence without DeployOpen involved, and confirm that the chosen SIEM and storage retention match what your compliance program states in writing. Where your obligations also extend to other frameworks, confirm with the relevant certifier which evidence they will accept, since their expectations on log content and review frequency can differ from the Security Rule.
How DeployOpen scopes and delivers audit logging for self-hosted Medplum
DeployOpen plans, builds, tests and documents the audit trail for a self-hosted Medplum deployment inside infrastructure you control. The work covers AuditEvent output for FHIR interactions, login logging, resource history, SIEM streaming and retention, with written evidence your compliance and security teams can review.
How we scope
- Engagements are fixed-scope, with the audit events, sources and destinations agreed in writing before work starts.
- The scope lists which FHIR interactions, login events and admin actions must produce AuditEvent records.
- Scope confirms the SIEM target, log transport, retention periods and who owns each decision and control.
How we build
- Configure Medplum's AuditEvent output and login logging in your self-hosted environment, then verify coverage against the scoped events.
- Connect the audit trail to your SIEM with tested transport, field mapping and access controls on the log store.
- Test tamper resistance, clock and timestamp consistency, and whether resource history answers common reconstruction questions.
How we hand over
- Deliver a written record of configured audit sources, mappings, retention settings and the owner of each control.
- Provide test results showing which events were generated, forwarded and retrieved during verification.
- Document the upgrade steps that could change audit output, so your team can retest after each Medplum upgrade.
How we support
- Ongoing support and continuous testing are available as a retainer for audit output after go-live.
- Retesting covers Medplum version upgrades, SIEM changes and new event types added to the application.
- Confirm with your compliance advisors which retention period and review evidence your regulator or auditor expects.

