Musings on healthcare IT, FHIR, EHR systems, and digital health innovation

🔥 FHIR in the hole!
Back to posts

MyChart Takeout

Original on LinkedIn

If your healthcare provider uses the Epic EHR, you can see a lot of your medical record in MyChart: problems, medications, lab results with reference ranges, imaging reports, appointments, visit notes, provider messages, immunizations, referrals, and more. Getting a complete copy out of the portal is harder than it should be.

The portal’s “Download My Record” button gives you a C-CDA, which is a clinical summary, but that leaves out a lot. SMART on FHIR is a great option, but it only offers access to USCDI data. EHI Export is much more complete, but organizations hide it behind a fax and often a multi-week wait, with low completion rates. MyChart shows you a reasonably complete, readily available data set, but there is no built-in way to save it all.

So I built MyChart Takeout. (This was like a 3h project automated by Claude Fable and a modicum of Josh-style prompting/vision.)

Screenshot of the MyChart Takeout export flow

What it is

A small script that runs in your browser, in a MyChart session you’re already logged into, and saves your record as a ZIP file. You install it by dragging a button to your bookmarks bar. Then you open your portal, log in as usual, and click the bookmark. A few minutes later you get a download.

Everything runs on your own computer. There is no server and no account. The script never sees or stores your password; it uses the login session you already have. The code is on GitHub, so you can read all of it before you run it.

How it works

The MyChart website is a front end over an internal JSON API. When you open the test results page, the site requests JSON. When you open a visit, it requests the after-visit summary and notes as HTML. MyChart Takeout makes those same requests from inside the logged-in page, with your cookies, and saves the responses to files. It also downloads the C-CDA “all visits” package when the site offers one.

The process is deterministic: every endpoint, parameter, and filename is fixed in the code or derived from the responses. No language model touches your data. (I used AI tools to help write the code. The tool itself does not use AI.)

The ZIP contains:

  • Structured JSON for each area: problems, allergies, medications, immunizations, medical, family, and social history, insurance, care team, goals, referrals, pediatric growth charts, and patient-entered vitals.
  • Lab and imaging results, including values, units, reference ranges, abnormal flags, and radiology and pathology reports.
  • Every encounter, with its after-visit summary and clinical notes (as HTML).
  • Secure message threads with full message text.
  • The C-CDA package, unpacked.
  • A readable PATIENT_SUMMARY.md and flat CSV indexes, generated from the data above.

Your record may include data from other health systems. Epic portals often pull in records from other organizations where you were treated (through Happy Together and Care Everywhere), so a single export can contain records that started elsewhere. Where the portal labels this, most items carry an organizationName and an isExternal flag.

If you have proxy access to a child or dependent, you can export their record too: switch to their chart in MyChart first, then run the tool. The command-line version can also walk through all your proxies automatically.

A note of caution

A bookmarklet is code that runs inside your logged-in session, with all the access you have there. That is what makes this tool possible. It is also what makes tools like it dangerous when they come from someone you don’t trust. A malicious script installed the same way could send your records to a stranger, capture your credentials, or act in your account. Mine runs entirely on your own computer, and the code is public so anyone can check what it does — but that only helps if someone actually reads it. If you can’t review the code yourself, make sure you really trust whoever is providing it. Asking an AI to review can help, too (but a determined attacker can hide behavior that a quick review will miss). This is not hypothetical: health systems are seeing a rise in attackers trying to trick patients into running scripts in their portals.

Try it

joshuamandel.com/mychart-takeout has the install button and instructions. Your export.zip file will include a “SKILL.md” explaining how to work with the data. The source code and a more technical writeup are on GitHub.

Conversation on LinkedIn

