Spaces:
Runtime error
Runtime error
File size: 1,890 Bytes
957da96 585de43 d37ee95 671e0d4 957da96 0f96a44 585de43 671e0d4 585de43 957da96 671e0d4 957da96 671e0d4 585de43 671e0d4 |
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 |
import pandas as pd
import plotly.express as px
import streamlit as st
import jsonlines
st.markdown("""
| π #Definition | π Data Fields |
| --- | --- |
| π€ asking for more help or #treatment | π Patient info, Referral details |
| πΌ about a patient's health #problem or #limits | π Patient info, Health #problem details |
| π allowing medicine | π Patient info, #Medicine #details |
| π explaining a #patient's health #problem | π Patient info, Health #problem details |
| π plan for getting better | π Patient info, #Treatment details |
| π₯ patient needs surgery | π Patient info, #Surgery details |
| π patient can do activities | π Patient info, #Activity details |
| π
reminding about appointments | π Patient info, #Appointment details |
| βΏ patient's disability | π Patient info, #Disability details |
| π teaching about health | π Patient info, #Education topic |
""")
# Create a DataFrame with CPT codes, procedures, and expected costs
data = {
'Code Type': ['CPT', 'SNOMED', 'RXNORM', 'DEA', 'LOINC', 'ORI', 'ORU', 'CCD'],
'Code Value': ['99201', 'A-12345', 'R-12345', 'D-12345', 'L-12345', 'O-12345', 'U-12345', 'C-12345'],
'Code Description': ['Office/Outpatient Visit', 'Inpatient Consultation', 'Initial Hospital Care', 'Subsequent Hospital Care', 'Critical Care Services', 'Procedure 6', 'Procedure 7', 'Procedure 8'],
'Expected Cost': [100, 200, 150, 250, 300, 350, 400, 450]
}
df = pd.DataFrame(data)
# Create a heatmap with Plotly Express
fig = px.imshow(df.corr(), color_continuous_scale='RdBu_r')
# Display the heatmap in Streamlit
st.plotly_chart(fig)
# Save DataFrame to JSONL file
with jsonlines.open('output.jsonl', mode='w') as writer:
writer.write(df.to_dict(orient='records'))
# Display a link to download the JSONL file
st.markdown('[Download data as JSONL](output.jsonl)')
|