Blog / Healthcare software
What healthcare software has to get right about patient data
Health information is among the most sensitive data a product can hold. A leak can expose someone’s diagnosis to an employer, a family or the public. Laws treat it accordingly: the Nigeria Data Protection Act places health data in its sensitive category, and in the United States, HIPAA governs health information handled by healthcare providers, insurers and the companies that work for them.
This post covers what the software itself has to get right. It is not legal advice; compliance depends on your organisation as a whole, and you should work with a qualified adviser.
Who can see what
Most health data problems are not hackers. They are staff seeing records they had no reason to open. Build access around roles from day one:
- A receptionist sees appointments, not clinical notes.
- A nurse sees the patients on their ward or list.
- Administrators manage accounts without reading records.
- Exceptions, such as emergency access, are possible but logged and reviewed.
A record of every look
An audit trail should record not only who changed a record, but who viewed it, and when. When a patient asks who has seen their file, or something leaks, you need the answer. Logs must be tamper-resistant: nobody, including administrators, should be able to quietly delete entries.
Encryption and secrets
- Encrypt data in transit, always, and at rest in databases and backups.
- Keep keys and passwords out of the code, and limit who can reach production systems.
- Encrypt backups too. A stolen backup is a breach.
Collect less, keep it for less time
Ask only for what the service needs. Decide how long each kind of record is kept, following the rules that apply to you, and delete or anonymise data when the time is up. Data you never stored cannot leak.
Consent and transparency
Patients should know what is collected, why, who it is shared with and how to get a copy. Where consent is your basis for processing, it must be a real choice, recorded, and possible to withdraw. Sharing with third parties, such as labs, insurers or analytics tools, needs particular care.
Third-party services
Every service that touches patient data, such as hosting, email, SMS, error tracking and analytics, is part of your risk. List them. In the US, vendors handling protected health information for a covered entity generally need a business associate agreement. Keep patient details out of tools that do not need them, such as error logs and marketing analytics.
When something goes wrong
Have a written plan before you need it: how you detect a breach, who decides what happened, how you find out which records were exposed, and who notifies whom. Under the NDPA, breaches likely to put people at risk must be reported to the Commission within 72 hours of becoming aware. Other laws have their own deadlines.
Do not claim what you have not earned
“HIPAA compliant” and similar claims describe how an organisation operates, not a feature of code. We build access control, logging and data handling into every health product, and we do not put compliance badges on anything that has not been through the process with qualified advisers.
Design every screen as if the patient could see who looked at it. One day, they may ask.
Where this comes from. We do this work for clients. See healthcare software, or the case study on RN411.
Questions about this post? Email contact@naxfront.com. Nancy reads every one.