Automating Healthcare Procedure Code Selection Through Domain-Specific LLM Platform
hasura_/_promptql · Healthcare · year n/a · source Agentic: yes · promotional bias: high · summary-only (no fetched source) · extracted with prompt 0.5.4 (schema v2)
Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.
Problem
Domain: Healthcare scheduling automation
A radiology software company needed to reduce appointment-scheduling call time by automating procedure-code selection across complex clinic-, regulation-, and patient-specific rules.
Constraints:
- operators had to choose among hundreds of procedure codes
- rules vary by clinic, regulations, patient demographics, and visit history
- domain experts understand the rules but cannot code automations
- developers can code but often lack the operational domain context
- healthcare automation needs deterministic, auditable execution
Architecture
PromptQL addresses the healthcare automation paradox with a domain-specific LLM platform. Non-technical administrators express business logic in natural language. The system converts those requirements into a company-specific query language, uses semantic layers and ontologies to ground domain terms, tests the resulting automation against scenarios, and deploys deterministic executable logic through a simplified SDLC designed for non-technical users.
Diagram confidence: reconstructed (reconstructed from prose).
flowchart LR natural-language-rule-authoring[Natural language rule authoring] --> domain-semantic-layer[Domain semantic layer] domain-semantic-layer --> domain-specific-query-generator[Domain-specific query generator] domain-specific-query-generator --> scenario-test-harness[Scenario test harness] scenario-test-harness --> deployment-workflow[Deployment workflow]
Components
| Component | Role | Interacts with |
|---|---|---|
Natural language rule authoring |
Lets healthcare administrators express scheduling and procedure-code rules conversationally. | Domain semantic layer |
Domain semantic layer |
Encodes terminology, procedures, entities, and organizational ontologies. | Natural language rule authoring, Domain-specific query generator |
Domain-specific query generator |
Turns natural language into company-specific executable logic. | Domain semantic layer, Scenario test harness |
Scenario test harness |
Runs automations across example inputs and supports iterative rule refinement. | Domain-specific query generator, Deployment workflow |
Deployment workflow |
Provides versioning, staging, production deployment, and troubleshooting for non-technical users. | Scenario test harness |
Data flow
Healthcare administrators describe procedure-selection rules in natural language. PromptQL maps those statements through a domain semantic layer into a company-specific query language, produces deterministic executable plans, runs test scenarios, and lets users refine or deploy the automation through versioned staging/production workflows.
4 supporting quotes
Why this architecture
The architecture separates natural-language authoring from deterministic execution. That lets domain experts author changing healthcare rules without making the runtime probabilistic. The semantic layer is the bridge between clinical scheduling language and executable plans, while testing/deployment workflows keep non-technical users inside a production process.
3 supporting quotes
Models used: PromptQL domain-specific LLM platform · domain-specific models/fine-tuned foundation models
Scale
- Traditional appointment-scheduling calls took 12-15 minutes.“The traditional manual process took 12-15 minutes per call, requiring operators to navigate complex UIs and select from hundreds of procedure codes that varied by clinic, regulations, and patient circumstances.”summary, stated
- Reducing calls by three minutes was estimated at about $50 million in impact.“The presenter noted that reducing call times by just 3 minutes could yield approximately $50 million in business impact across their network servicing thousands of clinics globally, primarily in the US and Europe.”summary, stated
- The network serves thousands of clinics globally, mostly in the US and Europe.“The presenter noted that reducing call times by just 3 minutes could yield approximately $50 million in business impact across their network servicing thousands of clinics globally, primarily in the US and Europe.”summary, stated
- Mammogram code sets could range from 5 to 250 codes across clinic families.“Varying procedure code sets across different clinic families (ranging from 5 to 250 codes just for mammograms)”summary, stated
Alternatives considered (roads not taken)
Traditional developer-built configuration systems
Rejected because: The rule space caused configuration explosion and left many rules uncoded.
General-purpose foundation-model coding
Rejected because: PromptQL invested in domain-specific query languages and semantic layers for healthcare terminology.
Let AI operate directly in the data layer
Rejected because: PromptQL runs the query language in user space to maintain security boundaries.
Patterns
structured-output-contract (reliability)
Natural language is compiled into deterministic domain-specific query plans rather than executed directly as free-form model output.
tool-use-orchestration (workflow)
The platform combines rule authoring, testing, deployment, version control, and troubleshooting for non-technical users.
fine-tuning-adaptation (modeling)
The platform uses domain-specific model training and ontologies for healthcare procedure-code logic.
privacy-preserving-processing (governance)
The user-space query-language boundary separates AI-authored logic from data-layer authorization.
Tradeoffs
Compile natural language into deterministic plans
Chose domain-specific executable query language over direct model execution of business rules.
Rationale: The query layer preserves auditability and precision while allowing non-technical authoring.
Invest in domain specialization
Chose semantic layers and domain-specific model training over general-purpose coding models.
Rationale: Procedure code selection depends on specialized healthcare terminology and local business rules.
Gotchas (what bit them)
Business experts and developers hold different halves of the automation knowledge.
Root cause: Healthcare administrators know procedure rules but cannot code; developers can code but lack domain detail.
Resolution: PromptQL lets administrators author natural-language rules that compile to executable logic.
Domain setup is expensive.
Root cause: The system needs semantic layers, ontologies, model maintenance, and testing infrastructure.
Resolution: The source positions that upfront work as necessary for regulated, complex enterprise domains.
Rule correctness can be hard when business rules interact.
Root cause: Complex healthcare rules may interact in unexpected ways.
Resolution: Scenario testing and iterative refinement are built into the user workflow.
Evaluation
The summary describes scenario testing and reported business-impact estimates; it does not provide an independent benchmark of rule accuracy.
Metrics: call handling time · business impact estimate · scenario test success · training-cost reduction · deployment workflow adoption
Outcomes
- The solution targeted 12-15 minute appointment-scheduling calls.
- The case estimated $50-100 million in potential business impact.
- Non-technical administrators can author and test automation rules.
- The case highlights setup and validation complexity rather than complete evidence of accuracy.
Summary-only evidence reports thousands of clinics, 5-250 procedure-code variants for mammograms, and $50-100 million potential impact.