An application handling health data is built differently from an ordinary SaaS product. The data enjoys special protection under the GDPR and the Swiss FADP, healthcare customers vet providers strictly, and depending on the purpose, medical device law applies. Most of these requirements can be met with an architecture designed for them from the start; retrofitting is expensive.
Separation, encryption and access logs
Identity data and health data are stored separately and linked only by keys, so access to one table alone does not expose complete profiles. All data is encrypted in transit and at rest; particularly sensitive fields can additionally be encrypted at field level, with keys in a separate key management service. Every access to health data is logged, immutably, with person, time and purpose.
Tenant isolation in the database
For platforms serving several practices, clinics or organisations, separation belongs in the database, for example through row-level security. An error in application code must never let one organisation see another’s data. Tests that deliberately request foreign data belong in the automated test suite.
Hosting and the path of data
Customers in Swiss healthcare often expect hosting in Switzerland, customers in the EU hosting in the EU. The question does not end with the database: backups, logs, email delivery, error monitoring and support tools can contain health data and must be included. Analytics and advertising tools have no place in such an application.
Data protection and product law
A data protection impact assessment is generally mandatory for large-scale processing of health data. If the software has a medical purpose, it is a medical device and needs a quality management system and conformity assessment. This boundary should be settled before the architecture decision, because it determines processes for development, testing and change.
Assumptions that fail audits
- Health data in error messages and logs.
- Administrative access without logging.
- Backups without encryption or in a different region from the database.
- Export functions without permission checks.
- Third-party scripts in the frontend.
The legal basis is described in our articles on health data under Article 9 and digital health apps; an independent review is offered by our SaaS security audit.

