Building Healthcare-Specific LLM Pipelines for Oncology Patient Timelines

roche_diagnostics_/_john_snow_labs · Healthcare · year n/a · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.5 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Oncology clinical data abstraction

Roche Diagnostics and John Snow Labs explored healthcare-specific LLM pipelines for turning fragmented oncology EHR notes into patient chemotherapy timelines and guideline-relevant structured data. The core challenge is that healthcare data is unstructured, multilingual, semantically ambiguous, and expensive to annotate, while clinical use requires accurate temporal relations, privacy awareness, and responsible human oversight.

Constraints:

Architecture

The pipeline sits around Roche's navify oncology clinical hub. Fragmented EHR notes feed an AI-assisted data abstraction layer that uses NLP, machine learning, and healthcare-specific LLM prompts to detect medical concepts, extract chemotherapy events and time expressions, classify temporal relations, normalize time expressions, and refine patient-level timelines. The structured timeline can then support navify's longitudinal patient view and smart navigation to relevant NCCN guideline sections. For relation extraction, the team tested structured prompt variants and healthcare-specific models such as JSL Med Llama 3 8B, using zero-shot prompting where labeled data is limited.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  oncology-care-team[Oncology care team] --> navify-oncology-clinical-hub[navify oncology clinical hub]
  navify-oncology-clinical-hub --> nccn-guideline-navigator[NCCN guideline navigator]
  navify-oncology-clinical-hub --> structured-patient-timeline[Structured patient timeline]
  unstructured-ehr-notes[Unstructured EHR notes] --> ai-assisted-abstraction-pipeline[AI-assisted abstraction pipeline]
  ai-assisted-abstraction-pipeline --> medical-concept-detector[Medical concept detector]
  ai-assisted-abstraction-pipeline --> chemotherapy-event-extractor[Chemotherapy event extractor]
  ai-assisted-abstraction-pipeline --> time-expression-extractor[Time expression extractor]
  ai-assisted-abstraction-pipeline --> prompted-relation-extractor[Prompted relation extractor]
  chemotherapy-event-extractor --> prompted-relation-extractor
  time-expression-extractor --> prompted-relation-extractor
  prompted-relation-extractor --> healthcare-specific-llm[Healthcare-specific LLM]
  prompted-relation-extractor --> temporal-normalization-stage[Temporal normalization stage]
  temporal-normalization-stage --> structured-patient-timeline
  multidisciplinary-governance[Multidisciplinary governance] --> ai-assisted-abstraction-pipeline
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Oncology care team Clinicians and care-team members who review patient journeys and clinical guideline recommendations. navify oncology clinical hub
navify oncology clinical hub Clinical decision-support surface that aggregates fragmented data into a longitudinal patient view and connects to NCCN guidance. Oncology care team, NCCN guideline navigator, Structured patient timeline
Unstructured EHR notes Radiology, pathology, oncology, discharge-summary, progress-note, and other clinical text inputs. AI-assisted abstraction pipeline
AI-assisted abstraction pipeline NLP/ML pipeline that converts unstructured clinical text into structured and enriched data. Medical concept detector, Chemotherapy event extractor, Time expression extractor, Prompted relation extractor
Medical concept detector Detects healthcare concepts in unstructured reports and notes. AI-assisted abstraction pipeline
Chemotherapy event extractor Extracts chemotherapy drug administrations and relevant treatment events. Prompted relation extractor
Time expression extractor Extracts note dates and time expressions that anchor timeline events. Prompted relation extractor
Prompted relation extractor Healthcare-specific LLM prompt stage that labels temporal relations between entity pairs. Healthcare-specific LLM, Temporal normalization stage
Healthcare-specific LLM Domain-specific language model used for relationship extraction over healthcare text. Prompted relation extractor
Temporal normalization stage Normalizes time expressions and relation labels into a patient-level chronology. Structured patient timeline
Structured patient timeline Machine-readable treatment timeline used to support longitudinal oncology review. navify oncology clinical hub
NCCN guideline navigator Smart-navigation capability that opens relevant clinical guideline sections based on patient data. navify oncology clinical hub
Multidisciplinary governance Medical, legal, regulatory, computer-science, patient, and provider expertise needed for responsible healthcare LLM use. AI-assisted abstraction pipeline

Data flow

Unstructured oncology notes from EHR sources enter the abstraction pipeline. NLP and machine-learning components auto-detect medical concepts and translate free text into structured data. The timeline task decomposes into chemotherapy event extraction, time-expression extraction, temporal-relation classification, time-expression normalization, and patient-level timeline refinement. Prompt templates guide the LLM to label relations between entity pairs, and the resulting patient timeline can be consumed by navify Oncology Clinical Hub to show a longitudinal journey and open patient-relevant NCCN guideline sections.

5 supporting quotes
“we build an AI assisted data abstraction solution it leverages natural language processing and machine learning to autod detect medical Concepts”transcript, stated
“construction of chemotherapy treatment timelines can be naturally decomposed into the following stages chemotherapy event extraction”transcript, stated
“team expression uh extraction temporal relation classification time expression normalization and patient level timeline refinement”transcript, stated
“we develop structure prompts to guide the system in identifying and tracting relations between Pairs of entities”transcript, stated
“our smart navigation capability saves Time by automatically opening up the most relevant section of the guideline based on patient data available”transcript, stated

Why this architecture

The architecture is staged because a patient timeline is not a single generation problem: chemotherapy events, time expressions, temporal links, normalization, and patient-level refinement each need explicit handling. Healthcare-specific models are favored because the source claims they are more accurate for clinical text than generic models. Prompt templates allow zero-shot relation extraction where class-level training data is scarce, while navify integration connects structured timelines to clinician-facing longitudinal views and guideline navigation.

4 supporting quotes
“extracting chemotherapy timelines from Clinical notes involves a series of challenges individual mentions of relevant drug administrations chemotherapy events must be extracted”transcript, stated
“each event must then be assigned a Time extent based on the date of the note and any temporal modifiers and indicators”transcript, stated
“Healthcare specific large language models are highly accurate if you are applying them to our Healthcare domain compared to the non-healthcare specific models”transcript, stated
“relationships uh from the distinct uh list right the zero shot promt gave us a reasonably High Precision by leveraging The Prompt templet that guided the ls to generate responses and it closely matched the desired output without requiring explicit training the data for for each class or category so”transcript, stated

Models used: JSL Med Llama 3 8B version 1.0 · Llama 2 · Mistral 7B · healthcare-specific large language models

Scale

Alternatives considered (roads not taken)

Manual data entry and annotation.

Rejected because: Manual annotation is labor-intensive and subjective, and the goal is to reduce manual data-entry burden.

“detect medical Concepts and translate free text into data that is um structured and enriched while reducing the burden of of manual data entry unstructured Healthcare data exist in diverse report formats has multiple languages based on worldwide geographies semantic”transcript, stated
“including clinical care research and healthare management example synonyms abbreviations Etc anual annotations can be liver intensive and subjective we all agree that extracting relevant information from unstructured sources requires OCR and NLP uh techniques Cancer Care”transcript, stated

Use a generic non-healthcare LLM.

Rejected because: The presenter states healthcare-specific LLMs are more accurate for healthcare-domain unstructured data.

“Healthcare specific large language models are highly accurate if you are applying them to our Healthcare domain compared to the non-healthcare specific models”transcript, stated
“very easy to adapt and basically apply this model to our um you know uh Healthcare specific domain unstructured data”transcript, stated

Prompt relations from a separate list of drugs.

Rejected because: The second prompt variant had trouble labeling relationships from distinct lists, so prompt one was used for submission and evaluation.

“the right hand side for the relation labeled from the separate list of drugs and the test prompt one was used for the submission and for the evaluation we tried prompt two but encountered challenges in labeling the relationships uh from the distinct uh list right the zero”transcript, stated
“we tried prompt two but encountered challenges in labeling the relationships uh from the distinct uh list right the zero shot promt gave us a reasonably High Precision by leveraging The Prompt templet that guided the ls to generate responses and it closely”transcript, stated

Treat generative AI as only a query UI.

Rejected because: The presenter frames most current gen-AI solutions that way, but this pipeline needs structured timeline abstraction and guideline support.

“most gen Solutions L right now is just a user interface where we have input and output queries and it's like a user interactions basically”transcript, stated
“today I will be presenting on the topic applying Healthcare specific large language models to build oncology patient timelines and recommend clinical guidelines I have a disclaimer um Ros has been one of the joho labs customers since August 2018 this presentation has been prepared”transcript, stated

Patterns

structured-output-contract (extraction)

The team decomposes clinical text into events, time expressions, temporal relations, normalized times, and patient-level timelines.

“construction of chemotherapy treatment timelines can be naturally decomposed into the following stages chemotherapy event extraction”transcript, stated
“the set of temporal relations are defined as before contains um def can be defined as basically um can be defined as uh you know U as before contains”transcript, stated

prompt-chaining (llmops)

Structured prompt templates guide relation labeling between clinical entity pairs as one stage in the broader timeline pipeline.

“we develop structure prompts to guide the system in identifying and tracting relations between Pairs of entities”transcript, stated
“these prompts serve as skes for the system to recognize and analyze relevant information in the text pertaining to the specified entities”transcript, stated

fine-tuning-adaptation (model-selection)

The project uses healthcare-specific LLMs such as JSL Med Llama 3 rather than relying only on general-domain LLMs for clinical relation extraction.

“we tested large language models like Lama 2 my 7B with different sizes and architectures to determine which model works best for the relationship extraction”transcript, stated
“Healthcare specific large language models are highly accurate if you are applying them to our Healthcare domain compared to the non-healthcare specific models”transcript, stated

eval-driven-development (quality)

The team compares prompt variants and model choices using a shared task with gold annotations, development/test splits, and relation-extraction evaluation.

3 supporting quotes
“a subset of patients were sampled to create the gold annotations two domain experts created gold annotations”transcript, stated
“the go data set was split into training development and test sets”transcript, stated
“and prom two which is the right hand side for the relation labeled from the separate list of drugs and the test prompt one was used for the submission and for the evaluation we tried prompt two but encountered challenges in labeling the relationships uh from the distinct uh list right the”transcript, stated

privacy-preserving-processing (healthcare)

The case explicitly treats privacy and legal risk from personal healthcare data as a deployment constraint for LLM systems.

“llms training with personal data risk privacy and legal issues in outputs”transcript, stated
“navify digital Solutions securely integrate data across GE settings”transcript, stated

safety-policy-enforcement (clinical-safety)

The presenter calls out hallucination, false treatment suggestions, bias, and the need for multidisciplinary responsible use in healthcare LLMs.

“llms may hallucinate generating incorrect information and that could mislead diagnostic recommendations false treatment suggestions”transcript, stated
“medical professionals clinicians peers providers lawyers regulatory experts computer scientists and patients have to bring their diverse expertise”transcript, stated

Tradeoffs

Use healthcare-specific LLMs.

Chose domain-specific models such as JSL Med Llama 3 over general non-healthcare LLMs.

Rationale: The presenter states healthcare-specific models are more accurate for healthcare-domain unstructured data.

“Healthcare specific large language models are highly accurate if you are applying them to our Healthcare domain compared to the non-healthcare specific models”transcript, stated
“non-healthcare specific models right and they are also very much production ready and one of the example is basically this JSL Med Lama 3 uh 8B version 1.0 and uh if you look at this code which is very easy to adapt and basically apply this model to our um you know uh Healthcare specific domain”transcript, stated

Use zero-shot prompt templates for relation extraction.

Chose prompt-templated zero-shot extraction over requiring explicit training data for every class or category.

Rationale: Zero-shot templates produced reasonably high precision while avoiding explicit class-level training data requirements.

“zero shot promt gave us a reasonably High Precision by leveraging The Prompt templet”transcript, stated
“without requiring explicit training the data for for each class or category”transcript, stated

Use a pair-based relation prompt.

Chose Prompt 1 relation labeling from entity pairs over Prompt 2 relation labeling from separate drug lists.

Rationale: The separate-list prompt had relationship-labeling issues, so the pair prompt was used for final submission and evaluation.

“prompt one which is on the left hand side is the the relation labeled from the pairs”transcript, stated
“we tried prompt two but encountered challenges in labeling the relationships uh from the distinct uh list”transcript, stated

Provide guideline smart navigation based on patient data.

Chose patient-data-driven NCCN section navigation over manual guideline lookup by clinicians.

Rationale: Automatically opening relevant guideline sections saves clinician time and supports evidence-based care decisions.

“we can quickly reference patient specific recommendations from the latest nccn guidelines to support evidence-based care decisions”transcript, stated
“our smart navigation capability saves Time by automatically opening up the most relevant section of the guideline based on patient data available”transcript, stated

Gotchas (what bit them)

Unstructured healthcare data is not point-of-care ready.

Root cause: Clinical data appears in diverse formats, languages, abbreviations, synonyms, and ambiguous concepts.

Resolution: Use OCR/NLP and healthcare-specific LLM relation extraction to translate free text into structured, enriched data.

3 supporting quotes
“most Healthcare data is unstructured and is not available for quick consumption at point of care”transcript, stated
“unstructured Healthcare data exist in diverse report formats has multiple languages based on worldwide geographies”transcript, stated
“extracting relevant information from unstructured sources requires OCR and NLP uh techniques”transcript, stated

Chemotherapy timeline extraction is multi-stage rather than a simple text generation task.

Root cause: Medication events must be mapped to terminologies and assigned temporal extent from note dates and modifiers.

Resolution: Decompose extraction into event extraction, time expression extraction, temporal relations, normalization, and timeline refinement.

