Healthcare programs face vital challenges managing huge quantities of knowledge whereas sustaining regulatory compliance, safety, and efficiency. This submit explores methods for implementing a multi-tenant healthcare system utilizing Amazon OpenSearch Service.
On this context, tenants are distinct healthcare entities, sharing a standard platform whereas sustaining remoted information environments. Hospital departments (like emergency, radiology, or affected person care), clinics, insurance coverage suppliers, laboratories, and analysis establishments are examples of those tenants.
On this submit, we tackle widespread multi-tenancy challenges and supply actionable options for safety, tenant isolation, workload administration, and value optimization throughout various healthcare tenants.
Understanding multi-tenant healthcare programs
Tenants in healthcare programs are various and have distinct necessities. For instance, emergency departments want round the clock excessive availability with subsecond response instances for affected person care, together with strict entry controls for delicate trauma information. Analysis departments run complicated, resource-intensive queries which are much less time-sensitive however require strong anonymization protocols to keep up HIPAA compliance when working with affected person information. Outpatient clinics function throughout enterprise hours with predictable utilization patterns and average efficiency necessities. Administrative programs give attention to monetary information with scheduled batch processing and require entry to billing info and insurance coverage particulars solely. Specialty departments like radiology and cardiology have distinctive necessities particular to the duties they carry out. For instance, radiology requires excessive storage capability and bandwidth for big medical imaging recordsdata, together with specialised indexing for metadata searches.
Understanding tenant necessities is crucial for designing an efficient multi-tenant structure that balances useful resource sharing with acceptable isolation whereas sustaining regulatory compliance.
Isolation fashions
OpenSearch’s hierarchical construction consists of 4 principal ranges. On the high degree is the area, which incorporates a number of nodes that retailer and search information. Throughout the area, indexes include paperwork and outline how they’re saved and searched. Paperwork are particular person data or information entries saved inside an index, and every doc consists of fields, that are particular person information components with particular information varieties and values.
Indexes embody mappings and settings. Mappings outline the schema of paperwork inside an index, specifying subject names and their information varieties. Settings configure numerous operational features of an index, such because the variety of main shards and duplicate shards.
The isolation mannequin in a multi-tenant OpenSearch system will be at area, index, or doc degree. The mannequin you choose to your multi-tenant healthcare system impacts safety, efficiency, and value. For healthcare organizations, as depicted within the following diagram, a hybrid strategy usually works greatest, matching isolation ranges to tenant necessities.