63 comments · 307 reactionsReply on LinkedIn
  • Dave deBronkartAug 13, 2026

    "e-Patient Dave" - Patient Empowerment evangelist. #PatientsUseAI. No pitches please.

    WHAT??? You did WHAT???

    I am going to try this.

    4 reactions

  • Hugo CamposAug 13, 2026

    Patient-directed AI & Critical AI Health Literacy | Research Partner | Patient Agency & Health Data Rights

    Can't wait to try this takeout! 😋

    2 reactions

  • Brett JohnsonAug 13, 2026

    Key Evidence leader with Opinions in Best Practices and Data Integration for drug development and data sharing needs: Patient-Centric Health Data Platform Strategy & Implementation

    Excellent!!!

  • Michael D'InceccoAug 13, 2026

    Healthcare IT Leader | Digital and Patient Access Rev Cycle Advisor | Passionate Futurist | Sustainable Farming and Food Ecosphere Advocate | Outdoor and Youth Programming Volunteer

    Portability and sovereignty of health data is critical for future care delivery models. Excellent example of using tools to drive change!

    1 reaction

  • Andrea D.Aug 13, 2026

    Co-Founder and Board President lightcollective.org

    Cool ( :

    1 reaction

  • Dave deBronkartAug 13, 2026

    "e-Patient Dave" - Patient Empowerment evangelist. #PatientsUseAI. No pitches please.

    So far for me it's worked on Mass General Brigham and SolutionHealth. It's throwing an error for Beth Israel Lahey and Dartmouth Health. He's working on it ... because he's a MONSTER

    • Dave deBronkartAug 13, 2026

      "e-Patient Dave" - Patient Empowerment evangelist. #PatientsUseAI. No pitches please.

      And it IS working now. All my MyChart providers. Now I have the fascinating task of somehow discovering what-all is in it and finding out if something's not!

      THIS IS AMAZING.

      2 reactions

  • Michael DaltonAug 14, 2026

    Founder and CEO, Ovatient

    Oh. WOW. This is pretty much fantastic. All these years talking about patients owning their data and being able to port it. And you did it in 3 hours. Well done.

    1 reaction

  • Laboratory Informatics Expert

    Health Data to go. Does the takeout come with napkins if consuming the data is messy?

    8 reactions

  • Dave deBronkartAug 14, 2026

    "e-Patient Dave" - Patient Empowerment evangelist. #PatientsUseAI. No pitches please.

    Hugo Campos posted a little screen recording of watching it run. If you have ever tried to download your records piece by piece this will FRY your brain. I haven't tried yet to confirm whether it contains absolutely everything I've found by any other method. But this is AMAZING.

    https://www.linkedin.com/posts/hugocampos_patientsuseai-ugcPost-7493818331552960512-WHMR/?

    3 reactions

  • Arthur HermannAug 14, 2026

    Retired from Kaiser Permanente

    This is great! Thank you!

  • Dave deBronkartAug 14, 2026

    "e-Patient Dave" - Patient Empowerment evangelist. #PatientsUseAI. No pitches please.

    DUDE: I fed one of the ZIPs to ChatGPT for analysis and it said this was "Vastly richer" than anything before, and then it said:

    "**Keep these ZIPs exactly as they are.** Do not preprocess or consolidate them. The creator has done a remarkably good job designing the export for exactly the sort of machine-assisted exploration you're contemplating."

    DUDE.

    8 reactions

    • Tingting Z.Aug 14, 2026

      Expert/leader in multi-cultural / patient-empowered / digital-enabled healthcare delivery (20+ yrs in academia, pharma and healthcare IT). Cancer survivor/advocate for immigrants

      Dave deBronkart There might be privacy or security concerns for feeding these to AI

      1 reaction

    • Dave deBronkartAug 14, 2026

      "e-Patient Dave" - Patient Empowerment evangelist. #PatientsUseAI. No pitches please.

      Tingting Z. Of course! Such things are 100% the individual's responsibility and choice, the same as if I tell a provider "I want you to *email* me my test results. Yes I know the risks."

      The thing people often forget to do, though, is compare the risk of a data leak against the risk of NOT BEING ABLE TO GET CARE from the US health system.

      2 reactions

    • Tingting Z.Aug 14, 2026 · edited

      Expert/leader in multi-cultural / patient-empowered / digital-enabled healthcare delivery (20+ yrs in academia, pharma and healthcare IT). Cancer survivor/advocate for immigrants

      Dave deBronkart I am not saying this is an issue of data leak - it’s the patient’s own action. The question, however, is whether the patient understands the impacts, present and future, of sharing MyChart data with those big AI models - what are the fine prints? How long will the data be stored? How will they be used? Will the data be used together with other social data? Too many black boxes…

      2 reactions

    • Shimon RuraAug 14, 2026

      Product Leader with deep Biomedical/Health experience, on a sabbatical

      Tingting Z. Everyone has the right to share or not share their data according to their goals and values. Personally I'm way more concerned about the risk associated with nobody ever looking at my health data than the risk that someone might look and... I guess try to embarrass or blackmail me?

      1 reaction

    • Tingting Z.Aug 17, 2026

      Expert/leader in multi-cultural / patient-empowered / digital-enabled healthcare delivery (20+ yrs in academia, pharma and healthcare IT). Cancer survivor/advocate for immigrants

      Shimon Rura Again, as long as the individual is fully aware of the risks feeding his/her health records to AI models (such as public disclosure in data transit, in data storage and analytics, and in family health risks, just to name a few), it’s entirely the individual’s own responsibility to do so.

      1 reaction

    • Dave deBronkartAug 17, 2026

      "e-Patient Dave" - Patient Empowerment evangelist. #PatientsUseAI. No pitches please.

      John D'Amore

  • Richard BramanAug 14, 2026

    Award Winning Innovation | Healthcare Standards & Interoperability (HL7 FHIR CDS Hooks) Business Process Automation (BPM +), AI & Agentic Systems

    This is supposed to be a part of the certified technology in the patient portal. It’s too bad Epic doesn’t export FHIR only CCD and on top of it their CCD XSLT has been broken for years because browsers no longer support side loading XSLT. Thanks for doing their job for them.

    5 reactions

    • CEO @ Project L.E.M.U.R. / AI Healthcare

      Richard Braman

      how's it going my man?!?!?!?

    • Richard BramanAug 14, 2026 · edited

      Award Winning Innovation | Healthcare Standards & Interoperability (HL7 FHIR CDS Hooks) Business Process Automation (BPM +), AI & Agentic Systems

      Corey Amann, MD, MBA it’s going great thanks. How are you? I’m going to start stirring the pot a little. I love what Josh Mandel, MD is doing here but it begs the question why can’t i download a FHIR bundle of my own record from Epic without using some other software.

      1 reaction

    • CEO @ Project L.E.M.U.R. / AI Healthcare

      Richard Braman doing great as well ...

      and yes ... any patient should be able to very easily get all their medical data and be able to easily share it with any other provider

      this is the end goal

      1 reaction

  • Gilbert RamirezAug 14, 2026

    Faculty Director of Health Information Technology at University of California, San Francisco - School of Medicine

    Strong work. The more projects like this, the less antiquated vendor based EHRs will be needed. Still need some better data standards than what FHIR provides to really make a dent. The counterpoint however, is that with too many side loaded vibe based work arounds, the jungle only grows. Im for just starting over from scratch at this point, most of the data is meaningless anyway.

  • Vinay PaiAug 14, 2026

    Digital Health

    It was very smooth and easy to use with chrome. Could not get it to bookmark on Firefox at all (disabled all my add-ons, but still could not bookmark). Wonderful tool on chrome.

    3 reactions

    • Josh Mandel, MDAuthorAug 14, 2026

      Ah, I haven't tested with anything besides Chrome. In theory this technique should be usually Firefox; I can debug tomorrow

      2 reactions

  • Anna McCollisterAug 14, 2026

    Catalyst, Entrepreneur, 2X Founder, Board of Directors Member, Consultant, Advocate, Health Data Governance, Health IT Policy, Patient Mobilization, Genomics, Trust Frameworks and AI

    Super cool! Go Josh!

    2 reactions

  • Anurag ChatterjeeAug 14, 2026

    Principal Software Engineer | AI Solutions Architect | Enterprise Data Platforms (Healthcare)

    Thanks for sharing, Josh Mandel, MD! Hoping to get around to peeking under the hood this weekend and learn some more.

  • Vega PaithankarAug 14, 2026

    Founder, Faav Labs, building Jukebox Jr, Faav App and more!

    Erika Shepard, FNP-C check this out!

  • Robert MillerAug 14, 2026

    Former Chief Medical Science Officer, CancerLinQ (now retired)

    This looks amazing! Thank you. Will give it a shot

    1 reaction

  • Mikael RinnetmäkiAug 14, 2026

    Health data expert, Sitra. Founder, Sensotrend Oy. Volunteer, HL7 standards bodies. Patient advocate.

    Awesome, as usual for you Josh!

    Regarding the file structure of the output .zip file, did you happen to consider the draft specification for FHIR PHR (https://build.fhir.org/ig/HL7/personal-health-record-format-ig/en/)?

    1 reaction

  • Chris CeraAug 14, 2026

    CTO - Helping builders with AI, design, and data

    Solid - And good luck with that trademark ;-)

  • Full Stack OB/GYN. Healthcare Disruptor. AI x Health Ambassador. Human in the Loop. Wartime Consigliere.

    Josh Mandel, MD
    What is your overall view on a
    takeout .zip… vs. an EHI export .zip?
    Is the latter a more ideal data source that has been inaccessible or underutilized and takeout being the workaround… or is takeout the next step forward for patient facing data retrieval and normalization?

    I guess the real question is how proprietary is the takeout script (or SMART on FHIR app) for Epic.
    How much work would be needed to make this script crossover to other EHR platforms - ones with structured FHIR data/ open API / EHI export / portal?

    Personally, i have a slight mental block when viewing any tool that starts and ends with Epic/MyChart as either a proof of concept or an
    MVP.

    • Monte JenningsAug 14, 2026

      President, CEO and Enterprise Architect at Sentia Systems

      Eric Rothschild, MD because Epic is stupid, built wrong and just evil.

    • Josh Mandel, MDAuthorAug 14, 2026

      Eric Rothschild, MD I think EHI Export is almost uniformly better, but wayyy too hard to obtain

      1 reaction

    • Full Stack OB/GYN. Healthcare Disruptor. AI x Health Ambassador. Human in the Loop. Wartime Consigliere.

      Josh Mandel, MD Single patient EHI export should be available on demand AFAIK
      (via EHR not Portal)

      2 reactions

    • Full Stack OB/GYN. Healthcare Disruptor. AI x Health Ambassador. Human in the Loop. Wartime Consigliere.

      Nah. It’s a feature not a bug for Epic

      1 reaction

    • Barry SchechterAug 17, 2026

      HIPAA Security Risk Assessor for Medical Practices | Keeping Ophthalmology & SMB Practices Compliant, Fine-Free, and Running

      Eric Rothschild, MD It seems that software companies have incorporated this phrase into their being and pull it out with regularity. As a software troubleshooter, it means that our guys didn't document or test it and you're stuck with it.

  • Mary MurphyAug 14, 2026

    Engineer | Data Analyst | Comp Sci PhD Researcher 📈 🤖| Diabetes Advocate | Sewing Engineer 🪡 | Sourdough Baker 🥖

    Can't help myself, but THIS is EPIC. Took seconds, and so brilliant to be able to have. 🤣

  • CEO @ Project L.E.M.U.R. / AI Healthcare

    love it

    of course we must make this automated if we want patients to really use it ... and it needs to be a part of something bigger

    something that saves them time and money every where they go

    its the only way to get use at scale

    most patients don't give a rats pootitie about their health data ... because they assume it will be in there when they need it and it will be 100% accurate

    by the time they realize it isn't ... its not useful anymore

    i.e. its a feature ... not the benefit patients actually seek

    but love it love it love it

    keep building

    1 reaction

  • Sarah GreeneAug 14, 2026

    Advisor | Consultant | Patient Advocate | Researcher | Writer | Board Chair

    Jaw, meet floor. I cannot wait to try this!

    • Josh Mandel, MDAuthorAug 14, 2026

      If you give it a shot, let me know how it goes! It is still early days and if you hit any issues I am happy to help debug

  • Robert ClausAug 14, 2026

    Software Leader in Data and AI

    Josh Mandel, MD this might be safer as a Chrome extension where you can properly scope it.

  • Using tech, AI, and storytelling to advance health and well-being (SDG 3) through websites, apps, and devices that support healing. I am also building ChroniCles, a hub of uplifting stories for patients.

    Uhhhh, is that HIPAA-compliant? 🫣

  • John DuffieldAug 14, 2026

    Health innovation leader | Enterprise AI adoption | Founder, Signal Two | Ex-Omnicom Health | 2x heart surgery survivor who made AI his lifeline | Author, TheFuturePatient

    This is a really big deal for your medical records. The big zip file to do whatever analysis in whatever platform you choose. Amazing tool Josh Mandel, MD 👏🫡

  • Gaurav MathurAug 15, 2026

    Palliative Care Physician | Focused on clarity in complex illness | Founder building Health-GPT

    Wow. Just wow. And to answer the HIPAA question- HIPAA does not even apply here. If a patient accesses their own records, they can do whatever they want with them. They can post their records on Facebook or print them and make a paper airplane.

  • Helene M. EpsteinAug 15, 2026

    Award-winning writer and advocate for patients. Author: Patient No More, the healthcare survival resource for patients. Speaker. Board Member Pen Parentis.

    Josh, you said it was still early days. I am very excited about this and looking forward to trying it when you have finished debugging it. More importantly, when it's ready for the public, I would like to interview you and share this with my readers. Even though my articles are about patient safety and diagnostic quality written for the average reader, my overall theme is surviving healthcare in the US and this is an amazing tool I would like to share with them.

    1 reaction

  • Howard LookAug 15, 2026

    Founder, Board Chair, Strategic Advisor. Tidepool | Former CEO

    Well done. Thanks, Josh!

  • Physician at Mass General Brigham

    Great work Josh! Keep building!

  • John SilvaAug 15, 2026

    FHIR Developer at Vermonster Boston, MA

    Thanks Josh, this is great! How does this compare to your previous Health Skillz “Epic export” project?

    The ZIP file is great for sharing, is there a visualization component “in the works” or not really necessary since you can see all this data in Epic MyChart? (I would think that a separate UI from Epic’s MyChart could be much more user friendly…)

    One question/caveat … it seems like you’re depending on a Epic API; is that documented and supported or more of a ‘backdoor’? I wonder if Epic changes it tomorrow would this stop working (though with AI you could probably fix it easily — unless Epic decides to ‘shut down’ this mechanism)

    • Josh Mandel, MDAuthorAug 16, 2026 · edited

      These are sort of complementary approaches with different sets of trade-offs. FHIR API is highly structured including strong terminology support, and reasonably easy to obtain but incomplete in its coverage of the clinical record. EHI export is very well structured, But with poor terminology coverage as currently implemented, and way too difficult/ slow to obtain. The takeout approach has reasonable coverage, poor terminology support (with the possible exception of the CDAs that are included), and easy to obtain. You are absolutely right that the format or underlying apis that I use for takeout are subject to change at any time (but yes, noticing and and correcting these kinds of issues does get easier with AI)

      1 reaction

  • Sarah BascandAug 17, 2026

    Pediatric NP | MBA | Customer Success Manager at LeanTaas | Strategic Advisor at ConvergeEQ

    Awesome work 😎

  • Founder @ ProjectLeo | AI | Health Scientist | Health Equity | Education

    Seems like there’s a consensus on hesitation with introducing that level of personal info to any of the existing AI solutions.

    Exactly why we’ve built a patient-first, fully independent healthcare AI solution, ProjectLeo.

  • Healthcare Analytics Leader | Value-Based Care & Medical Economics | Medicare, Claims, Attribution & Provider Performance

    Josh Mandel, MD Really interesting example of the gap between data being technically accessible and actually usable by patients. Also love the development model here…AI dramatically accelerated the build, while the resulting workflow stays deterministic and keeps the health data local.

  • Sagy Pundak MintzAug 26, 2026

    Traveling the world one country at a time

    Josh, this is outstanding. This is something that was needed for a long time. Thanks for getting it done.