Spaces:
Sleeping
Sleeping
Remove handoff note from Space
Browse files- claude_handoff.md +0 -65
claude_handoff.md
DELETED
|
@@ -1,65 +0,0 @@
|
|
| 1 |
-
# Claude Handoff
|
| 2 |
-
|
| 3 |
-
## Current App Shape
|
| 4 |
-
|
| 5 |
-
Multi-page Flask app. All files committed + local session changes applied.
|
| 6 |
-
|
| 7 |
-
Active runtime files:
|
| 8 |
-
|
| 9 |
-
- `app.py`: Flask routes and portal/API logic
|
| 10 |
-
- `pipeline.py`: data loading, feature engineering, model training, trial matching
|
| 11 |
-
- `database.py`: SQLite accounts, interests, connections
|
| 12 |
-
- `templates/landing.html`: login / registration
|
| 13 |
-
- `templates/patient.html`: patient portal
|
| 14 |
-
- `templates/hospital.html`: hospital portal
|
| 15 |
-
|
| 16 |
-
`templates/index.html` deleted.
|
| 17 |
-
|
| 18 |
-
## Status: All Fixes Complete
|
| 19 |
-
|
| 20 |
-
The following work is done and local (not yet committed to Git):
|
| 21 |
-
|
| 22 |
-
### From Previous Session (before rate limit)
|
| 23 |
-
|
| 24 |
-
1. Hospital suggestion tiered logic (Tier 1 facility-name Jaccard, Tier 2 same-state, Tier 3 condition overlap, Tier 4 fallback)
|
| 25 |
-
2. Duplicate connection prevention (schema UNIQUE + COALESCE index)
|
| 26 |
-
3. Hospital patient feed excludes already-connected patients
|
| 27 |
-
4. Demo patient seeded with `open_to_trials = 1`
|
| 28 |
-
5. Hospital profile editing tab (name, location, research conditions)
|
| 29 |
-
6. Patient-facing model disclaimer on trial results
|
| 30 |
-
7. Trial site info (lead site + location) surfaced in patient UI
|
| 31 |
-
8. Hospital registration collects `research_conditions`
|
| 32 |
-
|
| 33 |
-
### From Current Session
|
| 34 |
-
|
| 35 |
-
9. **Patient connect modal**: Tier 1 hospitals shown under "Verified Trial Sites" (green header); Tiers 2/3/4 shown under "Related Hospitals — not confirmed trial sites" (grey header). Two visually separated sections.
|
| 36 |
-
10. **hospital.html bug fix**: `btn-close-white` → `btn-close` on `bg-info` profile condition tags (white X was invisible on light-blue background).
|
| 37 |
-
11. **landing.html**: Enter key now submits login/register forms (all username + password inputs).
|
| 38 |
-
12. **patient.html**: System status banner auto-clears — polls `/api/status` every 5s until pipeline is ready, then stops.
|
| 39 |
-
|
| 40 |
-
## Decision Log
|
| 41 |
-
|
| 42 |
-
**Hospital matching mode: BROAD**
|
| 43 |
-
- Tier 1 = verified site (Jaccard name match ≥ 0.25)
|
| 44 |
-
- Tiers 2+3 = related hospitals (same state / condition overlap)
|
| 45 |
-
- Visual separation in modal so user sees which is which
|
| 46 |
-
- Reason: safer for demo — modal won't be empty; stronger matches still shown first
|
| 47 |
-
|
| 48 |
-
## Known Limitation (not a bug, by design)
|
| 49 |
-
|
| 50 |
-
Model trains on synthetic/rule-based labels. Disclaimer shown in UI. Real fix requires clinician-reviewed labels or historical screening decisions — out of scope for DSCI 5260.
|
| 51 |
-
|
| 52 |
-
## Demo Credentials
|
| 53 |
-
|
| 54 |
-
| Role | Username | Password |
|
| 55 |
-
|------|----------|----------|
|
| 56 |
-
| Patient | john_doe | pass123 |
|
| 57 |
-
| Hospital | mgh | mgh123 |
|
| 58 |
-
|
| 59 |
-
## Recommended Test Flow
|
| 60 |
-
|
| 61 |
-
See "What to Test" section returned at end of last Claude session.
|
| 62 |
-
|
| 63 |
-
## Git Note
|
| 64 |
-
|
| 65 |
-
Last GitHub push: `ff67a12` — all local work above is uncommitted.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|