Multi-Tenancy Isolation Fashions
For emergency items, think about domain-based isolation, offering most separation by deploying separate OpenSearch domains for every tenant. Though it’s costlier, it reduces useful resource competition and supplies constant efficiency for important programs. This isolation simplifies compliance by bodily separating delicate affected person information.
Equally, for medical analysis tenants, think about domain-based isolation regardless of its larger price. Given the resource-intensive nature of analysis workloads—notably genomics and inhabitants well being analytics that course of terabytes of knowledge with complicated algorithms—separate domains forestall these demanding operations from impacting different tenants.
For specialty departments like cardiology or radiology, the place workload patterns are related however information entry patterns are distinct, index-based isolation is an efficient match. These departments share a site however preserve separate indexes. This strategy supplies robust logical separation whereas permitting extra environment friendly useful resource utilization.
For administrative departments the place information is much less delicate, a document-based isolation is adequate, and a number of tenants can share the identical indexes.
Information modeling
Efficient information modeling is essential for sustaining efficiency and manageability in a multi-tenant healthcare system. Implement a constant index naming conference that includes tenant identifiers, information classes, and time intervals like {tenant-id}-{data-type}-{time-period}
. Tenant-id
identifies the entity, for instance, cardiology. Examples of the indexes are cardiology-ecg-202505
or radiology-mri-202505
. This structured strategy simplifies information administration, entry management, and lifecycle insurance policies.
Take into account information entry patterns when designing your index technique. For instance, for time-series information like very important indicators or telemetry readings, time-based indexes with acceptable rotation insurance policies will enhance efficiency and simplify information lifecycle administration.
For shared indexes utilizing document-based isolation, make sure that tenant identifiers are constantly utilized and listed for environment friendly tenant-based filtering.
Tenant administration
Efficient tenant administration prevents useful resource competition and supplies constant efficiency throughout your healthcare system. Implement a hybrid isolation mannequin utilizing a tenant tiering framework primarily based on criticality. The next desk outlines the tiering framework.
Tier | Tenant Sort | SLA | Sources | Operational Limits | Conduct |
Tier-1 Important |
Emergency departments ICU/Important care Working rooms |
24/7 SLA 99.99% Sub-second response RPO: Close to zero RTO: Lower than quarter-hour |
Assured 50% CPU, 50% reminiscence Devoted sizzling nodes 2 replicas minimal |
100 concurrent requests 20 MB request measurement 30-second timeout No throttling |
Precedence question routing Preemptive scaling Computerized failover |
Tier-2 Pressing |
Inpatient items Specialty departments Radiology/imaging |
24/7 SLA with 99.9% availability Lower than 2-second response time RPO: Lower than quarter-hour RTO: Lower than 1 hour |
Assured 30% CPU, 30% reminiscence Shared sizzling nodes 1–2 replicas |
50 concurrent requests 15 MB request measurement 60-second timeout Restricted throttling throughout peak |
Excessive-priority question routing Computerized scaling Automated restoration |
Tier-3 Commonplace |
Outpatient clinics Major care Pharmacy Laboratory |
Enterprise hours SLA (8 AM – 8 PM) 99.5% availability Lower than 5-second response time RPO: Lower than 1 hour RTO: Lower than 4 hours |
Assured 15% CPU, 15% reminiscence Shared nodes 1 duplicate |
25 concurrent requests 10 MB request measurement 120-second timeout Reasonable throttling |
Commonplace question routing Honest thread allocation Guide scaling Enterprise hours optimization |
Tier-4 Analysis |
Scientific analysis Genomics Inhabitants well being |
Finest-effort SLA, as much as 99% availability Lower than 30-second response time RPO: Lower than 24 hours RTO: Lower than 24 hours |
Assured 5% CPU, 10% reminiscence Burst capability throughout off-hours 0–1 replicas |
10 concurrent requests 50 MB request measurement 300-second timeout Aggressive throttling throughout pea |
Compute optimized cases Giant heap measurement Analysis-specific plugins |
Tier-5 Admin |
Billing/finance HR programs Stock administration |
Enterprise hours SLA (9 AM – 5 PM) 99% availability Lower than 10-second response time RPO: Lower than 24 hours RTO: Lower than 48 hours |
No assured assets Burstable capability UltraWarm for historic 1 duplicate |
5 concurrent requests 5 MB request measurement 180-second timeout Aggressive throttling |
Lowest precedence question routing Batch processing most well-liked Off-hours scheduling Price-optimized storage |
Workload administration
If you use OpenSearch Service for multi-tenancy, you will need to steadiness your tenants’ workloads to ensure you ship the assets wanted for every to ingest, retailer, and question their information successfully. A multi-layered workload administration framework with a rule-based proxy and OpenSearch Service workload administration can successfully tackle these challenges. For particulars, see this weblog submit: Workload administration in OpenSearch-based multi-tenant centralized logging platforms.
Safety framework
Healthcare information requires safety resulting from its delicate nature and regulatory necessities. The OpenSearch Service safety framework is particularly adaptable to healthcare’s strict safety necessities. This framework combines a number of layers of entry management, captured within the following diagram.

