generated from kyegomez/Python-Package-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
198 additions
and
762 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ pydantic | |
mcs | ||
cryptography | ||
uvicorn | ||
loguru | ||
loguru | ||
swarms-tools |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,74 @@ | ||
from mcs.main import MedicalCoderSwarm | ||
|
||
if __name__ == "__main__": | ||
# Example patient case | ||
# Extended Example Patient Case | ||
patient_case = """ | ||
Patient: 45-year-old White Male | ||
Location: New York, NY | ||
Patient Information: | ||
- Name: John Doe | ||
- Age: 45 | ||
- Gender: Male | ||
- Ethnicity: White | ||
- Location: New York, NY | ||
- BMI: 28.5 (Overweight) | ||
- Occupation: Office Worker | ||
Presenting Complaints: | ||
- Persistent fatigue for 3 months | ||
- Swelling in lower extremities | ||
- Difficulty concentrating (brain fog) | ||
- Increased frequency of urination | ||
Medical History: | ||
- Hypertension (diagnosed 5 years ago, poorly controlled) | ||
- Type 2 Diabetes Mellitus (diagnosed 2 years ago, HbA1c: 8.2%) | ||
- Family history of chronic kidney disease (mother) | ||
Current Medications: | ||
- Lisinopril 20 mg daily | ||
- Metformin 1000 mg twice daily | ||
- Atorvastatin 10 mg daily | ||
Lab Results: | ||
- egfr | ||
- 59 ml / min / 1.73 | ||
- non african-american | ||
- eGFR: 59 ml/min/1.73m² (Non-African American) | ||
- Serum Creatinine: 1.5 mg/dL | ||
- BUN: 22 mg/dL | ||
- Potassium: 4.8 mmol/L | ||
- HbA1c: 8.2% | ||
- Urinalysis: Microalbuminuria detected (300 mg/g creatinine) | ||
Vital Signs: | ||
- Blood Pressure: 145/90 mmHg | ||
- Heart Rate: 78 bpm | ||
- Respiratory Rate: 16 bpm | ||
- Temperature: 98.6°F | ||
- Oxygen Saturation: 98% | ||
Differential Diagnoses to Explore: | ||
1. Chronic Kidney Disease (CKD) Stage 3 | ||
2. Diabetic Nephropathy | ||
3. Secondary Hypertension (due to CKD) | ||
4. Fatigue related to poorly controlled diabetes | ||
Specialist Consultations Needed: | ||
- Nephrologist | ||
- Endocrinologist | ||
- Dietitian for diabetic and CKD management | ||
Initial Management Recommendations: | ||
- Optimize blood pressure control (<130/80 mmHg target for CKD) | ||
- Glycemic control improvement (target HbA1c <7%) | ||
- Lifestyle modifications: low-sodium, renal-friendly diet | ||
- Referral to nephrologist for further evaluation | ||
""" | ||
|
||
# Initialize the MedicalCoderSwarm with the detailed patient case | ||
swarm = MedicalCoderSwarm( | ||
patient_id="323u29382938293829382382398", | ||
patient_id="Patient-001", | ||
max_loops=1, | ||
output_type="json", | ||
patient_documentation="", | ||
) | ||
|
||
swarm.run(task=patient_case) | ||
# Run the swarm on the patient case | ||
output = swarm.run(task=patient_case) | ||
|
||
# print(json.dumps(swarm.to_dict())) | ||
# Print the system's state after processing | ||
print(output.model_dump_json(indent=4)) |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.