python dilinde bir kod istiyorum bu kodda da bir pdf dosyası yollamak istiyorum dosyanın içinde örnek olarak bir makale olsun o makalenin sadece veri olan kısımlarını alsın yani örnek olarak sayfa sayıları gibi gereksiz kısımları almasın ve düzenlesin ardından partlara bölsün ve her bir partı data-based şekilde oluştursun ardından bunun AI'n anlıcağı bir şekilde json formatını oluştursun istiyorum örnek json formatı da şu şekilde olmalı: 
{
  "book_title": "LIFESTYLE MEDICINE HANDBOOK: An Introduction to the Power of Healthy Habits",
  "chapter": "1: Understanding Lifestyle Medicine",
  "part": "Introduction to Lifestyle Medicine",
  "summary": "This part introduces the field of lifestyle medicine, its relevance in today's healthcare, and its potential to positively impact individual and societal health. It lays the foundation for understanding how lifestyle changes, backed by evidence-based medicine, can prevent and even reverse chronic diseases, and outlines the role of healthcare professionals in this growing field.",
  "summary_of_content": {
    "main_theme": "The foundational concepts of lifestyle medicine, its evidence-based nature, and its importance in addressing the modern health crisis.",
    "key_concepts": [
      {
        "concept": "Introduction to Lifestyle Medicine",
        "definition": "Lifestyle medicine refers to the use of therapeutic approaches, such as a plant-based diet, regular exercise, adequate sleep, stress management, and avoiding risky substance use, to prevent, treat, and reverse lifestyle-related chronic diseases.",
        "example": "Lifestyle medicine interventions are used to treat chronic conditions like heart disease, diabetes, and obesity by addressing the root causes of these diseases."
      },
      {
        "concept": "Evidence-Based Medicine",
        "definition": "Lifestyle medicine relies on scientific studies and data to provide treatments that are proven to work. It focuses on evidence-based therapeutic approaches to prevent and treat diseases.",
        "example": "Clinical trials have shown that lifestyle interventions, such as diet and exercise, can be more effective than medications in preventing diseases like type 2 diabetes."
      },
      {
        "concept": "Healthcare System Needs",
        "definition": "The current healthcare system is reactive and focused on disease treatment, leading to high costs and a growing burden of chronic diseases. Lifestyle medicine shifts the focus to prevention and long-term health improvements through lifestyle changes.",
        "example": "Preventing diseases like heart disease and diabetes through lifestyle medicine can reduce the overall burden on the healthcare system, improving patient outcomes and lowering costs."
      }
    ]
  },
  "key_learning_objectives": [
    "Understand the definition and role of lifestyle medicine in today's healthcare.",
    "Recognize the importance of evidence-based medicine in guiding lifestyle interventions.",
    "Identify how lifestyle medicine addresses the healthcare system’s need to prevent chronic diseases rather than just treating them."
  ],
  "sample_prompts_for_ai_training": [
    {
      "scenario": "What is lifestyle medicine, and how does it differ from traditional approaches to healthcare?",
      "expected_response": "Lifestyle medicine focuses on preventing, treating, and reversing chronic diseases through lifestyle changes, such as diet, exercise, and stress management. Unlike traditional approaches, which focus on treating diseases with medication, lifestyle medicine addresses the root causes of diseases."
    },
    {
      "scenario": "Why is evidence-based medicine important in the field of lifestyle medicine?",
      "expected_response": "Evidence-based medicine ensures that lifestyle interventions, like diet and exercise, are supported by scientific studies and proven to be effective. This approach helps healthcare professionals provide reliable and effective treatments for preventing and managing chronic diseases."
    },
    {
      "scenario": "How can lifestyle medicine address the needs of the current healthcare system?",
      "expected_response": "Lifestyle medicine helps shift the focus of healthcare from treating diseases to preventing them. By encouraging healthy behaviors, such as regular exercise and a nutritious diet, lifestyle medicine reduces the burden of chronic diseases, which lowers healthcare costs and improves patient outcomes."
    }
  ],
  "scenario_based_learning": [
    {
      "context": "You are a physician seeing a new patient who has never heard of lifestyle medicine. The patient is curious about how it differs from regular medical care and how it can help them.",
      "scenario": "The patient says: 'I’ve heard of medications and surgeries, but what is lifestyle medicine? How is it different from what most doctors do?'",
      "decision_points": [
        {
          "question": "How do you define lifestyle medicine for this patient?",
          "options": [
            {
              "option": "Option A: 'Lifestyle medicine focuses on using healthy habits, like diet and exercise, as the main treatment for many chronic diseases.'",
              "feedback": "Correct! Lifestyle medicine uses evidence-based lifestyle changes, such as diet, exercise, stress management, and sleep, as primary interventions to prevent, treat, and sometimes reverse chronic diseases."
            },
            {
              "option": "Option B: 'Lifestyle medicine is about managing your health without ever needing medications or other treatments.'",
              "feedback": "Incorrect. While lifestyle medicine emphasizes lifestyle changes, it does not exclude medications or other treatments when necessary."
            }
          ]
        },
        {
          "question": "The patient asks, 'Is lifestyle medicine only for people who are sick?'",
          "options": [
            {
              "option": "Option A: 'No, lifestyle medicine is for everyone. It helps people both prevent disease and manage their health.'",
              "feedback": "Correct! Lifestyle medicine is preventive as well as therapeutic. It can be used to help people stay healthy, as well as to treat those who already have conditions like diabetes or heart disease."
            },
            {
              "option": "Option B: 'Yes, it's mainly for people who already have chronic diseases.'",
              "feedback": "Incorrect. Lifestyle medicine is beneficial for both preventing diseases and improving the health of those who are already managing chronic conditions."
            }
          ]
        }
      ]
    },
    {
      "context": "You are hosting a community health workshop, and a participant is asking about how lifestyle medicine can prevent chronic diseases.",
      "scenario": "The participant says: 'I understand that medications help treat diseases, but how can lifestyle medicine actually prevent them?'",
      "decision_points": [
        {
          "question": "How do you explain the preventive role of lifestyle medicine?",
          "options": [
            {
              "option": "Option A: 'Lifestyle medicine helps prevent diseases by focusing on improving daily habits, such as eating a plant-based diet, exercising, managing stress, and sleeping well.'",
              "feedback": "Correct! Lifestyle medicine addresses the root causes of chronic diseases by promoting healthy lifestyle habits like proper nutrition, physical activity, and stress management, regardless of age."
            },
            {
              "option": "Option B: 'Lifestyle medicine only helps prevent diseases if you start it at a very young age.'",
              "feedback": "Incorrect. While starting healthy habits early is beneficial, lifestyle medicine can be implemented at any age to prevent and manage diseases."
            }
          ]
        },
        {
          "question": "The participant asks, 'Can lifestyle medicine be as effective as medications for preventing diseases like heart disease or diabetes?'",
          "options": [
            {
              "option": "Option A: 'Yes, in many cases, lifestyle medicine can be more effective than medications in preventing and even reversing chronic diseases.'",
              "feedback": "Correct! Evidence has shown that lifestyle medicine can be highly effective, and in some cases, more effective than medications, particularly in preventing and managing conditions like heart disease, diabetes, and obesity."
            },
            {
              "option": "Option B: 'No, lifestyle medicine is more of a supplement to medications.'",
              "feedback": "Incorrect. While lifestyle medicine can be used alongside medications, it is often a first-line treatment that can reduce or even eliminate the need for medications in some cases."
            }
          ]
        }
      ]
    },
    {
      "context": "During a medical consultation, a patient asks about the specific lifestyle changes involved in lifestyle medicine.",
      "scenario": "The patient says: 'I’m interested in making changes to improve my health. What are the main lifestyle areas I should focus on?'",
      "decision_points": [
        {
          "question": "How do you explain the core components of lifestyle medicine?",
          "options": [
            {
              "option": "Option A: 'You should focus on eating well, staying active, managing stress, sleeping well, and avoiding harmful substances like tobacco.'",
              "feedback": "Correct! Lifestyle medicine focuses on six key areas: nutrition, physical activity, stress management, sleep, social connections, and avoidance of risky substances like tobacco and alcohol."
            },
            {
              "option": "Option B: 'It’s all about exercise and getting enough sleep.'",
              "feedback": "Incorrect. While exercise and sleep are important, lifestyle medicine is a comprehensive approach that includes several other key areas, such as nutrition and stress management."
            }
          ]
        },
        {
          "question": "The patient asks, 'Does this mean I have to make all these changes at once?'",
          "options": [
            {
              "option": "Option A: 'You can make gradual changes over time, focusing on one area at a time.'",
              "feedback": "Correct! It’s important to encourage gradual, sustainable changes. Patients can start with one area, such as nutrition or exercise, and slowly incorporate other elements of lifestyle medicine."
            },
            {
              "option": "Option B: 'Yes, you need to make all these changes right away for it to work.'",
              "feedback": "Incorrect. Making all changes at once can be overwhelming. The goal is to build sustainable habits over time."
            }
          ]
        }
      ]
    }
  ],
  "simplified_guiding_questions_for_ai": [
    "What is lifestyle medicine?",
    "Why is scientific evidence important in lifestyle medicine?",
    "How can lifestyle medicine improve healthcare and reduce costs?"
  ]
}