Problems & solutions · Custom Software

Substance Abuse Treatment Software Problems: The 7 That Cost Bed Days and Denied Claims, and How to Avoid Them

Substance Abuse Treatment Software software overview illustration showing common problems and fixes.
The short answer

The most expensive failure at multi site scale is a census that three departments read differently. Admissions says four open beds, clinical says two, and utilisation review knows one of those belongs to a client whose authorisation ran out on Sunday. Nobody is lying; they are each reading a different artifact, and the one everybody trusts is a spreadsheet rebuilt each morning from a photograph of a whiteboard. The cost is a bed sitting empty for two days because nobody knew a discharge was coming, repeated quietly all year. Every operator can quote their revenue per bed day to the dollar, and multiplying that by the empty days is usually the entire business case for fixing it.

Why does the project get scoped as an electronic medical record replacement?

When a centre finally decides its software is the problem, the instinct is to replace the chart. That instinct is almost always wrong and it is the most expensive mistake available in this category. Kipu, Alleva, Ritten and BestNotes are mature charts carrying years of regulatory detail, electronic prescribing, medication administration and scheduling. Rebuilding that buys you nothing a competitor does not already have, and it puts a clinical floor at risk for a year.

The work that actually leaks money sits around the chart, not inside it. Admissions and verification of benefits. A real time bed board with holds, reserved arrivals and projected discharges. Lab results treated as timed events with owners. Payor specific medical necessity checking at the moment a note is written. Longitudinal outcomes that survive an episode ending. Those are the gaps a chart was never designed to fill, and they are where the staff whose whole job is retyping between systems are employed.

The fix is to scope the layer and write it into the contract that way. The build sits on top of the chart and writes back through its interface, and the first release must prove it: a bed board that reconciles to the chart automatically, plus intake with eligibility checking, live within the first release. If the proposal in front of you contains the words medication administration or electronic prescribing, you are being sold a much larger and much worse project.

What goes wrong when charts and historical data are migrated?

Even when you are building the layer rather than replacing the chart, data has to move, and migration is where schedules quietly disappear. Structured data generally behaves: demographics, episodes, authorisations, lab results. The expensive part is everything else. Scanned consents, faxed records from hospitals, free text notes written by clinicians who left three years ago, and consent forms whose scope nobody can reconstruct.

Two traps are specific to this field. The first is consent history under 42 CFR Part 2, which governs disclosure of the fact that a person is in your building at all. A migration that copies records without carrying their consent scope has created a disclosure risk on day one, not a data quality issue. The second is the person versus episode problem. A client who returns eight months later is the same person and a different episode, and legacy systems frequently created a new record instead, so your readmission rate is understated by however many duplicates exist.

The fix is to migrate the last twenty four months into live use and keep an archived read only copy of everything older, which is what most centres we work with settle on. Run identity resolution during migration with a human review queue rather than merging silently. Carry consent scope with every record or leave the record out entirely. Budget migration as its own line item with its own owner, because treating it as a footnote is how a twelve week build becomes a twenty week one.

Why do lab, eligibility and chart integrations break after launch?

Three integrations decide whether this works in production and each fails in its own way. Laboratory results are the most damaging. National laboratories such as Quest Diagnostics and LabCorp generally support a result feed, while regional toxicology partners often provide a portal document or a file drop instead. Parsers built against a sample file break when the laboratory changes its layout, and because results arrive as documents rather than as alerts, nobody notices for days. That is exactly the failure that costs five days of clinical response on a presumptive positive.

Eligibility and claims work through clearing houses until you meet a payor that offers a portal and no interface, at which point a workflow that assumed automation has a human hole in it.

Chart write back breaks when the chart vendor updates its interface or throttles requests, and a queue that was keeping up in month one starts lagging in month six.

The fixes are unglamorous. Normalise results to a standard coding system and map them to your own panel definitions so a positive from one laboratory is the same fact as a positive from another. Put a completeness check on every expected result, so a result that never arrived raises an alert rather than being invisible. Route low confidence document extraction to a human. Monitor write back queue depth, and have a manual path for every automated one, because in a clinical setting a silent failure is discovered by a nurse.

