Expect a camera inspection first. The plumber runs a camera through a cleanout to find the problem and measure roughly how far it is from the house, then explains whether cleaning, a spot repair, lining, or replacement fits the damage.
Digging in Hingham can mean working around mature trees, driveways, and long front yards on larger lots. Repairs and replacements are inspected through the Building Department's Plumbing Inspector, and work that reaches the town's connection may also involve the Sewer Department, so ask the plumber who they'll coordinate with.
On septic properties, the plumber can confirm whether the pipe or the system is failing. If it's the tank or leach field, the repair moves into Title 5 and Board of Health territory, usually with a septic designer or installer.