You're three years out of residency, working nights in the ED, and you've quietly built something that actually works. A custom EMR side-tool that pulls the right labs, flags the right sepsis scores, and shaves twelve minutes off every admission. Colleagues start asking for it. Then a friend at another hospital texts: "Spin this into a company. I'll introduce you to my seed guy."
That's the exact moment most physicians blow it.
Because the second you start thinking like a founder, you stop thinking like an employee who just created hospital intellectual property on hospital time. I've watched three docs in the last two years get cease-and-desist letters right after their Product Hunt launch. One lost the entire codebase. Another spent $180k fighting for a license he should have negotiated while he still had leverage. Don't be them.
Before proceeding, consider reading why your hospital may claim your startup idea to understand potential institutional pushback.
This is for educational purposes only. It is not financial advice, not legal advice, and not tax advice. Figures vary. Consult a qualified professional before you make any moves with employment contracts or intellectual property.
The Scenario: You Built an EMR Tool on Hospital Time
Here's the real dilemma: you feel like the developer. Your employer sees you as the employee. That gap is where startups die.
If you wrote the code while on shift, between patients, or even "just for fun" after sign-out using the hospital VPN, you are almost certainly inside the "scope of employment." Courts and hospital counsel love that phrase. It means anything you invent that relates to the work you were hired to do belongs to them. Period. Your job description doesn't need to say "build software." If you're a physician and the tool improves clinical workflow, they own the output.
There's a brutal difference between an "innovation" and "proprietary hospital property." Innovation is what the tech-transfer office puts on a press release. Proprietary property is what their lawyers sue over when you try to leave with it. I've seen hospitals claim ownership of a simple Python script that auto-populated discharge summaries because the resident used Epic's training environment to test it.
Damage control starts tonight. If you have even a whisper of doubt about ownership, stop pushing code to any repository that touches hospital infrastructure. Freeze the repo. Download a clean local copy to a personal, offline drive if you legally can, then lock it. Do not email it to yourself from your work account. Do not Slack it to a co-resident. Every commit timestamp and IP address becomes evidence later.
HR already documented your daily tasks when you signed on. That onboarding packet and your annual review language matter more than you think. If your offer letter or physician employment agreement lists "quality improvement," "clinical informatics," or even vague "other duties as assigned," you've handed them the rope. Pull those documents tonight. Highlight every sentence that mentions inventions, works made for hire, or assignment of IP. You're looking for the clause that says everything you create during your employment is theirs. Most academic and large health-system contracts have one. It's usually buried on page 14 in 9-point font.
Navigating Intellectual Property and Employment Contracts
If you are concerned about long-term career implications, research what happens if my startup fails to prepare a recovery roadmap.
Open the PDF of your original employment agreement right now. Search for "Work Made for Hire." That single phrase is the nuclear option. Under U.S. copyright law, if the work is made for hire, the employer is the author from day one. You never owned it. You can't spin it out. You can't even claim you co-invented it without their written blessing.
Next question: did you use their stuff? Hospital laptop, even once? Their AWS credits or internal server space? Their patient data, even de-identified extracts you pulled for "testing"? Each of those creates a paper trail that screams "hospital resource." I've watched tech-transfer offices win ownership fights solely because a physician ran a Jupyter notebook on the institution's VPN for thirty minutes. Resource usage is not a gray area. It's a trap.
Same danger with licensed software. If you built the tool inside Epic's App Orchard sandbox, or used a hospital-paid MATLAB license, or even copied a snippet from their internal GitHub Enterprise instance, you just contaminated the codebase. Clean-room development becomes almost impossible after the fact.
You need an audit trail that proves independence, if you still have one. Timeline every commit. Note the hardware MAC address, the network, the time of day, and whether you were clocked in. If you can show the entire project lived on a personal MacBook, on your home fiber, outside scheduled shifts, and never touched PHI, you have a fighting chance. Most people can't. Be honest with yourself before you waste money on lawyers.
Run that flowchart against your actual history. If you land in any red box, treat the tool as theirs until proven otherwise.
The Legal Pivot: Securing Rights and Avoiding Litigation
Do not walk into your department chair's office and say "Hey, I built this cool thing, can I start a company?" That conversation is how you lose leverage and create a conflict-of-interest file. Hire a specialized IP attorney who has actually done university or hospital spin-outs first. Not your brother-in-law who does real estate closings. Not the hospital's preferred outside counsel. Your own lawyer. Budget $5k-$15k for the initial review and demand letter strategy. It's cheaper than the alternative.
Once counsel has mapped your exposure, the smartest play is often the "buy-back." You approach the institution, not as a thief who got caught, but as a founder offering them equity or a royalty in exchange for a clean assignment or exclusive license. Frame it as: "This tool only works if it's maintained and sold outside the firewall. Let me commercialize it and give the hospital a piece." Tech-transfer offices hear this language every week. They prefer a deal to a lawsuit they might lose and bad press they will definitely get.
Structure the clean break ruthlessly. Strip every proprietary hospital workflow, every custom order set that mirrors their exact pathways, every logo, every internal API key. De-identify so thoroughly that a forensic reviewer can't tell which health system inspired it. Then rebuild the UI and data model just enough that it no longer looks like a fork of their internal tool. Your attorney will tell you how much is enough. Listen.
Academic medicine adds an extra landmine: conflict-of-interest disclosures. If you're on faculty, your annual COI form now has a new line item. Fail to disclose the startup and you risk research sanctions, NIH problems, and a permanent mark on your credentialing file. Disclose too early without a formal IP release and you hand them free discovery. Sequence matters. Lawyer first, disclosure second, launch third.
Actionable Steps: Transitioning to Startup Founder
If the legal fog clears and you actually own (or have licensed) the IP, move fast and clean.
Form an LLC in a founder-friendly state, completely separate from your medical license and NPI. Do not use your hospital address. Do not list your department email.
Stand up a brand-new development environment. New laptop bought with personal funds. New GitHub organization. New cloud account paid by the LLC. Never VPN into the hospital again for this project. Geographic and digital isolation is your best evidence if anyone ever challenges the separation later.
Write a short internal memo (your lawyer will draft it) that documents the exact date you ceased all development on hospital systems and the date the clean version began. Timestamp it. Store it offline.
Before you touch a single real patient record or sell to another hospital, sit down with a CMIO or healthcare compliance attorney who understands ONC, HIPAA, and information blocking rules. Your shiny new tool can become a liability the second it interfaces with any EHR.
Do these four things in order and you dramatically lower the odds of a midnight cease-and-desist.
Key takeaways if you remember nothing else: If it was built on hospital time, equipment, or patient data, you likely do not own it. Do not resign or announce your startup intentions until you have cleared your IP status with a legal professional. Securing a formal release or license from your institution is cheaper than a post-launch lawsuit. Separation of concerns is your best defense: keep all code, hardware, and data geographically and digitally isolated.
You're a physician who can code. That's rare and valuable. Just don't let the first version you built on stolen time become the reason your company never gets a second version.