Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,14 +16,15 @@ def create_sunburst_plot(df):
|
|
16 |
fig.update_layout(margin=dict(t=0, l=0, r=0, b=0))
|
17 |
return fig
|
18 |
|
|
|
19 |
data = [
|
20 |
{'ids': 'Root', 'labels': 'Root', 'parents': '', 'values': None, 'text': 'Root'},
|
21 |
{'ids': 'Hip Surgery', 'labels': 'Hip Surgery', 'parents': 'Root', 'values': 30, 'text': 'Hip Surgery'},
|
22 |
{'ids': 'Knee Surgery', 'labels': 'Knee Surgery', 'parents': 'Root', 'values': 40, 'text': 'Knee Surgery'},
|
23 |
-
{'ids': '
|
24 |
-
{'ids': '
|
25 |
-
{'ids': '
|
26 |
-
{'ids': '
|
27 |
]
|
28 |
|
29 |
df = pd.DataFrame(data)
|
|
|
16 |
fig.update_layout(margin=dict(t=0, l=0, r=0, b=0))
|
17 |
return fig
|
18 |
|
19 |
+
# New data reflecting the CPT codes and expected costs
|
20 |
data = [
|
21 |
{'ids': 'Root', 'labels': 'Root', 'parents': '', 'values': None, 'text': 'Root'},
|
22 |
{'ids': 'Hip Surgery', 'labels': 'Hip Surgery', 'parents': 'Root', 'values': 30, 'text': 'Hip Surgery'},
|
23 |
{'ids': 'Knee Surgery', 'labels': 'Knee Surgery', 'parents': 'Root', 'values': 40, 'text': 'Knee Surgery'},
|
24 |
+
{'ids': '99213', 'labels': 'CPT 99213', 'parents': 'Hip Surgery', 'values': 300, 'text': 'Office Visit'},
|
25 |
+
{'ids': '99214', 'labels': 'CPT 99214', 'parents': 'Hip Surgery', 'values': 400, 'text': 'Detailed Exam'},
|
26 |
+
{'ids': '99284', 'labels': 'CPT 99284', 'parents': 'Knee Surgery', 'values': 250, 'text': 'Emergency Department Visit'},
|
27 |
+
{'ids': '99285', 'labels': 'CPT 99285', 'parents': 'Knee Surgery', 'values': 450, 'text': 'Emergency Department Visit, High Complexity'},
|
28 |
]
|
29 |
|
30 |
df = pd.DataFrame(data)
|