File size: 16,607 Bytes
d823101
 
856d00c
 
 
 
0a54088
 
856d00c
 
 
 
0a54088
 
856d00c
 
 
 
0a54088
 
856d00c
 
 
 
0a54088
 
856d00c
 
 
 
0a54088
 
856d00c
 
 
 
0a54088
 
856d00c
 
 
 
0a54088
 
856d00c
 
 
 
0a54088
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
856d00c
 
 
 
0a54088
 
856d00c
 
 
 
0a54088
 
856d00c
 
 
 
0a54088
 
856d00c
 
 
 
 
 
 
 
0a54088
 
856d00c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d823101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
856d00c
 
 
d823101
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
import streamlit as st

data = [
    {
        "Condition": "Pain",
        "Question": "Do you have any pain or discomfort?",
        "CT Code": "SNOMED CT: 22253000",
        "URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=22253000&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
    },
    {
        "Condition": "Depression",
        "Question": "Have you been feeling down, depressed, or hopeless?",
        "CT Code": "SNOMED CT: 35489007",
        "URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=35489007&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
    },
    {
        "Condition": "Anxiety",
        "Question": "Have you been feeling nervous, anxious, or on edge?",
        "CT Code": "SNOMED CT: 197480006",
        "URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=197480006&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
    },
    {
        "Condition": "Sleep problems",
        "Question": "Have you been having trouble sleeping?",
        "CT Code": "SNOMED CT: 309087008",
        "URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=309087008&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
    },
    {
        "Condition": "Fatigue",
        "Question": "Have you been feeling tired or worn out?",
        "CT Code": "SNOMED CT: 84229001",
        "URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=84229001&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
    },
    {
        "Condition": "Mobility problems",
        "Question": "Do you have any difficulty walking or moving around?",
        "CT Code": "SNOMED CT: 288939007",
        "URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=288939007&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
    },
    {
        "Condition": "Incontinence",
        "Question": "Do you have any problems with bladder or bowel control?",
        "CT Code": "SNOMED CT: 48694002",
        "URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=48694002&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
    },
    {
        "Condition": "Memory problems",
        "Question": "Have you been having trouble remembering things?",
        "CT Code": "SNOMED CT: 386807006",
        "URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=386807006&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Vision problems",
"Question": "Do you have any problems with your vision?",
"CT Code": "SNOMED CT: 246636008",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=246636008&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Hearing problems",
"Question": "Do you have any problems with your hearing?",
"CT Code": "SNOMED CT: 405729008",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=405729008&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Breathing problems",
"Question": "Have you been having trouble breathing?",
"CT Code": "SNOMED CT: 267036007",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=267036007&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Cognitive impairment",
"Question": "Have you been having difficulty thinking or making decisions?",
"CT Code": "SNOMED CT: 373930000",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=373930000&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Social isolation",
"Question": "Do you feel lonely or isolated from others?",
"CT Code": "SNOMED CT: 160303001",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=160303001&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Nutrition problems",
"Question": "Have you been having problems with your appetite or eating?",
"CT Code": "SNOMED CT: 248490000",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=248490000&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Substance use",
"Question": "Have you been using alcohol or drugs?",
"CT Code": "SNOMED CT: 228280008",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=228280008&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Safety concerns",
"Question": "Do you have any concerns about your safety or the safety of others?",
"CT Code": "SNOMED CT: 409596002",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=409596002&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Financial concerns",
"Question": "Do you have any concerns about your finances or ability to pay for care?",
"CT Code": "SNOMED CT: 721991003",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=721991003&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Transportation problems",
"Question": "Do you have any problems getting to appointments or running errands?",
"CT Code": "SNOMED CT: 405609001",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=405609001&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Family/caregiver stress",
"Question": "Do you feel overwhelmed or stressed by your family or caregiving responsibilities?",
"CT Code": "SNOMED CT: 308292007",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=308292007&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
},
{
"Condition": "Activities of daily living (ADLs)",
"Question": "Do you have any difficulty with bathing, dressing, grooming, or other basic activities?",
"CT Code": "SNOMED CT: 410518003",
"URL": "https://browser.ihtsdotools.org/?perspective=full&conceptId1=410518003&edition=MAIN/SNOMEDCT/2021-09-30&release=&languages=en"
}
]