What happens when Part 2 consent and medical necessity are not covered?

These two gaps produce the two categories of loss in this business: regulatory exposure and denied days.

42 CFR Part 2 is not privacy rules with extra paperwork. It changes the data model. You need consent scoped to a named recipient and a stated purpose, the ability to segment substance use records from the rest of a chart, and a log of redisclosure. A generic compliant stack with a signed business associate agreement has not addressed it, and the fix later is a rebuild rather than a patch.

Medical necessity is the other half. A three o'clock concurrent review call goes badly because the notes describe attendance rather than clinical justification, so you get three more days instead of seven and absorb the days already delivered while waiting. What Aetna wants documented for a continued stay at a given level of care is not what Carelon wants, and nobody can hold that in their head at the moment of writing.

The fix is to move both upstream. Consent becomes an object with a recipient, a purpose and an expiry, enforced at the point of disclosure rather than checked afterwards. Note templates carry structured fields mapped to the ASAM dimensions, with a per payor, per level of care checklist that lights up before signature, and the concurrent review packet assembles itself from the last seventy two hours of structured data. Then track every denial reason back to the template that produced it, so documentation improves against the payors that actually deny you.

Should you build custom or configure what you already own?

Some centres should configure and stop reading. One site, thirty beds, one state, two payors, ordinary workflow: buy. Kipu, Alleva, Ritten and BestNotes are mature and building your own is an expensive route to something worse. Most centres that call us do not need a new chart.

Configuration also reaches further than most operators try. The utilisation review modules in Kipu and Sunwave give you somewhere to log the call and the authorisation number, note templates can be restructured to capture dimension evidence rather than attendance, and several centres pay for a customer relationship module they never populated.

Build when two or more of these are true. You employ more than one full time person whose entire job is moving data between systems, which is a payroll line that is really a software line. You have a workflow that is genuinely your edge, such as your own step down criteria, your own outcome instrument, or a referral partner portal for interventionists and drug courts, and the vendor forces you off it. Your denials have a pattern you can name and the vendor roadmap does not include fixing it. Or you run three or more sites paying per bed per month and still have no cross site view.

How do hidden costs get into the quote?

Digital Heroes delivery bands here are $60,000 to $130,000 over 12 to 16 weeks for a focused first release covering admissions, verification of benefits and a live census wired into the existing chart, then $150,000 to $400,000 phased across 6 to 12 months for a full platform. The overruns are almost always in scope that was assumed rather than named.

  • Every laboratory is its own project. A result feed with a national laboratory is a different animal from parsing a regional toxicology partner's document drop.
  • Payors without an interface. Eligibility and claims work is straightforward until you meet a payor with a portal and nothing else, which needs a designed human path.
  • Multi state operation. Different documentation, staffing and bed rules per state, each with its own testing.
  • Part 2 architecture. Consent scoping, record segmentation and redisclosure logging are design work before they are features.
  • Chart migration. Structured data moves; scanned consents, faxes and free text do not, and identity resolution needs human review.
  • Accreditation grade audit logging and uptime. A clinical floor runs at night and at weekends, and the operational work to support that is real.

Ask for each as a named line item. A developer who has delivered in this category will raise most of them before you do.

What separates a build that works from one that fails here?

The systems that work get the data model right in the first week. Person, episode, bed, bed day, authorisation, claim, order, result. If a developer draws patient as one table and cannot explain why an episode and an authorisation have different lifecycles, or why a bed and a bed day are different objects, you are buying a customer relationship tool with clinical words painted on it, and every report it produces afterwards will be subtly wrong.

They also give every clinically significant event an owner and a clock. A presumptive positive is not a document, it is an event with a named recipient, a response time and a task that stays open until somebody acts. That single change is what converts a five day gap into a same day clinical response, and it is worth more than any dashboard in the project.

Where machine assistance belongs is narrow and it should be stated plainly in the contract. Document extraction from insurance cards, discharge summaries and laboratory reports, with human confirmation below a confidence threshold. Discharge forecasting to drive the projected census. A completeness check that tells a clinician what the payor will look for before signature. It does not write clinical content and it does not decide medical necessity, and any proposal suggesting otherwise should end the meeting.

Settle ownership and data location before kickoff: repository in your own organisation from the first commit, infrastructure in your cloud account, full export on demand, no runtime dependency on the developer's keys. At Digital Heroes that is the default. The entire reason to build is to stop being captive to a vendor, and a build that makes you captive to a developer instead is the same trap with a smaller support team behind it.

Research & sources

The evidence behind this guide

Independent findings on why this investment pays off. Every link goes to the primary source.

  1. McKinsey found that tech debt can amount to 20-40% of the value of a company's entire technology estate before depreciation, and CIOs report that 10-20% of the budget for new products is diverted to resolving tech-debt issues. Source: McKinsey & Company (2020) →
  2. Technical debt is the number-one frustration at work for professional developers, cited by about 63% of respondents - roughly twice the rate of the next-most-common frustration (complexity of tech stack, ~33%). Source: Stack Overflow (2024) →
  3. Total US training expenditure rose 4.9% to $102.8 billion; learning management systems were used at 89% of organizations (90% of large, 97% of midsize, 84% of small companies), with average training at 40 hours per employee and $874 spent per learner. Source: Training Magazine (2025) →
  4. In Gartner's 2025 AI in Finance Survey of 183 CFOs and senior finance leaders (fielded May-June 2025), 59% reported using AI in their finance function, with accounts payable process automation adopted by 37% of respondents (the second-highest single use case, behind knowledge management at 49%). Source: Gartner (2025) →
Amelia C. · Senior Brand Designer · UK · London

Amelia designs the visual side of the products the studio builds: identity systems, typography, colour and the rules that keep an interface looking like one thing. Her posts are for founders who need a brand that survives contact with a real product, not just a logo file.

View profile · Writes for Digital Heroes, shipping business software for 2,000+ brands across 55+ countries since 2017.

FAQ

Frequently asked questions

