Utah all-payer claims database submissions
Insurance United States
Checks a health plan’s monthly eligibility, medical and dental claims, pharmacy claims and provider files for the Utah All-Payer Claims Database before they’re sent, and checks every claim against the member’s eligibility and the provider file, as the Office of Healthcare Statistics does when it loads them.
From the Utah APCD Data Submission Guide, version 4.2.
- 163validation rules
- 37pipeline stages
- 259data elements
- 5 minto build and check
See it in Quantemplate
The pipeline

The validations

Claims against eligibility

What it checks
163 rules 145 Fail 18 Warning
- EligibilityThe payer, insurance type, year and month, eligibility dates and never-eligible corrections, coverage, member details, plan and market fields, and one record per member, month and insurance type 44 Fail, 2 Warning 46
- Medical claimsClaim, line and version numbers, dates, institutional, professional and dental fields, providers and NPIs, amounts in cents and reversals, line 1 and duplicate lines, and the member’s eligibility and coverage in the month of service 49 Fail, 9 Warning 58
- Pharmacy claimsClaim, line and version numbers, dates, the pharmacy and prescriber, NDC and dispensing fields, quantity, days supply and amounts, line 1 and duplicate lines, and the member’s pharmacy coverage in the fill month 38 Fail, 7 Warning 45
- ProvidersProvider ID and entity, names, taxonomy, office state and ZIP, tax ID, DEA number, NPI, licence number, and one record per provider and location 14 Fail 14
A rule set to Fail marks its rows as failed, and any failure blocks Auto Export if you set it up. Warnings are only reported. Validation never removes a row. Every rule and its formula is listed in VALIDATIONS.md in the download.
How the pipeline works
- Stages 1–4 Prepare Detect headers and tidy the eligibility, medical claims, pharmacy claims and provider files
- Stages 5–8 Keys Work out each date’s year, month and day, the eligibility month or month of service, and keys for members, claims, claim lines and provider locations
- Stages 9–12 Check eligibility Count each member’s records by month and insurance type, with their coverage, find the first and last months in the file, and run the eligibility rules
- Stages 13–23 Check medical claims Find each claim’s first line, count line versions, total the provider file by provider, join the member’s eligibility and both providers to each line, and run the medical claim rules
- Stages 24–34 Check pharmacy claims The same for pharmacy claims, with the pharmacy and the prescriber
- Stages 35–37 Check providers Count the records for each provider and location, and run the provider rules
What’s in the download
- The 163 rules as JSON, and a table of every rule with its formula and why
- Good data for a fictional health plan’s October 2026 submission, with eligibility for July to October, and test files with a filing built to fail each rule
- The number of rows each rule should flag on the test files
- A script that converts pipe-delimited submission files to CSV, which Quantemplate uploads
- A template file the Quantemplate build skill reads to build the pipeline and check the results
- A snapshot of the finished pipeline
The guide isn’t included. Download it from the Office of Healthcare Statistics.
Build it
- Install the Quantemplate skills, version 1.0.0 or later, if you haven’t already. Then unzip the download.
- With Claude in Chrome signed in to Quantemplate, ask Claude Code:
Build the Utah APCD pipeline from the utah-apcd-submissions folder.
- Claude creates the datasets and stages, runs the test data and checks every rule’s result. This takes around 5 minutes.
The agent builds through the Quantemplate app’s own API in your browser. That API isn’t published, so if a release changes it, the build stops and tells you what went wrong. Review what the agent builds before you rely on it.
Using real files
- Add the four files each month: member eligibility (ME), medical and dental claims (MC), pharmacy claims (PC) and providers (MP), with the guide’s data element numbers as column names, such as
ME001andMC059. - Submission files are pipe-delimited, which Quantemplate doesn’t upload. Convert each one to CSV first with
scripts/apcd_pipe_to_csv.pyin the download. - Give amounts in whole cents with no decimal point, and dates as yyyymmdd, as the guide requires.
- Include the month being reported and the three before it in the eligibility file, as the guide asks. Claims are checked against eligibility for the months the file covers.
- Choose each new file in its Prepare stage, stages 1 to 4, in place of the previous month’s. Or give each file the name of the one it replaces: an upload with the same name replaces it, and the stage keeps using it.
- If you have a waiver for a field, set the rules for that field to Warning.
- Correct anything a Fail rule flags, then send the original pipe-delimited files to the Office of Healthcare Statistics.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- Claims for months outside the eligibility file aren’t checked against eligibility. Claims are often paid late, so checking them would need earlier eligibility files.
- If the eligibility file has no records for the payer, no claim is checked against eligibility.
- The Office accepts a file when required fields are valid in an agreed share of records. The pipeline checks every record, so a file can pass the Office’s thresholds and still show failures here.
- Diagnosis, procedure, revenue, NDC, taxonomy and NUBC codes are checked for their shape or length, not against the code sets.
- The guide’s control totals and submission reports aren’t included.
- The test data is fictional.
- The build doesn’t set up Auto Run, Auto Export or feeds.
- The agent works through the app in your browser, so changes someone makes in the app whilst it’s working can trip it up.