DEV Community

Cover image for From Search to Care: Applying Gemini Search Journeys to Healthcare Discovery
Hastimal Jangid
Hastimal Jangid Subscriber

Posted on Edited on AI-assisted

From Search to Care: Applying Gemini Search Journeys to Healthcare Discovery

Across this series, I started with a simple question:

How does a user query become a grounded decision?

That took the project through query fan-out, retrieval, ranking, AI visibility, agents, OpenTelemetry, and AgentOps.

For the final part, I wanted to apply the same design ideas to a domain where evidence boundaries matter much more: healthcare discovery.

The goal is not to build an AI doctor.

The goal is narrower:

Can an AI-assisted search journey help someone discover appropriate healthcare providers while making the supporting evidence, limitations, and source provenance visible?

For this experiment, I used pediatric dental discovery as the example.

A parent might ask:

Find three pediatric dentists in Houston for a child who is scared of going to the dentist. Compare them using trustworthy sources, provider credentials, services, and location, and explain why you selected each one.

That sounds like a local-search problem.

But healthcare changes the architecture.


Step 1: The query needs more than location

For a coffee-shop search, the system might extract:

location
group size
opening hours
quiet/work preference

Enter fullscreen mode Exit fullscreen mode

For healthcare discovery, the same query can contain several different information needs:

specialty
location
patient need
provider discovery
credential context
clinical evidence
care-related constraints
Enter fullscreen mode Exit fullscreen mode

So the first step is still intent understanding and query fan-out — but the search plan becomes more deliberate.

For the pediatric-dentist example, the search planner can generate queries for:

Provider discovery
Dental-anxiety experience
Professional directory discovery
State licensing sources
Biomedical evidence on behavior guidance
Biomedical evidence in sedation / nitrous oxide
FHIR interoperability context
Enter fullscreen mode Exit fullscreen mode

The healthcare platform represents these as a structured SearchPlan rather than treating the entire request as one search string.

This is the same idea I used earlier in the AI Search Journey Lab:

one user question does not necessarily equal one retrieval query.

Gemini converts the healthcare question into separate provider, credential-source, research, and interoperability retrieval tasks.


Step 2: Different questions need different sources

This is where healthcare becomes more interesting.

A single retrieval source is not enough.

For this workflow, I separate the evidence paths.

Provider discovery
      ↓
NPPES

Biomedical evidence
      ↓
PubMed

Interoperability exploration
      ↓
FHIR R4
Enter fullscreen mode Exit fullscreen mode

The healthcare platform uses Google ADK with an MCP-based retrieval layer to route provider and research queries to the appropriate sources.

The important point is that these sources do different jobs.
NPPES can provide structured provider information.

PubMed can provide biomedical literature.

FHIR can represent standardized relationships between practitioners, specialties, organizations, and locations.

I do not want to mix those evidence types and pretend they prove the same thing.


Step 3: Discovery is not verification

This became one of the most important healthcare rules in the project.

Generating a query such as:

Texas State Board of Dental Examiners dentist license verification
Enter fullscreen mode Exit fullscreen mode

does not mean a provider's license has been verified.

Similarly:

AAPD find a pediatric dentist Houston TX
Enter fullscreen mode Exit fullscreen mode

does not mean professional membership or board status has been confirmed.

The search-planning instructions explicitly preserve that distinction: identifying an authoritative source is not the same as retrieving and validating evidence from it.

That leads to a simple rule I use throughout the healthcare work:

No evidence → no claim.


Step 4: Let agents plan, but keep evidence deterministic

The healthcare architecture uses three core agents.

User Healthcare Question
          ↓
Search Planner Agent
          ↓
SearchPlan
          ↓
Healthcare Research Agent
          ↓
MCP Retrieval
          ↓
Evidence
          ↓
Grounded Answer
Enter fullscreen mode Exit fullscreen mode

The broader platform uses Gemini or Gemma for reasoning while keeping the Google ADK workflow and deterministic evidence boundaries intact.

This separation matters.

I am comfortable letting a model:

  • interpret the question
  • create retrieval plans
  • select tools
  • summarize evidence

