I am very familiar with the Healthcare system but as an advocate and BI guy. There are codes out there called DRG codes that do exactly this, have been in place for decades:
Grok:
"DRG Codes:
or Diagnosis-Related Group codes, are a system used in healthcare to classify hospital cases into groups based on similar diagnoses, treatments, and resource use. They’re primarily used for billing and reimbursement purposes, especially in the U.S. under Medicare. Each DRG code represents a category of patient conditions—like, say, pneumonia or hip replacement—and helps determine how much a hospital gets paid based on the expected cost of care. The idea is to standardize payments and encourage efficiency."