Multi-tenancy fine-grained entry management in Amazon OpenSearch Service
An essential step on this framework is position mapping, the place AWS Id and Entry Administration (IAM) roles are mapped to OpenSearch roles for role-based entry management (RBAC). For instance, emergency departments can implement the ED-Doctor
position with entry to affected person historical past throughout departments, and the ED-Employees
position with entry to very important signal and medicine information. You’ll be able to map emergency division roles to OpenSearch roles.
With document-level safety (DLS), you possibly can restrict emergency division employees to lively emergency sufferers solely whereas proscribing entry to discharged affected person information solely to the suppliers who deal with them. With field-level safety (FLS), you possibly can enable entry to medical fields whereas masking billing and insurance coverage information. You may as well present attribute-based entry management (ABAC) insurance policies to permit entry primarily based on affected person standing.
For analysis departments, you possibly can create Scientific-Researcher
roles with read-only entry to datasets. Combine tutorial roles to analysis roles to ensure researchers solely entry information for research they’re licensed to conduct. For DLS, implement filters to ensure researchers solely entry authorised paperwork. Use FLS to anonymize HIPAA identifiers. For analysis departments, ABAC ought to consider the examine part and researcher’s location.
For outpatient care, you possibly can outline Medical-Supplier
roles with full entry to assigned sufferers’ data and Medical-Assistant
roles restricted to documenting vitals and preliminary info. For DLS, restrict entry to affected person’s physicians solely. For FLS, limit entry to medical information solely, whereas limiting nurses to demographic, very important indicators, and medicine fields. Implement time-aware ABAC insurance policies that limit entry to affected person data exterior of enterprise hours until the supplier is on-call.
For administrative departments, you possibly can implement Monetary
roles with entry to cost codes and insurance coverage info however no medical information. For DLS, make sure that monetary employees solely entry billing paperwork. FLS supplies entry to billing codes, dates of service, and insurance coverage fields whereas masking medical content material.
For specialty departments, you possibly can create technician roles like Radiologist
and apply DLS filters proscribing entry to the information to those roles and referring doctor. FLS permits technicians to see medical historical past and former findings particular to their specialty.
Allow complete audit logging to trace entry to protected well being info. Configure these logs to seize person identification, accessed information, timestamp, and entry context. These audit trails are important for regulatory compliance and safety investigations.
Managing information lifecycle for compliance
Index State Administration (ISM) capabilities mixed with OpenSearch Service storage tiering allow an elaborate strategy to information lifecycle administration that may be tailor-made to various tenant wants. ISM supplies a strong strategy to automate the lifecycle of indexes by defining insurance policies that dictate transitions between Scorching, UltraWarm, and Chilly storage tiers primarily based on standards like index age or measurement. This automation can prolong to the archive tier by creating snapshots, that are saved in Amazon Easy Storage Service (Amazon S3) and will be additional transitioned to Amazon S3 Glacier or Glacier Deep Archive for long-term, cost-effective archiving of knowledge that’s not often accessed.
Body your ISM coverage alongside the next tips:
Hold important affected person information in sizzling storage for 180 days to help speedy entry. Transition to heat storage for the subsequent 12 months, then transfer to chilly storage for years 2–7. After 7 years, archive data.
For analysis information advantages, use project-based lifecycle insurance policies slightly than strictly time-based transitions. Preserve analysis datasets in sizzling storage throughout lively venture phases, no matter information age. When initiatives conclude, transition information to heat storage for 12 months. Transfer to chilly storage for the next 5–10 years primarily based on analysis significance. Afterward, archive data.
For outpatient clinic information, maintain current affected person data in sizzling storage for 90 days, aligning index rollover with typical follow-up home windows. Transition to heat storage for months 4–18, coinciding with widespread annual go to patterns. Transfer to chilly storage for years 2–7. Archive after 7 years.
For administrative information, preserve present fiscal yr information in sizzling storage with automated transitions at year-end boundaries. Transfer earlier fiscal yr information to heat storage for 18 months to help auditing and reporting. Transition to chilly storage for years 3–7. Archive monetary data after 7 years.
For the specialty division information, maintain current metadata in sizzling storage for 90 days whereas shifting giant recordsdata, like pictures, to heat storage after 30 days. Transition full data to chilly storage after 18 months. Archive after 7 years.
Price administration and optimization
Healthcare organizations should steadiness efficiency necessities with price range constraints. Efficient price administration methods are important for sustainable operations.
Implement complete tagging methods that mirror your index naming conventions to create a unified strategy to useful resource administration and value monitoring. Just like the index naming conference, design your tags to determine the tenant, software, and information kind (for instance, “tenant=cardiology
” or “software=ecg
“). These tags, mixed with AWS Price Explorer, present visibility into bills throughout organizational boundaries.
Develop price allocation mechanisms that pretty distribute bills throughout completely different tenants. Take into account implementing tiered pricing buildings primarily based on information quantity, question complexity, and service-level ensures. This strategy aligns prices with worth and encourages environment friendly useful resource utilization.
Optimize your infrastructure primarily based on tenant-specific metrics and utilization patterns. Monitor doc counts, indexing charges, and question patterns to right-size your clusters and node varieties. Use completely different occasion varieties for various workloads—for instance, use compute-optimized cases for query-intensive functions.
Use OpenSearch Service storage tiering to optimize prices. UltraWarm supplies vital price financial savings for sometimes accessed information whereas sustaining cheap question efficiency. Chilly storage affords even larger financial savings for information that’s not often accessed however should be retained for compliance functions.
Conclusion
Constructing a multi-tenant healthcare system on OpenSearch Service requires cautious planning and implementation. By addressing tenant isolation, safety, information lifecycle administration, workload management, and value optimization, you possibly can create a platform that delivers improved operational effectivity whereas sustaining strict compliance with healthcare rules.
Concerning the Authors
Ezat Karimi is a Senior Options Architect at AWS, primarily based in Austin, TX. Ezat focuses on designing and delivering modernization options and methods for database functions. Working intently with a number of AWS groups, Ezat helps prospects migrate their database workloads to the AWS Cloud.
Jon Handler is a Senior Principal Options Architect at Amazon Net Companies primarily based in Palo Alto, CA. Jon works intently with OpenSearch and Amazon OpenSearch Service, offering assist and steering to a broad vary of shoppers who’ve vector, search, and log analytics workloads that they wish to transfer to the AWS Cloud. Previous to becoming a member of AWS, Jon’s profession as a software program developer included 4 years of coding a large-scale, ecommerce search engine. Jon holds a Bachelor’s of the Arts from the College of Pennsylvania, and a Grasp’s of Science and a PhD in Pc Science and Synthetic Intelligence from Northwestern College.