What technical debt means in healthcare software
Technical debt is the gap between the system you have and the system you would build today with what you now know, measured by the extra cost it imposes on future change. Some debt is deliberate: shipping an interface with hard-coded mappings to meet a go-live date, with a plan to externalize them later. Some is accidental: an architecture that made sense for one clinic and buckles at forty. Some is simply age: a framework that was current in 2016 and is now out of support.
In healthcare, debt carries risks beyond slow delivery. An unsupported library with a known vulnerability is a security exposure for PHI. A tangle of duplicated eligibility logic means a payer rule change gets applied in three places and missed in a fourth. A missing audit log on an old endpoint is a gap against HIPAA audit control requirements. Treating debt purely as an engineering productivity issue undersells it to leadership.
| Type | Example | Primary risk |
|---|---|---|
| Code debt | Duplicated dosing or eligibility logic across services | Inconsistent behavior, defects on change |
| Architecture debt | Monolith where every interface change requires full regression | Slow delivery, risky releases |
| Dependency debt | Runtime or framework past end of support | Unpatched vulnerabilities |
| Integration debt | Point-to-point interfaces with hard-coded mappings | Fragility when partners change |
| Data debt | Free-text codes never mapped to LOINC or SNOMED CT | Unreliable analytics and reporting |
| Test debt | Critical workflows without automated tests | Fear of change, regressions |
| Security and compliance debt | Endpoints without audit logging or with shared service accounts | Audit findings, breach exposure |
| Documentation and knowledge debt | One engineer understands the claims engine | Key-person risk |
Measuring debt without pretending it is precise
No single metric captures technical debt. Use a handful of indicators together and watch trends rather than absolute numbers. Static analysis tools estimate remediation effort, but they cannot see architecture problems or missing tests for business rules. Combine tool output with delivery data and engineer judgment.
- Change failure rate and mean time to restore for each service or module
- Lead time for changes in specific areas compared with the codebase average
- Hotspots: files with both high change frequency and high complexity
- Dependency age and count of components past vendor end-of-support
- Open vulnerabilities by severity and age
- Automated test coverage of critical workflows, traced to the risk register
- Engineer-reported friction, collected through short, regular surveys
Estimating interest: what the debt costs you
The interest on debt is the extra effort and risk you pay every time you work near it. It is what makes the case for paydown. Estimate it in terms leadership already uses: extra engineering days per quarter, delayed features, incidents, or audit exposure.
A practical method: for each significant debt item, ask the engineers who work in that area how much longer typical changes take because of it, and how often those changes happen. Multiply. Then add risk-weighted costs, such as the likelihood and impact of a security incident from an unsupported component, or the cost of a manual workaround that staff perform daily. Precision is not the goal; ranking is.
| Debt item | Interest driver | Rough interest | Paydown effort |
|---|---|---|---|
| Hard-coded HL7 mappings per site | Every new site onboarding requires code changes and a release | Several engineer-weeks per new site | A few sprints to externalize mappings |
| Unsupported reporting framework | Known vulnerabilities, blocked OS upgrade | Ongoing security exposure, compensating controls | One quarter to replace |
| No automated tests on claim pricing | Manual regression each release | Days of QA per release, missed defects | Several sprints to build characterization tests |
| Single engineer owns scheduling engine | Changes queue behind one person | Delays on every scheduling feature | Pairing and documentation over a quarter |
Prioritizing paydown
Prioritize by combining interest, risk, and alignment with upcoming work. Debt that sits in the path of the next roadmap initiative is usually the best investment, because paying it down accelerates something the business already wants. Debt that creates patient safety, security, or compliance risk goes to the top regardless of roadmap.
Avoid two failure modes. The first is the 'debt sprint' every six months that gets cancelled when a deadline looms. The second is treating all refactoring as optional. A steady allocation, such as a fixed share of each team's capacity plus specific funded initiatives for large items, tends to survive contact with real schedules better.
| Category | Criteria | Handling |
|---|---|---|
| Fix now | Patient safety, active security exposure, compliance gap | Scheduled immediately; tracked by leadership |
| Fix with roadmap | High interest in an area the roadmap will change soon | Bundled into the feature work |
| Planned paydown | High interest, not on near-term roadmap | Funded initiative or steady capacity allocation |
| Monitor | Low interest, low risk | Recorded in register; revisit quarterly |
| Accept | Code slated for retirement | Documented decision; no investment |
Running a debt register
A debt register makes debt visible and comparable. Keep it lightweight and close to where engineers work, such as a labeled backlog in the issue tracker with a few required fields, and summarize it for leadership monthly or quarterly. The register is only useful if it is maintained, so make adding and updating entries part of normal work: code reviews, incident retrospectives, and architecture reviews should all feed it.
Checklist
- Unique ID, title, and plain-language description
- Affected system, module, or interface
- Debt type (code, architecture, dependency, integration, data, test, security, knowledge)
- Interest estimate and how it was derived
- Risk rating covering patient safety, security, compliance, and delivery
- Proposed remediation and rough effort
- Owner and target quarter, or an explicit 'accepted' decision
- Link to related incidents, audit findings, or roadmap items
Preventing new debt from piling up
Some new debt is a legitimate business choice. The problem is debt taken on silently. Require that deliberate shortcuts be recorded in the register at the time they are made, with the reason and the intended paydown. Architecture decision records help by making the trade-offs explicit for future engineers.
Guardrails in the pipeline catch accidental debt early: dependency update automation, static analysis quality gates on new code, contract tests for interfaces, and infrastructure-as-code policy checks. Define 'done' to include tests, monitoring, and documentation for anything touching PHI or clinical workflows.
- Architecture decision records for significant design choices
- Automated dependency updates with a defined patch window
- Quality gates on new and changed code rather than whole-repo thresholds
- Definition of done that includes audit logging for PHI access
- Regular review of the register in engineering leadership meetings
Communicating debt to non-engineering leadership
Executives respond to risk, cost, and speed. Translate debt into those terms: 'Onboarding each new hospital takes about a month longer than it should because mappings are hard-coded; fixing that takes one quarter and pays back after the second site,' or 'This reporting server runs software that no longer receives security patches; we have compensating controls, but replacing it removes a finding from our next audit.'
Show trends. A quarterly view of hotspot complexity, out-of-support component counts, and change failure rates in key areas lets leadership see whether investment is working. Celebrate retired debt, including decommissioned systems, so paydown is recognized as delivery.
References
- HHS HIPAA Security Rule
- NIST Secure Software Development Framework (SP 800-218)
- NIST Cybersecurity Framework
- OWASP Top Ten
This guide is educational and is not legal or regulatory advice.
Frequently asked questions
How do you measure technical debt?
Use several indicators together: hotspot analysis combining change frequency and complexity, change failure rate and lead time by area, dependency age and end-of-support components, open vulnerabilities, test coverage of critical workflows, and engineer-reported friction. Track trends over time. No single number is accurate, but together they show where debt is concentrated and whether it is growing.
How much capacity should go to technical debt?
There is no universal figure. Many teams reserve a steady share of each sprint for paydown and fund larger items as explicit initiatives. Debt causing patient safety, security, or compliance risk should be scheduled immediately regardless of allocation. The key is consistency: a steady allocation survives deadlines better than occasional debt sprints.
What should a technical debt register include?
Each entry should have a description, affected system, debt type, an interest estimate, a risk rating covering safety, security, compliance, and delivery, a proposed remediation with rough effort, an owner, and a target date or an explicit decision to accept the debt. Link entries to incidents, audit findings, and roadmap items so priorities are grounded in evidence.
Is technical debt a HIPAA issue?
It can be. Unsupported components with known vulnerabilities, missing audit logging, or shared credentials can undermine safeguards required by the HIPAA Security Rule, such as risk management and audit controls. Debt that affects how ePHI is protected should be treated as a compliance risk and appear in the organization's risk analysis and remediation plans.