I do not want the model to manufacture:

  • provider credentials
  • services
  • citation IDs
  • verification claims
  • unsupported healthcare facts

For example, citation references are validated against the actual selected evidence, and invalid citation IDs are rejected.

That makes the system less magical, but much more inspectable.

Search-to-care architecture: Gemini plans the journey, specialized sources provide evidence, and deterministic checks constrain the final provider-discovery answer.


Step 5: The answer should expose its boundaries

Healthcare search should not sound more certain than the evidence allows.

A useful result should distinguish:

What was found
What was supported
What still needs verification

For example, the system may find a provider through NPPES and biomedical evidence about pediatric dental anxiety through PubMed.

That does not automatically prove that the specific provider:

  • offers sedation
  • accepts a particular insurance plan
  • has a particular appointment available
  • has specialized expertise in a specific anxiety-management technique

Those require their own evidence.

This is the healthcare version of a principle that appeared throughout the AI Search Journey Lab:

Make the evidence boundary visible.


Step 6: Provider discovery and medical advice are different

I also wanted a very clear product boundary.

This workflow supports healthcare discovery.

It is not intended to diagnose a patient or prescribe treatment.

There is a significant difference between:

Find pediatric dentists near Houston and show me the evidence you used.

and:

Tell me which medical treatment my child should receive.

The first is primarily a discovery and evidence-retrieval problem.
The second can become clinical decision-making.

I keep those two problems separate.

The system can retrieve research about dental anxiety and behavior guidance to provide context, but that evidence should not be transformed into individualized medical advice.


Step 7: Run the same journey as an inspectable workflow

What I like about applying the search-journey architecture to healthcare is that the journey remains inspectable.

Instead of:

Question
   ↓
LLM
   ↓
Answer
Enter fullscreen mode Exit fullscreen mode

I can inspect:

Question
   ↓
Intent
   ↓
Search Plan
   ↓
Generated Queries
   ↓
Sources Used
   ↓
Retrieved Records
   ↓
Evidence Selection
   ↓
Ranking
   ↓
Citations
   ↓
Answer
Enter fullscreen mode Exit fullscreen mode

That is far more useful for healthcare than a confident paragraph with invisible provenance.

The final provider-discovery result keeps recommendations connected to the evidence used to support them.


What changed when I moved from search to care

The basic search architecture still worked:

Intent
↓
Fan-Out
↓
Retrieval
↓
Evidence
↓
Ranking
↓
Grounded Answer
Enter fullscreen mode Exit fullscreen mode

Basic Structure

But healthcare forced me to be stricter about several things.

1. Source roles
Not every source proves the same thing.

2. Claim boundaries
Finding a provider is not the same as verifying every provider attribute.

3. Citations
The model should not be able to invent evidence references.

4. Safety
Provider discovery is not medical diagnosis.

5. Explainability
Unknown information should remain unknown rather than being filled in by the model.

Those lessons are useful well beyond healthcare.


What I learned from the full series

This project started as a search demo.

It gradually became a study of how AI systems can make decisions more inspectable.

The progression looked like this:

Search
   ↓
Grounding
   ↓
Journey Analysis
   ↓
Visibility
   ↓
Agents
   ↓
Tracing
   ↓
AgentOps
   ↓
Healthcare Discovery
Enter fullscreen mode Exit fullscreen mode

The biggest lesson for me is still the simplest:

A good AI search system should not only tell me the answer. It should help me understand where that answer came from.

In healthcare, that becomes even more important.


Cleanup Resource

To clean up all cloud resources, avoid cost, just run below -

./scripts/delete_cloud_run.sh
Enter fullscreen mode Exit fullscreen mode

Delete resources script


Source code

1. AI Search Journey Lab:
https://github.com/hastimal/ai-search-journey-lab

2. Healthcare agentic platform:
https://github.com/hastimal/gemini-healthcare-agentic-platform

The two projects explore the same underlying idea from different directions:

retrieve evidence, preserve provenance, expose uncertainty, and let the model reason inside explicit boundaries.

Top comments (0)