st.write("Top 20 Conditions used in Surveys and Assessments as Questions about Care Needs:")
for item in data:
    st.write(f"Condition: {item['Condition']}")  # gpt fail - improper indent, continue problem
    st.write(f"Question: {item['Question']}")
    st.write(f"CT Code: {item['CT Code']}")
    st.markdown(f"VerificationURL : {item['URL']}")
    st.write()
    st.write("---")


st.markdown("""

Prompt:
Using the 20 point outline below, write a streamlit program that displays a table grid of the top 20 FHIR based observations.  For each come up with a representative emoji and reducce reading level to grade school level.  Create a CT code which is one of the following types for each:  ICD10, CPT, HCPCS, SNOMED, LOINC, OMS, RxNorm.  Generate all code in streamlit python as a Hedis Pro Guide.  


Patient Name (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient)
Patient Date of Birth (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthdate)
Patient Address (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-address)
Patient Phone Number (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-phone)
Patient Email Address (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-email)
Patient Gender (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient)
Encounter Date/Time (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter)
Encounter Type (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter)
Encounter Location (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter)
Provider Name (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner)
Provider NPI (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner)
Provider Address (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-address)
Provider Phone Number (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-phone)
Provider Email Address (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-email)
Reason for Visit (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab)
Lab Test Result (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab)
Medication Order (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest)
Medication Administration (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest)
Allergy List (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance)
Immunization Record (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization)

""")



st.markdown("""

# Prompt:
## According to https://www.healthit.gov/ Clinical Notes are aligned to different clinical terminology codes inccluding Applicable Vocabulary Standards to HEDIS.  Name top twenty USCDI Data Classes and include the code URI, the code type, and the code value.  Create a python dictionary list for streamlit python which includes the markdown for the data.  use st.markdown function to display the data.

Clinical Notes are documents created by healthcare professionals that contain information about a patient's medical history, current condition, and treatment plan. They can include progress notes, discharge summaries, and consultation reports.

The United States Core Data for Interoperability (USCDI) is a standardized set of health data classes that are required to be exchanged between different healthcare providers and systems. The top twenty USCDI data classes are:

Patient Name (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient)
Patient Date of Birth (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthdate)
Patient Address (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-address)
Patient Phone Number (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-phone)
Patient Email Address (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-email)
Patient Gender (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient)
Encounter Date/Time (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter)
Encounter Type (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter)
Encounter Location (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter)
Provider Name (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner)
Provider NPI (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner)
Provider Address (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-address)
Provider Phone Number (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-phone)
Provider Email Address (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-email)
Reason for Visit (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab)
Lab Test Result (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab)
Medication Order (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest)
Medication Administration (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest)
Allergy List (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance)
Immunization Record (URI: http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization)

# Prompt 2: Fail: Show as markdown code in streamlit python

# Prompt 3: Fail: continue and show full code listing including markdown so it displays as a numbered list in st.markdown() function

# Prompt 4: Fail:

import streamlit as st

data = {
    'Patient Name': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient', 'Code Type': 'USCDI Data Class', 'Code Value': 'Patient Name'},
    'Patient Date of Birth': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthdate', 'Code Type': 'USCDI Data Class', 'Code Value': 'Patient Date of Birth'},
    'Patient Address': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-address', 'Code Type': 'USCDI Data Class', 'Code Value': 'Patient Address'},
    'Patient Phone Number': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-phone', 'Code Type': 'USCDI Data Class', 'Code Value': 'Patient Phone Number'},
    'Patient Email Address': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-email', 'Code Type': 'USCDI Data Class', 'Code Value': 'Patient Email Address'},
    'Patient Gender': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient', 'Code Type': 'USCDI Data Class', 'Code Value': 'Patient Gender'},
    'Encounter Date/Time': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter', 'Code Type': 'USCDI Data Class', 'Code Value': 'Encounter Date/Time'},
    'Encounter Type': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter', 'Code Type': 'USCDI Data Class', 'Code Value': 'Encounter Type'},
    'Encounter Location': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter', 'Code Type': 'USCDI Data Class', 'Code Value': 'Encounter Location'},
    'Provider Name': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner', 'Code Type': 'USCDI Data Class', 'Code Value': 'Provider Name'},
    'Provider NPI': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner', 'Code Type': 'USCDI Data Class', 'Code Value': 'Provider NPI'},
    'Provider Address': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-address', 'Code Type': 'USCDI Data Class', 'Code Value': 'Provider Address'},
    'Provider Phone Number': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-phone', 'Code Type': 'USCDI Data Class', 'Code Value': 'Provider Phone Number'},
    'Provider Email Address': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-email', 'Code Type': 'USCDI Data Class', 'Code Value': 'Provider Email Address'},
    'Reason for Visit': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab', 'Code Type': 'USCDI Data Class', 'Code Value': 'Reason for Visit'},
    'Lab Test Result': {'URI': 'http://hl7.org/fhir/us/core/StructureDefinition/us-core
...

Failure reason - cannot continue.  3.5 could but in subsequent continue - Eval submitted


""")

