Skip to content

Commit

Permalink
[0.1.0]
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Jan 17, 2025
1 parent e14a0dd commit 43c5765
Show file tree
Hide file tree
Showing 14 changed files with 198 additions and 762 deletions.
525 changes: 0 additions & 525 deletions api/discord_api.py

This file was deleted.

3 changes: 2 additions & 1 deletion api/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ pydantic
mcs
cryptography
uvicorn
loguru
loguru
swarms-tools
45 changes: 0 additions & 45 deletions api/skypilot.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions cloud-run.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions docker-compose.yml

This file was deleted.

73 changes: 61 additions & 12 deletions example.py
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.
4 changes: 0 additions & 4 deletions gcr-service-policy.yaml

This file was deleted.

Loading

0 comments on commit 43c5765

Please sign in to comment.