Some checks failed
CI / lint (push) Successful in 54s
CI / notebooks-smoke (push) Successful in 1m43s
CI / test (push) Failing after 2m56s
Infra CI / zotero (push) Successful in 15s
Infra CI / notebooks (push) Successful in 1m1s
Infra CI / api (push) Successful in 1m7s
Infra CI / docs (push) Successful in 1m50s
Infra CI / llm (push) Successful in 49s
Infra CI / mc (push) Failing after 35s
Infra CI / bcda (push) Successful in 1m42s
CI / lint (pull_request) Successful in 45s
CI / notebooks-smoke (pull_request) Successful in 1m38s
CI / test (pull_request) Failing after 2m53s
Infra CI / mc (pull_request) Failing after 30s
Infra CI / zotero (pull_request) Successful in 16s
Infra CI / notebooks (pull_request) Successful in 58s
Infra CI / docs (pull_request) Successful in 16s
Infra CI / api (pull_request) Successful in 15s
Infra CI / bcda (pull_request) Successful in 21s
Infra CI / llm (pull_request) Successful in 17s
Closes #1293 #1294 #1295 #1296 #1297 #1298 #1299 #1300 (upstream review docs/superpowers/specs/2026-10-25-bcda-upstream-review.md). Partial exports (#1293). The manifest's `error` list is downloaded as OperationOutcome[.N].ndjson with resource_type=OperationOutcome; every URL is attempted and failures are recorded per file, then raised once as DownloadError. A job with error files is `partial`: it still reconciles (its rows are real) but never becomes the watermark, check_since warns `partial_job`, the Store page lists the issues and `stack bcda errors` prints them. Claim identity (#1294), per bcda.cms.gov "Matching multiple EOBs to the same claim": three new header columns — clm_cntl_num_match (VMS leading 1 stripped on SharedSystem DME), clm_natural_key (Part D events without a control number: bene · line from-date · provider qualifier · service provider · RX number · fill number) and superseded_by — plus prvdr_srvc_id_qlfyr_cd. bcda.sync keys claims on match → control number → natural key → id, marks every claim another current claim names in `related` as superseded (chain walked), counts `superseded`, and a new invariant forbids a live claim being named predecessor by another live claim. The connector dedupes on the same identity and drops superseded rows. Partitions and current tables flattened before these columns existed get them as NULLs. Attribution (#1295): `attribution_expired` (block) from expiration_dates, `attribution_floor` (warn) from the earliest last_attribution_update recorded on job rows (new column), and the server's 404/400/429 texts explained by explain_server_error. Adoption (#1296): completed_jobs() drops jobs older than the 24 h file retention; downloads no longer stop at the first failed file. _typeFilter (#1297): build_type_filter follows bcda/fhir/param.go — outcome lists, service-date earliest and latest bounds with eq/gt/ge/lt/le on YYYY[-MM[-DD]], no comma lists, no conflicting prefixes; CLI and Exports page expose them. Runout (#1298): `runout_window` warn after July; population column on the Sync page ledger. Vendoring (#1299): the manifest now pins bcda-app's param.go, bluebutton.go, service.go, constants, models and prod.yml, the docs source (CMSgov/bcda-static-site: filter/access/migrate/PAC/FAQ pages and announcements) and the PAC and unmapped-fields dictionaries. Docs (#1300): the reconciliation design record states the server's window `(since, transactionTime]`, the lookback bound, the silent exclusions, re-loads, partial exports and the identity rules. refs #1139
69 lines
2.6 KiB
Go
69 lines
2.6 KiB
Go
package constants
|
|
|
|
const DevACOUUID = "0c527d2e-2e8a-4808-b11d-0fa06baf8254"
|
|
const SmallACOUUID = "3461C774-B48F-11E8-96F8-529269fb1459"
|
|
const MediumACOUUID = "C74C008D-42F8-4ED9-BF88-CEE659C7F692"
|
|
const LargeACOUUID = "8D80925A-027E-43DD-8AED-9A501CC4CD91"
|
|
|
|
const ImportInprog = "In-Progress"
|
|
const ImportComplete = "Completed"
|
|
const ImportFail = "Failed"
|
|
|
|
// This is set during compilation. See dockerfiles for usage
|
|
var Version = "latest"
|
|
|
|
const Adjudicated = "adjudicated"
|
|
const PartiallyAdjudicated = "partially-adjudicated"
|
|
|
|
// Cli.go constants
|
|
const CliCMSIDArg = "cms-id"
|
|
const CliCMSIDDesc = "CMS ID of ACO"
|
|
const CliArchDesc = "How long files should wait in archive before deletion"
|
|
const CliRemoveArchDesc = "Remove job directory and files from archive and update job status to Expired"
|
|
const CliAuthToolsCategory = "Authentication tools"
|
|
const CliDataImpCategory = "Data import"
|
|
|
|
const ContentType = "Content-Type"
|
|
const JsonContentType = "application/json"
|
|
const FHIRJsonContentType = "application/fhir+json"
|
|
|
|
const BBHeaderTS = "BlueButton-OriginalQueryTimestamp"
|
|
const BBHeaderOriginURL = "BlueButton-OriginalUrl"
|
|
const BBHeaderOriginQID = "BlueButton-OriginalQueryId"
|
|
const BBHeaderOriginQ = "BlueButton-OriginalQuery"
|
|
const BBHeaderOriginQC = "BlueButton-OriginalQueryCounter"
|
|
|
|
const CCLFFileRetID = "%s RETURNING id"
|
|
const JobKeyCreateErr = "failed to create job key: %w"
|
|
|
|
const JOBIDPath = "/jobs/{jobID}"
|
|
|
|
const IssuerSSAS = "ssas"
|
|
|
|
const EmptyString = ""
|
|
|
|
const FiveSeconds = "5"
|
|
const FiveHundredSeconds = "500"
|
|
|
|
const CCLF8FileNum = int(8)
|
|
|
|
const BFDV1Path = "/v1/fhir"
|
|
const BFDV2Path = "/v2/fhir"
|
|
const BFDV3Path = "/v3/fhir"
|
|
const V3Version = "v3"
|
|
|
|
const GetExistingBenes = "GetExistingBenes"
|
|
const GetNewAndExistingBenes = "GetNewAndExistingBenes"
|
|
|
|
const DefaultRegion = "us-east-1"
|
|
|
|
const PublisherName = "Centers for Medicare & Medicaid Services"
|
|
const SoftwareName = "Beneficiary Claims Data API"
|
|
const SoftwareDescription = "The Beneficiary Claims Data API (BCDA) enables healthcare organizations participating in the Medicare Shared Savings Program or a CMS Innovation Model to retrieve Medicare Part A, Part B, and Part D claims data for their prospectively assigned or assignable beneficiaries."
|
|
|
|
const SmartOAuthURIsExtensionURL = "http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris"
|
|
const RestfulSecurityServiceSystem = "http://terminology.hl7.org/CodeSystem/restful-security-service"
|
|
const BFDSystemTypeURL = "https://bluebutton.cms.gov/fhir/CodeSystem/System-Type"
|
|
const BFDFinalActionURL = "https://bluebutton.cms.gov/fhir/CodeSystem/Final-Action"
|
|
const WarningsAndInfoFileName = "warnings-and-info.ndjson"
|