feat: add chart_type argument to refresh command (Task 3.1)

- Add --chart-type argument with choices: directory, indication, all
- Update insert_pathway_records to include chart_type column
- Update refresh_pathways to process multiple chart types
- Update logging to show chart type counts
- Indication chart processing deferred to Task 3.2 (GP diagnosis integration)
This commit is contained in:
Andrew Charlwood
2026-02-05 14:38:57 +00:00
parent 0d15000aa0
commit 593d14c70f
2 changed files with 97 additions and 27 deletions
+4 -4
View File
@@ -108,13 +108,13 @@ python -m reflex compile
## Phase 3: CLI & Data Refresh Updates
### 3.1 Update Refresh Command for Dual Chart Types
- [ ] Modify `cli/refresh_pathways.py`:
- [x] Modify `cli/refresh_pathways.py`:
- Process both "directory" and "indication" chart types
- For each of 6 date filters: generate 2 chart datasets
- Total: 12 pathway datasets (6 dates × 2 chart types)
- [ ] Add `--chart-type` argument: "all" (default), "directory", "indication"
- [ ] Update progress logging to show both chart types
- [ ] Verify: Dry run shows both chart types being processed
- [x] Add `--chart-type` argument: "all" (default), "directory", "indication"
- [x] Update progress logging to show both chart types
- [ ] Verify: Dry run shows both chart types being processed (requires Task 3.2 for full indication support)
### 3.2 Integrate Diagnosis-Based Directorate in Pipeline
- [ ] Update `fetch_and_transform_data()` to include diagnosis lookup: