How it Works / How to Build It
- Ehr Normalization: This node extracts and normalizes key patient information from the EHR profile, including demographics, diagnosis, medications, and exclusion factors.
- Search Trials: Using the normalized patient data, this node searches a document index for relevant clinical trials.
- Trial Scoring: This node scores each trial based on how well the patient matches the eligibility criteria, providing detailed explanations for the scores.
- Rank Trials: It ranks the trials based on the scores from the previous node and formats the output for clarity.
- Outreach Message Draft: This node drafts personalized outreach messages for both physicians and patients, summarizing the patient profile and the top matched trials.
- Final Output Outreach Message: Outputs the finalized outreach message for physicians and patients.
- Final Output Ranked Trials: Outputs the ranked list of clinical trials along with their match scores and explanations.
What You Can Use This For
- Patient recruitment for clinical trials in healthcare settings.
- Generating personalized communication for physicians regarding trial options.
- Enhancing patient engagement by providing tailored information about clinical trials.
Prerequisites
- Vellum account.
- Access to a document index containing clinical trial information.
- Patient EHR profiles and consent status data.
How to Set It Up
- Create a new workflow in your Vellum account.
- Add the Ehr Normalization node and configure it to accept patient EHR profiles and consent status.
- Connect the Ehr Normalization node to the SearchTrials node.
- Connect the Search Trials node to the TrialScoring node.
- Connect the Trial Scoring node to the RankTrials node.
- Connect the Rank Trials node to both the OutreachMessageDraft and the Final Output Ranked Trials nodes.
- Configure the Outreach Message Draft node to use outputs from Ehr Normalization and Rank Trials.
- Set up the output nodes to display the outreach message and ranked trials.
FAQs
1. Can I connect this workflow to my organization’s EHR system?
Yes, the Ehr Normalization node can be configured to pull data from your internal EHR or FHIR API. It accepts structured or semi-structured patient data — such as demographics, diagnosis codes, and medication lists — and normalizes them for accurate matching. You can also add a preprocessing step to anonymize patient identifiers before execution.
2. How does the agent decide which clinical trials best fit a patient?
The Trial Scoring node evaluates each trial’s eligibility criteria against the patient’s normalized profile, generating both a numerical match score and a text-based rationale. The RankTrials node then orders the trials based on these scores, ensuring the top matches are the most clinically appropriate.
3. How do I ensure patient data remains private and compliant?
This workflow is designed to operate in HIPAA-compliant environments. You can configure it to de-identify all patient information prior to processing, and securely manage access to the EHR and trial index using encrypted credentials. No PHI should leave your organization’s infrastructure unless explicitly authorized.
4. Can I customize the outreach messages for different audiences?
Yes, the Outreach Message Draft node can be modified to produce messages tailored to physicians, patients, or research coordinators. For instance, you might create a more clinical tone for physicians and a simplified, empathetic tone for patient-facing communication.
5. How can I extend this workflow beyond trial matching?
The same architecture can support other patient-trial operations like eligibility analytics, trial feasibility studies, or site recruitment optimization. By adjusting the data inputs and scoring logic, this becomes a broader research-matching or population health insights engine.
Discover more AI agent templates to automate different aspects of your business
Hear it from our customers


.webp)
Build any AI agent with Vellum
.webp)