Why do our three departments never agree on the census?
Because each is reading a different artifact and none of them models a bed as an object with states. The chart updates when someone completes an admission or discharge, which happens hours after the human event, and it has no concept of a hold, a deposit backed arrival, a bed out for turnover, a gender ratio constraint, or a step down clinical decided on Friday for Wednesday. Give the bed a state machine with an owner and a timer per state, so a hold expires instead of quietly rotting.
How do we stop a positive drug screen sitting unseen for days?
Treat the result as an event rather than a document. Every expected result carries a service level and a named owner, a positive notifies the counselor within minutes and opens a clinical response task, and a result that never arrived raises an alert rather than being invisible. Normalise results to a standard coding system and map them to your own panels so a positive from a regional toxicology partner and one from a national laboratory are the same fact in the same field.
Should we replace Kipu or build around it?
Build around it. Rebuilding electronic prescribing, medication administration, scheduling and the regulatory detail underneath a mature chart buys you nothing a competitor does not have, and it puts a clinical floor at risk for a year. Put the money into the layer the chart does not cover: real time census with holds and projections, payor specific medical necessity checking, lab result routing, and longitudinal outcomes, all writing back through the chart interface.
What does 42 CFR Part 2 actually change in the software?
The data model, not just the paperwork. You need consent scoped to a named recipient and a stated purpose, the ability to segment substance use records from the rest of a chart, and a log of redisclosure. A migration that copies records without carrying consent scope has created a disclosure risk on the first day. If a developer answers this question by mentioning a business associate agreement and stopping, they have not built in this category, and the fix later is a rebuild rather than a patch.
Will this reduce denials, and how would we know?
It reduces the denials caused by documentation, which is usually the largest addressable share. The mechanism is moving the payor criteria to the moment the note is written: structured fields mapped to the ASAM dimensions, a per payor and per level of care checklist that flags gaps before signature, and review packets assembled from structured data instead of copy and paste. Measure it by tracking every denial reason back to the template that produced the note, then watching that specific reason over the following quarter.
How much of our chart history should we migrate?
Most centres we work with move the last twenty four months into live use and keep an archived read only copy of everything older for audit and legal purposes. Structured data such as demographics, episodes, authorisations and lab results usually exports cleanly, while scanned consents, faxed hospital records and free text notes are the expensive part. Run identity resolution during the migration with human review, because legacy systems frequently created a new record for a returning client and that understates your readmission rate.
Can an automated agent handle after hours admissions calls safely?
It can handle the non clinical part, which is most of the volume: substances, last use, prior withdrawal history, location, who is paying, and booking an arrival window, then handing a complete record to the morning team. It must never assess acuity or medical necessity, and it should page the on call clinician immediately on defined triggers such as reported alcohol or benzodiazepine withdrawal history or suicidal ideation. Write those escalation criteria into the contract rather than leaving them to configuration later.
How do we know a developer has actually built in this field?
Ask what they have integrated rather than whether they have healthcare experience. Have they moved a laboratory result feed into a chart, run an eligibility transaction, posted a remittance, written back through a chart interface, handled a laboratory that only sends documents. Ask for the ugliest one, the integration with no documentation and a support contact who answers twice a month. That story tells you more than any case study, and it predicts how they will handle your regional toxicology partner.
If we build for 20 users now, will the software cope with 500 later?
It should, without a rewrite, if it was built on a standard cloud stack; going from 20 to 500 users is mostly a hosting configuration change costing hundreds a month, not a second project. What actually breaks under growth is sloppier work: database queries never indexed for volume and features designed assuming one office's worth of data. Before signing, ask the vendor what happens to the system at ten times today's data, and listen for a specific answer.
We run everything on spreadsheets and Airtable. How do we know it's time for custom software?
The reliable signals are re-typing the same data into multiple tools, one employee acting as human middleware between systems, and errors appearing in handoffs between teams. Hard limits force the issue too: Airtable's Team plan caps at 50,000 records per base, and Business costs $45 per seat per month, so a 20-person team pays about $10,800 a year for a tool it has already outgrown. When workarounds consume more hours than the tools save, the spreadsheet era is over.
What happens to my software if the agency shuts down or we stop working together?
Nothing dramatic, if the engagement was set up correctly: the code sits in your repository, hosting runs on your cloud account, and a handover document explains how to deploy and operate the system. Any competent replacement team can then take over in days rather than months. If the agency controls the repo, the servers, or the domain, fix that now, because renegotiating access during a dispute is the most expensive place to discover the problem.
Will custom software work with the tools we already use, like QuickBooks and Stripe?
Yes, and this is one of custom software's genuine advantages: QuickBooks, Stripe, Shopify, and most mainstream business tools publish documented APIs built for exactly this. Expect each standard integration to add one to two weeks of build time, and be suspicious of any quote that lists five integrations without asking what data flows in which direction. The hard cases are legacy systems with no API, which is a question to raise in discovery, not in week nine.
Should we build an MVP first or go straight to the full system?
MVP first, for almost everyone: ship the single workflow that carries the business value in 10 to 16 weeks, learn from real users, then fund phase two from evidence instead of guesses. The caveat is that an MVP is a small version of a well-built system, not a badly built version of a big one; the data model must already support what comes next. An agency that cannot tell you what they deliberately left out of your MVP has not designed one.
Why do agencies charge for a discovery phase instead of quoting for free?
Because an accurate quote requires real work: mapping your workflows, finding the edge cases, and writing a specification, which typically takes 1 to 3 weeks and costs $2,000 to $10,000 at Digital Heroes depending on system complexity. You leave discovery owning a written spec and a fixed price you can take to any vendor, so the money is not locked into one agency. Free estimates are guesses, and the guess usually becomes your budget overrun six months later.
What does a $50,000 custom software budget actually buy?
One core workflow done properly: 10 to 15 screens, two or three user roles, a couple of integrations, an admin panel, and automated tests, delivered in roughly 12 to 14 weeks. What it does not buy is that workflow plus a mobile app plus AI features plus five more integrations. The discipline of picking the one workflow that matters is what separates $50,000 projects that ship from $50,000 projects that stall at 70% complete.
How many SaaS seats do we need before building custom becomes cheaper?
The crossover usually shows up between 20 and 50 seats on premium tiers. Salesforce Enterprise lists at $165 per user per month, so 40 users cost about $79,000 a year in subscriptions, which is real money against a custom system you would own outright. Run the comparison over three years: if subscription spend beats the build cost plus 15-20% annual maintenance, custom wins on price before you even count workflow fit.
Who owns the code when an agency builds my software?
You should, completely, through a written intellectual property assignment that transfers everything on final payment; without that clause, copyright stays with whoever wrote the code by default. Insist that the repository lives in your own GitHub organization from day one and that hosting, domains, and third-party accounts are registered to you. Also check for licenses to the agency's proprietary frameworks buried in the contract, because those can make switching vendors practically impossible even when you own your own code.
Who can build a custom software system?

