OpenMRS or Bahmni for SOC 2 and ISO 27001 audits: which starts closer to evidence
An audit is coming, and the platform has to fit the control set it will be assessed against, so the choice between OpenMRS and Bahmni turns on how much audit evidence each one produces before you build anything. Bahmni suits teams that want documented application audit logging and accept a larger bundle inside audit scope. Plain OpenMRS suits teams that want a smaller boundary and will build logging, two-factor authentication and evidence around it. This page covers only the SOC 2 and ISO 27001 angle. The general OpenMRS vs Bahmni comparison has its own page, and this section does not repeat it.
Start with audit log coverage and bundled scope, because they decide how much evidence exists on day one. The Bahmni Audit Logs page says the audit log sits in the Admin module and records sign-ins and sign-outs, failed logins, patient dashboard opens, registrations, visit open and close, encounter creation, and report generation or printing. The openmrs-core README does not describe an application audit log, so a plain OpenMRS team must confirm what its deployment records, where those records are stored and who can read them. Bahmni also brings OpenERP, OpenELIS and DICOM and PACS into the same stack. Every bundled component that touches patient data belongs in the system description, the access reviews and the log sources an assessor will sample.
Next, check two-factor and default credential settings, then ask whether either side has an assurance document for the platform itself. The Bahmni security page says Bahmni reuses the OpenMRS session and credentials and mentions a bypass2FA role that disables two-factor authentication for a user and should not be assigned directly, so the role list becomes a control to review. The openmrs-core Docker documentation lists default scheduler dashboard credentials, admin and Admin123, for local use and advises a strong password elsewhere, so confirm every non-local environment changed them before the audit window opens. Finally, ask each vendor or community for any SOC 2 report, ISO 27001 certificate or control mapping that covers the platform itself. None is supplied here, so confirm before you plan around one.
What SOC 2 and ISO 27001 ask of an EMR platform
SOC 2 and ISO 27001 assess an organization's controls and management system, and OpenMRS or Bahmni come into scope through their access, logging, change and backup controls. The cards set out the criteria, categories, report types and certification cycle that frame that testing and the evidence an assessor will ask to see.
Common criteria CC1 to CC9
CC1 to CC9 are the security criteria every SOC 2 report covers, and for an EMR, CC6 (logical access), CC7 (system operations) and CC8 (change management) carry most of the platform evidence. Check how sessions, roles and two-factor settings are governed, since Bahmni reuses the OpenMRS session and warns against assigning its bypass2FA role directly. The OpenMRS Docker documentation ships default scheduler dashboard credentials for local use and advises a strong password elsewhere, so confirm that rule in your own deployment.
Bahmni security pageFour optional categories
Availability, processing integrity, confidentiality and privacy are the four optional categories, and each adds criteria only when the organization puts it in scope, while CC1 to CC9 apply to every report. For an EMR, availability ties to backup and recovery, confidentiality to restricted clinical records and privacy to patient personal information. Settle scope before fieldwork starts, because a category added late changes what the auditor must test.
61 criteria in the 2017 TSC
The 2017 Trust Services Criteria contain 61 criteria: 33 common criteria, 3 availability criteria (A1), 2 confidentiality criteria (C1), 5 processing integrity criteria (PI1) and 18 privacy criteria (P1 to P8). Examinations use the 2017 criteria in the version with revised points of focus published in 2022. Ask the auditor which criteria are in scope and which version the report names, so both platforms are tested against the same list.
AICPA criteria downloadType 1 and Type 2 reports
A Type 1 report describes the system and whether controls were suitably designed as of a single date, while a Type 2 report adds an opinion on whether those controls operated effectively over a period. Bahmni's Admin module audit log records sign-ins, failed logins, patient dashboard views and encounter creation, but the OpenMRS core README does not describe an application audit log. Audit logs must cover the whole observation window, so confirm what your build records before it opens.
AICPA SOC 2 overview93 Annex A controls
ISO/IEC 27001:2022 Annex A lists 93 controls in four themes: organizational (37), people (8), physical (14) and technological (34), and for an EMR the technological group carries most of the platform weight. It includes privileged access rights (8.2), secure authentication (8.5), information backup (8.13), logging (8.15) and change management (8.32). Your statement of applicability decides which controls apply and why, and physical controls usually sit with whoever runs the data center or cloud account.
Three-year certification cycle
An ISO/IEC 27001 certification runs on a three-year cycle, with at least one audit, either surveillance or recertification, in every calendar year. The certificate covers the organization's management system, so OpenMRS or Bahmni appear only as parts of that system, and IAF MD 29:2024 required accredited certification bodies to apply ISO/IEC 27006-1:2024 to all clients by 31 March 2026. Ask the certification body for its audit calendar before you choose a platform, since logs and change records must hold up at every visit.
How each side meets SOC 2 and ISO 27001 controls as documented
This table compares what the OpenMRS core project and the Bahmni wiki document for control areas that SOC 2 and ISO 27001 assessors examine. Read each row as a starting point for questions to the vendor, because documentation describes features and defaults, while operating evidence comes from your own deployment. The main takeaway: Bahmni documents more application-level audit and access detail, OpenMRS documents dependency tooling and default credential guidance, and neither side documents a vendor assurance report.
| Control area | OpenMRS as documented | Bahmni as documented |
|---|---|---|
| Application audit logging | The README does not describe an application audit log. Confirm logging in the OpenMRS documentation. | The Admin module Audit Logs record sign-ins, failed logins, dashboard opens, registrations, visits, encounters and report printing. |
| Dependency security | Core repository uses Dependabot, Snyk badges and a dependency-check suppressions file. Ask for scan results and triage records. | No dependency scanning practice is stated in the Bahmni security material. Ask how it scans and patches dependencies. |
| Authentication and two-factor | Confirm login, password and two-factor options in the OpenMRS documentation before mapping them to your access controls. | Reuses the OpenMRS session and credentials. A bypass2FA role disables two-factor authentication for a user. |
| Access model | Confirm the role and privilege model in the OpenMRS documentation space and map it to your access reviews. | Access is granted through roles that bundle privileges. Users must log out and back in for role changes to apply. |
| Default credentials | Docker documentation lists default scheduler dashboard credentials (admin / Admin123) for local use and advises a strong password elsewhere. | No default credential guidance is stated in the Bahmni security material. Confirm first-run passwords in your own deployment. |
| Vendor assurance documents | No SOC 2 report or ISO certificate is documented. Request any such document in writing from OpenMRS Inc. | No SOC 2 report or ISO certificate is documented. Request any such document in writing from the Bahmni Coalition. |
| Hosting and encryption | Offered as a standalone package, a Tomcat WAR with MySQL, or an O3 container stack. Confirm encryption at rest and in transit. | Docker Compose setups for Bahmni Lite and Standard. Confirm encryption settings, key handling and backup encryption in your environment. |
Where the Bahmni bundle widens the audit scope
Choosing Bahmni Lite widens the SOC 2 and ISO 27001 boundary because the bundle is more than OpenMRS. The Lite Docker Compose stack runs OpenMRS, the Bahmni web and apps frontends, a Bahmni Lab service, appointments, patient documents, reports, and Crater for billing. Metabase, Bahmni Mart, an SMS service and SNOMED Snowstorm Lite run only when their optional profiles are enabled. Every component that holds patient data or credentials belongs in the system description, with its own access review, logging and change evidence. A Type 2 report tests whether those controls operated across the period, so a service enabled for a short pilot still counts if it touched patient records. Start by listing every container and profile that is actually running, then map each one to the owner who approves its access and changes.
The version question comes first, because it fixes what the scope actually contains. The bahmni-docker repository offers two configurations, Bahmni Lite and Bahmni Standard, and its .env file points to the 1.0.0 image tag, which the repository calls the stable, tested version of Bahmni Lite v1.0.0. That tells you what the project tested, not what your production environment runs. Confirm which tag runs in production by checking the image on every running container, and check whether any image was rebuilt or pinned differently. Keep the upgrade history, since change management evidence depends on it. Then ask your implementation partner or the Bahmni community what Bahmni Standard adds in components, databases and integrations. A Standard deployment may widen the boundary further, so scope it on its own and do not assume it matches Lite.
A smaller OpenMRS-only boundary is not automatically lower risk, because the logging and evidence work moves to your side. The Bahmni wiki says its Audit Logs feature sits in the Admin module and records sign-ins and sign-outs, failed logins, dashboard openings, patient registration, visit and encounter events, and report generation or printing, as documented on its Audit Logs page. The OpenMRS core README does not describe an application audit log, so a plain OpenMRS deployment needs its own logging and retention design. Two access points need review in either case. The openmrs-core Docker documentation lists default scheduler dashboard credentials for local use and advises a strong password elsewhere, and the Bahmni security page warns against assigning the bypass2FA role directly. Export role assignments, confirm nobody holds that role, and record role changes with a time stamp, since they apply only after the user logs out and back in.
How audit evidence flows from the platform to the assessor
The diagram starts with a staff member signing in. Bahmni reuses the OpenMRS session and credentials, so the sign-in step is shared by both layers. Bahmni's documented audit log, in its Admin module, records events such as sign-ins, failed login attempts, patient registration and report printing. Those entries are retained in a log store the organization runs, and the assessor will ask how long they are kept. Change records and dependency scan output join the same evidence pack, along with the two-factor exception register and proof of the default credential change. The CPA or certification body samples from that pack from outside the boundary. Confirm the OpenMRS side of the audit trail, because the core README does not describe an application audit log.
Evidence leaves the organization's boundary only as a pack the assessor samples.
Evidence an assessor asks for and how each side produces it
Access evidence is usually the first set an assessor requests, because it shows whether logical access controls match the documented design. The Bahmni wiki security page says Bahmni reuses the OpenMRS session and credentials, assigns roles instead of individual privileges, and requires users to log out and back in before a role change applies. OpenMRS supplies the platform but no access package, so the client builds this evidence set. Prepare:
- Role matrix: a table mapping each role to the privileges it carries, reviewed against the job functions in your access policy.
- User list with role assignments: a dated export from the running system showing every account, its roles, its status and its last review.
- Two-factor bypass register: each account holding the
bypass2FArole, with the business reason, the approver and the review date. The wiki says this role disables two factor authentication and should not be assigned directly, so the register should stay short and justified. - Role change proof: a dated record showing that a changed role took effect after the user logged out and back in, with before and after exports.
- Default credential records: for each non-local environment, evidence that the default scheduler dashboard login listed in the OpenMRS Docker documentation was replaced with a strong password.
Check that the role matrix, user export and bypass register carry the same review date, because assessors compare them against each other during sampling.
Application logs show who did what in the clinical system and when. The Bahmni wiki audit logs page places the audit log feature in the Admin module and lists the events it records, so sample extracts from that module are the core artifact on the Bahmni side. The openmrs-core README does not describe an application audit log, so on the OpenMRS side the client must confirm what log output exists, where it is written and how long it is kept. Prepare sample extracts covering:
- Sign-ins, sign-outs and failed logins: entries showing user, time and outcome, with failed attempts grouped so an assessor can see review activity.
- Dashboard opens and registrations: entries for opening a patient dashboard and registering a patient, with the user and the record identifier, which support access sampling.
- Visits and encounters: entries for visit open and close and encounter creation, showing that clinical record activity is attributable to a named user.
- Report generation and printing: entries for reports generated or printed, which matter for data leaving the system.
- OpenMRS log output (client-confirmed): written confirmation of the log destination, the fields recorded and the retention setting in your environment, with extracts from your own deployment.
Confirm that every sampled entry carries a user identity and a timestamp, and that the extract window covers the full audit period, because gaps there prompt the first follow-up questions.
Change and dependency evidence shows how the platform moves between versions and which known vulnerable components it carries. The openmrs-core repository uses Dependabot, Snyk badges and a dependency-check suppressions file. The Bahmni Lite configuration in the bahmni-docker repository points its .env file to the 1.0.0 image tag as the stable, tested version of Bahmni Lite v1.0.0. Badges show that tools are configured, not what a scan found in your build, so assessors expect exported scan output and dated records. Prepare:
- Release records: for each change, the ticket, the version deployed, the approver, the test evidence and the deployment date.
- Dependency scan output: exported results from a scanner run against your own build, with severity and how each finding was resolved or accepted.
- Suppression decisions: for each entry in the dependency-check suppressions file and each accepted finding, the reason, the owner and the review date.
- Image tag per environment: the exact image tag running in each environment, such as the 1.0.0 Bahmni Lite tag or your own build tag, with its deployment date.
- Upgrade and rollback trail: test results and rollback steps for each OpenMRS or Bahmni upgrade, since assessors often sample a change window.
Match each production image tag to a release record and a scan run from the same build, because a mismatch usually widens the sample.
The walkthrough is where the assessor reads the system description, the scope statement and the sampling plan before testing any control. For a SOC 2 Type 2 report, the system description and the examination period must match the evidence in the other tabs, and the AICPA Trust Services Criteria define the categories in scope. For ISO 27001, the management system scope and the Annex A control decisions must describe the same platform. Prepare:
- System description: the components in scope. For Bahmni Lite this includes the OpenMRS and Bahmni frontends, the lab service, appointments, patient documents, reports and Crater billing, plus any optional profiles you enable, each marked in or out of scope with reasons.
- Deployment package: the OpenMRS option you run, whether the standalone package, the WAR file on Apache Tomcat with MySQL, or the O3 container stack, because the description and evidence differ by package.
- Scope statement: for SOC 2, the Trust Services Criteria categories chosen, with the common criteria CC1 to CC9 applying to every SOC 2 report. For ISO 27001, the ISMS boundary and the Annex A controls applied or excluded, with reasons.
- Sampled populations: for the Type 2 period, the populations of users, changes, incidents and log events the assessor samples from, plus a completeness check for each population.
- Certification timing: for ISO 27001, the three-year certification cycle with at least one audit in every calendar year, so the evidence set covers surveillance audits as well as recertification.
Ask your auditor to confirm the examination period and population definitions in writing before fieldwork, because both change which evidence in the other tabs is needed.
Configuring the chosen side for an audit: the first steps
This sequence sets up the chosen platform in the order an assessor will test it, from the audit boundary through logging, access and patching to a dry run that produces samples. Each step names who owns it and the evidence it leaves behind. Run it in a staging copy of the production configuration so the evidence reflects what will be audited.
Fix the audit scope in writing
The compliance lead agrees the audit scope with the CPA or certification body before any control is configured. For SOC 2, confirm whether the engagement is a Type 1 or Type 2 report and which trust services categories beyond security are in scope. For ISO 27001, confirm the ISMS boundary, including the systems and sites inside it. Name the OpenMRS or Bahmni instances, databases, backups, reporting tools and admin consoles explicitly, and ask the assessor to confirm the period a Type 2 report should cover. The output is a written scope statement the assessor has confirmed, which every later step refers back to.
Inventory components and the data they hold
Platform engineering lists every component, its version and its hosting location, then pairs each one with the data it holds and a named data owner. For Bahmni, cover the OpenMRS core, the web and apps frontends, the lab service, appointments, patient documents, reports, billing and any optional profiles that are switched on. For OpenMRS, cover the platform build, each module, the application server, the MySQL or embedded database and any O3 containers. The output is an asset register that traces to each in-scope control, and it is complete only when every running component appears in it.
Verify and retain Bahmni audit events
A named log owner in operations or security takes responsibility for the Bahmni audit log. Bahmni's Audit Logs page places the feature in the Admin module and lists the events it records: sign-ins and sign-outs, failed login attempts, opening a patient's dashboard, patient registration, visit open and close, encounter creation, and report generation or printing. Trigger each event once in a test environment using test patients, then confirm each one appears with the user, the time and the object affected. Confirm with the implementer how long logs are kept and how they are exported. The output is a test extract and a retention record signed by the log owner.
Define and test OpenMRS application logs
The OpenMRS developer or implementer defines which application events the platform writes to logs, because the openmrs-core README does not describe an application audit log. Agree the event list with the security engineer. It should cover authentication outcomes, record access, record creation and change, privilege and role changes, and administrative configuration changes. Configure the log output, send it to the same central store used for the Bahmni events, and trigger each event on purpose to show that it arrives with the actor, timestamp and affected record. The output is a logging specification and a test record for every event on the list.
Remove default credentials and bypass2FA assignments
The platform administrator and security lead remove the shortcuts that weaken authentication. The openmrs-core Docker documentation lists default scheduler dashboard credentials for local use and advises a strong password elsewhere, so change them in every development, test, staging and production instance, and check restored backups and copied configuration files. In Bahmni, search for users holding the bypass2FA role, which disables two factor authentication and should not be assigned directly. Remove each one, or record an approved exception with the approver, the reason and the compensating control. The output is an account export showing no default credentials and a bypass register.
Set the role model and test re-login
The application administrator maps each job to a role and removes direct grants of individual privileges. Business owners approve the contents of each role before go-live. Then test the behaviour: change one test user's role, confirm the old access still applies until that user logs out, and confirm the new access applies after they sign in again. Bahmni's security page says users must log out and back in for role changes to apply, so the test confirms that the team's onboarding and offboarding steps account for it. The output is a signed role matrix and a re-login test record.
Set dependency scanning and dated patch records
The engineering lead sets up dependency scanning on the build that is actually deployed, not only on the upstream repository. The openmrs-core project uses Dependabot, Snyk badges and a dependency-check suppressions file, so confirm which of these tools run against your modules and distribution. Review each suppression with its recorded reason and date. Extend coverage to the operating system, the database and the application server, which platform-level scanning may not reach. Each patch gets a record showing the date applied, the version moved to and the test result. The output is scanner reports, a reviewed suppressions file and a dated patch log.
Run a dry walkthrough and collect samples
The compliance lead runs a dry walkthrough as an internal assessor would, before the external assessor arrives. Pull a sample from each control: users with their role history, patient access and audit events, configuration changes and the patch log. Ask the assessor in advance which samples and formats they expect. Record each gap with an owner and a fix. DeployOpen can prepare the systems, controls and evidence for the assessment, but the audit report itself comes from the independent CPA or certification body. The output is an evidence index mapped to control IDs and a gap list with named owners.
What buyers ask before hiring help for an audit
Can I buy a SOC 2 report or ISO 27001 certificate for OpenMRS or Bahmni?
No. A SOC 2 report and an ISO/IEC 27001 certificate both describe an organization, meaning the operator's people, processes and systems, so neither platform comes with one. Ask the maintainers and distributors in writing for any platform-level document they can provide, such as a security policy, vulnerability handling process or dependency management practice, and confirm the date and scope of each. Your organization's own report or certificate covers your hosting, access control, change management and staff, and the platform is one component inside it. The AICPA's SOC 2 overview explains the two report types. Treat any compliance statement from a maintainer as a claim to verify against the source document.
How much effort does audit preparation take for OpenMRS or Bahmni?
The effort depends on four drivers, and no effort figure is given here, so ask for one tied to a written scope. The drivers are:
- Scope size: how many systems, environments and trust services categories or Annex A controls are in the audit boundary.
- Bundled components: Bahmni combines OpenMRS with other products, so each bundled component adds systems to describe, patch and evidence.
- Management system maturity: existing policies, risk register, access reviews and change records shorten preparation when they already exist.
- Log retention and environment count: audit log retention periods and the number of environments each need documented settings and sampled evidence.
Bahmni's audit log feature in the Admin module can supply some of that evidence, but retention and review are decisions you make and document.
How far ahead should we start preparing for a SOC 2 or ISO 27001 audit?
It depends on the report type, so confirm the period and timing with your auditor before you set a date. A SOC 2 Type 1 report covers the system description and the design of controls as of a single date, so preparation centers on getting the controls in place before that date. A SOC 2 Type 2 report adds an opinion on operating effectiveness over a period, and the controls must work throughout that period, so start before the window opens, and agree its length with the auditor. An ISO/IEC 27001 certification cycle under ISO/IEC 17021-1 lasts three years, with at least one audit in every calendar year, either surveillance or recertification. Plan evidence collection around that yearly rhythm from the first day.
Can our own team prepare for an audit without an outside partner?
Yes, if the team has audit experience and enough time to run the work alongside its normal duties. The project needs four kinds of input, and each one should have a named owner:
- A system owner who is accountable for the platform, its scope and its risk decisions.
- A security lead who designs controls, keeps the policy set current and collects evidence.
- Infrastructure staff who own hosting, backup, logging, patching and access to servers and databases.
- HR input for onboarding, offboarding, training records and background checks where your policies require them.
Confirm early whether anyone on the team has been through an audit before. An outside partner can help with the parts you lack, but the controls and the evidence remain your responsibility.
What does DeployOpen do for SOC 2 or ISO 27001 audit preparation?
DeployOpen prepares systems, controls and evidence for compliance assessments, and it runs security testing with retests, under a scope agreed in writing before work starts, as most engagements are fixed-scope. In practice that can cover:
- Deploying and configuring the self-hosted platform in your own cloud account, data center or air-gapped network, with the access control and logging settings your assessor will review.
- Documenting the controls and collecting the evidence your auditor will ask for, such as configuration records and access settings.
- Security testing of the platform and its integrations, followed by retests to confirm fixes.
DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies do that work, and you should confirm their scope and fees with them directly.
What should a quote for SOC 2 or ISO 27001 audit preparation include?
A quote should follow from a written scope, since DeployOpen does not publish a price list. Ask for the quote to state:
- Scope: which framework, which SOC 2 categories or ISO 27001 Annex A controls, and which processes are in the boundary.
- Components: whether the work covers OpenMRS alone or a Bahmni configuration, and each bundled or integrated component.
- Environments: which development, test, staging and production environments are covered, and how each is documented.
- Evidence deliverables: the named documents, configuration records and log extracts the engagement will produce.
- Retest and sign-off: what testing is included, how many retests, and who accepts each deliverable.
Also confirm what is excluded, such as auditor fees, your staff time and any ongoing support retainer.
How DeployOpen prepares the platform and evidence for an audit
DeployOpen plans, builds and documents OpenMRS or Bahmni inside your own infrastructure, so the controls and evidence an assessor reviews come from your environment. Work starts with a written, fixed scope that names the SOC 2 criteria or ISO/IEC 27001:2022 Annex A controls in play. DeployOpen prepares systems, controls and evidence for the assessment, but independent auditors and certification bodies issue the report or certificate.
How we scope
- Fixed-scope engagement: systems, hosting locations and services written down before work starts.
- For SOC 2, agree which Trust Services Criteria categories apply, with the common criteria covering security in every case.
- For ISO/IEC 27001:2022, agree the Annex A controls that apply and the justification for any exclusions.
How we build
- Configure OpenMRS or Bahmni access control, roles and session settings to match the agreed control list.
- Restrict the Bahmni bypass2FA role and manage access through roles only.
- Plan audit logging for OpenMRS, since the core project does not describe a built-in application audit log.
How we hand over
- A control-by-control evidence map linking each in-scope criterion or Annex A control to its configuration, log or document.
- Runbooks for backup, restore, upgrades and access reviews, so your team can repeat them after handover.
- For Bahmni, sample exports from the audit log covering sign-ins, failed logins and patient registration.
How we support
- Retainers for ongoing support, upgrades and continuous testing as the platform and controls change.
- Security testing of the platform and its integrations, with findings tracked to closure before the assessment.
- Confirm with your auditor the evidence period and sampling they need, since auditors and certification bodies issue the result.
Sources and further reading
- AICPA 2017 Trust Services Criteria with revised points of focus ↗
- AICPA SOC 2: SOC for Service Organizations, Trust Services Criteria ↗
- NIST Privacy Framework crosswalk to the AICPA 2017 Trust Services Criteria (2023) ↗
- Audit Logs - Bahmni Wiki ↗
- EMR Security and Access Control (OpenMRS) - Bahmni Wiki ↗
- openmrs/openmrs-core GitHub repository ↗

