Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,106 +1,125 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
# Define the data for the list
|
4 |
data = [
|
5 |
{
|
6 |
"Condition": "Pain",
|
7 |
"Question": "Do you have any pain or discomfort?",
|
8 |
-
"CT Code": "SNOMED CT:
|
|
|
9 |
},
|
10 |
{
|
11 |
"Condition": "Depression",
|
12 |
"Question": "Have you been feeling down, depressed, or hopeless?",
|
13 |
-
"CT Code": "SNOMED CT:
|
|
|
14 |
},
|
15 |
{
|
16 |
"Condition": "Anxiety",
|
17 |
"Question": "Have you been feeling nervous, anxious, or on edge?",
|
18 |
-
"CT Code": "SNOMED CT:
|
|
|
19 |
},
|
20 |
{
|
21 |
"Condition": "Sleep problems",
|
22 |
"Question": "Have you been having trouble sleeping?",
|
23 |
-
"CT Code": "SNOMED CT:
|
|
|
24 |
},
|
25 |
{
|
26 |
"Condition": "Fatigue",
|
27 |
"Question": "Have you been feeling tired or worn out?",
|
28 |
-
"CT Code": "SNOMED CT: 84229001"
|
|
|
29 |
},
|
30 |
{
|
31 |
"Condition": "Mobility problems",
|
32 |
"Question": "Do you have any difficulty walking or moving around?",
|
33 |
-
"CT Code": "SNOMED CT:
|
|
|
34 |
},
|
35 |
{
|
36 |
"Condition": "Incontinence",
|
37 |
"Question": "Do you have any problems with bladder or bowel control?",
|
38 |
-
"CT Code": "SNOMED CT:
|
|
|
39 |
},
|
40 |
{
|
41 |
"Condition": "Memory problems",
|
42 |
"Question": "Have you been having trouble remembering things?",
|
43 |
-
"CT Code": "SNOMED CT:
|
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 |
"Condition": "Transportation problems",
|
92 |
"Question": "Do you have any problems getting to appointments or running errands?",
|
93 |
-
"CT Code": "SNOMED CT:
|
|
|
94 |
},
|
95 |
{
|
96 |
"Condition": "Family/caregiver stress",
|
97 |
"Question": "Do you feel overwhelmed or stressed by your family or caregiving responsibilities?",
|
98 |
-
"CT Code": "SNOMED CT:
|
|
|
99 |
},
|
100 |
{
|
101 |
"Condition": "Activities of daily living (ADLs)",
|
102 |
"Question": "Do you have any difficulty with bathing, dressing, grooming, or other basic activities?",
|
103 |
-
"CT Code": "SNOMED CT:
|
|
|
104 |
}
|
105 |
]
|
106 |
|
@@ -109,6 +128,8 @@ for item in data:
|
|
109 |
st.write(f"Condition: {item['Condition']}") # gpt fail - improper indent, continue problem
|
110 |
st.write(f"Question: {item['Question']}")
|
111 |
st.write(f"CT Code: {item['CT Code']}")
|
|
|
|
|
112 |
st.write("---")
|
113 |
|
114 |
|
|
|
1 |
import streamlit as st
|
2 |
|
|
|
3 |
data = [
|
4 |
{
|
5 |
"Condition": "Pain",
|
6 |
"Question": "Do you have any pain or discomfort?",
|
7 |
+
"CT Code": "SNOMED CT: 22253000",
|
8 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=22253000&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
9 |
},
|
10 |
{
|
11 |
"Condition": "Depression",
|
12 |
"Question": "Have you been feeling down, depressed, or hopeless?",
|
13 |
+
"CT Code": "SNOMED CT: 35489007",
|
14 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=35489007&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
15 |
},
|
16 |
{
|
17 |
"Condition": "Anxiety",
|
18 |
"Question": "Have you been feeling nervous, anxious, or on edge?",
|
19 |
+
"CT Code": "SNOMED CT: 197480006",
|
20 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=197480006&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
21 |
},
|
22 |
{
|
23 |
"Condition": "Sleep problems",
|
24 |
"Question": "Have you been having trouble sleeping?",
|
25 |
+
"CT Code": "SNOMED CT: 309087008",
|
26 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=309087008&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
27 |
},
|
28 |
{
|
29 |
"Condition": "Fatigue",
|
30 |
"Question": "Have you been feeling tired or worn out?",
|
31 |
+
"CT Code": "SNOMED CT: 84229001",
|
32 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=84229001&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
33 |
},
|
34 |
{
|
35 |
"Condition": "Mobility problems",
|
36 |
"Question": "Do you have any difficulty walking or moving around?",
|
37 |
+
"CT Code": "SNOMED CT: 288939007",
|
38 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=288939007&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
39 |
},
|
40 |
{
|
41 |
"Condition": "Incontinence",
|
42 |
"Question": "Do you have any problems with bladder or bowel control?",
|
43 |
+
"CT Code": "SNOMED CT: 48694002",
|
44 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=48694002&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
45 |
},
|
46 |
{
|
47 |
"Condition": "Memory problems",
|
48 |
"Question": "Have you been having trouble remembering things?",
|
49 |
+
"CT Code": "SNOMED CT: 386807006",
|
50 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=386807006&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"Condition": "Vision problems",
|
54 |
+
"Question": "Do you have any problems with your vision?",
|
55 |
+
"CT Code": "SNOMED CT: 246636008",
|
56 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=246636008&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"Condition": "Hearing problems",
|
60 |
+
"Question": "Do you have any problems with your hearing?",
|
61 |
+
"CT Code": "SNOMED CT: 405729008",
|
62 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=405729008&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"Condition": "Breathing problems",
|
66 |
+
"Question": "Have you been having trouble breathing?",
|
67 |
+
"CT Code": "SNOMED CT: 267036007",
|
68 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=267036007&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"Condition": "Cognitive impairment",
|
72 |
+
"Question": "Have you been having difficulty thinking or making decisions?",
|
73 |
+
"CT Code": "SNOMED CT: 373930000",
|
74 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=373930000&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"Condition": "Social isolation",
|
78 |
+
"Question": "Do you feel lonely or isolated from others?",
|
79 |
+
"CT Code": "SNOMED CT: 160303001",
|
80 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=160303001&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"Condition": "Nutrition problems",
|
84 |
+
"Question": "Have you been having problems with your appetite or eating?",
|
85 |
+
"CT Code": "SNOMED CT: 248490000",
|
86 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=248490000&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"Condition": "Substance use",
|
90 |
+
"Question": "Have you been using alcohol or drugs?",
|
91 |
+
"CT Code": "SNOMED CT: 228280008",
|
92 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=228280008&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"Condition": "Safety concerns",
|
96 |
+
"Question": "Do you have any concerns about your safety or the safety of others?",
|
97 |
+
"CT Code": "SNOMED CT: 409596002",
|
98 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=409596002&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"Condition": "Financial concerns",
|
102 |
+
"Question": "Do you have any concerns about your finances or ability to pay for care?",
|
103 |
+
"CT Code": "SNOMED CT: 721991003",
|
104 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=721991003&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
105 |
},
|
106 |
{
|
107 |
"Condition": "Transportation problems",
|
108 |
"Question": "Do you have any problems getting to appointments or running errands?",
|
109 |
+
"CT Code": "SNOMED CT: 405609001",
|
110 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=405609001&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
111 |
},
|
112 |
{
|
113 |
"Condition": "Family/caregiver stress",
|
114 |
"Question": "Do you feel overwhelmed or stressed by your family or caregiving responsibilities?",
|
115 |
+
"CT Code": "SNOMED CT: 308292007",
|
116 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=308292007&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
117 |
},
|
118 |
{
|
119 |
"Condition": "Activities of daily living (ADLs)",
|
120 |
"Question": "Do you have any difficulty with bathing, dressing, grooming, or other basic activities?",
|
121 |
+
"CT Code": "SNOMED CT: 410518003",
|
122 |
+
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=410518003&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
|
123 |
}
|
124 |
]
|
125 |
|
|
|
128 |
st.write(f"Condition: {item['Condition']}") # gpt fail - improper indent, continue problem
|
129 |
st.write(f"Question: {item['Question']}")
|
130 |
st.write(f"CT Code: {item['CT Code']}")
|
131 |
+
st.markdown(f"VerificationURL : {item['URL']}")
|
132 |
+
st.write()
|
133 |
st.write("---")
|
134 |
|
135 |
|