st192011 commited on
Commit
29b00f0
·
verified ·
1 Parent(s): 531b9e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -34
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
- *Input (Raw Note):* "Pt admitted for appendicitis. 45M. CT showed inflamed appendix. Taken to OR for Lap Appy. Uncomplicated. Discharged home on Percocet."
246
- *Output (JanusScript):*
247
- ```javascript
248
- Hx(Appendicitis.Suspected);
249
- Sx(Pain.RightLowerQuadrant);
250
- Dx(Appendicitis.Confirmed);
251
- Lab(CT).result(InflamedAppendix);
252
- Tx(Surgery).action(LaparoscopicAppendectomy);
253
- Crs(PostOp).status(Uncomplicated);
254
- Tx(Meds).action(Percocet);
255
- Plan(Discharge.Home).
256
- Phase 2: The Vault (Reconstruction)
257
- Input (Protocol): Dx(Pneumonia); Tx(Meds).action(Antibiotics.IV); Crs(Response).result(Improved); Plan(Discharge.Home);
258
- Input (Secure DB): {"pt_name": "Walter White", "pt_mrn": "HEISEN-01", ...}
259
- Output (Final Document):
260
- code
261
- Text
262
- DISCHARGE SUMMARY
263
- Patient: Walter White (MRN: HEISEN-01)
264
- DOB: 1958-09-07 (Sex: M)
265
- Attending: Dr. Goodman (Internal Medicine)
266
- Dates: 2025-05-01 to 2025-05-05
267
-
268
- **History & Diagnosis:**
269
- The patient is a 67-year-old male who presented with fever, productive cough, and shortness of breath. Diagnosis was Pneumonia.
270
-
271
- **Hospital Course:**
272
- He was treated with IV antibiotics. His respiratory status improved, and he was able to maintain oxygen saturation on room air.
273
-
274
- **Discharge Plan:**
275
- The patient is discharged home.
276
- 6. Conclusion
277
- Zero-Trust Validation: The "Vault" successfully reconstructs documents using only the database for identity.
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