Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Import necessary libraries
|
2 |
+
import streamlit as st
|
3 |
+
import streamlit.components.v1 as components
|
4 |
+
|
5 |
+
# Define HTML code for custom styling
|
6 |
+
html_code = """
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
background-color: orange;
|
10 |
+
}
|
11 |
+
.sidebar .sidebar-content {
|
12 |
+
background-color: blue;
|
13 |
+
}
|
14 |
+
</style>
|
15 |
+
"""
|
16 |
+
|
17 |
+
# Apply the custom styling
|
18 |
+
components.html(html_code, height=0)
|
19 |
+
|
20 |
+
# Define markdown text
|
21 |
+
markdown_text = """
|
22 |
+
| Document Type | Description | Emoji |
|
23 |
+
| :-------------: |:-------------:| :-----:|
|
24 |
+
| [Allergies](https://github.com/HL7/C-CDA-Examples/tree/master/Allergies) | Documents relating to a patient's known allergies. | π€§ |
|
25 |
+
| [Care Team](https://github.com/HL7/C-CDA-Examples/tree/master/Care%20Team) | Documentation of a patient's care team, including doctors, nurses, and other healthcare providers. | π©ββοΈπ¨ββοΈ |
|
26 |
+
| [Encounters](https://github.com/HL7/C-CDA-Examples/tree/master/Encounters) | Records of a patient's encounters with healthcare providers. | π₯ |
|
27 |
+
| [Family History](https://github.com/HL7/C-CDA-Examples/tree/master/Family%20History) | Information about the health of a patient's family, which can be relevant for understanding a patient's health risks. | πͺ |
|
28 |
+
| [Functional Status](https://github.com/HL7/C-CDA-Examples/tree/master/Functional%20Status) | Information about a patient's functional status, including any disabilities or impairments. | πΆββοΈπΆββοΈ |
|
29 |
+
| [Goals](https://github.com/HL7/C-CDA-Examples/tree/master/Goals) | Documentation of a patient's health goals. | π― |
|
30 |
+
| [Health Concerns](https://github.com/HL7/C-CDA-Examples/tree/master/Health%20Concerns) | Documents containing information about a patient's health concerns, including any specific issues or conditions the patient is dealing with. | π |
|
31 |
+
| [Immunizations](https://github.com/HL7/C-CDA-Examples/tree/master/Immunizations) | Records of a patient's immunizations. | π |
|
32 |
+
| [Medications](https://github.com/HL7/C-CDA-Examples/tree/master/Medications) | Documentation of a patient's current and past medications. | π |
|
33 |
+
| [Problems](https://github.com/HL7/C-CDA-Examples/tree/master/Problems) | Records of a patient's health problems. | π€ |
|
34 |
+
"""
|
35 |
+
|
36 |
+
# Create a tab interface with the markdown code
|
37 |
+
st.sidebar.markdown("## Medical Document Types")
|
38 |
+
st.sidebar.markdown(markdown_text)
|