Build a charting tool from blood test PDFs

July 18, 2024 · 4 min read. Task: July 18, 2024 · 4 min read TLDR I want to share something interesting I’ve been playing with recently. I’ve been experimenting with LLMs to build user interfaces for unstructured data. This experiment also got me thinking about how LLMs might be useful in the medical field (when used appropriately and with strong human guidance / human oversight). Using Claude, I built a small web application to explore my recent blood test results. I uploaded a set of unstructured PDF test results exported from MyChart, and worked with Claude to make sense of it. Want to check out the tool? Here’s the link Video Walk-Through Making Sense of Unstructured Data If you’ve ever had to deal with unstructured data – whether in PDFs, Word docs, raw text files, or something else – you know how messy and time-consuming it can be to make sense of it all. LLMs are particularly well-suited to help you extract structured information from these sources. LLMs can help structure, distill, and summarize unstructured data, turning a jumbled mess into something you can actually work with and visualize using analytical tools. A few weeks ago, I had my yearly physical and got a bunch of blood tests done. I was curious to see if I could use Claude to help visualize and analyze my results. The tools within MyChart are OK – but are fairly basic and not exactly user-friendly for looking at time-series information. As an experiment, I downloaded a few of my recent test results as PDFs and fed them into Claude. I asked Claude to build me an interactive tool to explore my test history. I also gave it some basic information like my age and gender, and hit go. As refererence, below is a small excerpt from one of the PDFs. The PDFs have varying formats – depending on the test, and depending on what year the test was done How Claude Did With limited prompting, Claude generated an application that let me visualize my test results over time. It flagged abnormal values and provided general health insights about the results. The entire process took five minutes, and I didn’t need to do any heavy lifting. It was amazing to see how quickly and effectively it transformed my raw data into something useful. I imagine I could drastically improve the outputs with a bit more effort in the prompt. Here is the prompt I used: I want you to build me an interactive tool for exploring my medical test result history. Here are some details on what I am looking for. I will attach several PDFs that contain various test results and diagnostic levels I want to be able to explore this data interactively in the browser I want the tool to highlight any abnormalities I want the tool to highlight any recommendations that I should take action on I want the tool to be creative in nature. The way I explore this data should be differentiated and unique compared to how one might explore this data normally. I want the tool to take into account any additional public data or relevant information for a 41 year old male. Feel free to ask me any questions you have first. Here’s an additional screen-shot from the application it built: Expanded use-cases in the medical field This experiment got me thinking about how LLMs can be used more broadly in the medical field. Below are some high-level concepts that are interesting to me Analyzing Personal Medical Records: LLMs can help you analyze your personal medical records, making it easier to spot trends and anomalies over time. Incorporating Medical Research: They can also relate your personal data to the vast amount of medical research out there, potentially providing insights that you or even your doctor might not have considered. Identifying Non-Obvious Patterns: LLMs are capable of finding patterns in large datasets that might not be immediately obvious. Visualizing Data Easily: With minimal coding, LLMs can help you visualize data in unique and helpful ways. Quickly Building Interfaces: LLMs can help you rapidly create user interfaces for unstructured data, saving time and effort. Empowering Personal Data Exploration: LLMs help you to explore your own data without needing specialized tools or skills. Why I Think This Matters; tools: Claude. Human role: The original post does not say how a person stayed involved.; limitations: This is a personal experiment, not a medical device or professional diagnostic tool. It requires human oversight and should not replace professional medical advice. The source does not specify data privacy measures for uploading sensitive health records to an LLM. Integration with existing healthcare systems is not addressed..

Tools

Claude

Published on Agent Work Atlas:

Overview

July 18, 2024 · 4 min read

Workflow

July 18, 2024 · 4 min read TLDR I want to share something interesting I’ve been playing with recently. I’ve been experimenting with LLMs to build user interfaces for unstructured data. This experiment also got me thinking about how LLMs might be useful in the medical field (when used appropriately and with strong human guidance / human oversight). Using Claude, I built a small web application to explore my recent blood test results. I uploaded a set of unstructured PDF test results exported from MyChart, and worked with Claude to make sense of it. Want to check out the tool? Here’s the link Video Walk-Through Making Sense of Unstructured Data If you’ve ever had to deal with unstructured data – whether in PDFs, Word docs, raw text files, or something else – you know how messy and time-consuming it can be to make sense of it all. LLMs are particularly well-suited to help you extract structured information from these sources. LLMs can help structure, distill, and summarize unstructured data, turning a jumbled mess into something you can actually work with and visualize using analytical tools. A few weeks ago, I had my yearly physical and got a bunch of blood tests done. I was curious to see if I could use Claude to help visualize and analyze my results. The tools within MyChart are OK – but are fairly basic and not exactly user-friendly for looking at time-series information. As an experiment, I downloaded a few of my recent test results as PDFs and fed them into Claude. I asked Claude to build me an interactive tool to explore my test history. I also gave it some basic information like my age and gender, and hit go. As refererence, below is a small excerpt from one of the PDFs. The PDFs have varying formats – depending on the test, and depending on what year the test was done How Claude Did With limited prompting, Claude generated an application that let me visualize my test results over time. It flagged abnormal values and provided general health insights about the results. The entire process took five minutes, and I didn’t need to do any heavy lifting. It was amazing to see how quickly and effectively it transformed my raw data into something useful. I imagine I could drastically improve the outputs with a bit more effort in the prompt. Here is the prompt I used: I want you to build me an interactive tool for exploring my medical test result history. Here are some details on what I am looking for. I will attach several PDFs that contain various test results and diagnostic levels I want to be able to explore this data interactively in the browser I want the tool to highlight any abnormalities I want the tool to highlight any recommendations that I should take action on I want the tool to be creative in nature. The way I explore this data should be differentiated and unique compared to how one might explore this data normally. I want the tool to take into account any additional public data or relevant information for a 41 year old male. Feel free to ask me any questions you have first. Here’s an additional screen-shot from the application it built: Expanded use-cases in the medical field This experiment got me thinking about how LLMs can be used more broadly in the medical field. Below are some high-level concepts that are interesting to me Analyzing Personal Medical Records: LLMs can help you analyze your personal medical records, making it easier to spot trends and anomalies over time. Incorporating Medical Research: They can also relate your personal data to the vast amount of medical research out there, potentially providing insights that you or even your doctor might not have considered. Identifying Non-Obvious Patterns: LLMs are capable of finding patterns in large datasets that might not be immediately obvious. Visualizing Data Easily: With minimal coding, LLMs can help you visualize data in unique and helpful ways. Quickly Building Interfaces: LLMs can help you rapidly create user interfaces for unstructured data, saving time and effort. Empowering Personal Data Exploration: LLMs help you to explore your own data without needing specialized tools or skills. Why I Think This Matters

Reported result

The process took five minutes and successfully transformed raw PDF data into a visualized, interactive format. The tool highlighted abnormalities and offered general health insights. However, the post does not provide measured accuracy metrics or clinical validation results. The author noted that output quality could improve with more detailed prompting.

Human role

The original post does not say how a person stayed involved.

Limitations

This is a personal experiment, not a medical device or professional diagnostic tool. It requires human oversight and should not replace professional medical advice. The source does not specify data privacy measures for uploading sensitive health records to an LLM. Integration with existing healthcare systems is not addressed.

Try it

Act as a data visualization assistant. I will provide [replaceable inputs: unstructured medical test PDFs, patient age, gender]. Your task is to build a standalone HTML/JS interactive dashboard. Steps: 1. Extract test names, values, dates, and reference ranges from the PDFs. 2. Structure this data into a JSON object. 3. Create a visualization that plots values over time, highlighting out-of-range results. 4. Add a section for general insights based on the data. 5. Output the complete code. Before finalizing, perform a dry run on one sample PDF and show me the extracted JSON for confirmation. Do not provide medical diagnoses. If data is missing or ambiguous, ask clarifying questions. Ensure the code is self-contained and ready to run in a browser.

Original source

Source reports are not independently verified. Publication date is the catalog publication date, not the original article date.

More cases · Everyday life