Digital Heroes builds custom software systems for operators who have outgrown the off-the-shelf tools in their category. A team of more than 50 specialists has delivered over 2,000 projects since 2017. Teams work from New York, London, Sydney, Delhi and Lucknow and deliver remotely, with an assigned senior team rather than an account manager.

Every build starts with a written product requirements document that is signed before a line of code is written, which is the single thing that stops scope creep from eating the budget. Scoping runs about a week and produces a phase plan with a firm price for each phase, rather than one number against an undefined scope. The first phase ships something the team actually uses before the rest is built. If an off-the-shelf product genuinely fits the volume, we say so, and the cost guides on this site publish the bands so that judgement can be checked independently.

What makes Digital Heroes different from other software companies?

Four things that competitors in this bracket cannot simply copy. Digital Heroes runs a YouTube channel with more than 2.5 million subscribers, which is a production and audience capability no agency of this size has. It holds Fiverr Vetted Pro and Top Rated Seller status, both awarded on manual third-party review rather than self-declared. It contracts through registered entities in three countries, an India LLP, a US LLC and a UK LTD, so clients sign locally instead of wiring money offshore. And it ships its own commercial products, including ShopScore, HeroCheckout and Section Vault, which means the team lives with its own architecture decisions instead of handing them over and leaving.

Two more that show up in the work. Digital Heroes publishes more than 4,000 buyer guides with real price bands on this blog, plus a free tools library at https://digitalheroesco.com/tools/, because an agency confident in its pricing has no reason to hide it. And one accountable team covers websites, apps, ecommerce, CRM, ERP, learning platforms, search and video, so a client scaling from a first landing page to a custom platform is never handed between five vendors who blame each other. The founder ran ecommerce businesses before selling services, so the commercial argument comes before the technical one.

How can I check Digital Heroes is legitimate before getting in touch?

Verify it independently rather than taking the site's word for it. The YouTube channel is at https://youtube.com/@DigitalMarketingHeroes, the Fiverr profile at https://www.fiverr.com/shreyanshsin261, and the Upwork profile at https://www.upwork.com/freelancers/shreyanshsingh. Client reviews sit on Clutch at https://clutch.co/profile/digital-heroes-0 and Trustpilot at https://www.trustpilot.com/review/digitalheroes.co.in, and the company page is at https://www.linkedin.com/company/digital-heroes-1/.

Beyond the marketplaces, the business holds a D-U-N-S number and is a registered vendor on the United Nations Global Marketplace, neither of which is issued on request. Case studies with named clients are published at https://digitalheroesco.com/case-studies/. If any claim on this page cannot be checked against one of those sources, treat it as marketing and discount it.

Keep reading
let's build

Build something worth launching.

A plan, a team, a timeline, within 24 hours. No decks, no discovery calls. Tell us what you're building and we'll come back with a real scope and a real number.

message us directly · we reply within one business day

mission briefing

Monthly dispatch

Playbooks, real build costs, and what we're shipping. One email a month. No fluff.

visit us

New York HQ

1140 Broadway, Suite 704 · New York, NY 10001

Get directions
Online now

Hey there 👋 How can we help you today?