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 ``` """)