Caity Neighbor
The collection
MediumSpecimen № 04Work

The Hidden Join

Provider and Location Routing Without Relational Support

Synthesized a join key within a platform that didn't support joins to route patient feedback to the correct review page.

System snapshot

Synthesized a join key within a platform that didn't support joins to route patient feedback to the correct review page.

📦
TL;DR

Routing patients to the correct Google review page was one of the main reasons customers bought the platform.

For one dermatology group, the correct page depended on the provider and the location together.

The grouping tool could map only one field to one value, so it couldn't read the two as a pair.

I combined the two fields into a single key the tool could read.

Patients reached the correct page for every provider-and-location pair.


Routing by Provider and Location

Sending patients to the correct Google review page after a visit was one of the main reasons customers bought the platform.

For almost everyone, the routing was simple:

  • one review page per provider, or
  • one per location

A single mapping decided which review page a patient saw after completing the survey.

A multi-location dermatology group needed both at once.

For this customer, the correct page depended on the provider and the location together. The routing decision hinged on two fields rather than one, and the platform couldn't evaluate them as a pair.

This setup was an edge case for us, but the account was large enough that we needed to solve it.

The platform could read the pair only as one combined field, and the customer had no way to combine the two on their side.

⏳
At the start of a multi-year relationship, the platform couldn't send this customer's patients to the correct review page.

How the Grouping Tool Normally Works

The platform's main lever for this was its grouping logic: it takes one field in and maps it to one operational value out.

A typical setup is direct:

  1. Start with four locations: New York, Albany, Boston, and Cambridge.
  2. Create a group called State.
  3. Assign each location to its state.

The result is two states, each with two locations.

That setup covered almost every case I had built before this one.


The Challenge

The group ran dermatology across several locations, with providers working at more than one site.

The correct review page depended on the exact provider-and-location pair: the same provider working in Boston sent reviews to a different page than when they were working at Cambridge.

When the implementation moved past standard configuration, I was brought in to consult. Unusual setups I'd worked through on other accounts gave me a head start.

I partnered with the customer's business analyst and integration lead on the big decisions, while day-to-day execution ran through their operational point of contact.

🔔
Two constraints made this harder than the platform gap alone.

The operational point of contact was non-technical. Earlier in the implementation, we had set up a new CSV importer together on a call and confirmed it worked.

The next day she reused an older importer saved in her email, which threw an error saying the headers didn't match.

She changed the headers to clear the error, but the columns still followed the original file. The import overwrote existing contacts and merged old data into new records.

From then on, I designed around her workflow instead of asking her to change it.

The provider list had no standard naming. The names arriving from their source system rarely matched the ones used operationally: "Dr. Smith," "Martin Smith MD," "Mr. Martin Smith," sometimes the same person and sometimes not.

It took multiple rounds of clarification to reconcile the list.

Every mismatched name broke the lookup and sent a patient to an incorrect review page or to none at all.


Going Down a Layer

The grouping tool mapped a single field to a value.

I could route to one destination:

  • every visit with a given provider
  • or every visit to a given office

The grouping tool couldn't express the relationship between the two fields.

The two obvious answers were both closed:

  • "The platform can't do this" wouldn’t work for a core feature on an enterprise account.
  • "Let's build a new product feature" didn't fit an ask this niche, which couldn't justify platform-level work.

I needed another option.


Synthesizing the Key

Beneath the grouping tool sat calculated fields, an internal-only part of the platform that customers couldn't see and that, in practice, mostly engineers opened.

I had seen it used once before, when another customer combined two fields into one for a different use case.

An internal reference page from that work covered the two things I now needed:

  • how to combine fields
  • how the grouping tool read its inputs underneath

That page was my guide, alongside a lot of trial and error.

The platform couldn't express the relationship, so I compressed the two fields into a single value it could read: a calculated field, provider_location_key_c.

provider_c + "_" + location_c

That produced values like DrSmith_Boston and DrSmith_Cambridge.

I thought we were done.


Hitting the Wall

I went back to the grouping tool expecting the combined key to work like any other lookup key.

It didn't: the tool only accepted imported fields as keys, and mine was calculated.


Finishing in the Calculated Fields

The mapping had to live where the key was generated.

I moved the provider-location-to-URL lookup there too, written as direct JSON connections:

{
  "DrSmith_Boston": "https://g.page/r/...boston-smith",
  "DrSmith_Cambridge": "https://g.page/r/...cambridge-smith",
  "DrJones_Boston": "https://g.page/r/...boston-jones"
}

Nothing could generate or push the map automatically, so I built it in a spreadsheet and moved it in:

  • one row per provider-and-location pair
  • collapsed into the JSON format calculated fields expected
  • placed in by hand, and maintained the same way

The interface showed only an ordinary grouping rule, and the routing map sat underneath, in calculated fields that weren't designed to hold it.

The routing logic was invisible from the interface. I documented it heavily in the account record so anyone diagnosing it later would know where to look.

The documentation was a stopgap. Customers couldn't reach calculated fields, which held the risk low, and anyone on our team who picked up the account needed the note to find the map.


System Flow

routing flow

Impact

Result № 01

Correct routing everywhere

Patients reached the correct review page across every provider-and-location combination.

Result № 02

Accurate attribution

Each response was tied to both its provider and its location.

Result № 03

Flexible reporting

Provider and location stayed independent for analysis, combined only for routing.

Result № 04

No customer-side cleanup

The customer's team had nothing to reconcile by hand.


Takeaways

Takeaway № 01

inconsistent naming

Takeaway № 02

human error

Takeaway № 03

non-technical operators

Takeaway № 04

fragile imports

System Details

Signals
Data ModelingConstraint-Based LogicMany-to-Many Relationships
Built with
Google Sheets · CSV/JSON Import · Custom Field Mapping