Spaces:
Runtime error
Runtime error
import streamlit as st | |
# Set the page configuration to use the full width of the screen | |
st.set_page_config(layout="wide") | |
CODELICENSING = (""" | |
1. π Simplified Synopsis | |
* π Ideal Open Source Code Copyright License | |
* βοΈ Navigating Copyright Infringement and Licensing Disagreements | |
2. π₯ Alternative Healthcare Terminology Options | |
1. π International Classification of Diseases (ICD) | |
* π’ Managed by the World Health Organization (WHO) | |
2. π Systematized Nomenclature of Medicine - Clinical Terms (SNOMED CT) | |
* π’ Managed by SNOMED International | |
3. π¬ Logical Observation Identifiers Names and Codes (LOINC) | |
* π’ Managed by the Regenstrief Institute | |
3. π Resources | |
* π AMA, WHO, SNOMED International, and Regenstrief Institute Websites | |
* π Legal Journals | |
* π Wikipedia (verify information with primary and authoritative sources) | |
4. π‘ Recommendation | |
* π Consult Legal Professionals | |
* π₯ Consult Healthcare Organizations | |
* π Consult Authoritative Sources for Comprehensive and Current Information | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Open Source Medical Software Resources</title> | |
</head> | |
<body> | |
<h1>Open Source Medical Software Resources</h1> | |
<ul> | |
<li><a href="https://en.wikipedia.org/wiki/World_Health_Organization" target="_blank">World Health Organization (WHO)</a></li> | |
<li><a href="https://en.wikipedia.org/wiki/International_Classification_of_Diseases" target="_blank">International Classification of Diseases (ICD)</a></li> | |
<li><a href="https://en.wikipedia.org/wiki/SNOMED_CT" target="_blank">Systematized Nomenclature of Medicine - Clinical Terms (SNOMED CT)</a></li> | |
<li><a href="https://en.wikipedia.org/wiki/LOINC" target="_blank">Logical Observation Identifiers Names and Codes (LOINC)</a></li> | |
<li><a href="https://en.wikipedia.org/wiki/Regenstrief_Institute" target="_blank">Regenstrief Institute</a></li> | |
</ul> | |
<h2>Sample License File</h2> | |
<pre> | |
MIT License | |
Copyright (c) 2023 Aaron Wacker | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all | |
copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
SOFTWARE. | |
</pre> | |
</body> | |
</html> | |
import streamlit as st | |
st.title('Open Source Medical Software Resources') | |
""") | |
st.markdown(""" | |
π [World Health Organization (WHO)](https://en.wikipedia.org/wiki/World_Health_Organization) | |
π [International Classification of Diseases (ICD)](https://en.wikipedia.org/wiki/International_Classification_of_Diseases) | |
π [Systematized Nomenclature of Medicine - Clinical Terms (SNOMED CT)](https://en.wikipedia.org/wiki/SNOMED_CT) | |
π¬ [Logical Observation Identifiers Names and Codes (LOINC)](https://en.wikipedia.org/wiki/LOINC) | |
π’ [Regenstrief Institute](https://en.wikipedia.org/wiki/Regenstrief_Institute) | |
""") | |
st.header('Sample License File') | |
#st.code( | |
st.markdown(""" | |
MIT License | |
Copyright (c) 2023 Aaron Wacker | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all | |
copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
SOFTWARE. | |
, language='') | |
""") | |
import streamlit as st | |
GALMIO = """ | |
| π¦Έ **Story Type** | π **Synopsis** | π¬ **Movie Poster Quotes** | | |
|-----------------------|-----------------------------------------|-----------------------------| | |
| 1οΈβ£ The Referral Enigma | π€ A group of Mentats join forces to decipher an ancient riddle | "Wit beyond measure, a story to treasure!" π π | | |
| 2οΈβ£ The Certificate Caper | πΌ Mentats unveil a mind-bending mystery with world-shaking consequences | "A thrilling ride with intellects colliding!" π π’ | | |
| 3οΈβ£ The Prescription Puzzlers | π A team of Mentats solves medical conundrums in record time | "A story full of knowledge, without a moment of drudgery!" π π§ͺ | | |
| 4οΈβ£ Diagnosis Detectives | π Mentats uncover the cause of a baffling epidemic | "Science fiction meets a mastermind investigation!" π π¬ | | |
| 5οΈβ£ The Treatment Team | π A league of Mentats strategizes to save the world from a dire threat | "An action-packed battle of brilliant minds!" π π₯ | | |
| 6οΈβ£ The Surgical Strategists | π₯ Mentats perform high-stakes surgeries to save the day | "A mind-blowing fusion of medical marvels and superhero smarts!" π π©Ί | | |
| 7οΈβ£ The Clearance Crusaders | π Mentats unite to challenge the limits of human potential | "A tale of perseverance, powered by unparalleled intellect!" π π | | |
| 8οΈβ£ The Follow-up Fanatics | π Mentats devise ingenious solutions to keep history on track | "A mind-twisting journey through time and space!" π π | | |
| 9οΈβ£ The Disability Defenders | βΏ Mentats champion the rights of the disabled in a futuristic utopia | "A heartwarming saga of empathy and enlightenment!" π π | | |
""" | |
def display_superhero_stories(): | |
st.title("π Superheroes of the Intellect: Chronicles of the Mentat Minds π") | |
st.markdown(GALMIO) | |
# Run the Streamlit UI function | |
display_superhero_stories() | |
def generate_letter_menu_ui(): | |
st.markdown("""## Generative AI Letters for Managing Information Overload (GAL-MIO) - π₯ Letter Type Selection""") | |
# Define the letter types and their corresponding markdown sections | |
letter_types = { | |
"1οΈβ£ Fascinating Referral Letters": FRL, | |
"2οΈβ£ Enchanted Medical Certificate Letters": EMCL, | |
"3οΈβ£ Bewitching Prescription Letters": BPL, | |
"4οΈβ£ Enigmatic Diagnosis Letters": EDL, | |
"5οΈβ£ Fantastical Treatment Plan Letters": FTPL, | |
"6οΈβ£ Magical Surgery Recommendation Letters": MSRL, | |
"7οΈβ£ Miraculous Medical Clearance Letters": MMCL, | |
"8οΈβ£ Astonishing Follow-up Appointment Letters": AFAL, | |
"9οΈβ£ Extraordinary Disability Support Letters": EDSL, | |
"π Amazing Health Education Letters": AHEL | |
} | |
# Create buttons for each letter type | |
for letter_type, section in letter_types.items(): | |
if st.button(letter_type): | |
# Display the selected section of the markdown content | |
st.markdown(section, unsafe_allow_html=True) | |
# Run the Streamlit UI function | |
generate_letter_menu_ui() | |
st.markdown(GALMIO) | |