Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -242,40 +242,39 @@ To achieve high fidelity without using private patient data, we developed a **Sy
|
|
| 242 |
*Due to hardware constraints on the Free Tier CPU, live inference may be slow. Below are validated outputs from the model running on T4 GPU.*
|
| 243 |
|
| 244 |
#### **Phase 1: The Scout (Logic Extraction)**
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
Sx(Pain.RightLowerQuadrant);
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
Crs(
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
**
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
**
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
The
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
Semantic Expansion: The model demonstrates the ability to take a concise code (Dx(Pneumonia)) and expand it into fluent medical narrative ("Patient presented with symptoms consistent with Pneumonia...").
|
| 279 |
"""
|
| 280 |
|
| 281 |
|
|
|
|
| 242 |
*Due to hardware constraints on the Free Tier CPU, live inference may be slow. Below are validated outputs from the model running on T4 GPU.*
|
| 243 |
|
| 244 |
#### **Phase 1: The Scout (Logic Extraction)**
|
| 245 |
+
**Input (Raw Note):**
|
| 246 |
+
"Pt admitted for appendicitis. 45M. CT showed inflamed appendix. Taken to OR for Lap Appy. Uncomplicated. Discharged home on Percocet."
|
| 247 |
+
|
| 248 |
+
**Output (JanusScript):**
|
| 249 |
+
> Hx(Appendicitis.Suspected); Sx(Pain.RightLowerQuadrant); Dx(Appendicitis.Confirmed); Lab(CT).result(InflamedAppendix); Tx(Surgery).action(LaparoscopicAppendectomy); Crs(PostOp).status(Uncomplicated); Tx(Meds).action(Percocet); Plan(Discharge.Home).
|
| 250 |
+
|
| 251 |
+
#### **Phase 2: The Vault (Reconstruction)**
|
| 252 |
+
**Input (Protocol):**
|
| 253 |
+
Dx(Pneumonia); Tx(Meds).action(Antibiotics.IV); Crs(Response).result(Improved); Plan(Discharge.Home);
|
| 254 |
+
|
| 255 |
+
**Input (Secure DB):**
|
| 256 |
+
{"pt_name": "Walter White", "pt_mrn": "HEISEN-01", ...}
|
| 257 |
+
|
| 258 |
+
**Output (Final Document):**
|
| 259 |
+
> DISCHARGE SUMMARY
|
| 260 |
+
> Patient: Walter White (MRN: HEISEN-01)
|
| 261 |
+
> DOB: 1958-09-07 (Sex: M)
|
| 262 |
+
> Attending: Dr. Goodman (Internal Medicine)
|
| 263 |
+
> Dates: 2025-05-01 to 2025-05-05
|
| 264 |
+
>
|
| 265 |
+
> **History & Diagnosis:**
|
| 266 |
+
> The patient is a 67-year-old male who presented with fever, productive cough, and shortness of breath. Diagnosis was Pneumonia.
|
| 267 |
+
>
|
| 268 |
+
> **Hospital Course:**
|
| 269 |
+
> He was treated with IV antibiotics. His respiratory status improved, and he was able to maintain oxygen saturation on room air.
|
| 270 |
+
>
|
| 271 |
+
> **Discharge Plan:**
|
| 272 |
+
> The patient is discharged home.
|
| 273 |
+
|
| 274 |
+
### 6. Conclusion
|
| 275 |
+
* **Zero-Trust Validation:** The "Vault" successfully reconstructs documents using *only* the database for identity.
|
| 276 |
+
* **Semantic Expansion:** The model demonstrates the ability to take a concise code (Dx(Pneumonia)) and expand it into fluent medical narrative ("Patient presented with symptoms consistent with Pneumonia...").
|
| 277 |
+
```Semantic Expansion: The model demonstrates the ability to take a concise code (Dx(Pneumonia)) and expand it into fluent medical narrative ("Patient presented with symptoms consistent with Pneumonia...").
|
|
|
|
| 278 |
"""
|
| 279 |
|
| 280 |
|