3 supporting quotes
“individual mentions of relevant drug administrations chemotherapy events must be extracted and mapped to appropriate medication terminologies”transcript, stated
“each event must then be assigned a Time extent based on the date of the note and any temporal modifiers and indicators”transcript, stated
“chemotherapy event extraction team expression uh extraction temporal relation classification time expression normalization and patient level timeline refinement”transcript, stated

A drug-list prompt variant failed to label relations well.

Root cause: Separating drugs into a distinct list made relationship labeling harder.

Resolution: Use the pair-based relation-labeling prompt for submission and evaluation.

3 supporting quotes
“prom two which is the right hand side for the relation labeled from the separate list of drugs”transcript, stated
“we tried prompt two but encountered challenges in labeling the relationships uh from the distinct uh list”transcript, stated
“and prom two which is the right hand side for the relation labeled from the separate list of drugs and the test prompt one was used for the submission and for the evaluation we tried prompt two but encountered challenges in labeling the relationships uh from the distinct uh list right the”transcript, stated

Healthcare LLMs carry high-stakes risks beyond ordinary extraction errors.

Root cause: LLMs can hallucinate, expose privacy/legal issues, and amplify biased training data.

Resolution: Treat healthcare LLM deployment as a multidisciplinary governance problem involving clinical, legal, regulatory, technical, and patient expertise.

3 supporting quotes
“llms training with personal data risk privacy and legal issues in outputs”transcript, stated
“if they are trained on the bias data right so llms may hallucinate generating incorrect information”transcript, stated
“medical professionals clinicians peers providers lawyers regulatory experts computer scientists and patients have to bring their diverse expertise”transcript, stated

LLMs are expensive and operationally demanding at healthcare scale.

Root cause: Computational resources, preprocessing, specialized talent, and infrastructure costs add up.

Resolution: The presentation acknowledges this as a production consideration rather than claiming it is fully solved.

“llms are expensive at scale um because of the computational resources”transcript, stated
“pre-processing can be expensive it requires specialized talent and also there are uh certain infrastructure costs”transcript, stated

Evaluation

The presentation discusses evaluation through the 2024 SemEval chemotherapy treatment timeline extraction task. It used gold annotations for chemotherapy events, time expressions, temporal relations, and patient-level timelines; split gold data into train, development, and test sets; compared prompt variants; and reported that zero-shot prompting achieved reasonably high precision. Quantitative performance details are not provided in the transcript.

Metrics: chemotherapy event extraction · time expression extraction · temporal relation classification · time expression normalization · patient-level timeline refinement · precision · prompt variant performance · healthcare-specific versus non-healthcare model suitability

5 supporting quotes
“the 2024 share task on chemotherapy treatment timeline extraction aimed to advance the state of the art clinical event timeline extraction from ehrs”transcript, stated
“two domain experts created gold annotations of the chemotherapy events time expressions and temporal relations”transcript, stated
“the go data set was split into training development and test sets”transcript, stated
“and prom two which is the right hand side for the relation labeled from the separate list of drugs and the test prompt one was used for the submission and for the evaluation we tried prompt two but encountered challenges in labeling the relationships uh from the distinct uh list right the”transcript, stated
“tried prompt two but encountered challenges in labeling the relationships uh from the distinct uh list right the zero shot promt gave us a reasonably High Precision by leveraging The Prompt templet that guided the ls to generate responses and it closely matched the desired output without”transcript, stated

Outcomes

The talk cites Roche's 126-year history, 27 billion diagnostic tests, over 16 million patients treated with Roche medicines last year, a 2014-2020 mock oncology timeline, the 2024 chemotherapy timeline extraction shared task, breast/ovarian/skin cancer EHRs, and JSL Med Llama 3 8B version 1.0.

5 supporting quotes
“we build an AI assisted data abstraction solution it leverages natural language processing and machine learning to autod detect medical Concepts”transcript, stated
“and prom two which is the right hand side for the relation labeled from the separate list of drugs and the test prompt one was used for the submission and for the evaluation we tried prompt two but encountered challenges in labeling the relationships uh from the distinct uh list right the”transcript, stated
“tried prompt two but encountered challenges in labeling the relationships uh from the distinct uh list right the zero shot promt gave us a reasonably High Precision by leveraging The Prompt templet that guided the ls to generate responses and it closely matched the desired output without”transcript, stated
“they are also very much production ready and one of the example is basically this JSL Med Lama 3 uh 8B version 1.0”transcript, stated
“effectively ethically and responsibly uh it creates tremendous uh opportunities but also tremendous UH responsibilities use of large language model will be a journey for us um and towards the end I would like to thank all the audience uh who are attending this um uh talk and we are a team of”transcript, stated