diff --git a/README.md b/README.md
index b47ed94..b8bb378 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# TracEX
+# Generating Process Descriptions with Generative AI - TracEX Fork
[](https://github.com/bptlab/TracEX)
[](https://github.com/bptlab/TracEX/issues)
@@ -6,6 +6,41 @@
[](https://github.com/bptlab/TracEX/issues)
[](https://github.com/bptlab/TracEX/blob/main/.github/workflows/pylint.yml)
+This repository is a fork of the original TracEX project and contains the implementation of the bachelor's thesis "Generating Process Descriptions with Generative AI".
+It also contains the evaluation data of the thesis and the "Patient Journey" configuration used to produce the presented results.
+
+## Process Description Generation Tool
+Follow the setup instructions from the original README below to start the TracEX tool.
+Once you are on the landing page you can navigate to the "Process Description Generation" tab.
+Here you can select the process description configuration you want to use, the degree of variation between the instances, and the number of instances you want to generate.
+You can also specify whether you want to save the generated instances to the database, as text files or at all.
+After you have configured the generation process, you can start the generation by clicking the "Generate new Process Description" button.
+The generated instances will then be displayed along with the corresponding instance configuration.
+
+If you want to adjust the generation process, you can find all the relevant code in the "tracex_project/patient_journey_generator" directory.
+Specifically in generator.py.
+There are three main functions responsible for the generation process:
+- **execute_generate_process_description():** This function is called when the user starts the generation process. It reads the user input and calls the other two functions accordingly.
+- **generate_process_description():** This function generates the process descriptions based on the user input.
+- **get_instance_config():** This function determines the instance configuration based on the degree of variation. It implements the configuration matrix of the degree of variation.
+
+## Evaluation Data
+The evaluation data used in the thesis can be found in the "evaluation_data" directory.
+For each batch of generated process descriptions there is a directory (low, medium, high) with the related process descriptions and their event logs.
+All generated journeys, their traces, and event logs are also stored in the database.
+You can access these indirectly through the TracEX tool (Database Results -> Evaluation) or directly over the admin page (http://127.0.0.1:8000/admin/, user: admin, password: admin).
+In the evaluation view, you can filter for low, medium, and high to see the complete event log and DFG for the respective batch.
+
+## Patient Journey Configuration
+The patient journey configuration used in the thesis can be found in "tracex_project/patient_journey_generator/process_description_configurations/patient_journey_configuration.json".
+There in the same directory there is an example configuration file for a different domain and case.
+When creating a new configuration file, make sure to follow the framework of the thesis and the structure of the existing configuration files.
+
+## Disclaimer
+Please note that the TracEX extraction pipeline is currently unable to extract event logs from anything other than patient journeys.
+Also, regarding the rest of the README and wiki, the information about the patient journey generator is outdated and does not apply to the process description generation tool.
+___
+
TracEX aims to extract event logs from unstructured text, specifically written patient experiences known as patient journeys. By leveraging Large Language Models (LLMs), TracEX can automatically identify and extract relevant events, activities, timestamps and further information from natural langauge text. This enables healthcare professionals and researchers to gain valuable insights into patient experiences, treatment pathways, and potential areas for improvement in healthcare delivery.
This project was initiated and completed as part of the team's bachelor's degree under the supervision of the Business Process Technology chair at the Hasso Plattner Institute. The project was conducted in cooperation with [mamahealth](https://www.mamahealth.com/).
diff --git a/evaluation_data/process_descriptions_high_dov/2024-06-19_14-42-46_Patient_high_similar_to_example_1.txt b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-42-46_Patient_high_similar_to_example_1.txt
new file mode 100644
index 0000000..144bd1c
--- /dev/null
+++ b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-42-46_Patient_high_similar_to_example_1.txt
@@ -0,0 +1,9 @@
+I, a 18-year-old female farmer from Poland, divorced and grappling with obesity and osteoporosis, found myself confronted with unexpected lower back pains while tending to my farm duties. The Onset of Symptoms was sharp and unbearable, disrupting my daily routine significantly.
+
+Concerned about the escalating discomfort, I promptly scheduled an Appointment with my primary care physician. During the Consultation, my fears were validated – my osteoporosis had exacerbated, triggering this sudden agony. The physician advocated for a Change in Lifestyle, emphasizing the importance of avoiding strenuous activities and focusing on a balanced diet to alleviate the distress.
+
+Despite adhering to the Lifestyle Adjustments, the pain persisted, leading to my hospitalization. The Admission to the hospital was emotionally taxing, as I grappled with being separated from my farm and feeling isolated in an unfamiliar setting. The medical team prescribed Medications to manage the pain and fortify my bones, yet progress was gradual, leaving me grappling with Feelings of frustration and helplessness.
+
+During my hospitalization, I underwent a series of Therapies and treatments to effectively address my osteoporosis. Though my time in the hospital was arduous, the attentive healthcare professionals provided the necessary assistance. Finally, after what felt like an eternity, I experienced Relief from the excruciating back pain.
+
+Reflecting on my Journey as a Patient, I've come to appreciate the significance of tuning in to my body's signals and seeking prompt medical intervention. The path to recovery proved challenging and strenuous, yet with proper care and treatment, I managed to navigate through the hurdles posed by my preexisting health issues. This experience underscored the importance of self-care and the resilience required to surmount health adversities.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_high_dov/2024-06-19_14-43-02_Patient_high_similar_to_example_2.txt b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-43-02_Patient_high_similar_to_example_2.txt
new file mode 100644
index 0000000..db72023
--- /dev/null
+++ b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-43-02_Patient_high_similar_to_example_2.txt
@@ -0,0 +1,11 @@
+As a 35-year-old male politician hailing from France, my world took an unforeseen twist as I began noticing peculiar symptoms. The initial subtle memory lapses and cognitive fog seemed trivial, attributing them to the stress of my demanding political career. However, as days turned into weeks, these mild signs escalated, impairing my ability to recollect crucial information and events.
+
+Having gone through a divorce, I found myself without a partner to rely on for assistance, and the hectic nature of my occupation made it arduous to prioritize my well-being. Eventually, the forgetfulness started impeding my professional performance, prompting concerned colleagues to advise seeking medical attention. Reluctantly, I acquiesced and sought out a physician to delve into my mounting concerns.
+
+In the doctor's office, I detailed my troubling symptoms and underwent a battery of tests to unveil the root cause of my cognitive deterioration. The diagnosis I received was shattering—early-onset dementia. With a backdrop of preexisting eczema, the notion of grappling with cognitive decline at this juncture in my life was beyond my wildest apprehensions. The doctor elucidated the condition's nuances and proffered guidance on lifestyle alterations to temper the symptoms.
+
+Overwhelmed and apprehensive about what lay ahead, it became apparent that significant modifications to my daily routine were imperative. Embracing the doctor's counsel, I embarked on a journey of self-care prioritization, mental exercises, and the adoption of a healthier dietary and exercise regimen. These changes became pivotal in stalling the disease's advancement and upholding a semblance of normality amid the chaos.
+
+Amidst the trials, I clung to resilience and the unwavering support of healthcare providers and dear ones. Hospital visits grew in frequency as the symptoms progressed, with each discharge engendering a blend of relief and trepidation about the uncertain future. Throughout this odyssey, emotions oscillated between hope and fear as I navigated the labyrinthine landscape of living with dementia.
+
+Reflecting on the trajectory from symptom inception to symptom trajectory, it emerges as a tumultuous ride replete with a gamut of sentiments and encounters. This voyage imparted valuable lessons in fortitude, the imperativeness of self-care, and the significance of seeking aid when necessary. As I persist in managing my condition, gratitude abounds for the safety net enveloping me and the invaluable insights garnered along this arduous path.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_high_dov/2024-06-19_14-43-19_Patient_high_similar_to_example_3.txt b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-43-19_Patient_high_similar_to_example_3.txt
new file mode 100644
index 0000000..489c2ee
--- /dev/null
+++ b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-43-19_Patient_high_similar_to_example_3.txt
@@ -0,0 +1,13 @@
+As a 25-year-old female engineer from Spain, I've always cherished my independence and vibrant lifestyle. However, a diagnosis of multiple sclerosis shifted my world drastically. The transition from the emergence of symptoms to their disappearance has been a whirlwind of emotions, obstacles, and determination.
+
+It all commenced with the onset of unusual sensations like limb numbness and walking challenges. The moment symptoms first appeared was a terrifying experience that prompted me to seek medical attention. The diagnosis of multiple sclerosis during a doctor's visit was a defining instant in my journey.
+
+Embracing the reality of my condition was daunting, particularly when factoring in my existing health concern of COPD. My emotions during this period, a mixture of fear, sorrow, and resilience, were captured through the event of processing these feelings. I recognized the need to stay strong not just for myself but also for my support system.
+
+Frequent hospitalizations became part and parcel of my life as I navigated treatment regimens and symptom control. The timestamps associated with these occurrences reflected the extensive time spent in hospital settings, amidst the constant hum of machines and the reassuring presence of healthcare professionals. Each treatment session symbolized a step towards managing symptoms and enhancing my well-being.
+
+In addition to medical interventions, I incorporated lifestyle adjustments to adapt to my new circumstances. Timestamped events included engaging in yoga, modifying my diet, and practicing mindfulness exercises, underscoring my dedication to holistic health. The unwavering support of my partner, unwavering throughout this journey, provided me with a steady source of strength.
+
+As time progressed, the eventual relief of symptom alleviation neared. The gradual amelioration of my condition underscored my resilience and the unwavering commitment of my medical team. With each passing day, I felt a deep sense of gratitude for the strides made and the valuable insights gleaned from this arduous expedition.
+
+Reflecting on my patient journey, I am reminded of the power of endurance, love, and self-nurturing. The timestamps associated with Diagnosis, Hospital Admission, Treatment, and Lifestyle Changes intricately weave together a story of bravery and personal development. While multiple sclerosis may have reshaped my life's trajectory, it has also imparted profound lessons on resilience, compassion, and the indomitable human spirit.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_high_dov/2024-06-19_14-43-40_Patient_high_similar_to_example_4.txt b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-43-40_Patient_high_similar_to_example_4.txt
new file mode 100644
index 0000000..c8dc29b
--- /dev/null
+++ b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-43-40_Patient_high_similar_to_example_4.txt
@@ -0,0 +1,15 @@
+I am a 28-year-old male farmer hailing from France, where my days are spent immersed in the ebb and flow of agricultural tasks. But my reality took a dramatic turn when the diagnosis of diabetes type 1 shook the very foundation of my world, compounded by the existing challenge of epilepsy.
+
+From the genesis of symptoms to their eventual dissipation, my journey has been a tumultuous odyssey of sensations and events. It all commenced with the subtle whispers of weariness and unexplained weight loss, marking the genesis of my tale - the Onset of Symptoms. These early indicators prompted a quest for medical guidance, culminating in the definitive moment of Diagnosis of diabetes type 1.
+
+The diagnosis ushered in a wave of modifications in my daily habits - Lifestyle Adjustments. As a farmer, recalibrating my dietary choices and daily rhythms proved to be a formidable task, vital for the management of my condition. The unwavering support of my beloved wife, with whom I share a cherished marital bond, served as a beacon of light in navigating this transitional phase.
+
+The adherence to Treatment and Medication regimens became the cornerstone of my routine existence. Regular consultations with healthcare professionals, diligent monitoring of blood glucose levels, and the administration of insulin injections seamlessly integrated into the fabric of my life. The perpetual vigilance demanded by diabetes management tested my mettle but also unveiled reservoirs of fortitude within me.
+
+Yet, despite my earnest endeavors, there were days suffused with overwhelming Emotions of exasperation and vulnerability. The specter of hypoglycemia and the specter of health uncertainty weighed heavily on my psyche, imposing challenges both physical and emotional.
+
+As my struggle to stabilize my condition intensified, the frequency of Hospital Admissions escalated. Each hospitalization served as a stark reminder of life's fragility and the paramount importance of self-preservation. The moment of Hospital Discharge bore a blend of relief and trepidation, heralding my return to the familiar yet unpredictable realm of managing my health beyond the hospital confines.
+
+Ultimately, after enduring a rollercoaster of peaks and valleys, I arrived at the juncture of Symptom Dissipation. The gradual amelioration of my health and the waning manifestations of diabetes instilled in me a sense of triumph and thankfulness. The expedition was lengthy and grueling, but it imbued me with resilience and a renewed commitment to prioritize my well-being.
+
+As I reflect on the traverse of my patient narrative, I am reminded of the innate resilience ingrained within me as a farmer, confronting the caprices of nature with steadfast determination. Although diabetes may have reshaped the trajectory of my life, it has also imparted invaluable lessons in perseverance, modesty, and appreciation.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-01_Patient_high_similar_to_example_5.txt b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-01_Patient_high_similar_to_example_5.txt
new file mode 100644
index 0000000..ca24b9d
--- /dev/null
+++ b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-01_Patient_high_similar_to_example_5.txt
@@ -0,0 +1,17 @@
+An industrious Romanian female pilot at 38, my days are typically a whirlwind of professional duties and nurturing my relationship. However, the equilibrium of my bustling life was disrupted by the sudden emergence of symptoms linked to my type 2 diabetes.
+
+It all commenced with the onset of symptoms, manifesting through unquenchable thirst, unrelenting fatigue, and an alarming increase in urination frequency. Initially dismissing these signals as mere byproducts of work-related stress, I strove forward until the symptoms exacerbated.
+
+In due course, I recognized the gravity of the situation and sought out medical assistance, marking the pivotal Doctor Visit event. The diagnosis of type 2 diabetes by the physician struck me profoundly, catching me unawares given my absence of preexisting health conditions. This diagnosis event served as a catalyst for a paradigm shift in my health consciousness.
+
+Subsequent to the diagnosis, a significant paradigm shift was necessitated in the form of Lifestyle Changes to manage my condition effectively. This transformative event entailed integrating regular physical exercise into my regimen, adopting a balanced dietary pattern, and meticulously monitoring my blood glucose levels. The adjustment proved to be a daunting endeavor, particularly given my demanding occupation as a pilot.
+
+As time progressed, consistent attendance of Doctor Visits for routine checks and consultations on optimal diabetes management became an abiding feature of my routine. These visits evolved into a constant in my life, underlining the significance of prioritizing my health amidst the hustle and bustle of my professional life.
+
+Furthermore, the prescription of specialized Medications aimed at regulating my blood sugar levels and mitigating the risk of complications assumed a central role in my day-to-day routine. This event underscored the imperative nature of discipline and steadfastness in preserving my health.
+
+Despite the hurdles, my partnership provided solace and fortitude. The steadfast support and encouragement from my significant other during Hospital Discharges and Treatment sessions instilled within me a sense of gratitude and determination to remain vigilant about my health.
+
+Amidst this patient odyssey, a kaleidoscope of emotions was traversed—from trepidation and ambiguity to grit and perseverance. Each sentiment intertwined with the events of this journey, molding my approach towards managing my diabetes and championing my well-being.
+
+Ultimately, the passage from Symptom Onset to Lifestyle Changes has been a crucible of transformation, enlightening me on the essence of self-care, resilience, and the significance of seeking assistance during tumultuous junctures. As a female pilot grappling with type 2 diabetes, this voyage has not only influenced my health trajectory but also my worldview, serving as a poignant reminder of the human body's fragility and resilience.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-17_Patient_high_similar_to_example_6.txt b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-17_Patient_high_similar_to_example_6.txt
new file mode 100644
index 0000000..1ebbdd9
--- /dev/null
+++ b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-17_Patient_high_similar_to_example_6.txt
@@ -0,0 +1,13 @@
+At the age of 65, I, a male lawyer hailing from Poland, have always prided myself on my capacity to tackle life's hurdles with tenacity and resolve. Nonetheless, the revelation of osteoporosis left me feeling as though the ground beneath me was slowly giving way.
+
+The onset of my ordeal was marked by a niggling backache that seemed to exacerbate day by day. Initially brushing off the discomfort, I soldiered on through my hectic work commitments, attributing the pain to the stresses of life and the toll of age. Yet, as days turned into weeks, the dull ache morphed into sharp spasms that made prolonged sitting and even a good night's rest an arduous task.
+
+Ultimately, prodded by my concerned spouse, I relented and sought out medical assistance. The diagnosis of osteoporosis blindsided me - a health condition I had never fathomed confronting. The physician elaborated on how my preexisting obesity likely magnified the strain on my bones, precipitating the onset of osteoporosis.
+
+Subsequently, the discourse with my healthcare provider centered on exploring treatment modalities. A regimen of medication was prescribed to fortify my bones and mitigate fracture risks. Incorporating this new routine of medication intake served as a daily reminder of the evolution in my health status.
+
+Over time, subtle ameliorations in my condition surfaced. The intense spasms in my back ebbed, rendering me more equipped to juggle the daily demands of both my professional and personal life. Gradually, the symptoms began to recede, allowing me to reestablish a semblance of normality.
+
+Attaining the juncture of symptom abatement felt akin to a modest triumph in my quest for improved well-being. While the initial diagnosis of osteoporosis seemed like a formidable barrier, it ultimately spurred me to prioritize self-care and embrace positive lifestyle adjustments.
+
+Upon retrospection of my patient voyage, I am appreciative of the unwavering support of my loved ones, the proficiency of my healthcare cadre, and the resilience that steered me through the adversities I encountered. As I press on along the trajectory to wellness, I carry forth the wisdom gleaned from this experience, greeting each day with gratitude and a rekindled sense of purpose.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-30_Patient_high_similar_to_example_7.txt b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-30_Patient_high_similar_to_example_7.txt
new file mode 100644
index 0000000..804daf6
--- /dev/null
+++ b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-30_Patient_high_similar_to_example_7.txt
@@ -0,0 +1,9 @@
+I am a 50-year-old male architect hailing from Switzerland, navigating life as a single individual with a demanding profession that structures my daily routine. However, my equilibrium shifted when signs of schizophrenia started surfacing. The onset of symptoms was a perplexing period, enveloped in a fog of uncertainty and trepidation as I grappled with comprehending the unfolding events.
+
+The initial alterations manifested subtly, prompting an unexplained transformation in my day-to-day activities. Tasks that once felt effortless now weighed heavily upon me, prompting a retreat from social engagements. As time progressed, the symptoms exacerbated, delving into a realm of hallucinations and paranoia.
+
+After enduring months of anxiety and unrest, I took a decisive step to seek assistance, eventually receiving a diagnosis of schizophrenia. While the diagnosis offered a semblance of clarity, aiding in deciphering the chaos within, it ushered in a fresh array of trials. The complication of managing my existing battle with cancer further complicated the treatment regimen.
+
+Post-diagnosis, I found myself admitted to a hospital for specialized care and intervention. Within the confines of the medical facility, I underwent an intensive regimen of therapies and medications to combat and regulate the symptoms plaguing me. Discharge from the hospital marked a pivotal moment, signifying the closure of one chapter in my expedition towards recovery.
+
+Amidst the tumultuous journey, I have gleaned precious insights on navigating the ebbs and flows of life while coping with schizophrenia. The path has been arduous, but with unwavering support from healthcare professionals, companions, and kin, I have unearthed pockets of resilience and optimism. Though my voyage has been riddled with obstacles, it stands as a testament to the inherent fortitude and tenacity that resides within each of us.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-46_Patient_high_similar_to_example_8.txt b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-46_Patient_high_similar_to_example_8.txt
new file mode 100644
index 0000000..8de219e
--- /dev/null
+++ b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-44-46_Patient_high_similar_to_example_8.txt
@@ -0,0 +1,11 @@
+Being a 45-year-old police officer from Denmark, who tragically lost his spouse, my daily life centers around staying in shape and controlling my diabetes type 2 and chronic kidney disease. However, an unforeseen event disrupted this routine.
+
+It all started when a persistent ache in my abdomen caught my attention. It was a sharp discomfort that refused to dissipate. Worried about it, I decided to consult my doctor for a thorough examination. The appointment was set for the following week, and the anticipation of uncovering the source of the pain weighed heavily on my mind.
+
+During the medical consultation, tests unveiled a progression in my chronic kidney disease, necessitating adjustments to my treatment regimen. The doctor recommended Lifestyle Changes to enhance my overall well-being and better manage my health conditions. I understood the significance of looking after my health, not only for my personal welfare but also for my duty as a law enforcement officer.
+
+Despite my commitment to improving my self-care, the pressures of work and personal challenges began to affect my health. One morning, while on duty, I experienced a sudden Onset of Symptoms linked to my diabetes, leading to bouts of dizziness and disorientation. Promptly, I was transported to the hospital, where the medical team acted swiftly to stabilize my condition.
+
+During my recuperation period in the hospital, reflecting on the journey from the initial Symptom Onset to eventual relief, I recognized the essence of seeking timely medical assistance and embracing essential Lifestyle Changes. This episode underscored the significance of prioritizing my health and wellness, not only for my benefit but also for the well-being of my family and the community I serve as a police officer.
+
+Through this journey of patient care, I gleaned valuable insights into managing chronic conditions with vigilance, adaptability, and the support of a robust healthcare network and caring loved ones. Every stage, from medical consultations to embracing new Lifestyle Changes and navigating sudden Symptom Onsets, has reshaped my perspective on health and resilience, guiding me towards a more harmonious and fulfilling existence.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_high_dov/2024-06-19_14-45-07_Patient_high_similar_to_example_9.txt b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-45-07_Patient_high_similar_to_example_9.txt
new file mode 100644
index 0000000..a761fff
--- /dev/null
+++ b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-45-07_Patient_high_similar_to_example_9.txt
@@ -0,0 +1,17 @@
+Feeling unwell on the 01/01/2020, I, a 58-year-old male musician hailing from Belgium, found myself once again grappling with the challenges of managing asthma. The harmonious symphony of music and health was disrupted as I sensed a tightening in my chest while strumming my guitar, signaling the beginning of an asthma episode.
+
+Promptly, I sought medical attention, recognizing the gravity of the situation. Following an appointment with my doctor, the Diagnosis event unfolded, affirming the worsening of my asthma due to stress and exposure to allergens during my musical performances.
+
+With a backdrop of Parkinson's disease as an underlying condition, the doctor stressed the importance of effectively managing both health issues. The Treatment event unveiled a personalized regimen involving medication, lifestyle adjustments, and regular medical evaluations to track my advancement.
+
+Prescribed with a new inhaler during the Medication event, I embraced the necessity of this addition to my daily routine to mitigate asthma symptoms swiftly in future occurrences.
+
+The necessity of Implementing Lifestyle Changes arose, compelling me to realign my musical commitments to lessen stress levels and circumvent triggers that could provoke asthma exacerbation. Though challenging at first, the incorporation of mindfulness and breathing exercises gradually bolstered my overall well-being.
+
+After weeks of unwavering adherence to the treatment plan, the long-awaited Symptom Offset event materialized, granting me reprieve as my asthma manifestations receded, allowing me to focus on music and daily life free from constant apprehension.
+
+Amidst the passage of time, a critical juncture transpired necessitating Hospital Admission during an acute asthma flare-up. Enduring the difficulties, the medical team delivered exceptional care, closely monitoring my health to ensure a prompt recovery.
+
+Following the transition to Hospital Discharge, I returned home invigorated, determined to uphold effective asthma management. The voyage from Symptom Onset to Symptom Offset proved to be a ride replete with emotions and hurdles, yet under the guidance of medical professionals and with personal resolve, I adeptly navigated the intricacies of coexisting with asthma and Parkinson's disease.
+
+Throughout the journey, my music remained a steadfast companion, offering solace and fortitude during moments of adversity. As I continue my musical odyssey while managing asthma, each melodious note serves as a reminder of my resilience and the paramount significance of prioritizing my health.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_high_dov/2024-06-19_14-45-24_Patient_high_similar_to_example_10.txt b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-45-24_Patient_high_similar_to_example_10.txt
new file mode 100644
index 0000000..816de03
--- /dev/null
+++ b/evaluation_data/process_descriptions_high_dov/2024-06-19_14-45-24_Patient_high_similar_to_example_10.txt
@@ -0,0 +1,13 @@
+As a 58-year-old male musician from France, navigating life post-divorce, my encounter with asthma has proven to be a formidable adversary amidst the backdrop of existing allergies. The unexpected emergence of symptoms added an unwelcome layer of complexity to my already intricate health landscape.
+
+The initial subtle signs, like a lingering cough dismissed as mere seasonal allergies, soon evolved into a more pronounced discomfort in my chest. This marked the beginning of a challenging phase in my health journey – the Symptom Onset event.
+
+Gradually, as these symptoms persisted, they began encroaching upon my day-to-day activities, notably impacting my musical performances. A growing sensation of breathlessness prompted me to seek medical counsel to unravel the underlying cause. The subsequent Doctor Visit shed light on the intricate interplay between asthma and my preexisting allergies, setting the stage for a nuanced treatment approach.
+
+With a clarified diagnosis in hand, a tailored medication regimen was prescribed to mitigate the symptoms. Simultaneously, I embarked on a journey of Lifestyle Changes aimed at minimizing triggers and enhancing the effectiveness of the treatment plan. Adapting to these changes amidst the demands of a musician's schedule posed its share of challenges, yet I remained resolute in my pursuit of improved health.
+
+Despite gradual progress afforded by the Treatment plan, an unforeseen escalation in symptoms necessitated a pivotal Hospital Admission for intensive care and monitoring. In the sheltered confines of the hospital ward, diligent adjustments to medications and vigilant observation by the medical team ensued, culminating in the awaited discharge – a juncture marked by a blend of relief and caution as I transitioned back to my regular routine, armed with a newfound awareness of managing my asthma.
+
+The subsequent integration of Regular Doctor Visits and Monitoring into my routine served as pillars of support as I maneuvered the undulating terrain of living with asthma. Reflecting on this transformative passage, I gleaned valuable insights on the essence of prioritizing my well-being and enacting proactive measures to avert potential complications.
+
+Balancing the demands of a musical vocation with the imperatives of health maintenance, I gleaned resilience and the profound relevance of self-care from this asthma management odyssey. While acknowledging the likelihood of forthcoming challenges, I embrace the future with fortitude and tenacity, cognizant that every stride taken in safeguarding my health is a stride towards a more robust and harmonious existence.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_high_dov/ordered_event_log_high.xes b/evaluation_data/process_descriptions_high_dov/ordered_event_log_high.xes
new file mode 100644
index 0000000..e9201f6
--- /dev/null
+++ b/evaluation_data/process_descriptions_high_dov/ordered_event_log_high.xes
@@ -0,0 +1,1835 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-27_Patient_low_free_1.txt b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-27_Patient_low_free_1.txt
new file mode 100644
index 0000000..cc5cf70
--- /dev/null
+++ b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-27_Patient_low_free_1.txt
@@ -0,0 +1,11 @@
+As a 34-year-old female flight attendant from France, I never imagined that I would be facing a health crisis like Covid-19. With no preexisting conditions, I always prided myself on my good health and stamina to keep up with the demands of my job. However, fate had other plans for me.
+
+It all started with the onset of symptoms. One day, while on a layover in a foreign country, I began to feel unwell. The coughing, fever, and body aches seemed to come out of nowhere, leaving me feeling scared and vulnerable. As the days passed, my condition worsened, and I knew I needed medical attention.
+
+The next event in my journey was the hospital admission. I was admitted to a local hospital, far away from my home and loved ones. The isolation and uncertainty of my situation weighed heavily on me as I lay in a hospital bed, surrounded by unfamiliar faces and beeping machines. The medical staff did their best to provide care and comfort, but nothing could ease the fear that gripped my heart.
+
+Days turned into weeks as I fought against the virus ravaging my body. The hospital discharge finally came as a relief, but the road to recovery was long and arduous. I struggled with lingering symptoms and fatigue, wondering if I would ever feel like myself again.
+
+Finally, the moment I had been waiting for arrived - the symptom offset. As the last traces of the virus left my body, I felt a sense of gratitude and resilience wash over me. The experience had been harrowing, but it had also taught me the importance of cherishing my health and the love of those around me.
+
+Through the highs and lows of my patient journey, I emerged stronger and more appreciative of the precious gift of life. The timestamps and durations of each event may fade with time, but the indelible mark it left on my soul will always remind me of the fragility and resilience of the human spirit.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-35_Patient_low_free_2.txt b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-35_Patient_low_free_2.txt
new file mode 100644
index 0000000..67770ca
--- /dev/null
+++ b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-35_Patient_low_free_2.txt
@@ -0,0 +1,11 @@
+As a 34-year-old female flight attendant from France, I never imagined that I would be facing a health crisis like Covid-19. With no preexisting conditions, I always prided myself on my good health and stamina to keep up with the demands of my job. However, fate had other plans for me.
+
+It all started with the onset of symptoms. One day, while on a layover in a foreign country, I began to feel unwell. The fatigue was overwhelming, and my body ached all over. I knew something was wrong when I developed a persistent cough and shortness of breath. The Symptom Onset event marked the beginning of a challenging journey ahead.
+
+Despite my best efforts to rest and recover in my hotel room, my condition worsened rapidly. It became clear that I needed medical attention. The Hospital Admission event was a blur of doctors, tests, and uncertainty. As I lay in the hospital bed, far from home and loved ones, I felt scared and alone.
+
+Days turned into weeks as I fought against the virus that had taken hold of my body. The Hospital Discharge event finally came, but it was not the end of my ordeal. The road to recovery was long and arduous. Every step forward was met with setbacks and complications.
+
+But finally, after what felt like an eternity, the Symptom Offset event arrived. The relief was palpable as I slowly regained my strength and energy. The experience had changed me in ways I could never have imagined. I had faced my mortality head-on and emerged stronger and more grateful for the gift of life.
+
+As I returned to my normal routine, I knew that I would never take my health for granted again. The memory of those dark days in the hospital would always stay with me, a reminder of the fragility of life and the resilience of the human spirit.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-44_Patient_low_free_3.txt b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-44_Patient_low_free_3.txt
new file mode 100644
index 0000000..f3f7a60
--- /dev/null
+++ b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-44_Patient_low_free_3.txt
@@ -0,0 +1,13 @@
+As a 34-year-old female flight attendant from France, I never imagined that I would be facing a health crisis like Covid-19. With no preexisting conditions, I always prided myself on my good health and stamina to keep up with the demands of my job. However, fate had other plans for me.
+
+It all started with the onset of symptoms. One day, while on a layover in a foreign country, I began to feel unwell. The fever, cough, and fatigue hit me like a ton of bricks. As the symptoms persisted, I knew something was seriously wrong. The Symptom Onset event marked the beginning of a challenging journey ahead.
+
+Despite my best efforts to rest and recover in my hotel room, my condition worsened rapidly. Breathing became a struggle, and I knew I needed urgent medical attention. The Hospital Admission event became a turning point as I was rushed to the nearest hospital for treatment.
+
+The days in the hospital blurred together as I fought against the virus that had taken hold of my body. The medical team worked tirelessly to stabilize my condition, providing oxygen support and monitoring my vital signs around the clock. Each moment felt like an eternity as I grappled with the uncertainty of what the future held.
+
+Finally, after what seemed like an eternity, the Hospital Discharge event arrived. With a mix of relief and apprehension, I prepared to leave the hospital and continue my recovery at home. The doctors provided me with detailed instructions on self-care and monitoring my symptoms closely.
+
+As days turned into weeks, I slowly regained my strength and energy. The Symptom Offset event marked the end of a long and arduous journey. While the physical scars of Covid-19 may fade with time, the emotional impact of facing a life-threatening illness will stay with me forever.
+
+Through this experience, I gained a newfound appreciation for my health and the importance of cherishing every moment. As a survivor of Covid-19, I emerged stronger and more resilient, ready to face whatever challenges life may throw my way.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-51_Patient_low_free_4.txt b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-51_Patient_low_free_4.txt
new file mode 100644
index 0000000..28fd798
--- /dev/null
+++ b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-51_Patient_low_free_4.txt
@@ -0,0 +1,11 @@
+As a 34-year-old female flight attendant from France, I never imagined that I would be facing a health crisis like Covid-19. With no preexisting conditions, I always prided myself on my good health and stamina to keep up with the demands of my job. However, fate had other plans for me.
+
+It all started with the onset of symptoms. One day, while on a layover in a foreign country, I began to feel unwell. The coughing, fever, and body aches seemed to come out of nowhere, leaving me feeling exhausted and scared. As the days passed, my condition worsened, and I knew I needed medical attention.
+
+The next event in my journey was the Hospital Admission. I was admitted to a local hospital, far away from my home and loved ones. The isolation and uncertainty only added to my anxiety. The medical staff did their best to make me comfortable and provide the care I needed, but nothing could ease the fear of the unknown.
+
+Days turned into weeks as I fought against the virus that had taken hold of my body. The Hospital Discharge finally came, but it was not the end of my struggles. The road to recovery was long and arduous, filled with ups and downs that tested my strength and resilience. I missed my family, my home, and the life I once took for granted.
+
+Finally, after what felt like an eternity, came the Symptom Offset. The relief of knowing that I had overcome the worst of the illness was overwhelming. I was grateful for the care I received, the support of my loved ones from afar, and the chance to start rebuilding my life.
+
+Through this journey, I learned the true value of health, family, and resilience. Covid-19 may have taken its toll on me, but it could not break my spirit. As I look back on those challenging days, I am filled with gratitude for every moment of healing and hope for a brighter future.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-58_Patient_low_free_5.txt b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-58_Patient_low_free_5.txt
new file mode 100644
index 0000000..7075ccf
--- /dev/null
+++ b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-18-58_Patient_low_free_5.txt
@@ -0,0 +1,9 @@
+As a 34-year-old female flight attendant from France, I never imagined that I would be facing a health crisis like Covid-19. With no preexisting conditions, I always prided myself on staying healthy and fit to keep up with the demands of my job. However, when the symptoms of Covid-19 started to manifest, my world turned upside down.
+
+It all began with the Symptom Onset, a sudden onset of fever, cough, and fatigue that left me feeling weak and helpless. As the days passed, my condition worsened, and I knew I needed medical attention. The Hospital Admission marked a turning point in my journey, as I was admitted to the hospital for monitoring and treatment.
+
+During my time in the hospital, I felt scared and isolated, far away from my loved ones and the familiar comforts of home. The days seemed to blur together as I battled the virus, clinging to the hope of recovery. The Hospital Discharge eventually came, a bittersweet moment as I was finally able to leave the hospital but still faced with the uncertainty of my condition.
+
+As I continued to recover at home, the days turned into weeks, and finally, the moment I had been waiting for arrived - the Symptom Offset. It was a gradual process, marked by small victories and setbacks, but eventually, I started to feel like myself again. The journey from Symptom Onset to Symptom Offset was a challenging one, but it taught me resilience, gratitude, and the importance of cherishing my health and well-being.
+
+Through it all, I was grateful for the support of my family, friends, and healthcare providers who stood by me during my darkest moments. As a survivor of Covid-19, I emerged stronger and more determined to live life to the fullest, cherishing each moment and never taking my health for granted.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-06_Patient_low_free_6.txt b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-06_Patient_low_free_6.txt
new file mode 100644
index 0000000..db505f6
--- /dev/null
+++ b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-06_Patient_low_free_6.txt
@@ -0,0 +1,13 @@
+As a 34-year-old female flight attendant from France, I never imagined that I would be facing a health crisis like Covid-19. With no preexisting conditions, I always prided myself on my good health and stamina to keep up with the demands of my job. However, fate had other plans for me.
+
+It all started with the onset of symptoms. One day, while on a layover in a foreign country, I began to feel unwell. The fever, cough, and fatigue hit me like a ton of bricks. As the days passed, my condition worsened, and I knew I had to seek medical help.
+
+The moment I was admitted to the hospital, fear and uncertainty gripped me. The unfamiliar surroundings, the beeping machines, and the constant hustle and bustle of medical staff became my new reality. Despite the excellent care I received from the healthcare professionals, I couldn't help but feel isolated and scared.
+
+Days turned into weeks as I fought against the virus that had invaded my body. The support of my loving husband, who stood by my side every step of the way, gave me the strength to keep fighting. The daily phone calls with my family back in France became my lifeline, reminding me that I was not alone in this battle.
+
+Finally, the day of discharge arrived. As I walked out of the hospital, weak but grateful, I couldn't help but reflect on the journey I had been through. The road to recovery was long and challenging, but I was determined to regain my strength and return to the skies once again.
+
+Months passed, and slowly but surely, I began to feel like myself again. The symptoms gradually faded away, and I finally reached the much-awaited milestone of symptom offset. The experience had changed me in ways I never thought possible, teaching me the importance of health, resilience, and the unwavering support of loved ones.
+
+As I look back on my patient journey, I am filled with gratitude for the healthcare professionals who saved my life, the strength that carried me through the darkest days, and the love that surrounded me every step of the way. My battle with Covid-19 may have been tough, but it made me realize the preciousness of life and the resilience of the human spirit.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-14_Patient_low_free_7.txt b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-14_Patient_low_free_7.txt
new file mode 100644
index 0000000..6b863fd
--- /dev/null
+++ b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-14_Patient_low_free_7.txt
@@ -0,0 +1,11 @@
+As a 34-year-old female flight attendant from France, I never imagined that I would be facing a battle with Covid-19. It all started when I experienced the first signs of the virus - the Symptom Onset. I remember feeling a sudden onset of fever, cough, and difficulty breathing. As someone with no preexisting conditions, the severity of the symptoms took me by surprise.
+
+Despite my best efforts to isolate and manage the symptoms at home, my condition worsened rapidly. It became clear that I needed medical attention, leading to the next event in my journey - Hospital Admission. The process of being admitted to the hospital was overwhelming, especially being in a foreign country away from my loved ones.
+
+During my time in the hospital, the medical team provided me with the care and support I needed. The days seemed to blur together as I fought against the virus, clinging to the hope of recovery. The Hospital Stay was marked by moments of fear and uncertainty, but also by the kindness of the healthcare professionals who worked tirelessly to help me.
+
+Finally, after what felt like an eternity, the day of Hospital Discharge arrived. I was filled with a mix of emotions - relief at being able to leave the hospital, but also anxiety about what lay ahead. The medical team provided me with instructions for my recovery at home, emphasizing the importance of rest and monitoring my symptoms closely.
+
+As I continued to recuperate, the moment I had been waiting for finally arrived - the Symptom Offset. The gradual improvement in my health brought a sense of gratitude and resilience. The journey from Symptom Onset to Symptom Offset was a challenging one, but it also taught me the importance of resilience and the value of healthcare professionals who dedicate their lives to helping others.
+
+Through this experience, I gained a newfound appreciation for my health and the support of my loved ones. The journey may have been difficult, but it ultimately strengthened my resolve to overcome adversity and cherish each moment of wellness.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-23_Patient_low_free_8.txt b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-23_Patient_low_free_8.txt
new file mode 100644
index 0000000..4020f07
--- /dev/null
+++ b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-23_Patient_low_free_8.txt
@@ -0,0 +1,11 @@
+As a 34-year-old female flight attendant from France, I never imagined that I would be facing a health crisis like Covid-19. With no preexisting conditions, I always prided myself on my good health and stamina to keep up with the demands of my job. However, fate had other plans for me.
+
+It all started with the onset of symptoms. One day, while on a layover in a foreign country, I began to feel unwell. The coughing, fever, and body aches seemed to come out of nowhere, leaving me feeling scared and vulnerable. As the days passed, my condition worsened, and I knew I needed medical attention.
+
+The moment I was admitted to the hospital, I felt a mix of emotions - fear, uncertainty, and a glimmer of hope that I would receive the care I needed to overcome this ordeal. The medical team was kind and reassuring, but the isolation and constant monitoring took a toll on me. The days blurred together as I fought against the virus ravaging my body.
+
+Finally, after what felt like an eternity, I was discharged from the hospital. The relief of leaving those sterile walls behind was palpable, but the road to recovery was far from over. The lingering fatigue and respiratory issues reminded me daily of the battle I had fought and the strength I had found within myself.
+
+As time passed, my symptoms gradually subsided, and I could feel the weight of the illness lifting. The moment I experienced the symptom offset was like a ray of sunshine breaking through the clouds - a sign that I was finally on the mend and that life would soon return to normal.
+
+Looking back on my journey from symptom onset to symptom offset, I am filled with gratitude for the healthcare professionals who guided me through the darkest days and the unwavering support of my loved ones. This experience has changed me in ways I never could have imagined, but it has also shown me the resilience and courage that reside within us all.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-29_Patient_low_free_9.txt b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-29_Patient_low_free_9.txt
new file mode 100644
index 0000000..8b44e96
--- /dev/null
+++ b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-29_Patient_low_free_9.txt
@@ -0,0 +1,9 @@
+As a 34-year-old female flight attendant from France, I never imagined that I would be facing a health crisis like Covid-19. With no preexisting conditions, I always prided myself on staying healthy to keep up with the demands of my job and my busy lifestyle. However, when the symptoms of Covid-19 started to manifest, everything changed.
+
+It all began with the Symptom Onset. I remember feeling a persistent cough and a high fever that just wouldn't go away. As days passed, my condition worsened, and I knew I had to seek medical help. The Hospital Admission was a blur of tests, consultations, and uncertainty. I felt scared and isolated, far away from my loved ones and the familiarity of home.
+
+During my time in the hospital, I missed my husband dearly. Being away from him made me realize the importance of our domestic status and the support we provided each other. The days turned into weeks as I fought against the virus, clinging to the hope of recovery. The Hospital Discharge finally came, but it was bittersweet. Leaving the hospital meant facing the unknown challenges of recovery on my own.
+
+As I transitioned back to my daily life, the Symptom Offset marked a new beginning. The road to full recovery was long and arduous, but I was grateful for each small improvement. My experience with Covid-19 changed me in ways I never expected. It taught me the fragility of health and the resilience of the human spirit.
+
+Through this journey, I learned to appreciate the little moments, the warmth of a hug, and the comfort of home. My occupation as a flight attendant may have taken me around the world, but it was during this battle with Covid-19 that I truly discovered the strength within myself.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-36_Patient_low_free_10.txt b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-36_Patient_low_free_10.txt
new file mode 100644
index 0000000..c558645
--- /dev/null
+++ b/evaluation_data/process_descriptions_low_dov/2024-06-19_14-19-36_Patient_low_free_10.txt
@@ -0,0 +1,11 @@
+As a 34-year-old female flight attendant from France, I never imagined that I would be facing a health crisis like Covid-19. With no preexisting conditions, I always prided myself on my good health and stamina to keep up with the demands of my job. However, fate had other plans for me.
+
+It all started with the onset of symptoms. One day, while on a layover in a foreign country, I began to feel unwell. The coughing and shortness of breath seemed to come out of nowhere, leaving me feeling scared and vulnerable. As the days passed, my condition worsened, and I knew I needed medical attention.
+
+The next event in my journey was the Hospital Admission. I was admitted to a local hospital, far away from my home and loved ones. The isolation and uncertainty only added to my anxiety. The medical staff did their best to make me comfortable, but nothing could replace the familiar faces of my family.
+
+Days turned into weeks as I fought against the virus ravaging my body. The Hospital Discharge finally came as a relief, but the road to recovery was far from over. I returned home, grateful for the care I received but haunted by the memories of my time in the hospital.
+
+Finally, the Symptom Offset marked the end of this challenging chapter in my life. As I slowly regained my strength and energy, I reflected on the ordeal I had been through. The support of my loved ones, the dedication of the healthcare professionals, and my own resilience had brought me through the darkest days.
+
+Looking back on my patient journey, I am grateful for every moment of healing and every small victory along the way. Covid-19 may have tested me in ways I never thought possible, but it also showed me the power of hope and the importance of cherishing every day.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_low_dov/ordered_event_log_low.xes b/evaluation_data/process_descriptions_low_dov/ordered_event_log_low.xes
new file mode 100644
index 0000000..8e2a7ed
--- /dev/null
+++ b/evaluation_data/process_descriptions_low_dov/ordered_event_log_low.xes
@@ -0,0 +1,1817 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-25_Patient_medium_free_1.txt b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-25_Patient_medium_free_1.txt
new file mode 100644
index 0000000..d0cfb56
--- /dev/null
+++ b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-25_Patient_medium_free_1.txt
@@ -0,0 +1,11 @@
+As a 62-year-old female software developer from Romania, living a single life with muscular dystrophy and battling depression as a preexisting condition, my journey from symptom onset to symptom offset has been a rollercoaster of emotions and challenges.
+
+It all began with the gradual onset of muscle weakness and fatigue, which made it increasingly difficult for me to keep up with my demanding job. The initial diagnosis was a blow, but it also brought clarity to the mysterious symptoms I had been experiencing. The doctor's appointment on a rainy Tuesday morning in March felt like a turning point in my life. The timestamp of that moment is forever etched in my memory, marking the beginning of a new chapter.
+
+The treatment plan that followed was daunting, filled with physical therapy sessions and medication schedules that seemed never-ending. Each session was a mix of pain and hope, with the clock ticking slowly on the wall, measuring the duration of each exercise and the strength of my determination. The timestamps on my calendar became a mosaic of appointments, reminders, and milestones, each representing a step forward in my journey towards recovery.
+
+Amidst the whirlwind of medical procedures and consultations, the moments of vulnerability and fear were often overshadowed by a sense of resilience that grew within me. The medications became my constant companions, each pill a reminder of the fragility of life and the strength of modern medicine. The timestamps on the pill bottles blurred together, forming a mosaic of colors that mirrored the complexity of my emotions.
+
+Through it all, my feelings ebbed and flowed like a river, sometimes calm and serene, other times turbulent and overwhelming. The timestamp of a tear rolling down my cheek during a moment of despair, the timestamp of a smile breaking through the pain during a moment of triumph - each emotion was a timestamp in itself, capturing the essence of my inner journey.
+
+As I navigate through the ups and downs of my patient journey, I hold onto the timestamps of hope and perseverance, knowing that each moment, each event, each feeling is a part of the larger tapestry of my life. And as I look towards the future, I do so with a sense of gratitude for the timestamps that have shaped me into the person I am today - a fighter, a survivor, and above all, a human being with a story to tell.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-31_Patient_medium_free_2.txt b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-31_Patient_medium_free_2.txt
new file mode 100644
index 0000000..8b195f8
--- /dev/null
+++ b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-31_Patient_medium_free_2.txt
@@ -0,0 +1,13 @@
+As a 42-year-old male software developer from the Netherlands, I have always prided myself on my independence and ability to overcome challenges. However, living with muscular dystrophy and Parkinson's disease has presented me with unique obstacles that have tested my resilience.
+
+It all started one day when I noticed a gradual weakening in my muscles, making it increasingly difficult to perform daily tasks. As the symptoms persisted, I decided to seek medical advice. My partner, who has been my pillar of support throughout this journey, accompanied me to the doctor's visit.
+
+During the diagnosis process, which felt like a whirlwind of tests and consultations, I received the confirmation that I had muscular dystrophy. This news was not easy to digest, but I found solace in the unwavering support of my loved ones.
+
+Following the diagnosis, I experienced a range of emotions, from fear and uncertainty to determination and acceptance. My doctor recommended lifestyle changes to manage my conditions better, including regular exercise and a balanced diet. Embracing these changes was challenging, but I knew they were crucial for my well-being.
+
+Throughout this process, I have had multiple doctor visits to monitor my condition and adjust my treatment plan accordingly. Each visit brought a mix of hope and apprehension, but I found comfort in the expertise and compassion of my healthcare team.
+
+As time passed, I learned to navigate the complexities of living with muscular dystrophy and Parkinson's disease. The journey has been filled with ups and downs, but I have found strength in the love and support of my partner and the resilience within myself.
+
+Today, as I reflect on my patient journey from symptom onset to symptom offset, I am grateful for the lessons learned and the growth experienced. While the road ahead may be challenging, I face it with courage and a renewed sense of determination to live life to the fullest, embracing each moment with gratitude and resilience.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-39_Patient_medium_free_3.txt b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-39_Patient_medium_free_3.txt
new file mode 100644
index 0000000..43dfd13
--- /dev/null
+++ b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-39_Patient_medium_free_3.txt
@@ -0,0 +1,11 @@
+As a 20-year-old male librarian from Denmark, I never imagined my life taking such a drastic turn. It all started when I experienced a sudden onset of unusual symptoms. I was feeling weak, dizzy, and had trouble with my vision. Being widowed at a young age, I was scared and unsure of what was happening to me.
+
+I decided to visit the hospital to get checked out. The doctors ran several tests and finally, after what felt like an eternity, I received a diagnosis. Multiple sclerosis. The news hit me like a ton of bricks. How could this be happening to me? To make matters worse, I also had preexisting conditions like hypertension, adding another layer of complexity to my health journey.
+
+The doctors explained that managing multiple sclerosis would require significant lifestyle changes. I had to adapt to a new reality of living with a chronic condition. As a librarian, I had to make adjustments at work to accommodate my health needs. It was a challenging time, trying to balance my career with my health.
+
+Despite the difficulties, I persevered. I attended regular medical appointments, made changes to my diet, and started incorporating exercise into my daily routine. It wasn't easy, but I was determined to take control of my health and not let multiple sclerosis define me.
+
+Finally, after months of treatment and lifestyle changes, I started to notice improvements. The symptoms began to lessen, and I felt like I was regaining control over my life. The journey from symptom onset to symptom offset was a long and arduous one, but it taught me resilience and the importance of self-care.
+
+Looking back, I am grateful for the support of my healthcare team, family, and friends who stood by me during this challenging time. My experience with multiple sclerosis has shaped me in ways I never could have imagined, and I am now more resilient and determined to live life to the fullest, despite the obstacles I may face.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-48_Patient_medium_free_4.txt b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-48_Patient_medium_free_4.txt
new file mode 100644
index 0000000..bef8405
--- /dev/null
+++ b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-34-48_Patient_medium_free_4.txt
@@ -0,0 +1,11 @@
+As a 65-year-old male artist from Spain, I have always been passionate about expressing myself through my art. However, living with asthma and cardiovascular disease has always posed challenges in pursuing my passion. Being widowed added a layer of loneliness to my daily life, but I found solace in my art.
+
+One day, I woke up feeling a tightness in my chest, and it was difficult to catch my breath. The Symptom Onset was sudden and frightening. I knew I had to seek medical help immediately. The Diagnosis confirmed that my asthma was acting up due to a combination of stress and the changing weather. The medical team also noted my preexisting cardiovascular disease, which added complexity to my condition.
+
+I was admitted to the hospital for further evaluation and treatment. The Hospital Admission was a lonely experience without my spouse by my side. The medical staff was kind and attentive, but I couldn't help but feel the weight of my illnesses bearing down on me. The Treatment involved medication and breathing exercises to help alleviate my symptoms. I found it challenging to cope with the restrictions imposed on my lifestyle due to my health issues.
+
+As days passed, I began to feel a gradual improvement in my condition. The Feelings of fear and uncertainty started to fade, replaced by hope and determination. I knew I had to make some Lifestyle Changes to better manage my health. The medical team worked with me to create a plan that included regular check-ups, exercise routines, and dietary adjustments.
+
+Finally, the day came when I was ready for discharge from the hospital. The Hospital Discharge marked the end of a challenging journey, but also the beginning of a new chapter in my life. I left the hospital with a renewed sense of purpose and a commitment to taking better care of myself.
+
+Despite the struggles and setbacks, I emerged stronger and more resilient. My journey from Symptom Onset to Symptom Offset was not easy, but it taught me valuable lessons about the importance of self-care and resilience. As I returned to my art, I knew that I could overcome any obstacle that came my way, armed with the strength and determination that I had discovered within myself.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-00_Patient_medium_free_5.txt b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-00_Patient_medium_free_5.txt
new file mode 100644
index 0000000..a87f03f
--- /dev/null
+++ b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-00_Patient_medium_free_5.txt
@@ -0,0 +1,15 @@
+I am a 55-year-old female librarian from Denmark, living a quiet life in Copenhagen. I have been battling chronic obstructive pulmonary disease for some time now, on top of having had cancer in the past. My journey with these health challenges has been anything but easy.
+
+It all started when I noticed a persistent cough that just wouldn't go away. As a librarian, I spend long hours surrounded by books, and the dusty air never did my lungs any favors. I tried to ignore the cough at first, thinking it was just a passing cold. But as days turned into weeks, the cough became more frequent and accompanied by shortness of breath.
+
+Feeling worried, I finally made an appointment with my doctor. The diagnosis was confirmed - my COPD had worsened, likely due to my history of cancer treatment. I was prescribed medication to help manage the symptoms, but the reality of living with a chronic illness began to sink in.
+
+Over the following months, I had to make several lifestyle changes to accommodate my condition. I started using an inhaler regularly and made it a point to avoid any triggers that could exacerbate my symptoms. Simple tasks like climbing stairs or taking a long walk became a challenge, and I had to learn to pace myself and ask for help when needed.
+
+There were days when the weight of my illness felt overwhelming, and I struggled with feelings of anxiety and sadness. The fear of not being able to breathe properly loomed large, and I found solace in support groups and therapy sessions that helped me cope with the emotional toll of my condition.
+
+Despite my best efforts, there were times when my symptoms flared up, leading to hospital admissions for intensive treatment. Each stay was a reminder of the fragility of my health and the importance of staying vigilant in managing my condition.
+
+But through it all, I found strength in the small victories - the moments of clarity when I could breathe a little easier, the kindness of healthcare professionals who went above and beyond to care for me, and the unwavering support of friends and family who stood by my side through it all.
+
+As I reflect on my journey from symptom onset to symptom offset, I am grateful for the resilience that carried me through the darkest days and the hope that keeps me moving forward. Living with a chronic illness is not easy, but I have learned to cherish each day and celebrate the moments of joy that light up the path ahead.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-09_Patient_medium_free_6.txt b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-09_Patient_medium_free_6.txt
new file mode 100644
index 0000000..342332d
--- /dev/null
+++ b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-09_Patient_medium_free_6.txt
@@ -0,0 +1,13 @@
+As a 30-year-old female chef from Bulgaria, living in a loving relationship, I have been battling cystic fibrosis for years. My journey with this condition has been challenging, especially with the added complexity of a preexisting thyroid disorder.
+
+It all started when I began to feel the familiar heaviness in my chest and the persistent cough that signaled the onset of a new bout of symptoms. Despite my best efforts to manage my condition with lifestyle changes and medication, the inevitable onset of symptoms always loomed over me like a dark cloud.
+
+Each doctor visit became a routine part of my life, as I sought guidance and support in managing my cystic fibrosis. The diagnoses and treatment plans provided a semblance of hope, but the reality of living with a chronic illness weighed heavily on me. Medications became a daily necessity, a constant reminder of my fragile health.
+
+There were moments of relief when the symptoms seemed to subside, allowing me to focus on my passion for cooking and enjoy precious moments with my partner. However, these periods of respite were often short-lived, as the unpredictable nature of cystic fibrosis meant that symptom onset could strike at any time.
+
+Hospital admissions became a recurring event in my life, as the severity of my condition required intensive care and monitoring. The hospital discharge marked a bittersweet moment, as I longed for the comfort of home but also faced the uncertainty of managing my symptoms on my own.
+
+Through it all, my feelings oscillated between fear and determination, as I navigated the complexities of living with cystic fibrosis. The support of my healthcare team and the unwavering love of my partner sustained me through the darkest moments, reminding me that I am more than my illness.
+
+As I continue on this journey, I hold onto the hope that one day, the symptoms will offset for good, and I can savor the taste of victory over cystic fibrosis. Until then, I embrace each day with gratitude, knowing that my resilience and strength will carry me through whatever challenges lie ahead.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-16_Patient_medium_free_7.txt b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-16_Patient_medium_free_7.txt
new file mode 100644
index 0000000..c89eb6d
--- /dev/null
+++ b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-16_Patient_medium_free_7.txt
@@ -0,0 +1,13 @@
+As a 52-year-old male artist from Denmark, I have always prided myself on my creativity and independence. However, my life took an unexpected turn when I started experiencing symptoms of schizophrenia. It all began with subtle changes in my behavior and perception, which I initially brushed off as stress from my recent divorce.
+
+One day, the symptoms became too overwhelming to ignore. I vividly remember the moment of Symptom Onset – a feeling of confusion and paranoia that left me terrified and lost. I reached out to my primary care doctor for help, and thus began a series of Doctor Visits and Diagnoses that would change my life forever.
+
+After being diagnosed with schizophrenia and having my preexisting condition of diabetes taken into account, I was admitted to the hospital for further evaluation and treatment. The Hospital Admission was a daunting experience, as I grappled with the reality of my condition and the uncertainty of what lay ahead.
+
+During my time in the hospital, I underwent various Treatments and Lifestyle Changes to manage my symptoms and improve my quality of life. The doctors and nurses worked tirelessly to support me through this challenging journey, providing me with the care and understanding I needed to cope with my condition.
+
+As the days turned into weeks, I slowly began to see a glimmer of hope. The combination of medication, therapy, and lifestyle adjustments started to make a difference, and I could feel the symptoms gradually easing. The road to Symptom Offset was long and arduous, but with the support of my healthcare team and loved ones, I knew I was on the right path.
+
+Finally, the day of Hospital Discharge arrived, marking the end of one chapter and the beginning of another. I left the hospital with a newfound sense of resilience and determination, ready to embrace my journey towards recovery with courage and optimism.
+
+Looking back on my patient journey, I am grateful for the care and compassion I received along the way. My experience with schizophrenia has taught me valuable lessons about strength, resilience, and the importance of seeking help when needed. As I continue to navigate life with my condition, I am reminded that every step forward is a victory, and that I am not alone in this journey towards healing and hope.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-25_Patient_medium_free_8.txt b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-25_Patient_medium_free_8.txt
new file mode 100644
index 0000000..1879688
--- /dev/null
+++ b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-25_Patient_medium_free_8.txt
@@ -0,0 +1,11 @@
+As a 65-year-old female farmer from Italy, living alone with muscular dystrophy and managing hypertension, my days are typically filled with tending to my crops and animals, despite the challenges my health conditions present. One day, while working in the fields, I suddenly felt a sharp pain in my legs, making it difficult to move. This marked the onset of a new symptom that I hadn't experienced before.
+
+Feeling concerned, I decided to visit my doctor to seek advice. The doctor listened attentively to my description of the pain and conducted a series of tests to understand the underlying cause. After a thorough examination, I was diagnosed with a new complication related to my muscular dystrophy. The diagnosis was a tough pill to swallow, as it meant adjusting my lifestyle and treatment plan.
+
+Following the diagnosis, I had to make significant lifestyle changes to accommodate the new symptom and manage my condition effectively. My doctor recommended a tailored treatment plan that included physical therapy and medication adjustments to alleviate the pain and improve my mobility. Adapting to these changes was challenging, but I was determined to prioritize my health and well-being.
+
+Over time, with the support of regular doctor visits and adherence to the treatment plan, I began to notice improvements in my condition. The pain gradually subsided, and my mobility started to return to a more manageable level. The journey from symptom onset to symptom offset was a rollercoaster of emotions, from fear and uncertainty to hope and resilience.
+
+Finally, after months of dedicated effort and perseverance, I reached the point of symptom offset, where the pain in my legs had significantly reduced, allowing me to resume my daily activities with greater ease. The process of navigating through the different stages, from diagnosis to symptom offset, was a testament to my strength and determination to overcome the challenges posed by my health conditions.
+
+As I reflect on my patient journey, I am grateful for the unwavering support of my healthcare team, the understanding of my loved ones, and my own resilience in the face of adversity. The experience has taught me valuable lessons about self-care, resilience, and the importance of seeking help when needed. I am now better equipped to manage my health and face any future challenges that may come my way.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-34_Patient_medium_free_9.txt b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-34_Patient_medium_free_9.txt
new file mode 100644
index 0000000..9991b84
--- /dev/null
+++ b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-34_Patient_medium_free_9.txt
@@ -0,0 +1,13 @@
+As a 36-year-old female architect from Romania, I have always been independent and driven in my career. However, living with autism spectrum disorder and managing eczema has presented its challenges over the years. Despite these obstacles, I have strived to live a fulfilling life.
+
+One day, I experienced a sudden onset of troubling symptoms related to my conditions. The Symptom Onset event marked the beginning of a difficult journey. Feeling overwhelmed and anxious, I decided to seek medical help. The Doctor Visit event was a significant step for me, as I usually prefer to handle things on my own.
+
+After a series of tests and consultations, I received a Diagnosis that confirmed the exacerbation of my conditions. The news was disheartening, but I knew I had to stay strong. The healthcare team recommended a Treatment plan that included medication and lifestyle changes. The Medication event became a regular part of my daily routine, along with adapting to a new Lifestyle Change to manage my health better.
+
+Despite the challenges, I found solace in expressing my Feelings through therapy and support groups. It was comforting to connect with others who understood my struggles. The journey towards Symptom Offset was long and arduous, but I remained hopeful and determined.
+
+During a period of worsening symptoms, I had to undergo a Hospital Admission for intensive care. The experience was daunting, but the medical team provided excellent care and support. Eventually, I reached the point of Symptom Offset, marking the end of a challenging chapter in my life.
+
+As I was discharged from the hospital, I reflected on the journey I had been through. Being a widowed woman with no immediate family nearby, I realized the importance of self-care and seeking help when needed. The process from Symptom Onset to Symptom Offset had tested my resilience and strength, but it also showed me the power of perseverance and the significance of community support.
+
+Through this experience, I learned to prioritize my health and well-being, embracing my vulnerabilities and seeking assistance when necessary. My journey as a patient has shaped me in profound ways, reminding me of the value of self-love and resilience in the face of adversity.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-43_Patient_medium_free_10.txt b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-43_Patient_medium_free_10.txt
new file mode 100644
index 0000000..88c7073
--- /dev/null
+++ b/evaluation_data/process_descriptions_medium_dov/2024-06-19_14-35-43_Patient_medium_free_10.txt
@@ -0,0 +1,15 @@
+As a 40-year-old female nurse from the Netherlands, I never expected to be on the receiving end of healthcare services. However, life had other plans for me as I found myself grappling with the challenges of coronary artery disease on top of my preexisting condition of COPD.
+
+It all started one morning when I experienced a sudden onset of chest pain while at work. The feeling was overwhelming, like a heavy weight pressing down on my chest. Despite being a nurse myself, I couldn't ignore the symptoms. I knew something was wrong.
+
+Rushing to the hospital, I was admitted immediately for observation. The diagnosis confirmed my worst fears - coronary artery disease. The news hit me like a ton of bricks. How could this happen to me, someone who dedicated her life to caring for others?
+
+The treatment plan was laid out before me, a mix of medications and lifestyle changes. I felt a whirlwind of emotions - fear, uncertainty, and a sense of vulnerability I had never experienced before. Taking medication became a part of my daily routine, a reminder of my fragility.
+
+Days turned into weeks as I navigated the ups and downs of managing my condition. Hospital admissions for monitoring became a regular occurrence, each stay filled with moments of reflection and resilience. The support of my husband, who stood by my side through it all, gave me the strength to keep fighting.
+
+Finally, after what felt like an eternity, the symptoms began to fade. The gradual onset of relief was like a beacon of hope, signaling the end of a challenging chapter in my life. The journey from symptom onset to symptom offset was a rollercoaster of emotions, but it taught me the importance of self-care and resilience in the face of adversity.
+
+As I was discharged from the hospital, a sense of gratitude washed over me. Grateful for the healthcare professionals who guided me through the darkest days, grateful for my loved ones who never wavered in their support, and grateful for the opportunity to cherish each moment as a gift.
+
+Though the scars of my journey remain, they serve as a reminder of my strength and perseverance in the face of adversity. The patient journey from symptom onset to symptom offset was not easy, but it shaped me in ways I never thought possible.
\ No newline at end of file
diff --git a/evaluation_data/process_descriptions_medium_dov/ordered_event_log_medium.xes b/evaluation_data/process_descriptions_medium_dov/ordered_event_log_medium.xes
new file mode 100644
index 0000000..3c9bb56
--- /dev/null
+++ b/evaluation_data/process_descriptions_medium_dov/ordered_event_log_medium.xes
@@ -0,0 +1,1709 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tracex_project/db.sqlite3 b/tracex_project/db.sqlite3
index 4b17c37..96c5d2c 100644
Binary files a/tracex_project/db.sqlite3 and b/tracex_project/db.sqlite3 differ
diff --git a/tracex_project/db_results/views.py b/tracex_project/db_results/views.py
index 6e7c00c..f6d3b18 100644
--- a/tracex_project/db_results/views.py
+++ b/tracex_project/db_results/views.py
@@ -3,6 +3,7 @@
import pandas as pd
import plotly.graph_objects as go
+import pm4py
from db_results.forms import PatientJourneySelectForm, EvaluationForm
from django.db.models import Q
from django.db.models.query import QuerySet
@@ -279,9 +280,14 @@ def get_context_data(self, **kwargs):
context.update(
self.generate_dfg_and_tables(event_log_df, cohorts_df, filter_settings)
)
+ # event_log_df = u.Conversion.prepare_df_for_xes_conversion(event_log_df, activity_key="event_type")
+ # pm4py.write_xes(event_log_df, "ordered_event_log_high.xes", case_id_key="case:concept:name")
context.update({"form": EvaluationForm(initial=filter_settings)})
self.request.session["event_log"] = event_log_df.to_json()
+
+
+
return context
def get_traces_and_events(self) -> Tuple[QuerySet, pd.DataFrame]:
diff --git a/tracex_project/extraction/logic/modules/module_patient_journey_preprocessor.py b/tracex_project/extraction/logic/modules/module_patient_journey_preprocessor.py
index 5dd0dff..1146db2 100644
--- a/tracex_project/extraction/logic/modules/module_patient_journey_preprocessor.py
+++ b/tracex_project/extraction/logic/modules/module_patient_journey_preprocessor.py
@@ -38,9 +38,9 @@ def execute(
preprocessed_text = self.__apply_preprocessing_step(
preprocessed_text, "TIME_IDENTIFICATION"
)
- preprocessed_text = self.__apply_preprocessing_step(
- preprocessed_text, "TIME_HOLIDAYS"
- )
+ # preprocessed_text = self.__apply_preprocessing_step(
+ # preprocessed_text, "TIME_HOLIDAYS"
+ # )
preprocessed_text = self.__apply_preprocessing_step(
preprocessed_text, "TIME_GENERAL"
)
diff --git a/tracex_project/patient_journey_generator/forms.py b/tracex_project/patient_journey_generator/forms.py
index 8344e84..d3d98eb 100644
--- a/tracex_project/patient_journey_generator/forms.py
+++ b/tracex_project/patient_journey_generator/forms.py
@@ -32,3 +32,30 @@ class Meta:
attrs={"placeholder": "Name for your Patient Journey"}
),
}
+
+
+class GenerateProcessDescriptionForm(forms.Form):
+ DEGREE_OF_VARIATION_CHOICES = [
+ ('low', 'Low'),
+ ('medium', 'Medium'),
+ ('high', 'High'),
+ ]
+
+ config = forms.FileField(
+ label='Configuration File',
+ help_text='Only JSON files are accepted.',
+ required=False,
+ widget=forms.FileInput(attrs={'accept': 'application/json'})
+ )
+ number_of_instances = forms.IntegerField(min_value=1, initial=1, label="Number of Instances")
+ degree_of_variation = forms.ChoiceField(choices=DEGREE_OF_VARIATION_CHOICES, label="Degree of Variation")
+ save_to_db = forms.BooleanField(required=False, label="Save to Database")
+ save_as_txt = forms.BooleanField(required=False, label="Save as Text File")
+
+ def clean_config(self):
+ file = self.cleaned_data.get('config', False)
+ if file:
+ if not file.name.endswith('.json'):
+ raise forms.ValidationError('Invalid file type: only JSON files are accepted.')
+ return file
+
diff --git a/tracex_project/patient_journey_generator/generated_process_descriptions/2024-06-29_20-25-32_Patient_low_free_1.txt b/tracex_project/patient_journey_generator/generated_process_descriptions/2024-06-29_20-25-32_Patient_low_free_1.txt
new file mode 100644
index 0000000..386a328
--- /dev/null
+++ b/tracex_project/patient_journey_generator/generated_process_descriptions/2024-06-29_20-25-32_Patient_low_free_1.txt
@@ -0,0 +1,9 @@
+As a 34-year-old female flight attendant from France, I never imagined that I would be facing a health crisis like Covid-19. With no preexisting conditions, I always prided myself on staying healthy and fit to keep up with the demands of my job and travel lifestyle. However, when the symptoms of Covid-19 started to manifest, my world turned upside down.
+
+It all began with the Symptom Onset, a sudden onset of fever, cough, and fatigue that left me feeling weak and helpless. As the days passed, my condition worsened, and I knew I needed medical attention. The Hospital Admission marked a turning point in my journey, as I was admitted to the hospital for monitoring and treatment.
+
+During my time in the hospital, I felt scared and isolated, far away from my loved ones and the familiar comforts of home. The days seemed to blur together as I fought against the virus, clinging to hope and the support of the healthcare professionals who cared for me.
+
+Finally, after what felt like an eternity, the Hospital Discharge brought a sense of relief and gratitude. I was able to return home to my family, still weak but grateful for the chance to recover in familiar surroundings. The journey towards Symptom Offset was a slow and gradual process, marked by small victories and setbacks along the way.
+
+As I reflect on my experience, I am reminded of the fragility of life and the importance of cherishing our health and loved ones. Covid-19 may have tested my strength and resilience, but it also taught me valuable lessons about gratitude, resilience, and the power of community in times of crisis.
\ No newline at end of file
diff --git a/tracex_project/patient_journey_generator/generator.py b/tracex_project/patient_journey_generator/generator.py
index 71fc9c8..49ebded 100644
--- a/tracex_project/patient_journey_generator/generator.py
+++ b/tracex_project/patient_journey_generator/generator.py
@@ -8,62 +8,184 @@
get_date -- Randomizes a start date for the synthetic Patient Journey.
get_life_circumstances -- Generates life circumstances for the synthetic Patient Journey.
"""
-from datetime import datetime, timedelta
+import copy
+from datetime import datetime
import random
+import os
+import json
-from extraction.models import Prompt
-from tracex.logic import utils as u
-from tracex.logic import constants as c
-
-
-def generate_patient_journey():
- """Generate a synthetic Patient Journey."""
- messages = Prompt.objects.get(name="CREATE_PATIENT_JOURNEY").text
- messages.insert(0, {"role": "system", "content": create_patient_journey_context()})
- patient_journey = u.query_gpt(messages=messages, temperature=1)
-
- return patient_journey
-
-
-def create_patient_journey_context():
- """
- Create a context for the Patient Journey.
-
- The context includes a random sex, country, date and life circumstances.
- """
- sex = "male" if random.randrange(2) == 0 else "female"
- country = get_country()
- date = get_date()
- life_circumstances = get_life_circumstances(sex)
- patient_journey_context = (
- f"Imagine being a {sex} person from {country}, that was infected with Covid19."
- f" You had first symptoms on {date}. {life_circumstances}"
- )
- return patient_journey_context
-
-
-def get_country():
- """Randomize a european country."""
-
- return random.choice(c.EUROPEAN_COUNTRIES)
-
-
-def get_date(start="01/01/2020", end="01/09/2023"):
- """Get a random date between a start and end date."""
- start = datetime.strptime(start, "%d/%m/%Y")
- end = datetime.strptime(end, "%d/%m/%Y")
- delta = end - start
- random_days = random.randrange(delta.days)
- date = start + timedelta(days=random_days)
- date = date.strftime("%d/%m/%Y")
-
- return date
+from django.utils.safestring import mark_safe
+from extraction.models import Prompt, PatientJourney
+from tracex.logic import utils as u
-def get_life_circumstances(sex):
- """Generate life circumstances by using the OpenAI API."""
- messages = Prompt.objects.get(name="CREATE_PATIENT_JOURNEY_LIFE_CIRCUMSTANCES").text
- messages[0]["content"] = messages[0]["content"].replace("", sex)
- life_circumstances = u.query_gpt(messages=messages, max_tokens=100, temperature=1)
- return life_circumstances
+def execute_generate_process_description(number_of_instances=1, degree_of_variation="low", save_to_db=False,
+ save_as_txt=False, config=None):
+ if config is None:
+ with open('patient_journey_generator/process_description_configurations/patient_journey_configuration.json',
+ 'r') as f:
+ config = json.load(f)
+ print("Using default configuration.")
+ else:
+ config = json.loads(config.read().decode('utf-8'))
+ print("Using custom configuration.")
+
+ result = ""
+ for i in range(number_of_instances):
+ process_description = generate_process_description(degree_of_variation, save_to_db, save_as_txt,
+ iteration=i + 1, config=config)
+ result += f"Process Description {i + 1}: {process_description} "
+ return mark_safe(result)
+
+
+def generate_process_description(degree_of_variation="low", save_to_db=False, save_as_txt=False, iteration=0,
+ config=None):
+ # load configuration
+ config = config
+ instance_config = get_instance_config(config, degree_of_variation)
+
+ # general parameters
+ domain = instance_config["domain"]
+ case = instance_config["case"]
+ case_notion = instance_config["case_notion"]
+ event_types = instance_config["event_types"]
+
+ # case attributes
+ case_attributes_dict = instance_config["case_attributes_dict"]
+ case_attributes = ', '.join(f"{key}: {value}" for key, value in case_attributes_dict.items())
+
+ # process description attributes
+ time_specifications = instance_config["time_specifications"]
+ writing_style = instance_config["writing_style"]
+ example = instance_config["example"]
+
+ # instructions
+ perspective_instructions = instance_config["perspective_instructions"]
+ writing_instructions = instance_config["writing_instructions"]
+ authenticity_instructions = instance_config["authenticity_instructions"]
+
+ generation_prompt = [
+ {
+ "role": "system",
+ "content": "Imagine being an expert in the field of process mining. Your task is to create a process "
+ f"description within the domain of {domain}.\n"
+ f"The case and therefore the object of the process description is: {case}.\n"
+ f"The case notion and therefore the scope of the process description is: {case_notion}.\n"
+ f"The attributes that characterize the case are: {case_attributes}.\n"
+ f"When creating the process description, only consider the following event types: {event_types}\n"
+ f"Include time specifications for the events as {time_specifications}."
+ },
+ {
+ "role": "user",
+ "content": f"{perspective_instructions}"
+ f"{writing_instructions}"
+ f"{authenticity_instructions}"
+ }
+ ]
+ # execute generation prompt
+ generation_prompt_temperature = instance_config["generation_prompt_temperature"]
+ process_description = u.query_gpt(messages=generation_prompt, temperature=generation_prompt_temperature,
+ model="gpt-3.5-turbo")
+
+ if writing_style == "similar_to_example":
+ adaptation_prompt = [
+ {
+ "role": "system",
+ "content": "You are an expert in writing style adaptation. Your task is to adapt the process "
+ "description so it resembles the example closely in terms of writing style and everything "
+ "this entails while still being authentic."
+ f"It is very important that the content, especially case attributes ({case_attributes}), "
+ "events and temporal specifications, remain the same, and only the writing style is adapted."
+ },
+ {
+ "role": "user",
+ "content": "Please adapt the process description to be more similar to the example."
+ f"Example: '{example}'"
+ f"Process Description: '{process_description}'"
+ }
+ ]
+ # execute adaptation prompt
+ adaptation_prompt_temperature = instance_config["adaptation_prompt_temperature"]
+ process_description = u.query_gpt(messages=adaptation_prompt, temperature=adaptation_prompt_temperature,
+ model="gpt-3.5-turbo")
+
+ # save process description
+ timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
+ patient_journey_name = f"{timestamp}_{case}_{degree_of_variation}_{writing_style}_{iteration}"
+ if save_to_db:
+ PatientJourney.manager.create(name=patient_journey_name, patient_journey=process_description)
+ if save_as_txt:
+ directory = "patient_journey_generator/generated_process_descriptions"
+ if not os.path.exists(directory):
+ os.makedirs(directory)
+ with open(f"{directory}/{patient_journey_name}.txt", "w") as file:
+ file.write(process_description)
+
+ # add instance configuration to process description for display
+ process_description += f"
Instance Configuration: Degree of Variation: {degree_of_variation} Event Types: {event_types} Case Attributes: {case_attributes} Time Specifications: {time_specifications} Writing Style: {writing_style} "
+
+ return process_description
+
+
+def get_instance_config(config, degree_of_variation):
+ instance_config = copy.deepcopy(config)
+
+ # low degree of variation
+ if degree_of_variation == "low":
+ for key, value in instance_config.items():
+ if key == "event_types":
+ if isinstance(value, list):
+ instance_config[key] = ', '.join(value)
+ # adjustment for evaluation of process description batch with "low" degree of variation
+ # instance_config[key] = "Symptom Onset, Hospital Admission, Hospital Discharge, Symptom Offset"
+ elif key == "case_attributes_dict":
+ for attribute, values in value.items():
+ if isinstance(values, list):
+ instance_config[key][attribute] = values[0]
+ elif isinstance(value, list):
+ instance_config[key] = value[0]
+
+ instance_config["writing_style"] = "free"
+ instance_config["generation_prompt_temperature"] = 0.1
+ instance_config["adaptation_prompt_temperature"] = 0.1
+
+ # medium degree of variation
+ elif degree_of_variation == "medium":
+ for key, value in instance_config.items():
+ if key == "event_types":
+ if isinstance(value, list):
+ num_event_types = random.randint(3, len(value))
+ selected_event_types = random.sample(value, num_event_types)
+ instance_config[key] = ', '.join(selected_event_types)
+ elif key == "case_attributes_dict":
+ for attribute, values in value.items():
+ if isinstance(values, list):
+ instance_config[key][attribute] = random.choice(values)
+ elif isinstance(value, list):
+ instance_config[key] = value[0]
+
+ instance_config["writing_style"] = "free"
+ instance_config["generation_prompt_temperature"] = 0.6
+ instance_config["adaptation_prompt_temperature"] = 0.6
+
+ # high degree of variation
+ elif degree_of_variation == "high":
+ for key, value in instance_config.items():
+ if key == "event_types":
+ if isinstance(value, list):
+ num_event_types = random.randint(3, len(value))
+ selected_event_types = random.sample(value, num_event_types)
+ instance_config[key] = ', '.join(selected_event_types)
+ elif key == "case_attributes_dict":
+ for attribute, values in value.items():
+ if isinstance(values, list):
+ instance_config[key][attribute] = random.choice(values)
+ elif isinstance(value, list):
+ instance_config[key] = random.choice(value)
+
+ instance_config["writing_style"] = "similar_to_example"
+ instance_config["generation_prompt_temperature"] = 1
+ instance_config["adaptation_prompt_temperature"] = 1
+
+ return instance_config
diff --git a/tracex_project/patient_journey_generator/process_description_configs.py b/tracex_project/patient_journey_generator/process_description_configs.py
new file mode 100644
index 0000000..96cc6c7
--- /dev/null
+++ b/tracex_project/patient_journey_generator/process_description_configs.py
@@ -0,0 +1,137 @@
+PATIENT_JOURNEY_CONFIG_MC = {
+ "domain": "patient journeys",
+ "case": "Patient",
+ "case_notion": "Symptom Onset to Symptom Offset",
+ "event_types": ["Symptom Onset", "Symptom Offset", "Diagnosis", "Doctor Visit", "Treatment", "Hospital Admission", "Hospital Discharge", "Medication", "Lifestyle Change", "Feelings"],
+ "case_attributes_dict": {
+ "age": [18, 20, 22, 25, 28, 30, 32, 35, 38, 40, 42, 45, 48, 50, 52, 55, 58, 60, 62, 65],
+ "sex": ["male", "female"],
+ "occupation": ["flight attendant", "teacher", "engineer", "chef", "artist", "musician", "nurse", "journalist", "software developer", "farmer", "scientist", "lawyer", "salesperson", "mechanic", "pilot", "police officer", "fitness instructor", "librarian", "architect", "politician"],
+ "domestic_status": ["single", "married", "divorced", "widowed", "in a relationship"],
+ "origin": ["France", "Germany", "Spain", "Italy", "Portugal", "Belgium", "Netherlands", "Switzerland", "Austria", "Sweden", "Norway", "Denmark", "Finland", "Poland", "Czech Republic", "Slovakia", "Hungary", "Romania", "Bulgaria", "Greece"],
+ "condition": ["Covid-19", "asthma", "diabetes type 1", "diabetes type 2", "chronic kidney disease", "coronary artery disease", "stroke", "hypertension", "arthritis", "osteoporosis", "chronic obstructive pulmonary disease", "anxiety disorder", "depressive disorder", "bipolar disorder", "schizophrenia", "autism spectrum disorder", "dementia", "Parkinson's disease", "multiple sclerosis", "muscular dystrophy", "cystic fibrosis"],
+ "preexisting_conditions": ["none", "diabetes", "asthma", "hypertension", "cardiovascular disease", "arthritis", "chronic kidney disease", "depression", "anxiety disorder", "obesity", "thyroid disorder", "cancer", "COPD", "migraines", "allergies", "eczema", "HIV/AIDS", "Parkinson's disease", "multiple sclerosis", "epilepsy"]
+ },
+ "time_specifications": ["timestamps and durations", "timestamps", "durations", "none"],
+ "writing_style": "similar_to_example",
+ "example": [
+ "I was admitted to the hospital on 01/01/2020. After a week, I was discharged. I was prescribed medication for the next two weeks.",
+ "I started feeling sick on 01/01/2020. I went to the hospital and was admitted. After a week, I was discharged and given medication to take for two weeks.",
+ "It was my first ever COVID infection, the likelihood of hospitalization were high. I Am a obese 26yo male, "
+ "with underlying health conditions and a disabillty. the first 4 days were pure hell that i hope no one has "
+ "to go through, the cough was so dry and bad, it was almost like i was a patient in a old care home with "
+ "tuberculosis, that is just how bad it was. The fever, chills, constant need to turn the heating on and off, "
+ "grimacing in severe body aches and pain. i just wanted it to end. Finally after day 9 i am feeling like "
+ "myself and LONG COVID seems unlikely as all my symptoms are gone besides some lingering myalgia and "
+ "dehydration upon waking. I am scheduling for another booster and flu shot next week so i dont have to go "
+ "through this again. I live in Australia btw.",
+ "I’m a global health researcher working to address health and gender inequalities "
+ "in the Global South. During my work in areas where Malaria or Dengue "
+ "Fever are endemic, I always took extra precautions to avoid getting infected."
+ "During lockdown, like most working mothers, I became the major "
+ "responsible for childcare and housework. To finish all my research "
+ "related activities, I frequently worked until late at night. During "
+ "the day I was juggling work, home and homeschooling... In mid"
+ "May I started feeling weak and had more trouble breathing. As someone "
+ "with an immunodeficiency disorder, I didn’t pay too much"
+ "attention. I though it was due to sleep deprivation and excessive working "
+ "hours... But it was COVID-19. The symptoms worsened quickly"
+ "and in a few days I was not able to get out of bed. Now I was"
+ "under lockdown, unable to work or look after my kids, with stress piling up."
+ "My physician considered the symptoms mild, recommending isolation and"
+ "rest at home. I was bedridden for three weeks, with difficulty breathing,"
+ "headache, conjunctivitis, sore throat, aches and pain. I completely lost my"
+ "appetite. During two months I could not taste or smell anything, hot or cold,"
+ "sweet, salty, spice, nothing at all. My fatigue was debilitating. More than four"
+ "months later, my symptoms have not gone away. My heart still races a few"
+ "times a day - even while I am sitting at the computer and writing this piece."
+ "It is hard to concentrate for long periods. However, it is also way too soon"
+ "to understand how long my COVID-19 damage will last."
+ ],
+ "perspective_instructions_old": "Write the process description from the perspective of the Patient and consider their case attributes.",
+ "writing_instructions_old": "Create a process description in the form of a written text of your case. It is important that you write an authentic, continuous text, as if written by the Patient themselves.",
+ "authenticity_instructions_old": "Please try to consider the Patient's background and the events that plausibly could have happened to them when creating the process description and the events that they experienced.",
+ "perspective_instructions": "Describe the process from the patient's perspective, incorporating their case attributes and personal experiences.",
+ "writing_instructions": "Write a continuous, authentic narrative as if you were the patient, detailing events in chronological order.",
+ "authenticity_instructions": "Ensure the description reflects the patient's background and experiences, portraying events with empathy and accuracy.",
+}
+
+PATIENT_JOURNEY_CONFIG_EVAL = {
+ "domain": "patient journeys",
+ "case": "Patient",
+ "case_notion": "Symptom Onset to Symptom Offset",
+ "event_types": ["Symptom Onset", "Symptom Offset", "Diagnosis", "Doctor Visit", "Treatment", "Hospital Admission", "Hospital Discharge", "Medication", "Lifestyle Change", "Feelings"],
+ "case_attributes_dict": {
+ "age": [34, 18, 20, 22, 25, 28, 30, 32, 35, 38, 40, 42, 45, 48, 50, 52, 55, 58, 60, 62, 65],
+ "sex": ["female", "male"],
+ "occupation": ["flight attendant", "teacher", "engineer", "chef", "artist", "musician", "nurse", "journalist", "software developer", "farmer", "scientist", "lawyer", "salesperson", "mechanic", "pilot", "police officer", "fitness instructor", "librarian", "architect", "politician"],
+ "domestic_status": ["married", "single", "divorced", "widowed", "in a relationship"],
+ "origin": ["France", "Germany", "Spain", "Italy", "Portugal", "Belgium", "Netherlands", "Switzerland", "Austria", "Sweden", "Norway", "Denmark", "Finland", "Poland", "Czech Republic", "Slovakia", "Hungary", "Romania", "Bulgaria", "Greece"],
+ "condition": ["Covid-19", "asthma", "diabetes type 1", "diabetes type 2", "chronic kidney disease", "coronary artery disease", "stroke", "hypertension", "arthritis", "osteoporosis", "chronic obstructive pulmonary disease", "anxiety disorder", "depressive disorder", "bipolar disorder", "schizophrenia", "autism spectrum disorder", "dementia", "Parkinson's disease", "multiple sclerosis", "muscular dystrophy", "cystic fibrosis"],
+ "preexisting_conditions": ["none", "diabetes", "asthma", "hypertension", "cardiovascular disease", "arthritis", "chronic kidney disease", "depression", "anxiety disorder", "obesity", "thyroid disorder", "cancer", "COPD", "migraines", "allergies", "eczema", "HIV/AIDS", "Parkinson's disease", "multiple sclerosis", "epilepsy"]
+ },
+ "time_specifications": ["timestamps and durations", "timestamps", "durations", "none"],
+ "writing_style": "similar_to_example",
+ "example": [
+ "I was admitted to the hospital on 01/01/2020. After a week, I was discharged. I was prescribed medication for the next two weeks.",
+ "I started feeling sick on 01/01/2020. I went to the hospital and was admitted. After a week, I was discharged and given medication to take for two weeks.",
+ "It was my first ever COVID infection, the likelihood of hospitalization were high. I Am a obese 26yo male, "
+ "with underlying health conditions and a disabillty. the first 4 days were pure hell that i hope no one has "
+ "to go through, the cough was so dry and bad, it was almost like i was a patient in a old care home with "
+ "tuberculosis, that is just how bad it was. The fever, chills, constant need to turn the heating on and off, "
+ "grimacing in severe body aches and pain. i just wanted it to end. Finally after day 9 i am feeling like "
+ "myself and LONG COVID seems unlikely as all my symptoms are gone besides some lingering myalgia and "
+ "dehydration upon waking. I am scheduling for another booster and flu shot next week so i dont have to go "
+ "through this again. I live in Australia btw.",
+ "I’m a global health researcher working to address health and gender inequalities "
+ "in the Global South. During my work in areas where Malaria or Dengue "
+ "Fever are endemic, I always took extra precautions to avoid getting infected."
+ "During lockdown, like most working mothers, I became the major "
+ "responsible for childcare and housework. To finish all my research "
+ "related activities, I frequently worked until late at night. During "
+ "the day I was juggling work, home and homeschooling... In mid"
+ "May I started feeling weak and had more trouble breathing. As someone "
+ "with an immunodeficiency disorder, I didn’t pay too much"
+ "attention. I though it was due to sleep deprivation and excessive working "
+ "hours... But it was COVID-19. The symptoms worsened quickly"
+ "and in a few days I was not able to get out of bed. Now I was"
+ "under lockdown, unable to work or look after my kids, with stress piling up."
+ "My physician considered the symptoms mild, recommending isolation and"
+ "rest at home. I was bedridden for three weeks, with difficulty breathing,"
+ "headache, conjunctivitis, sore throat, aches and pain. I completely lost my"
+ "appetite. During two months I could not taste or smell anything, hot or cold,"
+ "sweet, salty, spice, nothing at all. My fatigue was debilitating. More than four"
+ "months later, my symptoms have not gone away. My heart still races a few"
+ "times a day - even while I am sitting at the computer and writing this piece."
+ "It is hard to concentrate for long periods. However, it is also way too soon"
+ "to understand how long my COVID-19 damage will last."
+ ],
+ "perspective_instructions": "Describe the process from the patient's perspective, incorporating their case attributes and personal experiences.",
+ "writing_instructions": "Write a continuous, authentic narrative as if you were the patient, detailing events in chronological order.",
+ "authenticity_instructions": "Ensure the description reflects the patient's background and experiences, portraying events with empathy and accuracy.",
+}
+# verteile case attributes über ganze description
+
+
+ORDER_CONFIG = {
+ "domain": "retail orders",
+ "case": "Product",
+ "case_notion": "Order",
+ "event_types": "Order Creation, Order Payment, Order Delivery",
+ "case_attributes_dict": {
+ "product_type": "smartphone",
+ "model": "iPhone 13",
+ "color": "red",
+ "price": 999,
+ "payment_method": "credit card",
+ "retailer": "Apple Store",
+ "delivery_address": "1234 Elm Street",
+ "delivery_date": "01/01/2022"
+ },
+ "time_specifications": "timestamps and durations",
+ "writing_style": "not_similar_to_example",
+ "example": "I ordered a smartphone on 01/01/2022. I paid for it with my credit card. The smartphone was delivered to my address on 01/02/2022.",
+ "perspective_instructions": "Write the process description from the perspective of an omniscient observer of the ordering process and consider the case attributes.",
+ "writing_instructions": "Please create a process description in the form of a written text of your case. It is important that you write an authentic, continuous text.",
+ "authenticity_instructions": "Please try to consider the aspects that this process might entail and include all parties that might be involved in this process and the activities that plausibly could have happened when creating the process description and the events that might have happened."
+}
\ No newline at end of file
diff --git a/tracex_project/patient_journey_generator/process_description_configurations/manufacturing_carpenter_configuration.json b/tracex_project/patient_journey_generator/process_description_configurations/manufacturing_carpenter_configuration.json
new file mode 100644
index 0000000..ae379c5
--- /dev/null
+++ b/tracex_project/patient_journey_generator/process_description_configurations/manufacturing_carpenter_configuration.json
@@ -0,0 +1,70 @@
+{
+ "domain": "manufacturing",
+ "case": "Carpenter",
+ "case_notion": "Project Completion",
+ "event_types": [
+ "Design Approval",
+ "Material Procurement",
+ "Construction Start",
+ "Milestone Review",
+ "Adjustments",
+ "Quality Check",
+ "Client Feedback",
+ "Final Touches",
+ "Project Completion",
+ "Delivery"
+ ],
+ "case_attributes_dict": {
+ "age": [20, 25, 30, 35, 40, 45, 50, 55, 60],
+ "sex": ["female", "male"],
+ "origin": [
+ "USA",
+ "Canada",
+ "Mexico",
+ "Brazil",
+ "Argentina",
+ "UK",
+ "France",
+ "Germany",
+ "Italy",
+ "Spain"
+ ],
+ "skill_level": [
+ "beginner",
+ "intermediate",
+ "advanced",
+ "expert"
+ ],
+ "object_type": [
+ "cabinet",
+ "table",
+ "chair",
+ "bookshelf",
+ "wardrobe",
+ "desk",
+ "bed",
+ "bench",
+ "stool",
+ "door"
+ ],
+ "tools_used": [
+ "hand saw",
+ "hammer",
+ "chisel",
+ "screwdriver",
+ "drill",
+ "sander",
+ "planer",
+ "router"
+ ]
+ },
+ "time_specifications": ["timestamps and durations", "timestamps", "durations", "none"],
+ "writing_style": "free",
+ "example": [
+ "The project started with client approval of the design on 03/15/2023. I procured all necessary materials by the end of the week. Construction began promptly, and by the first milestone review on 04/01/2023, the main structure was completed. After some adjustments based on the client’s feedback and a thorough quality check, the final touches were added. The project was completed on 04/25/2023 and delivered to a satisfied client.",
+ "I received the materials on 05/01/2023 and started working on the bespoke cabinet. The client requested a specific design that included intricate carvings. After the initial construction phase, I conducted a detailed quality check and incorporated the client's feedback for some minor adjustments. The final product was completed on 05/20/2023 and was ready for delivery."
+ ],
+ "perspective_instructions": "Describe the carpentry project from the carpenter's perspective, including specific tasks and client interactions.",
+ "writing_instructions": "Write a continuous, authentic narrative as if you were the carpenter, detailing the project stages in chronological order. Ensure the text flows naturally and maintains a consistent voice throughout.",
+ "authenticity_instructions": "Infuse the description with realistic details that align with the carpenter's background and plausible project events. Consider the technical, aesthetic, and functional contexts that shape the work."
+}
diff --git a/tracex_project/patient_journey_generator/process_description_configurations/patient_journey_configuration.json b/tracex_project/patient_journey_generator/process_description_configurations/patient_journey_configuration.json
new file mode 100644
index 0000000..f8b58d4
--- /dev/null
+++ b/tracex_project/patient_journey_generator/process_description_configurations/patient_journey_configuration.json
@@ -0,0 +1,122 @@
+{
+ "domain": "Healthcare",
+ "case": "Patient",
+ "case_notion": "Course of Illness",
+ "event_types": [
+ "Symptom Onset",
+ "Symptom Offset",
+ "Diagnosis",
+ "Doctor Visit",
+ "Treatment",
+ "Hospital Admission",
+ "Hospital Discharge",
+ "Medication",
+ "Lifestyle Change",
+ "Feelings"
+ ],
+ "case_attributes_dict": {
+ "age": [34, 18, 20, 22, 25, 28, 30, 32, 35, 38, 40, 42, 45, 48, 50, 52, 55, 58, 60, 62, 65],
+ "sex": ["female", "male"],
+ "occupation": [
+ "flight attendant",
+ "teacher",
+ "engineer",
+ "chef",
+ "artist",
+ "musician",
+ "nurse",
+ "journalist",
+ "software developer",
+ "farmer",
+ "scientist",
+ "lawyer",
+ "salesperson",
+ "mechanic",
+ "pilot",
+ "police officer",
+ "fitness instructor",
+ "librarian",
+ "architect",
+ "politician"
+ ],
+ "domestic_status": ["married", "single", "divorced", "widowed", "in a relationship"],
+ "origin": [
+ "France",
+ "Germany",
+ "Spain",
+ "Italy",
+ "Portugal",
+ "Belgium",
+ "Netherlands",
+ "Switzerland",
+ "Austria",
+ "Sweden",
+ "Norway",
+ "Denmark",
+ "Finland",
+ "Poland",
+ "Czech Republic",
+ "Slovakia",
+ "Hungary",
+ "Romania",
+ "Bulgaria",
+ "Greece"
+ ],
+ "condition": [
+ "Covid-19",
+ "asthma",
+ "diabetes type 1",
+ "diabetes type 2",
+ "chronic kidney disease",
+ "coronary artery disease",
+ "stroke",
+ "hypertension",
+ "arthritis",
+ "osteoporosis",
+ "chronic obstructive pulmonary disease",
+ "anxiety disorder",
+ "depressive disorder",
+ "bipolar disorder",
+ "schizophrenia",
+ "autism spectrum disorder",
+ "dementia",
+ "Parkinson's disease",
+ "multiple sclerosis",
+ "muscular dystrophy",
+ "cystic fibrosis"
+ ],
+ "preexisting_conditions": [
+ "none",
+ "diabetes",
+ "asthma",
+ "hypertension",
+ "cardiovascular disease",
+ "arthritis",
+ "chronic kidney disease",
+ "depression",
+ "anxiety disorder",
+ "obesity",
+ "thyroid disorder",
+ "cancer",
+ "COPD",
+ "migraines",
+ "allergies",
+ "eczema",
+ "HIV/AIDS",
+ "Parkinson's disease",
+ "multiple sclerosis",
+ "epilepsy"
+ ]
+ },
+ "time_specifications": ["timestamps and durations", "timestamps", "durations", "none"],
+ "writing_style": "free",
+ "example": [
+ "I was admitted to the hospital on 01/01/2020. After a week, I was discharged. I was prescribed medication for the next two weeks.",
+ "I started feeling sick on 01/01/2020. I went to the hospital and was admitted. After a week, I was discharged and given medication to take for two weeks.",
+ "It was my first ever COVID infection, the likelihood of hospitalization were high. I am an obese 26yo male, with underlying health conditions and a disability. The first 4 days were pure hell that i hope no one has to go through, the cough was so dry and bad, it was almost like i was a patient in an old care home with tuberculosis, that is just how bad it was. The fever, chills, constant need to turn the heating on and off, grimacing in severe body aches and pain. I just wanted it to end. Finally after day 9 i am feeling like myself and LONG COVID seems unlikely as all my symptoms are gone besides some lingering myalgia and dehydration upon waking. I am scheduling for another booster and flu shot next week so i dont have to go through this again. I live in Australia btw.",
+ "I’m a global health researcher working to address health and gender inequalities in the Global South. During my work in areas where Malaria or Dengue Fever are endemic, I always took extra precautions to avoid getting infected. During lockdown, like most working mothers, I became the major responsible for childcare and housework. To finish all my research related activities, I frequently worked until late at night. During the day I was juggling work, home and homeschooling... In mid May I started feeling weak and had more trouble breathing. As someone with an immunodeficiency disorder, I didn’t pay too much attention. I thought it was due to sleep deprivation and excessive working hours... But it was COVID-19. The symptoms worsened quickly and in a few days I was not able to get out of bed. Now I was under lockdown, unable to work or look after my kids, with stress piling up. My physician considered the symptoms mild, recommending isolation and rest at home. I was bedridden for three weeks, with difficulty breathing, headache, conjunctivitis, sore throat, aches and pain. I completely lost my appetite. During two months I could not taste or smell anything, hot or cold, sweet, salty, spice, nothing at all. My fatigue was debilitating. More than four months later, my symptoms have not gone away. My heart still races a few times a day - even while I am sitting at the computer and writing this piece. It is hard to concentrate for long periods. However, it is also way too soon to understand how long my COVID-19 damage will last."
+ ],
+ "perspective_instructions": "Describe the process from the patient's perspective, incorporating their case attributes and personal experiences.",
+ "writing_instructions": "Write a continuous, authentic narrative as if you were the patient, detailing events in chronological order. Ensure the text flows naturally and maintains a consistent voice throughout.",
+ "authenticity_instructions": "Infuse the description with realistic details that align with the patient's background and plausible life events. Consider the socio-cultural and emotional contexts that shape their experiences."
+}
diff --git a/tracex_project/patient_journey_generator/templates/journey_generator_overview.html b/tracex_project/patient_journey_generator/templates/journey_generator_overview.html
index fdd25b3..a7962cd 100644
--- a/tracex_project/patient_journey_generator/templates/journey_generator_overview.html
+++ b/tracex_project/patient_journey_generator/templates/journey_generator_overview.html
@@ -23,45 +23,51 @@
{% if generated_journey %}
-
Generated Patient Journey
-
{{ generated_journey }}
+
Generated Process Descriptions
+
{{ generated_journey|safe }}
{% else %}
-
Welcome to the Patient Journey Generator of TracEX
-
Our innovative tool enables you to simulate a synthetic COVID-19 specific disease course. Before generating the journey, personal factors such as age, sex, and nationality are randomized, allowing you to explore diverse scenarios and outcomes. Once the journey is generated, refine your analysis by extracting an event log. Customize your experience by applying filters to delve deeper into the simulated patient's progression.
-
-
-
+
Welcome to the Process Description Generator of TracEX
+
This tool enables you to generate multiple instances of process descriptions for the selected configuration.
+ If you do not select a suitable configuration, the default "Patient Journey" configuration will be used.
+ You can select to what degree the instances should differ from each other, how many instances should be created and whether you want to save them to the database or as a text file.
+
+ Please note that our extraction pipeline can currently only handle process descriptions of the type "Patient Journey".
+