vervelo logo mobile
Encounter grouping across sources

Two Claims, Two Sources, One Visit.

A single ED visit often produces two separate claims — an institutional (facility) claim and a professional (physician) claim — and today those might arrive as a claims flat file from one system and a FHIR feed from another. This runs claims from both source shapes through the same chaining rules for deciding which claims belong to one emergency-department encounter: an exact same-day/same-facility match, a next-day transfer, a general date overlap at the same facility, or — since professional claims don’t carry facility or discharge fields — a looser overlap-or-adjacent-day rule when either claim is professional.

The four chaining rules are copied from an actual open-source healthcare-data dbt project’s real emergency-department encounter-grouping model, applied here with a union-find over the same pairwise conditions instead of that model’s original row-closure SQL — same rules, same resulting groups. The FHIR shape uses the standard public FHIR Encounter resource fields, not that project’s own FHIR-ingestion connector code (which lives in separate repositories this build didn’t have access to). Worth flagging directly: that project’s real connectors cover claims flat files, FHIR feeds, EHR database extracts, and ADT feeds — no CCDA support was found anywhere in its actual code, so it’s left out here rather than invented. Runs entirely in JavaScript — no model download.

Claims file (Source A)

Headers just need to resemble the sample below — exact wording isn’t required.

FHIR Encounter feed (Source B)

Standard FHIR Encounter resources — id, subject, class and period are the fields this reads.

Case Studies

See how organizations are leveraging our AI solutions to scale.

View All Case Studies
KYC Document Verification for Global Bank case study
Finance · Identity AI

KYC Document Verification for Global Bank

Automatically validating national IDs and international passports at branch registration points.

Read Case Study
Real-Time Anomaly Detection at CloudNet case study
Technology · Infrastructure

Real-Time Anomaly Detection at CloudNet

Monitoring millions of concurrent packets to identify distributed system threats before they escalate.

Read Case Study
Medical Imaging AI for RadiologyPlus case study
Healthcare · Computer Vision

Medical Imaging AI for RadiologyPlus

Empowering radiologists with pre-processed clinical segmentations of scans in milliseconds.

Read Case Study
Vervelo company logo

Vervelo is a digital-health software partner blending deep clinical insight with world-class engineering to build tailored, secure, interoperable healthcare platforms.

Benefits of custom software solutions
  • Software delivered ownership benefit

    You fully own IT consulting and software delivered

  • Highly personalized solution benefit

    You get a highly personalized solution

  • Integration capability benefit

    Customize and integrate seamlessly

  • Scalability benefit

    On-demand scalability is always possible

Frequently Asked
Questions

Have a question that needs a human to answer? No problem.

Speak to our sales team now →
What services does Vervelo offer?

Neque, faucibus fames at et rhoncus pellentesque. Scelerisque commodo nunc tellus, elit semper tempus. Tristique a tincidunt velit metus ipsum ultrum id ut. Vel metus, condimentum ut amet, lectus neque tincidunt placerat.

Do you provide custom CRM solutions?

Yes, we design and develop fully custom CRM solutions tailored to your workflows.

Can these AI solutions run on our own infrastructure?

Yes. Every solution on this page is built to run inside your environment — on your machines, with your data staying where it is.

How long does a typical engagement take?

Most pilots go live in four to six weeks, with production rollout following once the results are validated against your data.

Do you fine-tune models on our data?

We do, where it earns its keep. Many of these solutions start from open models and are tuned against your domain data.

How do we get started?

Send us a note through the form above and we will set up a working session with the engineers who would build it.

Ask AI about this page

Open your assistant with a question about Encounter Grouping — Two Claims, Two Sources, One Visit already written.