Skip to content
All projects

Occupancy and queue analytics in a hospital

Project write-up

The client is described by industry and scale, without a name. KPI figures are targets agreed with the client after a baseline measurement.

In brief

Problem
Management has no current picture of ward occupancy and operating theater utilization.
Approach
We combine data from the HIS into an occupancy and theater utilization model, with dashboards for management and wards.
Goal
Data freshness in reports: ≤ D+1 (or ≤ 15 min for operational data); Share of records meeting quality rules: ≥ 98% in critical tables.

Client context

Medical facilities in Poland operate within the ecosystem of the P1 platform (e-prescriptions, e-referrals, electronic medical records), which dictates integration and testing standards. The client is a provincial hospital with a dozen or so wards, where bed and operating theater planning is done by phone calls and spreadsheets.

Challenge

Management has no current picture of ward occupancy and operating theater utilization. Elective patients are rescheduled, and beds sometimes go unused.

Requirements and constraints

  • GDPR, i.e. Regulation (EU) 2016/679, requires data minimization, a legal basis for processing, processing agreements, and, for high-risk processing, a data protection impact assessment (DPIA). In practice it rules out copying production data into test environments without anonymization or pseudonymization. (source)
  • The Polish Act on the Healthcare Information System regulates electronic medical records, data exchange with the P1 platform (e-prescriptions, e-referrals, electronic medical records), and the rules for accessing patient data. Integrations must be certified and tested in the CeZ (Center for Health Information Systems) integration environment. (source)
  • NIS2, i.e. Directive (EU) 2022/2555, and the amendment to the Polish National Cybersecurity System Act (KSC) require essential and important entities to implement cybersecurity risk management measures and supply chain security, and to report incidents within short deadlines (an early warning within 24 hours). Management is personally liable, so documentation of decisions is part of the product. (source)
  • Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, and every deliverable shipped with documentation the client's team can take over.

Approach and architecture

We start with the few key metrics that are disputed today and design the data model backward from them. We run the migration from the existing data warehouse in parallel: during the transition both systems calculate the same figures, and automated reconciliation comparisons show discrepancies before the board sees them.

We combine data from the HIS into an occupancy and theater utilization model, with dashboards for management and wards. Patient data is pseudonymized in the analytics layer, and access is restricted by role.

Key elements of the solution:

  • A bed and operating theater occupancy model
  • Pseudonymization in the analytics layer
  • Dashboards for management and wards
  • Role-based access

Team and roles

RoleCountResponsibility
Data engineer2pipelines, data model, data quality tests
BI analyst1dashboards, metric definitions, user training
Business analyst1requirements, processes, acceptance criteria
Product owner and domain experts (client side)as neededpriorities, business decisions, acceptance

Phased schedule

PhaseWeeksDeliverable
1. Inventory of sources and metrics1–4metric dictionary, source map
2. Architecture and data model5–9layered model, standards
3. Building pipelines and quality tests10–17pipelines, tests, catalog
4. Reconciliation and parallel running18–22compliance reports
5. Rollout and training23–24dashboards, training, handover

Technology stack

PostgreSQL, dbt, Airflow, Power BI or Metabase.

Risks and how we mitigate them

RiskHow we mitigate it
Processing of especially sensitive dataDPIA before the start, pseudonymization, role-based access, read logging
No test data free of personal dataa synthetic data generator and masking that preserves referential integrity; copying production into tests is prohibited
Low user adoptionchampions in each department, training on their own cases, usage measured from day one

Measurable goals and KPIs

The values below are targets that we set with the client after a baseline measurement in the first phase.

KPITargetHow it is measured
Data freshness in reports≤ D+1 (or ≤ 15 min for operational data)pipeline metadata
Share of records meeting quality rules≥ 98% in critical tablesdata quality tests
Active users of the solution≥ 80% of the target group after 3 monthsusage telemetry

Lessons learned and good practices

A current picture of occupancy changes the conversations between wards. Pseudonymization in the analytics layer resolves most concerns about patient data. Data quality tests must block publication, otherwise nobody reads them.

Why B2B.net

We combine two models: we provide individual specialists and entire teams (time and materials, team leasing), and when a client prefers to hand over responsibility for the outcome, we work at a fixed price for a defined scope. We have access to a large network of engineers in six cities, SAP Center of Expertise competencies, and experience with ISO 27001, DORA, and NIS2 requirements. If someone leaves the team, a replacement is in place within 5 business days.

Acceptance criteria

Each phase ends with formal acceptance against criteria agreed at the start. In this engagement, acceptance covers: metric dictionary, source map; layered model, standards; pipelines, tests, catalog; compliance reports; dashboards, training, handover. Final acceptance requires a KPI measurement report against the baseline, complete documentation handed over to the client's team, and a list of recommendations for the next stage, with a cost and risk assessment for each.

Next step

If you recognize these problems in your organization, let's start with a short diagnosis: one workshop with your team and written recommendations. Write to us at office@b2bnetwork.pl.

What would this look like for you?

Book a 30-minute call. We will prepare a plan for the first weeks and a team matched to your system.

Let's talk

B2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.

More projects: Healthcare