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.
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:
- Start with four locations: New York, Albany, Boston, and Cambridge.
- Create a group called State.
- 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.
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_cThat 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
Impact
Correct routing everywhere
Patients reached the correct review page across every provider-and-location combination.
Accurate attribution
Each response was tied to both its provider and its location.
Flexible reporting
Provider and location stayed independent for analysis, combined only for routing.
No customer-side cleanup
The customer's team had nothing to reconcile by hand.
Takeaways
inconsistent naming
human error
non-technical operators
fragile imports