File size: 6,889 Bytes
3255634
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
"""Bangladesh-specific clinical guidelines for AMR management.

Based on:
- DGHS (Directorate General of Health Services) antibiotic policy
- IEDCR (Institute of Epidemiology, Disease Control and Research) surveillance data
- WHO Bangladesh AMR reports
"""

from typing import Dict, List

# Bangladesh local resistance prevalence estimates (IEDCR surveillance)
BANGLADESH_RESISTANCE_PREVALENCE: Dict[str, Dict] = {
    "aminoglycoside": {
        "prevalence_pct": 35,
        "trend": "stable",
        "common_organisms": ["E. coli", "Klebsiella pneumoniae"],
        "note": "Gentamicin resistance common in hospital-acquired UTIs",
    },
    "beta-lactam": {
        "prevalence_pct": 65,
        "trend": "increasing",
        "common_organisms": ["E. coli", "K. pneumoniae", "Acinetobacter"],
        "note": "ESBL-producing Enterobacteriaceae highly prevalent in Bangladesh",
    },
    "fosfomycin": {
        "prevalence_pct": 8,
        "trend": "stable",
        "common_organisms": ["E. coli"],
        "note": "Low resistance; good option for uncomplicated UTI",
    },
    "glycopeptide": {
        "prevalence_pct": 5,
        "trend": "stable",
        "common_organisms": ["Enterococcus"],
        "note": "VRE rare but emerging in ICU settings",
    },
    "macrolide": {
        "prevalence_pct": 50,
        "trend": "increasing",
        "common_organisms": ["Staphylococcus aureus", "Streptococcus pneumoniae"],
        "note": "High resistance due to over-the-counter availability",
    },
    "phenicol": {
        "prevalence_pct": 30,
        "trend": "stable",
        "common_organisms": ["Salmonella typhi", "Shigella"],
        "note": "Chloramphenicol resistance common in enteric pathogens",
    },
    "quinolone": {
        "prevalence_pct": 70,
        "trend": "increasing",
        "common_organisms": ["E. coli", "Salmonella", "Shigella"],
        "note": "Very high resistance; ciprofloxacin no longer reliable for empirical use in Bangladesh",
    },
    "rifampicin": {
        "prevalence_pct": 12,
        "trend": "stable",
        "common_organisms": ["M. tuberculosis"],
        "note": "MDR-TB prevalence ~1.6% in new cases, ~29% in retreatment (NTP data)",
    },
    "sulfonamide": {
        "prevalence_pct": 60,
        "trend": "stable",
        "common_organisms": ["E. coli", "Shigella"],
        "note": "Co-trimoxazole resistance widespread",
    },
    "tetracycline": {
        "prevalence_pct": 55,
        "trend": "stable",
        "common_organisms": ["E. coli", "Vibrio cholerae"],
        "note": "Commonly used in aquaculture contributing to environmental resistance",
    },
    "trimethoprim": {
        "prevalence_pct": 58,
        "trend": "stable",
        "common_organisms": ["E. coli", "Klebsiella"],
        "note": "High resistance often linked to sulfonamide co-resistance",
    },
}

# DGHS recommended treatment alternatives per drug class
DGHS_ALTERNATIVES: Dict[str, List[str]] = {
    "beta-lactam": [
        "Consider meropenem/imipenem for ESBL-producing organisms",
        "Piperacillin-tazobactam for moderate infections",
        "Nitrofurantoin or fosfomycin for uncomplicated UTI",
    ],
    "quinolone": [
        "Use nitrofurantoin for uncomplicated UTI instead of ciprofloxacin",
        "Consider ceftriaxone for enteric fever (replacing ciprofloxacin)",
        "Azithromycin for Shigella dysentery if quinolone-resistant",
    ],
    "aminoglycoside": [
        "Amikacin may retain activity when gentamicin-resistant",
        "Consider colistin as last resort for MDR Gram-negatives",
    ],
    "macrolide": [
        "Doxycycline as alternative for respiratory infections",
        "Amoxicillin-clavulanate for community-acquired pneumonia",
    ],
    "sulfonamide": [
        "Nitrofurantoin for UTI instead of co-trimoxazole",
        "Azithromycin for Shigella if co-trimoxazole resistant",
    ],
    "trimethoprim": [
        "Fosfomycin for uncomplicated UTI",
        "Nitrofurantoin as alternative",
    ],
    "rifampicin": [
        "Refer to National TB Programme (NTP) for MDR-TB regimen",
        "Bedaquiline-based regimen per WHO 2022 guidelines",
    ],
}

# Key referral centers in Bangladesh
REFERRAL_CENTERS = [
    {
        "name": "Institute of Epidemiology, Disease Control and Research (IEDCR)",
        "location": "Mohakhali, Dhaka",
        "services": "AMR surveillance, reference laboratory",
    },
    {
        "name": "International Centre for Diarrhoeal Disease Research, Bangladesh (icddr,b)",
        "location": "Mohakhali, Dhaka",
        "services": "AMR research, clinical microbiology reference lab",
    },
    {
        "name": "National Institute of Diseases of the Chest and Hospital (NIDCH)",
        "location": "Mohakhali, Dhaka",
        "services": "MDR-TB diagnosis and treatment",
    },
]


def get_bangladesh_context(drug_class: str) -> Dict:
    """Get Bangladesh-specific context for a drug class."""
    prevalence = BANGLADESH_RESISTANCE_PREVALENCE.get(drug_class, {})
    alternatives = DGHS_ALTERNATIVES.get(drug_class, [])
    return {
        "local_prevalence": prevalence,
        "dghs_alternatives": alternatives,
    }


def get_bangladesh_recommendations(resistant_classes: set) -> List[str]:
    """Generate Bangladesh-specific recommendations based on resistance profile."""
    recs: List[str] = []

    if "quinolone" in resistant_classes:
        recs.append(
            "BANGLADESH CONTEXT: Quinolone resistance is ~70% locally. "
            "DGHS recommends avoiding ciprofloxacin for empirical therapy. "
            "Use ceftriaxone for enteric fever."
        )

    if "beta-lactam" in resistant_classes:
        recs.append(
            "BANGLADESH CONTEXT: ESBL prevalence is very high (>60%). "
            "Consider carbapenems for serious infections. "
            "For UTI, fosfomycin or nitrofurantoin remain effective."
        )

    if "macrolide" in resistant_classes and "quinolone" in resistant_classes:
        recs.append(
            "BANGLADESH CONTEXT: Combined macrolide + quinolone resistance limits oral options. "
            "Consider IV therapy and infectious disease consultation."
        )

    if "rifampicin" in resistant_classes:
        recs.append(
            "BANGLADESH CONTEXT: Possible MDR-TB. Refer to National TB Programme (NTP). "
            "Contact NIDCH, Mohakhali, Dhaka for MDR-TB management."
        )

    if len(resistant_classes) >= 5:
        recs.append(
            "BANGLADESH CONTEXT: Extensive drug resistance detected. "
            "Recommend referral to icddr,b or IEDCR for susceptibility testing and guidance."
        )

    if not recs:
        recs.append(
            "BANGLADESH CONTEXT: Predicted susceptibility aligns with local empirical options. "
            "Follow DGHS standard treatment guidelines."
        )

    return recs