Skip to main content

Medical & Academic Research

Reveal provides two complementary capabilities for healthcare and research use cases:

  • OpenEMR Integration — connect to an OpenEMR instance to query live patient and clinical data using FHIR
  • Academic Research Mode — augment Data Explorer queries with results from OpenAlex, PubMed, and Clinical Trials databases
note

OpenEMR integration is a licensed feature. Contact your administrator if it is not visible in your Integrations panel.


OpenEMR — Clinical Data Integration

OpenEMR is an open-source electronic health record (EHR) and practice management system. Reveal connects to OpenEMR via SMART on FHIR OAuth2, allowing clinicians to query patient records, surface drug safety alerts, review vitals and labs, and ask evidence-based clinical questions — all from within Reveal's chat interface.

Connecting to OpenEMR

  1. Go to Integrations in the left navigation
  2. Click Add new Integration and select OpenEMR
  3. Enter your OpenEMR instance URL (e.g. https://your-openemr-instance.com)
  4. Click Authorise — Reveal initiates the SMART on FHIR OAuth2 flow
  5. Log in to OpenEMR in the popup and approve access
  6. Reveal completes the connection and stores your access token securely

Selecting a patient

Once the OpenEMR connection is active, select it from the connection selector in Chat. A patient list appears in the Analyzer panel — search by name, date of birth, or patient ID and click a patient to scope the session to them.

After selecting a patient, Reveal opens the patient dashboard showing their demographics, active conditions, critical labs, and a live Intelligence Stream sidebar.

OpenEMR Connection — Patient Susan

The dashboard is organised into tabs:

TabWhat it shows
OverviewDemographics, active conditions, critical lab values, and proactive clinical insights
MedicationsActive prescriptions with drug safety alerts, boxed warnings, and historical medications
Vitals & LabsAll recorded observations with a NEWS2 early warning score
TrialsMatching clinical trials from ClinicalTrials.gov based on the patient's conditions
SDOHSocial Determinants of Health risk score from CDC Social Vulnerability Index
Research LibrarySaved academic papers relevant to this patient's case

Intelligence Stream

The Intelligence Stream sidebar on the left of the patient dashboard runs continuously and surfaces five live signals:

SignalDescription
Drug Safety AlertsActive FDA boxed warnings and major safety notices for the patient's current medications
Clinical TrialsOpen trials the patient may be eligible for based on their diagnoses
Clinical RiskAutomated risk classification (e.g. Moderate Risk) derived from vitals and conditions
Recent VitalsWhether recorded vitals are within normal range
Vitals TrendDirection of change — stable, improving, or worsening

Below the signals, Proactive Insights flags care gaps and overdue actions — for example, overdue lab orders, HbA1c checks, or medication safety gaps — so clinicians can act without having to ask.

Vitals & Labs

The Vitals & Labs tab shows all FHIR Observation resources for the patient, including a computed NEWS2 Score (National Early Warning Score 2) at the top — a standardised early-warning indicator calculated from the patient's current vitals.

Vitals and Lab Results

Each observation shows the measurement name, value with units, and the date it was recorded. All 15 (or more) observations are listed with the most critical values surfaced on the Overview tab.

Medications & Drug Safety Alerts

The Medications tab lists all active and historical prescriptions. Where the FDA has issued a boxed warning or major safety alert for a medication, the alert is shown inline — expanded and labelled by severity (Major / Moderate).

Medications and Drug Safety Alerts

This means clinicians can see at a glance which of the patient's current medications carry active warnings — without needing to look them up separately.

Social Determinants of Health (SDOH)

The SDOH tab calculates the patient's Social Vulnerability Index from the CDC's SVI 2022 dataset, based on the patient's ZIP code. It breaks vulnerability down across four domains:

DomainWhat it measures
Socioeconomic StatusIncome, poverty, unemployment, housing cost burden
Household CharacteristicsAge (elderly/children), disability, language isolation
Racial & Ethnic MinorityMinority population, non-English speaking households
Housing & TransportationMulti-unit structures, mobile homes, vehicle access, group quarters

Each domain is rated LOW, MODERATE, or HIGH with its national percentile ranking.

SDOH — Social Determinants of Health

The overall SVI score is displayed at the top. Scores at or above the 75th percentile indicate high social vulnerability — factors that should be incorporated into care planning, medication adherence support, and follow-up strategies.

Asking clinical questions

With a patient selected, type any clinical question in the Chat input. Reveal's Clinical Decision Support (CDS) agent fetches the relevant FHIR resources and generates a structured answer using the patient's actual data — not generic information.

Example questions:

  • "What medications is this patient currently prescribed?"
  • "Summarise the lab results from the last 3 encounters."
  • "Are there evidence-based alternatives to Metformin for diabetics with a boxed warning?"

Clinical Question — Metformin Alternatives

The response is labelled Clinical Intelligence Response and includes:

  • A CDS Recommendation card at the top — a prioritised, actionable clinical suggestion (e.g. ordering a specific lab before continuing a medication)
  • A Summary Diagnostic Support section grounding the answer in the patient's specific profile
  • An evidence-based narrative drawing from ADA guidelines, clinical literature, and the patient's data — with inline citations linked to the sources used

Clinical Answer with Recommendations

The answer also includes Key Recommendations for Diagnostic Next Steps — a numbered, prioritised action list the provider can work through, and a Conclusion that synthesises the findings into a clear clinical summary.

Recommendations and Conclusion

Glass-Box Reasoning & confidence factors

Every clinical response shows a confidence score (e.g. "MODERATE 51.8%"). Clicking Why did the AI say this? opens the Glass-Box Reasoning panel — a transparency layer that breaks down exactly how the answer was constructed.

Drug Safety Alerts and Glass-Box Reasoning

The panel shows:

  • Drug Safety Alerts — FDA warnings for any medications mentioned in the response
  • Confidence Factors — a breakdown of what contributed to the confidence score, including literature quality, source diversity, patient data coverage, literature volume, recency (≤3 years), and clinical intelligence — each shown with a before/after percentage bar
  • Patient Data Used — which FHIR data categories were read to construct this answer (e.g. Patient demographics, Conditions/diagnoses, Active medications, Vitals & lab results, Encounters/visits)

Patient Data Used and Evidence Sources

Below confidence factors, the panel shows:

  • Clinical Intelligence Layers — additional data enrichments applied, such as Drug Safety (FDA DailyMed) and SDOH Risk (CDC SVI)
  • Evidence Sources — the academic papers retrieved and scored to support the answer, with relevance percentages and links to OpenAlex or PubMed

Clinical Decision Support notice

Every clinical response includes two safety notices at the end:

Clinical Decision Support Notice

  • Clinical Decision Support Notice"This information is for clinical decision support only and does not replace professional medical judgment, institutional guidelines, or patient-specific clinical assessment."
  • Clinical Application"Drug dosages and treatment protocols mentioned should be verified against current formulary and patient-specific factors."

Below the notices, the Sources panel lists every verified source used, with relevance scores and a Save All option to add papers directly to the Research Library.

Token management

Reveal automatically refreshes OAuth tokens in the background. If a session expires, re-authorise the connection from the Integrations page.

What the CDS agent can retrieve

The agent uses a set of FHIR-backed tools to fetch clinical data on demand. It selects the right tool(s) based on your question and can call multiple tools in one turn.

ToolData fetched
get_patient_medicationsPrescriptions, drugs, dosages, medication history
get_patient_immunizationsVaccination records and immunization status
get_patient_observationsLab results, vital signs, test results, measurements
get_patient_conditionsDiagnoses, conditions, problem list, medical history
get_patient_encountersVisit history, appointments, last seen date
get_patient_diagnostic_reportsLab panels, imaging reports, pathology results

Academic Research Mode

Research Mode augments Data Explorer queries with results from academic and clinical literature databases — useful for evidence-based analysis alongside your own documents.

Supported databases

DatabaseContent
OpenAlexAcademic publications across all disciplines
PubMedBiomedical and life sciences literature (NCBI)
Clinical TrialsTrial registrations and results from ClinicalTrials.gov

Enabling Research Mode

  1. Open Data Explorer
  2. Click the Research toggle in the search bar — labelled "Search academic papers from OpenAlex & PubMed"
  3. Enter your query — Reveal searches both your document library and the external databases simultaneously

Results are grouped by source: your uploaded documents, OpenAlex papers, PubMed articles, and Clinical Trials entries. Each result includes a citation with a relevance score.

Saving research papers

Click Save on any research result to add it to your document library. Saved papers become searchable in future Data Explorer queries and Document Intelligence sessions. In an OpenEMR session, saved papers also appear in the patient's Research Library tab.

Configuration

Administrators can configure the research API keys in System Config:

SettingPurpose
ai.research.openalex.api_keyOpenAlex API key for higher rate limits
ai.research.openalex.mailtoEmail for OpenAlex polite pool
ai.research.pubmed.api_keyPubMed / NCBI API key
ai.research.pubmed.emailEmail for PubMed NCBI API

OpenAlex and PubMed work without API keys at lower rate limits. Keys are recommended for production deployments.