trigger
How it's scheduled
New appointments land continuously on the FHIR feed. Front-of-house work is time-boxed — the estimate and letter have to reach the patient before the visit — so the pipeline polls every 2 minutes to check eligibility and price the good-faith estimate within minutes of an appointment being booked, rather than waiting for an overnight batch.
| Scheduled task | Cadence | Server | State | Coordination |
|---|---|---|---|---|
\MDC\FHIR - Processing - NWDerm | every 2 min (from 00:01) | prod-db-3 | enabled | standalone |
shape
Against the canonical Flow spine
Every Flow pipeline is a variation on one shape. Lit stages are the ones this pipeline runs; the labels match the capability lens.
computed concepts · from the SQL
What it computes
Business concepts mined from this pipeline's SQL text — the meaning behind the typed steps. Each links to the concept lens (who else computes it).
task tree
What the pipeline runs
Tasks in order, each with what it does — typed stepsfrom the MDClarity task docs (click to open the reference), sub-jobsyou can expand inline (▶) to reveal their own tasks, and SQL steps summarized by Gemini (✨). Every step shows the tables it writes/reads and which earlier step it feeds from(sqlglot lineage).
FHIR-Processing
- NexTechFHIRIntegrationNexTechFHIRIntegration
- FHIRProcessBatchsql
fhir_processing__fhirprocessbatch.sql✨ Identifies new FHIR batches and populates the visit delta table with records matching predefined surgical visit types.writesFHIRProcessBatchVisitDelta· readsFHIRIncomingSourceAppointmentFHIRProcessBatchProcessLogSurgicalVisitTypes ▶FHIR-Transformsub-job · 5↗FHIR Transformation Layer
- ImportTransformVisitsql
fhir_transform__importtransformvisit.sql✨ Loads incremental appointment changes from FHIR sources into staging, including reason codes and updated service type definitions.writesImportTransformVisit· readsFHIRIncomingSourceAppointmentFHIRProcessBatchVisitDelta - MergeTransformVisitsql
fhir_transform__mergetransformvisit.sql✨ Updates the visit transformation table by replacing existing records with the latest imported appointment, facility, and provider details.writesTransformVisit· readsImportTransformVisit↳ feeds from ImportTransformVisit - ImportTransformVisitInsurancesql
fhir_transform__importtransformvisitinsurance.sql✨ Loads primary, secondary, and tertiary insurance details into the staging table while mapping source payers to standardized insurance records.writesImportTransformVisitInsurance· readsFHIRIncomingSourceAppointmentFHIRProcessBatchInsuranceMapVisitDelta - MergeTransformVisitInsurancesql
fhir_transform__mergetransformvisitinsurance.sql✨ Updates the main insurance transformation table by replacing existing records with newly imported and mapped insurance information.writesTransformVisitInsurance· readsImportTransformVisitInsurance↳ feeds from ImportTransformVisitInsurance - AugmentTransformVisitsql
fhir_transform__augmenttransformvisit.sqldisabled✨ Refines visit service types by mapping insurance-specific codes to standardized eligibility categories for more accurate coverage verification.writesTransformVisit· readsEligibilityMapping2024ImportTransformVisitTransformVisitInsurance
▶Load-Entitiessub-job · 2↗Load Facility, Provider
- Load FacilityLoadEntitieswrites
Facility· readsFHIRActorFHIRProcessBatchFacilityentity type=Facilitycustom query - Load Providersql
load_entities__load_provider.sqldisabled✨ Loads provider details into the master provider table using the latest physician information from HL7 visit messages.writesProvider· readsHL7Visit
▶Load-Dimension-Memberssub-job · 9↗
- Load Insurance Dimensionsql
load_dimension_members__load_insurance_dimension.sqldisabled✨ Populates the insurance dimension with unique carrier keys to enable filtering and analysis by payer.writesDimensionMember· readsInsurance - Load EligibilityInsurance Dimensionsql
load_dimension_members__load_eligibilityinsurance_dimension.sqldisabled✨ Loads insurance members that support electronic eligibility and benefits verification via API integration.writesDimensionMember· readsDimensionMemberInsurance - Load QuoteInsurance Dimensionsql
load_dimension_members__load_quoteinsurance_dimension.sqldisabled✨ Builds a dimension of insurance providers associated with active contracts to facilitate accurate patient cost estimates.writesDimensionMember· readsContractMapInsurance - LoadInsuranceDimensionMembersLoadInsuranceDimensionMembersSynchronize insurance-specific dimension members from the insurance table to update contract and eligibility filtering options across the application.writes
DimensionMemberload insuranceload quote insuranceload eligibility insurance - Load Time Dimensionssql
load_dimension_members__load_time_dimensions.sql✨ Builds and updates time-based dimension hierarchies for days, months, and years based on the range of scheduled appointment dates.writesDimensionMember· readsFHIRIncomingSourceAppointment - Load VisitStatus Dimensionsql
load_dimension_members__load_visitstatus_dimension.sql✨ Loads unique appointment status values into the dimension table to enable standardized reporting on visit states.writesDimensionMember· readsTransformVisit - Load Provider Dimensionsql
load_dimension_members__load_provider_dimension.sql✨ Updates the provider dimension with unique practitioner identifiers and display names extracted from incoming appointment data.writesDimensionMember· readsFHIRIncomingSourceAppointment - Load Facility Dimensionssql
load_dimension_members__load_facility_dimensions.sql✨ Loads facility names and identifiers from the facility configuration into the clinic dimension for organizational reporting.writesDimensionMember· readsFacility - Load VisitType Dimensionssql
load_dimension_members__load_visittype_dimensions.sql✨ Builds the visit type dimension using the most recent appointment types found in incoming scheduling data.writesDimensionMember· readsFHIRIncomingSourceAppointment
▶Load-Visitssub-job · 22↗
- Load TempBatchVisitsql
load_visits__load_tempbatchvisit.sqldisabled✨ Flags upcoming visits for insurance eligibility checks based on service types, coverage status, and appointment lead times.writesTempBatchVisitVisitEligServiceTypesVisitServiceTypes· readsDimensionMemberTempBatchVisitTransformVisitTransformVisitInsTransformVisitInsuranceTransformVisitInsuranceCoverageStatusVisitEligServiceTypesVisitServiceTypes - Augment Visit Deltasql
load_visits__augment_visit_delta.sqldisabled✨ Updates the visit delta table by adding records flagged as requiring new insurance eligibility lookups from the batch process.writesVisitDelta· readsTempBatchVisitVisitDelta - ReprocessChangedConfigurationsReprocessChangedConfigurationsIdentify and queue visits or accounts affected by configuration changes to ensure historical data reflects updated pricing or insurance rules.reprocess visits
- Augment VisitDeltasql
load_visits__augment_visitdelta.sql✨ Updates insurance mappings for reprocessed visits and adds them to the delta table for downstream processing.writesVisitDeltaVisitKeyLookup· readsVisitDeltaVisitKeyLookup - LoadVisitBatchLoadVisitBatchLoad scheduled visits and associated charges into the processing pipeline using custom SQL queries for pricing estimation and quote generation.writes
QuoteBatchVisitBatch· readsPatientTransformVisitTransformVisitInsuranceVisitVisitDelta↳ feeds from Augment VisitDelta, Sync Visits and Quotescustom visit queryauto charge querycustom service type querycustom coverage queryadd zero charge - load-custom-propertiessub-job
- Applies matching charge bundles to batch visits based on facility and insurance to ensure consistent pricing across service types.DISABLED
- Augment TempBatchVisitsql
load_visits__augment_tempbatchvisit.sqldisabled✨ Flags visits for eligibility rechecks based on appointment lead time and previous transaction status to ensure coverage is verified.writesTempBatchVisit· readsDimensionMemberEligibilityTxnTempBatchVisitTransformVisitTransformVisitInsuranceTransformVisitInsuranceCoverageStatusVisitVisitBatch - Verifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.· reads
TempBatchVisitVisitBatchcustom queryDISABLED - CheckBenefitsflowVerifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.auto query
- Verifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.· reads
EligibilityStatusMapEligibilityTxnTempBatchVisitVisitBatchcustom queryDISABLED - AutoApplyBenefitsAutoApplyBenefitsPopulates insurance benefits like copays and deductibles on batch visits using data from eligibility verification transactions.
- CalculateVisitsflowCompute the good-faith estimate (CalculateVisits).· reads
DimensionMemberVisitBatch↳ feeds from LoadVisitBatchcustom querycalculate chargesbatch mode - LogVisitChangeEventsBatchLogVisitChangeEventsBatchCompare batch visits against production records to detect and log specific property changes for auditing and compliance tracking.
- Load TransformVisitInsuranceCoverageStatussql
load_visits__load_transformvisitinsurancecoveragestatus.sql✨ Updates insurance coverage statuses by analyzing recent eligibility transactions and mapping results to standardized active or inactive states.writesTempEligibilityStatsTransformVisitInsuranceCoverageStatus· readsTempEligibilityStatsTransformVisitInsuranceVisitBatch↳ feeds from LoadVisitBatch ▶Load-CustomProperty-CoverageStatussub-job · 3↗
- Load Primary Coverage StatusUpdateCustomPropertyFromQuery· reads
TransformVisitInsuranceCoverageStatusVisitBatchentity=Visitcustom property key=PrimaryCoverageStatuscustom querybatch mode - Load Secondary Coverage StatusUpdateCustomPropertyFromQuery· reads
TransformVisitInsuranceCoverageStatusVisitBatchentity=Visitcustom property key=SecondaryCoverageStatuscustom querybatch mode - Load Tertiary Coverage StatusUpdateCustomPropertyFromQuery· reads
TransformVisitInsuranceCoverageStatusVisitBatchentity=Visitcustom property key=TertiaryCoverageStatuscustom querybatch mode
- Sync Visits and QuotesSyncBatchSynchronizes processed data from batch staging tables to production tables, updating visits, quotes, and custom property mappings.writes
CustomPropertyMapQuoteVisitVisitChangeEvent· readsCustomPropertyMapBatchQuoteBatchVisitBatchVisitChangeEventBatch↳ feeds from LoadVisitBatchsync quotesync visitsync custom property mapsync visit change event - ExportBatchVisitEligibilityflowdisabledPush the batch to the app / export results.· reads
EligibilityTxnVisitBatchcustom querytable name=BatchEligibility_Resultsarchive table name=BatchEligibility_ResultsArchiveDISABLED - SearchForInsuranceflowdisabledFind coverage for visits missing insurance.· reads
EligibilityTxnBatchcustom querytable name=InsuranceSearch_Resultbatch modeDISABLED ▶Load-Visit-Factsub-job · 1↗
- Load VisitFactsql
load_visit_fact__load_visitfact.sql✨ Updates the visit fact table by refreshing records that have recent activity in payments, eligibility checks, or patient communications.writesVisitFact· readsEligibilityStatusMapEligibilityTxnPatientLetterPaymentTxnVisit
- WorkqueueAssignmentWorkqueueAssignmentAssigns accounts or visits to workqueue stacks by evaluating matching criteria and updating item lists based on search terms.
- UpdateDashboardTablesUpdateDashboardTablesRegenerates optimized aggregate tables for all dashboard reports and updates their definitions to reflect the latest source data.
markers
Why it classified as flow
Front-of-house actions found anywhere in the tree (including nested sub-jobs).