Skip to content

BFD-4763: Support pulling prior auth data in pipeline #1678

BFD-4763: Support pulling prior auth data in pipeline

BFD-4763: Support pulling prior auth data in pipeline #1678

name: CI - Synthetic Pipeline
on:
pull_request:
paths:
- "apps/bfd-model-idr/**"
- "apps/bfd-pipeline-idr/**"
- ".github/workflows/ci-pipeline-synthetic.yml"
merge_group:
jobs:
run-synthetic:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
id: code-checkout
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.11.2"
- name: Install node
uses: actions/setup-node@v6
with:
node-version: "22"
# Maven is needed to run the migrator
- name: "Setup JDK"
uses: actions/setup-java@v5
with:
java-version: "25"
distribution: "corretto"
- name: Install dependencies
run: npm install -g fsh-sushi && npm install fhirpath
working-directory: apps/bfd-model-idr
- name: Sync UV in bfd-model-idr
run: uv sync
working-directory: apps/bfd-model-idr
- name: Build sushi
run: |
cd ${{ github.workspace }}/apps/bfd-model-idr
sushi build ./sushi
- name: Generate v3 Data Dictionary
run: uv run gen_dd.py
working-directory: apps/bfd-model-idr
- name: Ensure synthetic data pipeline runs
run: |
cd ${{ github.workspace }}/apps/bfd-model-idr
uv run patient_generator.py --claims --patients 100
cd ../bfd-pipeline-idr
./run-db.sh
- name: Ensure synthetic data pipeline runs with existing synthetic data
run: |
cd ${{ github.workspace }}/apps/bfd-model-idr
uv run patient_generator.py --claims ./synthetic-data
# Split claims output into 1000 CLMs batches
uv run load_splitter.py -c 1000
cd ../bfd-pipeline-idr
# Load from batched_out/0 to load _just_ the first batch to validate that the structure
# of data is OK and the data was regenerated properly without taking a significant amount
# of time to load the full dataset
./run-db.sh ../bfd-model-idr/batched_out/0