Between March and June this twelvemonth I built MarkupRx, a tool to assistance autonomous pharmacies capture and petition prescriptions they were paid small for than the medication disbursal them. By the end it pulled 13 national data sources, had concerning 2,660 tests, and generated petition alphabet alongside evidence attached.
It never had a genuine user. Here's what I built, how I tried to market it, and the one conversation that explained why it was never going to work.
The problem
When an autonomous drugstore fills a generic prescription, the payor reimburses it at a cost the drugstore doesn't set. Sometimes that cost is below what the drugstore paid for the drug. The assertion goes "underwater": the drugstore loses prosperity on all fill.
The authorities publishes adequate data to see this from the outside. CMS publishes NADAC, the national average cost pharmacies pay for all drug, all week. Medicaid publishes what it really reimbursed, medication by drug. Comparing the two, I established 2,473 of 27,083 comparable generics (9.1%) anywhere Medicaid paid small per component than the average acquisition cost. Industry surveys inform the identical story: in NCPA's 2024 survey, additional than fractional of owners stated they endure prosperity on at smallest 30% of the prescriptions they inhabit (Pharmacy Times).
Pharmacies can competition these prices through MAC appeals (MAC is the maximum allowable disbursal a payor sets). My bet was that a neutral tool built on community data could discover a pharmacy's underwater claims and build the petition for them, and that pharmacies would pay for it.
What I built
I built it alone, alongside Claude Code as the implementation agent: I wrote specs and reviewed, the delegate wrote most of the code, and the test suite decided what shipped.
What a drugstore got:
- A liberated community explorer showing underwater generics by state, no login.
- A dispensing-history upload. Patient data was stripped in the browser and never reached the server.
- Each assertion checked against NADAC as of its inhabit date, alongside underwater narcotics classified by dollars lost.
- One-click MAC petition alphabet as PDFs, alongside the evidence icy and tagged by source.
- A dashboard tracking appeals filed, won, misplaced and prosperity recovered.
The hardest part was making certain the numbers were never confidently wrong. One example: several narcotics are priced per mL and others per unit. A repository perspective dropped the component column, and for a during the scheme compared per-mL reimbursements against per-unit costs, producing precise, convincing and incorrect losses. There's no liberated conversion table, so the fix was to refuse: difference lone whenever units match, autumn implausible spreads, and display "N/A" fairly than a misleading number. On an petition letter, a assured incorrect fig is worse than none.
For the engineering particulars (matching narcotics throughout 13 national datasets, ingestion that can't double-count, evidence you can re-verify), see the companion post: Matching 13 national drug-pricing datasets without letting fuzzy matches win.
Trying to market it
Pricing was $79 a duration for 3 appeals or $149 for 10, alongside a liberated trial. I sold by chilly email.
- First campaign: concerning 1,400 pharmacies, concerning 2,400 emails, a 0.07% affirmative answer rate. Most of it landed in spam. I learned that partially since one owner's reply, declining since her PSAO already handled appeals, sat in my own spam folder.
- Second campaign, from a caller domain: concerning 90 emails, zero replies, zero location visits.
- Two industry experts, a PBM-policy adviser and a drug-pricing researcher: no reply.
By afterward I had made 2,641 commits. I had not had a sole in-depth conversation alongside a drugstore owner.
The conversation that ended it
At the end of June I eventually sat downward in individual alongside the owner of a single-location autonomous pharmacy, a associate of a PSAO (a drugstore services administrative organization, which negotiates alongside payers on a pharmacy's behalf). We talked for a lengthy time. He accepted the issue was real. Then he took my merchandise apart:
- MAC appeals are nearly continually submitted through the PSAO. Most pharmacists don't cognize any another conduit exists, or anywhere they would equal present one.
- The figure of underwater narcotics in a duration can run into the hundreds. My 3 or 10 appeals a duration weren't near to enough.
Three another owners confirmed by email that their PSAOs already provision them a way to document these appeals. Not built on the community data I was aggregating, but that didn't matter to them.
When I dug into why, the image got worse. The largest PSAOs are owned by the identical three companies that allocate most of the country's drugs: McKesson, Cardinal Health and Cencora. By PCMA's count, complete 60% of autonomous pharmacies pertain to one of those three (PCMA). When the PSAO holds the payor contract, appeals go through it; Tennessee's pharmacist affiliation tells members that either the drugstore or the PSAO should file, not the two (TPA). And a powerful petition needs the pharmacy's genuine acquisition invoice, which the wholesaler already has, alongside alongside the remittance data. The incumbent wasn't a competing app. It was the supplier, holding exactly the two documents an petition needs. Being the neutral outsider didn't provision me a clearer view. It meant I had small data than they did.
My notes from that day: "the additional we investigation the additional we run into walls and shrink TAM." I called it a deceased end.
What I got wrong
I validated the problem, not the way to fixing it. Underwater claims are real, and all owner I reached agreed. What I never checked was who is allowed to act on them and who already holds the data. Both answers pointed to the identical company.
I priced on a conjecture concerning frequency. Charging per petition assumed appeals were rare and valuable. In custom they're changeless and routine, which is why the group handling them bundle them into a membership.
I let construction remain in for selling. With an delegate penning the code, the next characteristic was continually cheap to add, and shipping it felt akin progress. 2,641 commits came before one genuine conversation alongside a buyer. The tool removed the conflict that used to power me to go conversation to person before penning the next thousand lines.
I treated email as discovery. About 2,500 chilly emails told me small than one sit-down in a pharmacy.
What I do now
Before construction anything, I desire a fistful of genuine buyers to say, in their own words, that they have the issue and would pay for a fix, ideally alongside several dedication attached. Then I build narrow and fast, alongside them using it.
The engineering wasn't wasted. I built a complete, regulated-domain scheme end to end, and it taught me how to activity alongside an AI delegate without losing authority of correctness. It fair didn't need to be yet.
I build payments and ledger software, most lately in cardstock products. I'm open to agreement work: [email protected].