st.markdown("""

# Component UI Tile Sizes for Optimal Display

Prompt on GPT-4:
```
Display a list of top ten table size proportions dividing a typical computer screen into 2,3,4,5,6 tiles supporting the tiles in a table with each iframe sized so total width and height add to 2560 x 1440 for HD computer displays.

# RLHF Feedback:
##👎GPT-4 Difference: Failed first time, submitted eval on fail.  Tried again, different better outcome.

Right Answer:

Here is a list of top ten table size proportions for dividing a typical computer screen into 2, 3, 4, 5, and 6 tiles. Each iframe is sized so that the total width and height add up to 2560 x 1440 for HD computer displays:

...
These table size proportions provide various arrangements for dividing a typical HD computer display into multiple tiles. You can choose the most suitable layout based on your requirements and preferences.

Aaron Wacker
Show markdown code listing

1. 2 tiles (1x2):
   - Tile 1: 1280 x 1440
   - Tile 2: 1280 x 1440

2. 2 tiles (2x1):
   - Tile 1: 2560 x 720
   - Tile 2: 2560 x 720

3. 3 tiles (1x3):
   - Tile 1: 853 x 1440
   - Tile 2: 853 x 1440
   - Tile 3: 854 x 1440

4. 3 tiles (3x1):
   - Tile 1: 2560 x 480
   - Tile 2: 2560 x 480
   - Tile 3: 2560 x 480

5. 4 tiles (2x2):
   - Tile 1: 1280 x 720
   - Tile 2: 1280 x 720
   - Tile 3: 1280 x 720
   - Tile 4: 1280 x 720

6. 5 tiles (1x5):
   - Tile 1: 512 x 1440
   - Tile 2: 512 x 1440
   - Tile 3: 512 x 1440
   - Tile 4: 512 x 1440
   - Tile 5: 512 x 1440

7. 5 tiles (5x1):
   - Tile 1: 2560 x 288
   - Tile 2: 2560 x 288
   - Tile 3: 2560 x 288
   - Tile 4: 2560 x 288
   - Tile 5: 2560 x 288

8. 6 tiles (2x3):
   - Tile 1: 1280 x 480
   - Tile 2: 1280 x 480
   - Tile 3: 1280 x 480
   - Tile 4: 1280 x 480
   - Tile 5: 1280 x 480
   - Tile 6: 1280 x 480

9. 6 tiles (3x2):
   - Tile 1: 853 x 720
   - Tile 2: 853 x 720
   - Tile 3: 854 x 720
   - Tile 4: 853 x 720
   - Tile 5: 853 x 720
   - Tile 6: 854 x 720

10. 6 tiles (1x6):
    - Tile 1: 426 x 1440
    - Tile 2: 426 x 1440
    - Tile 3: 426 x 1440
    - Tile 4: 426 x 1440
    - Tile 5: 426 x 1440
    - Tile 6: 426 x 1440

#👍RLHF:
## Provide Additional Feedback : GPT-4 Got this right and did it differently second time after an eval about an error.  Well done - very useful


```

""")