Hey I’m bpharm student

Hey! Welcome. As a B.Pharm student, I can help you with pharmacology, pharmaceutical chemistry, pharmacognosy, biochemistry, drug mechanisms, clinical topics, exam prep, and more.
What would you like to explore today?

Help with a specific course topic or subject

Asking for Preferences
Which subject and concept specifically would you like explained? For example:
  • Pathophysiology - disease mechanisms
  • Microbiology - bacteria, viruses, infections
  • Anatomy/Physiology - body systems
  • Clinical Pharmacy - drug therapy, patient care
  • Biotechnology - biopharma, recombinant drugs
Just tell me the subject name and the specific concept or topic you want explained, and I'll break it down for you!

Pharmacy practice Semester 7

Asking for Preferences
Go ahead - type the specific topic or concept you want explained from Pharmacy Practice (Semester 7), and I'll give you a clear, detailed breakdown!
Reading File
Searching the Web

role of pharmacist industry research academics hospitals community pharmacy practice

Here is a detailed breakdown of all 5 roles from your notes:

Role of Pharmacist


i) Industry

The pharmacist in the pharmaceutical industry works across the entire drug life cycle:
  • Drug manufacturing - ensures GMP (Good Manufacturing Practices) are followed in production
  • Quality control (QC) & Quality assurance (QA) - tests raw materials, finished products, checks for purity, potency, and stability
  • Regulatory affairs - prepares drug dossiers, handles licensing, and liaises with regulatory bodies (e.g., CDSCO in India, FDA in the US)
  • Product development - involved in formulation development of tablets, capsules, injectables, etc.
  • Marketing & medical representation - pharmacists work as medical representatives, product managers, or brand managers

ii) Research

  • Drug discovery - contributes to identifying new drug candidates and pharmacological screening
  • Clinical trials - manages investigational drugs, ensures protocol compliance, monitors adverse effects
  • Pharmacokinetic studies - studies absorption, distribution, metabolism, and excretion (ADME) of new drugs
  • Publication & documentation - writes research papers, reports, and drug information literature
  • Collaboration - partners with physicians, biochemists, and microbiologists in interdisciplinary research

iii) Academics

  • Teaching - lectures in B.Pharm, M.Pharm, and Pharm.D programs across subjects like pharmacology, pharmaceutics, and pharmacy practice
  • Curriculum development - contributes to developing study materials and syllabi
  • Mentorship - guides students in projects, seminars, and research dissertations
  • Continuing education - conducts workshops and training programs for healthcare professionals
  • Examination & assessment - involved in setting question papers and evaluating students

iv) Hospitals

This is a major area in Pharmacy Practice (Sem 7):
  • Dispensing - accurate dispensing of inpatient and outpatient prescriptions
  • Clinical pharmacy services - participates in ward rounds, reviews drug therapy, and detects drug-related problems (DRPs)
  • Drug information center - answers drug-related queries from doctors, nurses, and patients
  • Pharmacovigilance - monitors and reports adverse drug reactions (ADRs)
  • Medication reconciliation - verifies patient medication history at admission and discharge
  • Formulary management - manages the hospital drug formulary (list of approved drugs)
  • TPN (Total Parenteral Nutrition) - prepares and monitors IV nutritional support

v) Community Pharmacy

The pharmacist most visible to the general public:
  • OTC drug dispensing - dispenses over-the-counter medicines and advises on self-medication
  • Patient counseling - counsels patients on dose, timing, side effects, storage, and drug interactions
  • Health screening - basic screening for blood pressure, blood glucose, BMI
  • Medication adherence - reminds and motivates patients to take medicines correctly
  • Referral - identifies cases needing doctor attention and refers appropriately
  • Public health education - promotes awareness on topics like vaccination, family planning, and hygiene
  • Drug abuse prevention - prevents misuse of prescription drugs and controlled substances

Quick Exam Summary Table

SettingKey Role
IndustryManufacturing, QC/QA, Regulatory
ResearchClinical trials, Drug discovery
AcademicsTeaching, Mentoring, Curriculum
HospitalClinical pharmacy, ADR reporting, Drug info
CommunityCounseling, OTC dispensing, Health screening

Would you like me to go deeper into any one of these roles, or help you with another topic from your notes?

Can u make this more Elaborate

Finding Sources
Searching the Web

role of pharmacist in industry research hospital community pharmacy elaborate pharmacy practice

Here is a fully elaborated version of all 5 roles of a pharmacist:

Role of Pharmacist - Elaborated Notes


i) Role in Industry

The pharmaceutical industry is one of the largest employers of pharmacists. Their involvement spans from the birth of a drug idea to the product reaching the market.

A. Drug Development & Formulation

  • Pharmacists work in R&D (Research & Development) departments to design new drug formulations - tablets, capsules, syrups, patches, injectables, etc.
  • They study the physicochemical properties of drug molecules and select appropriate excipients (binders, fillers, disintegrants)
  • They perform preformulation studies - solubility, stability, compatibility testing

B. Manufacturing

  • Supervise large-scale manufacturing processes following GMP (Good Manufacturing Practices) guidelines
  • Ensure Standard Operating Procedures (SOPs) are followed at every step of production
  • Oversee batch production records, in-process quality checks, and yield calculations

C. Quality Control (QC) & Quality Assurance (QA)

  • QC pharmacists test raw materials, intermediates, and finished products for identity, purity, potency, and safety
  • Perform tests like dissolution, disintegration, content uniformity, sterility, and microbial limits
  • QA pharmacists develop and maintain quality systems, conduct internal audits, handle deviations and non-conformities
  • Both roles ensure compliance with standards like IP (Indian Pharmacopoeia), BP, USP

D. Regulatory Affairs

  • Prepare and file drug registration dossiers for new drug approvals with bodies like:
    • CDSCO (Central Drugs Standard Control Organisation) in India
    • US FDA, EMA (European Medicines Agency)
  • Handle drug licensing, patent applications, and labeling compliance
  • Keep track of changing regulations and ensure the company stays compliant

E. Pharmacovigilance (Drug Safety)

  • Monitor and evaluate post-marketing safety data for industry-approved drugs
  • Prepare Periodic Safety Update Reports (PSURs) and report serious adverse events to regulators
  • Manage Risk Management Plans (RMPs) for drugs with known serious risks

F. Sales & Marketing

  • Work as Medical Representatives (MRs) or Product Managers
  • Educate doctors and healthcare providers about the company's drug portfolio
  • Develop promotional literature, drug monographs, and training material for the sales team

ii) Role in Research

Pharmacists are actively involved in scientific research at every level - from bench to bedside.

A. Drug Discovery Research

  • Assist in high-throughput screening of compound libraries to find potential drug candidates
  • Conduct SAR (Structure-Activity Relationship) studies to optimize drug molecules
  • Work with computational pharmacology tools for in silico drug design

B. Preclinical Research

  • Conduct in vitro and in vivo pharmacological studies - testing efficacy, safety, and toxicity in cell cultures and animal models
  • Perform ADME studies (Absorption, Distribution, Metabolism, Excretion) to understand the pharmacokinetic profile of a new drug

C. Clinical Trials (Phases I - IV)

  • Manage the investigational drug supply - storage, dispensing, accountability, and destruction
  • Ensure blinding and randomization procedures are followed in clinical trial sites
  • Monitor patients for adverse drug reactions (ADRs) and document them
  • Act as a Clinical Research Associate (CRA) or Clinical Research Coordinator (CRC)
  • Participate in Data Safety Monitoring Boards (DSMBs) to evaluate ongoing trial safety

D. Pharmacokinetic & Pharmacodynamic Research

  • Develop and validate analytical methods (HPLC, LC-MS/MS) to measure drug levels in biological samples
  • Build PK/PD models to predict optimal dosing regimens
  • Conduct bioavailability and bioequivalence studies - essential for generic drug approvals

E. Publication & Scientific Communication

  • Write and publish research papers in peer-reviewed journals
  • Prepare systematic reviews and meta-analyses on drug therapies
  • Present findings at national and international conferences

iii) Role in Academics

Pharmacists in academia shape the next generation of pharmacy professionals.

A. Teaching & Lecturing

  • Teach undergraduate (B.Pharm), postgraduate (M.Pharm), and doctoral (Ph.D) students
  • Cover subjects including Pharmacology, Pharmaceutics, Pharmaceutical Chemistry, Pharmacy Practice, Pharmacognosy, Clinical Pharmacy
  • Deliver lectures, conduct practicals/labs, and organize seminars and workshops

B. Curriculum Development

  • Design and update syllabus content in line with PCI (Pharmacy Council of India) guidelines
  • Integrate new advances in pharmacotherapy and clinical practice into the curriculum
  • Develop case-based learning modules, MCQ banks, and study materials

C. Student Mentorship & Supervision

  • Guide students in final-year projects, dissertations, and research work
  • Supervise M.Pharm and Ph.D scholars as a thesis guide
  • Mentor students for competitive exams (GPAT, NIPER, etc.)

D. Research in Academia

  • Conduct funded research projects supported by DST, ICMR, DBT, CSIR, or UGC
  • Publish findings in indexed journals, building the institution's research output
  • File patents for novel formulations or drug delivery systems

E. Continuing Pharmacy Education (CPE)

  • Organize CMEs (Continuing Medical Education) and CPE programs for practicing pharmacists
  • Collaborate with industries, hospitals, and government bodies for skill development workshops
  • Update practicing pharmacists about new drugs, guidelines, and technologies

F. Administrative Roles

  • Serve as HOD (Head of Department), Dean, or Principal of pharmacy institutions
  • Handle accreditation, NAAC/NBA preparations, and regulatory compliance of the institution

iv) Role in Hospitals

Hospital pharmacy is the core of Pharmacy Practice. The hospital pharmacist is an integral member of the multidisciplinary healthcare team.

A. Drug Dispensing

  • Dispense inpatient (ward) and outpatient prescriptions accurately
  • Verify prescriptions for completeness, legibility, correct dose, route, and frequency
  • Manage unit-dose dispensing and floor stock management in wards

B. Clinical Pharmacy Services

  • Participate in medical ward rounds alongside doctors and nurses
  • Conduct Medication Therapy Management (MTM) - reviewing each patient's complete drug regimen
  • Identify and resolve Drug-Related Problems (DRPs) such as:
    • Subtherapeutic dosing
    • Drug-drug interactions
    • Drug-disease contraindications
    • Unnecessary medications
  • Perform therapeutic drug monitoring (TDM) for drugs with narrow therapeutic index (e.g., digoxin, vancomycin, phenytoin)

C. Drug Information Services

  • Run a Drug Information Centre (DIC) in the hospital
  • Answer drug queries from doctors, nurses, patients, and other healthcare staff
  • Maintain an updated drug formulary and prepare drug monographs

D. Pharmacovigilance

  • Monitor, detect, assess, and report Adverse Drug Reactions (ADRs) using Yellow Card / Vigibase systems
  • Submit ADR reports to the National Pharmacovigilance Programme (PvPI) in India
  • Educate healthcare staff about identifying and reporting ADRs

E. Medication Reconciliation

  • At admission - compile a complete, accurate list of the patient's current medications
  • At transfer and discharge - compare and reconcile medications to prevent errors
  • Prevent errors due to omissions, duplications, dosing errors, or drug interactions during care transitions

F. Sterile Preparations & Compounding

  • Prepare IV admixtures, chemotherapy doses (cytotoxics), TPN (Total Parenteral Nutrition) under laminar airflow in a clean room
  • Ensure aseptic technique and sterility assurance
  • Compound specialized formulations not commercially available

G. Formulary Management

  • Develop and maintain the hospital drug formulary - the approved list of drugs for use in the hospital
  • Evaluate new drugs for addition to the formulary based on evidence-based criteria
  • Participate in the Pharmacy and Therapeutics (P&T) Committee

H. Antibiotic Stewardship

  • Implement and monitor antibiotic stewardship programs (ASP) to prevent antimicrobial resistance
  • Review antibiotic prescriptions for appropriateness of selection, dose, and duration
  • Recommend de-escalation from broad-spectrum to narrow-spectrum antibiotics when appropriate

I. Patient Counseling at Discharge

  • Counsel patients on all discharge medications - dose, timing, storage, side effects, interactions
  • Provide written medication summaries and follow-up instructions
  • Improve medication adherence before the patient goes home

v) Role in Community Pharmacy

The community pharmacist is the most accessible healthcare provider - often the first point of contact for the public.

A. Prescription Dispensing

  • Receive, verify, and dispense prescription medications accurately
  • Screen prescriptions for drug-drug interactions, drug-food interactions, and contraindications
  • Check for dose appropriateness and clarify with the prescriber if needed
  • Maintain proper dispensing records as required by law

B. Over-the-Counter (OTC) Drug Management

  • Advise patients on self-medication with OTC products for minor ailments (cold, fever, headache, acidity, etc.)
  • Prevent OTC drug misuse - especially with analgesics, antihistamines, and cough syrups
  • Recommend appropriate OTC alternatives and advise on dosage limits

C. Patient Counseling

  • Counsel every patient on:
    • How to take the medicine (with/without food, time of day)
    • What side effects to expect and how to manage them
    • How to store the medicine (room temperature, refrigeration, protect from light)
    • What to avoid (alcohol, grapefruit, certain foods)
    • When to return for a refill or follow-up
  • Provide written instructions for elderly or illiterate patients

D. Health Screening & Wellness Services

  • Offer basic point-of-care screening services:
    • Blood pressure monitoring
    • Blood glucose (diabetes) testing
    • BMI and weight assessment
    • Cholesterol testing
  • Identify at-risk individuals and refer them to physicians for further evaluation

E. Immunization & Vaccination

  • Administer vaccines (in countries where pharmacists are authorized to do so, e.g., USA, UK)
  • In India - maintain vaccine cold chains, educate patients on vaccination schedules
  • Participate in national immunization drives (e.g., Pulse Polio, COVID-19 vaccination)

F. Chronic Disease Management

  • Counsel and monitor patients with chronic conditions like:
    • Diabetes - correct use of insulin, blood glucose monitoring
    • Hypertension - adherence to antihypertensives, lifestyle changes
    • Asthma - proper inhaler technique
    • Epilepsy - importance of not missing doses
  • Set up Medication Adherence Programs (MAPs) and follow-up calls

G. Drug Abuse Prevention

  • Prevent prescription forgery and overuse of controlled substances (opioids, benzodiazepines)
  • Participate in drug de-addiction awareness programs
  • Report suspected misuse to appropriate authorities

H. Referral System

  • Recognize symptoms that indicate an emergency or serious illness requiring immediate medical attention
  • Refer patients appropriately to GPs, specialists, or emergency departments
  • Act as the gateway to the healthcare system - especially in rural and underserved areas

I. Public Health & Community Education

  • Conduct health camps and awareness drives on topics like:
    • Rational use of antibiotics
    • Dangers of self-medication
    • Proper disposal of unused medicines
    • Safe use of herbal and complementary medicines
  • Collaborate with NGOs, government health programs (NRHM, Ayushman Bharat) for health promotion

Summary Mind Map

ROLE OF PHARMACIST
│
├── INDUSTRY ──── Manufacturing → QC/QA → Regulatory → PV → Marketing
│
├── RESEARCH ──── Drug Discovery → Preclinical → Clinical Trials → PK/PD → Publication
│
├── ACADEMICS ─── Teaching → Curriculum → Mentorship → Research → CPE → Admin
│
├── HOSPITAL ──── Dispensing → Clinical Pharmacy → Drug Info → PV → TDM → Stewardship
│
└── COMMUNITY ─── Dispensing → OTC Advice → Counseling → Screening → Public Health

This covers everything you'd need for long-answer exam questions, viva, and your Pharmacy Practice Semester 7 paper. Want notes on any other topic from your syllabus?

Create a study guide PDF on role of pharmacist for exam prep

Reading File
Running Command

mkdir -p /home/daytona/workspace/pharmacy-study-guide

Writing File

~/pharmacy-study-guide/generate_pdf.py

from reportlab.lib.pagesizes import A4
from reportlab.lib import colors
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.lib.units import cm
from reportlab.platypus import (
    SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle,
    HRFlowable, PageBreak, ListFlowable, ListItem
)
from reportlab.lib.enums import TA_CENTER, TA_LEFT, TA_JUSTIFY
from reportlab.platypus import KeepTogether

OUTPUT = "/home/daytona/workspace/pharmacy-study-guide/Role_of_Pharmacist_Study_Guide.pdf"

# ── Colours ──────────────────────────────────────────────────────────────────
DARK_BLUE   = colors.HexColor("#1A3A5C")
MED_BLUE    = colors.HexColor("#2563A8")
LIGHT_BLUE  = colors.HexColor("#E8F0FB")
ACCENT      = colors.HexColor("#F4A81D")
WHITE       = colors.white
LIGHT_GRAY  = colors.HexColor("#F5F5F5")
MID_GRAY    = colors.HexColor("#D0D0D0")
TEXT_DARK   = colors.HexColor("#1C1C1C")
GREEN       = colors.HexColor("#1E7A44")
LIGHT_GREEN = colors.HexColor("#E6F4EC")
RED         = colors.HexColor("#C0392B")
LIGHT_RED   = colors.HexColor("#FDECEA")

doc = SimpleDocTemplate(
    OUTPUT,
    pagesize=A4,
    rightMargin=1.8*cm, leftMargin=1.8*cm,
    topMargin=2*cm,     bottomMargin=2*cm,
)

styles = getSampleStyleSheet()

# Custom styles
def S(name, **kw):
    return ParagraphStyle(name, **kw)

title_style = S("Title",
    fontSize=22, fontName="Helvetica-Bold",
    textColor=WHITE, alignment=TA_CENTER, spaceAfter=4)

subtitle_style = S("Subtitle",
    fontSize=11, fontName="Helvetica",
    textColor=LIGHT_BLUE, alignment=TA_CENTER, spaceAfter=2)

h1 = S("H1",
    fontSize=14, fontName="Helvetica-Bold",
    textColor=WHITE, spaceAfter=6, spaceBefore=4,
    leftIndent=0)

h2 = S("H2",
    fontSize=11, fontName="Helvetica-Bold",
    textColor=DARK_BLUE, spaceAfter=4, spaceBefore=8)

h3 = S("H3",
    fontSize=10, fontName="Helvetica-Bold",
    textColor=MED_BLUE, spaceAfter=3, spaceBefore=5)

body = S("Body",
    fontSize=9.5, fontName="Helvetica",
    textColor=TEXT_DARK, leading=14, spaceAfter=3,
    alignment=TA_JUSTIFY)

bullet_style = S("Bullet",
    fontSize=9.5, fontName="Helvetica",
    textColor=TEXT_DARK, leading=13,
    leftIndent=16, spaceAfter=2)

note_style = S("Note",
    fontSize=9, fontName="Helvetica-Oblique",
    textColor=GREEN, leading=13, leftIndent=8)

exam_style = S("Exam",
    fontSize=9.5, fontName="Helvetica-Bold",
    textColor=RED)

mcq_q = S("MCQ_Q",
    fontSize=9.5, fontName="Helvetica-Bold",
    textColor=TEXT_DARK, leading=13, spaceAfter=2)

mcq_a = S("MCQ_A",
    fontSize=9, fontName="Helvetica",
    textColor=TEXT_DARK, leading=12, spaceAfter=1, leftIndent=12)

mcq_ans = S("MCQ_Ans",
    fontSize=9, fontName="Helvetica-Bold",
    textColor=GREEN, spaceAfter=8, leftIndent=12)

story = []

# ════════════════════════════════════════════════════════════════════════
# COVER HEADER
# ════════════════════════════════════════════════════════════════════════
cover_data = [[
    Paragraph("PHARMACY PRACTICE - SEMESTER 7", subtitle_style),
    Paragraph("STUDY GUIDE", title_style),
    Paragraph("Role of Pharmacist", S("sub2", fontSize=16, fontName="Helvetica-Bold",
              textColor=ACCENT, alignment=TA_CENTER, spaceAfter=2)),
    Paragraph("B.Pharm | Exam Preparation Notes", subtitle_style),
]]

cover_table = Table(cover_data, colWidths=[doc.width])
cover_table.setStyle(TableStyle([
    ("BACKGROUND",    (0,0), (-1,-1), DARK_BLUE),
    ("TOPPADDING",    (0,0), (-1,-1), 18),
    ("BOTTOMPADDING", (0,0), (-1,-1), 18),
    ("LEFTPADDING",   (0,0), (-1,-1), 20),
    ("RIGHTPADDING",  (0,0), (-1,-1), 20),
    ("ROWBACKGROUNDS",(0,0), (-1,-1), [DARK_BLUE]),
]))
story.append(cover_table)
story.append(Spacer(1, 0.4*cm))

# Quick overview pill badges
overview_items = [
    ["5 Key Roles", "Industry · Research · Academics · Hospitals · Community Pharmacy"],
    ["Subject", "Pharmacy Practice (Sem 7)"],
    ["Purpose", "Exam Long-Answer + MCQ + Viva Prep"],
]
for badge, desc in overview_items:
    badge_data = [[
        Paragraph(f"<b>{badge}</b>", S("badge", fontSize=9, fontName="Helvetica-Bold",
                  textColor=WHITE, alignment=TA_CENTER)),
        Paragraph(desc, S("bdesc", fontSize=9, fontName="Helvetica",
                  textColor=DARK_BLUE)),
    ]]
    bt = Table(badge_data, colWidths=[3.5*cm, doc.width - 3.5*cm])
    bt.setStyle(TableStyle([
        ("BACKGROUND",    (0,0), (0,0), MED_BLUE),
        ("BACKGROUND",    (1,0), (1,0), LIGHT_BLUE),
        ("TOPPADDING",    (0,0), (-1,-1), 5),
        ("BOTTOMPADDING", (0,0), (-1,-1), 5),
        ("LEFTPADDING",   (0,0), (-1,-1), 8),
        ("RIGHTPADDING",  (0,0), (-1,-1), 8),
        ("VALIGN",        (0,0), (-1,-1), "MIDDLE"),
    ]))
    story.append(bt)
    story.append(Spacer(1, 0.15*cm))

story.append(Spacer(1, 0.3*cm))
story.append(HRFlowable(width="100%", thickness=1, color=MID_GRAY))
story.append(Spacer(1, 0.3*cm))

# ════════════════════════════════════════════════════════════════════════
# HELPER: section header banner
# ════════════════════════════════════════════════════════════════════════
def section_header(roman, title, icon=""):
    data = [[Paragraph(f"{roman})  {title}", h1)]]
    t = Table(data, colWidths=[doc.width])
    t.setStyle(TableStyle([
        ("BACKGROUND",    (0,0), (-1,-1), MED_BLUE),
        ("TOPPADDING",    (0,0), (-1,-1), 8),
        ("BOTTOMPADDING", (0,0), (-1,-1), 8),
        ("LEFTPADDING",   (0,0), (-1,-1), 12),
        ("RIGHTPADDING",  (0,0), (-1,-1), 12),
    ]))
    return t

def sub_header(text):
    return Paragraph(text, h2)

def sub2_header(text):
    return Paragraph(text, h3)

def bullet(text):
    return Paragraph(f"• {text}", bullet_style)

def body_para(text):
    return Paragraph(text, body)

def note(text):
    data = [[Paragraph(f"📌 {text}", note_style)]]
    t = Table(data, colWidths=[doc.width])
    t.setStyle(TableStyle([
        ("BACKGROUND",    (0,0), (-1,-1), LIGHT_GREEN),
        ("TOPPADDING",    (0,0), (-1,-1), 5),
        ("BOTTOMPADDING", (0,0), (-1,-1), 5),
        ("LEFTPADDING",   (0,0), (-1,-1), 10),
        ("RIGHTPADDING",  (0,0), (-1,-1), 10),
        ("BOX",           (0,0), (-1,-1), 0.5, GREEN),
    ]))
    return t

def exam_tip(text):
    data = [[Paragraph(f"★ EXAM TIP: {text}", exam_style)]]
    t = Table(data, colWidths=[doc.width])
    t.setStyle(TableStyle([
        ("BACKGROUND",    (0,0), (-1,-1), LIGHT_RED),
        ("TOPPADDING",    (0,0), (-1,-1), 5),
        ("BOTTOMPADDING", (0,0), (-1,-1), 5),
        ("LEFTPADDING",   (0,0), (-1,-1), 10),
        ("RIGHTPADDING",  (0,0), (-1,-1), 10),
        ("BOX",           (0,0), (-1,-1), 0.5, RED),
    ]))
    return t

# ════════════════════════════════════════════════════════════════════════
# I. INDUSTRY
# ════════════════════════════════════════════════════════════════════════
story.append(section_header("I", "Role in Industry"))
story.append(Spacer(1, 0.2*cm))
story.append(body_para(
    "The pharmaceutical industry is one of the largest employers of pharmacists. "
    "Their involvement spans from the birth of a drug idea to the product reaching the market shelf."
))
story.append(Spacer(1, 0.2*cm))

industry_sections = [
    ("A. Drug Development & Formulation", [
        "Work in R&D departments to design new drug formulations - tablets, capsules, syrups, patches, injectables, and biologics.",
        "Study physicochemical properties of drug molecules and select appropriate excipients (binders, fillers, disintegrants, preservatives).",
        "Perform preformulation studies: solubility, stability, compatibility, and polymorphism testing.",
        "Develop innovative drug delivery systems: nanoparticles, liposomes, transdermal patches, controlled-release formulations.",
    ]),
    ("B. Manufacturing", [
        "Supervise large-scale manufacturing processes following GMP (Good Manufacturing Practices) guidelines.",
        "Ensure Standard Operating Procedures (SOPs) are followed at every step of production.",
        "Oversee batch production records, in-process quality checks, and yield calculations.",
        "Manage scale-up from laboratory to pilot plant to commercial-scale production.",
    ]),
    ("C. Quality Control (QC) & Quality Assurance (QA)", [
        "QC pharmacists test raw materials, intermediates, and finished products for identity, purity, potency, and safety.",
        "Perform tests: dissolution, disintegration, content uniformity, sterility, microbial limits, and stability testing.",
        "QA pharmacists develop and maintain quality systems, conduct internal audits, handle deviations and non-conformities.",
        "Ensure compliance with IP (Indian Pharmacopoeia), BP, USP, and ICH guidelines.",
    ]),
    ("D. Regulatory Affairs", [
        "Prepare and file drug registration dossiers for new drug approvals with CDSCO (India), US FDA, and EMA (Europe).",
        "Handle drug licensing, patent applications, and product labeling compliance.",
        "Manage post-approval changes and annual product reviews.",
        "Track changing regulations and ensure company compliance at all times.",
    ]),
    ("E. Pharmacovigilance (Drug Safety)", [
        "Monitor and evaluate post-marketing safety data for approved drugs.",
        "Prepare Periodic Safety Update Reports (PSURs) and report serious adverse events to regulators.",
        "Manage Risk Management Plans (RMPs) for drugs with known serious risks.",
        "Coordinate global safety databases (e.g., Vigibase, Argus Safety).",
    ]),
    ("F. Sales & Marketing", [
        "Work as Medical Representatives (MRs), Product Managers, or Brand Managers.",
        "Educate doctors and healthcare providers about the company's drug portfolio.",
        "Develop promotional literature, drug monographs, and training materials for the sales team.",
        "Ensure marketing materials comply with regulatory guidelines (no off-label promotion).",
    ]),
]

for title, bullets in industry_sections:
    story.append(sub2_header(title))
    for b in bullets:
        story.append(bullet(b))
    story.append(Spacer(1, 0.1*cm))

story.append(exam_tip("Common exam question: 'What is the role of a pharmacist in Quality Control vs Quality Assurance?' - QC = testing product, QA = maintaining the system."))
story.append(Spacer(1, 0.3*cm))

# ════════════════════════════════════════════════════════════════════════
# II. RESEARCH
# ════════════════════════════════════════════════════════════════════════
story.append(PageBreak())
story.append(section_header("II", "Role in Research"))
story.append(Spacer(1, 0.2*cm))
story.append(body_para(
    "Pharmacists are actively involved in scientific research at every level - from bench to bedside. "
    "Research pharmacists bridge the gap between laboratory science and clinical application."
))
story.append(Spacer(1, 0.2*cm))

research_sections = [
    ("A. Drug Discovery Research", [
        "Assist in high-throughput screening of compound libraries to find potential drug candidates.",
        "Conduct SAR (Structure-Activity Relationship) studies to optimize drug molecules.",
        "Work with computational pharmacology tools for in silico drug design and molecular docking.",
        "Identify lead compounds and assist medicinal chemists in structural modifications.",
    ]),
    ("B. Preclinical Research", [
        "Conduct in vitro and in vivo pharmacological studies - testing efficacy, safety, and toxicity.",
        "Perform ADME studies (Absorption, Distribution, Metabolism, Excretion) for new drugs.",
        "Conduct acute, subacute, and chronic toxicity studies in animal models.",
        "Prepare preclinical study reports for IND (Investigational New Drug) applications.",
    ]),
    ("C. Clinical Trials (Phases I-IV)", [
        "Phase I: Manage first-in-human studies - dose escalation, safety, and pharmacokinetics in healthy volunteers.",
        "Phase II: Monitor drug efficacy and dose-response in small patient groups.",
        "Phase III: Oversee large-scale randomized controlled trials for efficacy and safety comparison.",
        "Phase IV: Conduct post-marketing surveillance studies after drug approval.",
        "Manage investigational drug supply - storage, dispensing, accountability, and destruction.",
        "Act as Clinical Research Associate (CRA) or Clinical Research Coordinator (CRC).",
    ]),
    ("D. Pharmacokinetic & Pharmacodynamic Research", [
        "Develop and validate analytical methods (HPLC, LC-MS/MS) to measure drug levels in biological samples.",
        "Build PK/PD models to predict optimal dosing regimens for different patient populations.",
        "Conduct bioavailability and bioequivalence studies - essential for generic drug approvals.",
        "Perform TDM (Therapeutic Drug Monitoring) research for narrow therapeutic index drugs.",
    ]),
    ("E. Publication & Scientific Communication", [
        "Write and publish research papers in peer-reviewed journals (PubMed-indexed).",
        "Prepare systematic reviews and meta-analyses on drug therapies.",
        "Present findings at national and international pharmacy/pharmacology conferences.",
        "File patents for novel formulations, drug delivery systems, or manufacturing processes.",
    ]),
]

for title, bullets in research_sections:
    story.append(sub2_header(title))
    for b in bullets:
        story.append(bullet(b))
    story.append(Spacer(1, 0.1*cm))

story.append(note("Clinical trial phases I-IV is a very common exam topic. Remember: I = Safety, II = Efficacy (small), III = Efficacy (large/comparison), IV = Post-marketing."))
story.append(Spacer(1, 0.3*cm))

# ════════════════════════════════════════════════════════════════════════
# III. ACADEMICS
# ════════════════════════════════════════════════════════════════════════
story.append(PageBreak())
story.append(section_header("III", "Role in Academics"))
story.append(Spacer(1, 0.2*cm))
story.append(body_para(
    "Pharmacists in academia shape the next generation of pharmacy professionals. "
    "They combine teaching, research, and service to advance the pharmacy profession."
))
story.append(Spacer(1, 0.2*cm))

academics_sections = [
    ("A. Teaching & Lecturing", [
        "Teach undergraduate (B.Pharm), postgraduate (M.Pharm), and doctoral (Ph.D) students.",
        "Cover subjects: Pharmacology, Pharmaceutics, Pharmaceutical Chemistry, Pharmacy Practice, Pharmacognosy, Clinical Pharmacy.",
        "Deliver lectures, conduct practicals/labs, organize seminars and workshops.",
        "Use modern teaching tools: problem-based learning (PBL), case studies, simulation labs.",
    ]),
    ("B. Curriculum Development", [
        "Design and update syllabus content in line with PCI (Pharmacy Council of India) guidelines.",
        "Integrate new advances in pharmacotherapy and clinical practice into the curriculum.",
        "Develop case-based learning modules, MCQ banks, and study materials.",
        "Periodically revise curriculum to reflect changes in drug approvals and treatment guidelines.",
    ]),
    ("C. Student Mentorship & Supervision", [
        "Guide students in final-year projects, dissertations, and research work.",
        "Supervise M.Pharm and Ph.D scholars as thesis guide/co-guide.",
        "Mentor students for competitive exams (GPAT, NIPER JEE, USMLE for PharmD).",
        "Provide career guidance for students exploring industry, hospital, or research pathways.",
    ]),
    ("D. Research in Academia", [
        "Conduct funded research projects supported by DST, ICMR, DBT, CSIR, or UGC.",
        "Publish findings in indexed journals, building the institution's research output.",
        "File patents for novel formulations or drug delivery systems.",
        "Establish inter-institutional and industry-academia collaborations.",
    ]),
    ("E. Continuing Pharmacy Education (CPE)", [
        "Organize CMEs (Continuing Medical Education) and CPE programs for practicing pharmacists.",
        "Collaborate with industries, hospitals, and government bodies for skill development workshops.",
        "Update practicing pharmacists about new drugs, treatment guidelines, and technologies.",
        "Conduct training programs for pharmacy technicians and paramedical staff.",
    ]),
    ("F. Administrative Roles", [
        "Serve as HOD (Head of Department), Dean, or Principal of pharmacy institutions.",
        "Handle accreditation processes: NAAC, NBA, and PCI inspections.",
        "Manage institutional regulatory compliance and maintain academic standards.",
        "Represent the institution in professional bodies like IPA (Indian Pharmaceutical Association).",
    ]),
]

for title, bullets in academics_sections:
    story.append(sub2_header(title))
    for b in bullets:
        story.append(bullet(b))
    story.append(Spacer(1, 0.1*cm))

story.append(exam_tip("'What is CPE / CME?' - CPE stands for Continuing Pharmacy Education; it ensures practicing pharmacists stay updated with advances in drug therapy throughout their careers."))
story.append(Spacer(1, 0.3*cm))

# ════════════════════════════════════════════════════════════════════════
# IV. HOSPITALS
# ════════════════════════════════════════════════════════════════════════
story.append(PageBreak())
story.append(section_header("IV", "Role in Hospitals"))
story.append(Spacer(1, 0.2*cm))
story.append(body_para(
    "Hospital pharmacy is the core of Pharmacy Practice. The hospital pharmacist is an integral member of the "
    "multidisciplinary healthcare team. This is the most detailed and exam-heavy section of Pharmacy Practice Sem 7."
))
story.append(Spacer(1, 0.2*cm))

hospital_sections = [
    ("A. Drug Dispensing", [
        "Dispense inpatient (ward) and outpatient prescriptions accurately and promptly.",
        "Verify prescriptions for completeness, legibility, correct dose, route, and frequency.",
        "Manage unit-dose dispensing (UDD) - individual patient doses packed per administration.",
        "Maintain floor stock and ward stock with proper inventory management.",
        "Implement barcode-assisted dispensing to reduce medication errors.",
    ]),
    ("B. Clinical Pharmacy Services", [
        "Participate in medical ward rounds alongside doctors and nurses.",
        "Conduct Medication Therapy Management (MTM) - reviewing each patient's complete drug regimen.",
        "Identify and resolve Drug-Related Problems (DRPs): subtherapeutic dosing, drug-drug interactions, drug-disease contraindications, unnecessary medications.",
        "Perform Therapeutic Drug Monitoring (TDM) for narrow therapeutic index drugs: digoxin, vancomycin, phenytoin, lithium, aminoglycosides.",
        "Provide dosing recommendations for patients with renal/hepatic impairment.",
        "Contribute to patient care plans and document interventions in medical records.",
    ]),
    ("C. Drug Information Services", [
        "Run a Drug Information Centre (DIC) to answer drug-related queries from doctors, nurses, and patients.",
        "Provide information on drug dose, interactions, adverse effects, storage, and availability.",
        "Maintain and update hospital drug formulary - the approved list of drugs for hospital use.",
        "Prepare drug monographs, drug bulletins, and newsletters for the healthcare team.",
        "Access databases like Micromedex, Lexicomp, UpToDate, and WHO drug information.",
    ]),
    ("D. Pharmacovigilance", [
        "Monitor, detect, assess, and report Adverse Drug Reactions (ADRs) in hospital settings.",
        "Use the WHO-Uppsala Monitoring Centre (UMC) causality assessment scale to evaluate ADRs.",
        "Submit ADR reports to the National Pharmacovigilance Programme (PvPI) coordinated by CDSCO.",
        "Educate healthcare staff about identifying, documenting, and reporting ADRs.",
        "Maintain ADR data for hospital-level trend analysis and formulary decisions.",
    ]),
    ("E. Medication Reconciliation", [
        "At admission: compile a complete, accurate list of the patient's current home medications (BPMH - Best Possible Medication History).",
        "At transfer: compare and reconcile medications when a patient moves between wards or units.",
        "At discharge: compare discharge medications with admission medications; resolve discrepancies.",
        "Prevent medication errors due to omissions, duplications, dosing changes, or drug interactions.",
    ]),
    ("F. Sterile Preparations & Compounding", [
        "Prepare IV admixtures, chemotherapy doses (cytotoxics/hazardous drugs) under laminar airflow hoods in a clean room.",
        "Prepare Total Parenteral Nutrition (TPN) solutions with appropriate electrolytes, vitamins, and nutrients.",
        "Compound specialized formulations not commercially available (e.g., pediatric oral liquids from adult tablets).",
        "Ensure aseptic technique and sterility assurance through environmental monitoring and sterility testing.",
    ]),
    ("G. Formulary Management & P&T Committee", [
        "Develop and maintain the hospital drug formulary using evidence-based criteria.",
        "Evaluate new drugs for addition to the formulary based on safety, efficacy, and cost-effectiveness.",
        "Participate in or chair the Pharmacy and Therapeutics (P&T) Committee.",
        "Conduct drug use evaluations (DUEs) to assess appropriateness of drug therapy in the hospital.",
    ]),
    ("H. Antibiotic Stewardship Program (ASP)", [
        "Implement hospital antibiotic stewardship programs to prevent antimicrobial resistance (AMR).",
        "Review antibiotic prescriptions for appropriate drug selection, dose, route, and duration.",
        "Recommend de-escalation from broad-spectrum to narrow-spectrum antibiotics when possible.",
        "Monitor antibiograms (local resistance patterns) and advise empiric antibiotic therapy.",
        "Educate prescribers on rational antibiotic use and infection prevention.",
    ]),
    ("I. Patient Counseling at Discharge", [
        "Counsel patients on all discharge medications: dose, timing, frequency, storage, and side effects.",
        "Explain drug-drug and drug-food interactions relevant to prescribed medications.",
        "Provide written medication summaries, especially for polypharmacy patients.",
        "Emphasize medication adherence - especially for chronic disease patients (hypertension, diabetes, epilepsy).",
        "Arrange follow-up appointments and educate on warning signs requiring urgent medical attention.",
    ]),
]

for title, bullets in hospital_sections:
    story.append(sub2_header(title))
    for b in bullets:
        story.append(bullet(b))
    story.append(Spacer(1, 0.1*cm))

story.append(note("TDM Drugs to remember: Digoxin, Vancomycin, Phenytoin, Lithium, Carbamazepine, Aminoglycosides (gentamicin), Cyclosporine, Theophylline."))
story.append(Spacer(1, 0.2*cm))
story.append(exam_tip("'What is a P&T Committee?' - Pharmacy and Therapeutics Committee decides which drugs go into the hospital formulary. Pharmacist plays a key role in evidence review and recommendations."))
story.append(Spacer(1, 0.3*cm))

# ════════════════════════════════════════════════════════════════════════
# V. COMMUNITY PHARMACY
# ════════════════════════════════════════════════════════════════════════
story.append(PageBreak())
story.append(section_header("V", "Role in Community Pharmacy"))
story.append(Spacer(1, 0.2*cm))
story.append(body_para(
    "The community pharmacist is the most accessible healthcare provider - often the first and most frequent "
    "point of contact for the general public. Nine in 10 people live within 5 km of a community pharmacy."
))
story.append(Spacer(1, 0.2*cm))

community_sections = [
    ("A. Prescription Dispensing", [
        "Receive, verify, and dispense prescription medications accurately.",
        "Screen prescriptions for drug-drug interactions, drug-food interactions, and contraindications.",
        "Check dose appropriateness and clarify with the prescriber if needed.",
        "Maintain dispensing records and prescription registers as required under Drugs & Cosmetics Act.",
        "Implement dispensing software with drug interaction alerts and clinical decision support.",
    ]),
    ("B. OTC Drug Management", [
        "Advise patients on self-medication with OTC products for minor ailments (cold, fever, headache, acidity, allergies).",
        "Prevent OTC drug misuse - especially with analgesics, antihistamines, and cough syrups.",
        "Educate patients about maximum OTC doses and duration limits.",
        "Recommend appropriate OTC alternatives when a prescribed drug is unavailable.",
    ]),
    ("C. Patient Counseling", [
        "Counsel every patient on how to take the medicine (with/without food, time of day).",
        "Explain side effects to expect and how to manage them (e.g., take metronidazole with food).",
        "Advise on proper storage: room temperature, refrigeration, protection from light and moisture.",
        "Warn about specific drug interactions: warfarin-aspirin, metformin-alcohol, MAOIs-tyramine-rich foods.",
        "Provide written instructions for elderly, pediatric caregivers, or patients with low health literacy.",
    ]),
    ("D. Health Screening & Wellness Services", [
        "Offer point-of-care screening services: blood pressure measurement, blood glucose testing, BMI assessment.",
        "Conduct cholesterol screening, INR monitoring (for warfarin patients), and pregnancy tests.",
        "Identify at-risk individuals and refer them to physicians for further evaluation and management.",
        "Provide smoking cessation counseling and nicotine replacement therapy.",
        "Advise on weight management, diet, and lifestyle modification for chronic disease prevention.",
    ]),
    ("E. Chronic Disease Management", [
        "Counsel and monitor patients with diabetes: correct use of insulin, blood glucose monitoring technique, hypoglycemia management.",
        "Hypertension: adherence to antihypertensives, home BP monitoring, dietary sodium restriction.",
        "Asthma/COPD: proper inhaler technique (MDI, DPI, spacer use), trigger avoidance.",
        "Epilepsy: importance of strict dose timing, missed dose protocol, drug interactions with AEDs.",
        "Set up Medication Adherence Programs (MAPs) with follow-up calls and pill organizers.",
    ]),
    ("F. Drug Abuse Prevention", [
        "Prevent prescription forgery and overuse of controlled substances (opioids, benzodiazepines, stimulants).",
        "Monitor prescription patterns for signs of drug-seeking behavior.",
        "Participate in drug de-addiction awareness programs and needle exchange services.",
        "Report suspected misuse or drug diversion to appropriate authorities.",
    ]),
    ("G. Referral System", [
        "Recognize symptoms indicating an emergency or serious illness: chest pain, stroke symptoms, severe allergic reactions.",
        "Refer patients appropriately to GPs, specialists, or emergency departments without delay.",
        "Act as the gateway to the healthcare system - especially in rural and underserved areas.",
        "Provide first-aid advice and oral rehydration therapy (ORS) for gastroenteritis cases.",
    ]),
    ("H. Public Health & Community Education", [
        "Conduct health camps and awareness drives: rational antibiotic use, avoiding self-medication.",
        "Advise on proper disposal of unused and expired medicines (environmental protection).",
        "Promote awareness on vaccine-preventable diseases and immunization schedules.",
        "Collaborate with NGOs and government health programs (NRHM, Ayushman Bharat, Jan Aushadhi).",
        "Participate in national public health campaigns: World Health Day, No Tobacco Day, World Diabetes Day.",
    ]),
]

for title, bullets in community_sections:
    story.append(sub2_header(title))
    for b in bullets:
        story.append(bullet(b))
    story.append(Spacer(1, 0.1*cm))

story.append(exam_tip("'What is Jan Aushadhi?' - Pradhan Mantri Bhartiya Janaushadhi Pariyojana (PMBJP) - government scheme providing quality generic medicines at affordable prices through Jan Aushadhi Kendras."))
story.append(Spacer(1, 0.3*cm))

# ════════════════════════════════════════════════════════════════════════
# SUMMARY TABLE
# ════════════════════════════════════════════════════════════════════════
story.append(PageBreak())
header_data = [[Paragraph("QUICK REVISION - SUMMARY TABLE", S("sumtitle",
    fontSize=13, fontName="Helvetica-Bold", textColor=WHITE, alignment=TA_CENTER))]]
ht = Table(header_data, colWidths=[doc.width])
ht.setStyle(TableStyle([
    ("BACKGROUND",    (0,0), (-1,-1), DARK_BLUE),
    ("TOPPADDING",    (0,0), (-1,-1), 10),
    ("BOTTOMPADDING", (0,0), (-1,-1), 10),
]))
story.append(ht)
story.append(Spacer(1, 0.3*cm))

table_data = [
    [Paragraph("<b>Setting</b>", S("th", fontSize=10, fontName="Helvetica-Bold", textColor=WHITE)),
     Paragraph("<b>Primary Function</b>", S("th", fontSize=10, fontName="Helvetica-Bold", textColor=WHITE)),
     Paragraph("<b>Key Keywords</b>", S("th", fontSize=10, fontName="Helvetica-Bold", textColor=WHITE))],
    [Paragraph("INDUSTRY", S("tc", fontSize=9.5, fontName="Helvetica-Bold", textColor=MED_BLUE)),
     Paragraph("Drug manufacturing, QC/QA, Regulatory affairs, Drug safety", body),
     Paragraph("GMP, CDSCO, QC, QA, GCP, Pharmacovigilance, PSUR", body)],
    [Paragraph("RESEARCH", S("tc", fontSize=9.5, fontName="Helvetica-Bold", textColor=MED_BLUE)),
     Paragraph("Drug discovery, Preclinical & clinical trials, PK/PD studies", body),
     Paragraph("SAR, ADME, Phase I-IV, CRA, Bioequivalence, TDM", body)],
    [Paragraph("ACADEMICS", S("tc", fontSize=9.5, fontName="Helvetica-Bold", textColor=MED_BLUE)),
     Paragraph("Teaching, Mentoring, Research, Curriculum, CPE", body),
     Paragraph("PCI, GPAT, CME, CPE, NAAC, NBA, IPA", body)],
    [Paragraph("HOSPITAL", S("tc", fontSize=9.5, fontName="Helvetica-Bold", textColor=MED_BLUE)),
     Paragraph("Clinical pharmacy, Dispensing, DIC, PV, Stewardship", body),
     Paragraph("TDM, DRP, MTM, ASP, P&T Committee, ADR, PvPI, TPN", body)],
    [Paragraph("COMMUNITY", S("tc", fontSize=9.5, fontName="Helvetica-Bold", textColor=MED_BLUE)),
     Paragraph("OTC dispensing, Counseling, Health screening, Public health", body),
     Paragraph("OTC, MAPs, Jan Aushadhi, NRHM, Ayushman Bharat, ORS", body)],
]

summary_table = Table(table_data, colWidths=[3.5*cm, 7.5*cm, doc.width - 11*cm])
summary_table.setStyle(TableStyle([
    ("BACKGROUND",    (0,0), (-1,0), MED_BLUE),
    ("BACKGROUND",    (0,1), (-1,1), LIGHT_BLUE),
    ("BACKGROUND",    (0,2), (-1,2), WHITE),
    ("BACKGROUND",    (0,3), (-1,3), LIGHT_BLUE),
    ("BACKGROUND",    (0,4), (-1,4), WHITE),
    ("BACKGROUND",    (0,5), (-1,5), LIGHT_BLUE),
    ("TOPPADDING",    (0,0), (-1,-1), 7),
    ("BOTTOMPADDING", (0,0), (-1,-1), 7),
    ("LEFTPADDING",   (0,0), (-1,-1), 8),
    ("RIGHTPADDING",  (0,0), (-1,-1), 8),
    ("VALIGN",        (0,0), (-1,-1), "TOP"),
    ("GRID",          (0,0), (-1,-1), 0.5, MID_GRAY),
    ("ROWBACKGROUNDS",(0,1), (-1,-1), [LIGHT_BLUE, WHITE]),
]))
story.append(summary_table)
story.append(Spacer(1, 0.5*cm))

# ════════════════════════════════════════════════════════════════════════
# MCQ SECTION
# ════════════════════════════════════════════════════════════════════════
mcq_header_data = [[Paragraph("MCQ PRACTICE - EXAM STYLE QUESTIONS", S("mcqtitle",
    fontSize=13, fontName="Helvetica-Bold", textColor=WHITE, alignment=TA_CENTER))]]
mcqht = Table(mcq_header_data, colWidths=[doc.width])
mcqht.setStyle(TableStyle([
    ("BACKGROUND",    (0,0), (-1,-1), GREEN),
    ("TOPPADDING",    (0,0), (-1,-1), 10),
    ("BOTTOMPADDING", (0,0), (-1,-1), 10),
]))
story.append(mcqht)
story.append(Spacer(1, 0.3*cm))

mcqs = [
    ("1. A pharmacist working in the QA department of a pharmaceutical company is primarily responsible for:",
     ["a) Testing finished drug products in the laboratory",
      "b) Developing and maintaining quality management systems and auditing",
      "c) Manufacturing drugs on a large scale",
      "d) Filing drug registration with CDSCO"],
     "Answer: (b) - QA maintains the quality system; QC does the actual product testing."),

    ("2. Which phase of clinical trials is conducted in healthy volunteers to assess safety and pharmacokinetics?",
     ["a) Phase II", "b) Phase III", "c) Phase I", "d) Phase IV"],
     "Answer: (c) - Phase I is first-in-human, conducted in healthy volunteers for safety and PK."),

    ("3. Therapeutic Drug Monitoring (TDM) is most important for which of the following?",
     ["a) Amoxicillin", "b) Paracetamol", "c) Phenytoin", "d) Metformin"],
     "Answer: (c) - Phenytoin has a narrow therapeutic index and requires TDM to avoid toxicity."),

    ("4. The Pharmacy and Therapeutics (P&T) Committee in a hospital is responsible for:",
     ["a) Managing hospital finances",
      "b) Developing and maintaining the hospital drug formulary",
      "c) Conducting clinical trials",
      "d) Prescribing medications to patients"],
     "Answer: (b) - P&T Committee manages the drug formulary based on safety, efficacy, and cost."),

    ("5. Pradhan Mantri Bhartiya Janaushadhi Pariyojana (PMBJP) is related to:",
     ["a) Free surgical services in government hospitals",
      "b) Providing quality generic medicines at affordable prices",
      "c) Drug rehabilitation program",
      "d) National immunization program"],
     "Answer: (b) - Jan Aushadhi Kendras provide affordable generic medicines under PMBJP."),

    ("6. In hospital pharmacy, BPMH stands for:",
     ["a) Best Possible Medical History",
      "b) Best Possible Medication History",
      "c) Basic Pharmacist Medication Handbook",
      "d) Bedside Patient Medication History"],
     "Answer: (b) - BPMH (Best Possible Medication History) is compiled during medication reconciliation at admission."),

    ("7. Antibiotic Stewardship Programs (ASP) in hospitals primarily aim to:",
     ["a) Increase the use of broad-spectrum antibiotics",
      "b) Reduce hospital drug costs only",
      "c) Prevent antimicrobial resistance and optimize antibiotic use",
      "d) Replace all generic antibiotics with branded ones"],
     "Answer: (c) - ASP optimizes antibiotic selection, dose, and duration to prevent AMR."),

    ("8. A pharmacist conducting SAR (Structure-Activity Relationship) studies is involved in:",
     ["a) Community pharmacy",
      "b) Hospital drug information",
      "c) Drug discovery research",
      "d) Clinical trial phase III"],
     "Answer: (c) - SAR studies are performed in drug discovery to optimize molecular structures."),
]

for q, options, answer in mcqs:
    story.append(Paragraph(q, mcq_q))
    for opt in options:
        story.append(Paragraph(opt, mcq_a))
    story.append(Paragraph(answer, mcq_ans))

# ════════════════════════════════════════════════════════════════════════
# IMPORTANT ABBREVIATIONS
# ════════════════════════════════════════════════════════════════════════
story.append(PageBreak())
abbr_header = [[Paragraph("IMPORTANT ABBREVIATIONS & FULL FORMS", S("abbrtitle",
    fontSize=13, fontName="Helvetica-Bold", textColor=WHITE, alignment=TA_CENTER))]]
abbrht = Table(abbr_header, colWidths=[doc.width])
abbrht.setStyle(TableStyle([
    ("BACKGROUND",    (0,0), (-1,-1), colors.HexColor("#6A1B9A")),
    ("TOPPADDING",    (0,0), (-1,-1), 10),
    ("BOTTOMPADDING", (0,0), (-1,-1), 10),
]))
story.append(abbrht)
story.append(Spacer(1, 0.3*cm))

abbr_data = [
    [Paragraph("<b>Abbreviation</b>", S("th2", fontSize=9.5, fontName="Helvetica-Bold", textColor=WHITE)),
     Paragraph("<b>Full Form</b>", S("th2", fontSize=9.5, fontName="Helvetica-Bold", textColor=WHITE)),
     Paragraph("<b>Context</b>", S("th2", fontSize=9.5, fontName="Helvetica-Bold", textColor=WHITE))],
    ["GMP", "Good Manufacturing Practices", "Industry"],
    ["QC / QA", "Quality Control / Quality Assurance", "Industry"],
    ["CDSCO", "Central Drugs Standard Control Organisation", "Regulatory (India)"],
    ["PSUR", "Periodic Safety Update Report", "Pharmacovigilance"],
    ["ADME", "Absorption, Distribution, Metabolism, Excretion", "Research / PK"],
    ["SAR", "Structure-Activity Relationship", "Drug Discovery"],
    ["CRA / CRC", "Clinical Research Associate / Coordinator", "Clinical Trials"],
    ["TDM", "Therapeutic Drug Monitoring", "Hospital Pharmacy"],
    ["DRP", "Drug-Related Problem", "Clinical Pharmacy"],
    ["MTM", "Medication Therapy Management", "Hospital/Community"],
    ["ASP", "Antibiotic Stewardship Program", "Hospital Pharmacy"],
    ["P&T", "Pharmacy and Therapeutics Committee", "Hospital Pharmacy"],
    ["DIC", "Drug Information Centre", "Hospital Pharmacy"],
    ["TPN", "Total Parenteral Nutrition", "Hospital Pharmacy"],
    ["PvPI", "Pharmacovigilance Programme of India", "Pharmacovigilance"],
    ["ADR", "Adverse Drug Reaction", "Pharmacovigilance"],
    ["BPMH", "Best Possible Medication History", "Medication Reconciliation"],
    ["CPE", "Continuing Pharmacy Education", "Academics"],
    ["PCI", "Pharmacy Council of India", "Academics/Regulation"],
    ["MAPs", "Medication Adherence Programs", "Community Pharmacy"],
    ["OTC", "Over-The-Counter", "Community Pharmacy"],
    ["PMBJP", "Pradhan Mantri Bhartiya Janaushadhi Pariyojana", "Community/Govt"],
    ["AMR", "Antimicrobial Resistance", "Antibiotic Stewardship"],
    ["IPA", "Indian Pharmaceutical Association", "Professional Body"],
]

formatted_abbr = []
for i, row in enumerate(abbr_data):
    if i == 0:
        formatted_abbr.append(row)
    else:
        formatted_abbr.append([
            Paragraph(row[0], S(f"ac{i}", fontSize=9, fontName="Helvetica-Bold", textColor=MED_BLUE)),
            Paragraph(row[1], body),
            Paragraph(row[2], S(f"ctx{i}", fontSize=9, fontName="Helvetica-Oblique", textColor=GREEN)),
        ])

abbr_table = Table(formatted_abbr, colWidths=[3*cm, 9.5*cm, doc.width - 12.5*cm])
abbr_table.setStyle(TableStyle([
    ("BACKGROUND",    (0,0), (-1,0), colors.HexColor("#6A1B9A")),
    ("ROWBACKGROUNDS",(0,1), (-1,-1), [LIGHT_BLUE, WHITE]),
    ("TOPPADDING",    (0,0), (-1,-1), 5),
    ("BOTTOMPADDING", (0,0), (-1,-1), 5),
    ("LEFTPADDING",   (0,0), (-1,-1), 8),
    ("RIGHTPADDING",  (0,0), (-1,-1), 8),
    ("VALIGN",        (0,0), (-1,-1), "TOP"),
    ("GRID",          (0,0), (-1,-1), 0.4, MID_GRAY),
]))
story.append(abbr_table)
story.append(Spacer(1, 0.5*cm))

# ════════════════════════════════════════════════════════════════════════
# MIND MAP / FLOW DIAGRAM (text-based)
# ════════════════════════════════════════════════════════════════════════
mindmap_header = [[Paragraph("MIND MAP - ROLE OF PHARMACIST", S("mmtitle",
    fontSize=13, fontName="Helvetica-Bold", textColor=WHITE, alignment=TA_CENTER))]]
mmht = Table(mindmap_header, colWidths=[doc.width])
mmht.setStyle(TableStyle([
    ("BACKGROUND",    (0,0), (-1,-1), ACCENT),
    ("TOPPADDING",    (0,0), (-1,-1), 10),
    ("BOTTOMPADDING", (0,0), (-1,-1), 10),
]))
story.append(mmht)
story.append(Spacer(1, 0.3*cm))

mind_map_data = [
    ["INDUSTRY", "Manufacturing → QC/QA → Regulatory → Pharmacovigilance → Marketing"],
    ["RESEARCH", "Drug Discovery → Preclinical → Clinical Trials (I-IV) → PK/PD → Publication"],
    ["ACADEMICS", "Teaching → Curriculum → Mentorship → Research → CPE → Admin Roles"],
    ["HOSPITAL", "Dispensing → Clinical Pharmacy → Drug Info → PV → TDM → ASP → Counseling"],
    ["COMMUNITY", "Dispensing → OTC → Counseling → Screening → Chronic Mgmt → Public Health"],
]

colours_mm = [MED_BLUE, GREEN, colors.HexColor("#6A1B9A"), RED, ACCENT]
text_cols = [WHITE, WHITE, WHITE, WHITE, DARK_BLUE]

for idx, (role, flow) in enumerate(mind_map_data):
    row = [[
        Paragraph(role, S(f"mm_r{idx}", fontSize=10, fontName="Helvetica-Bold",
                  textColor=text_cols[idx], alignment=TA_CENTER)),
        Paragraph(flow, S(f"mm_f{idx}", fontSize=9, fontName="Helvetica",
                  textColor=TEXT_DARK, leading=13)),
    ]]
    rt = Table(row, colWidths=[3*cm, doc.width - 3*cm])
    rt.setStyle(TableStyle([
        ("BACKGROUND",    (0,0), (0,0), colours_mm[idx]),
        ("BACKGROUND",    (1,0), (1,0), LIGHT_GRAY),
        ("TOPPADDING",    (0,0), (-1,-1), 8),
        ("BOTTOMPADDING", (0,0), (-1,-1), 8),
        ("LEFTPADDING",   (0,0), (-1,-1), 8),
        ("RIGHTPADDING",  (0,0), (-1,-1), 8),
        ("VALIGN",        (0,0), (-1,-1), "MIDDLE"),
        ("BOX",           (0,0), (-1,-1), 0.5, MID_GRAY),
    ]))
    story.append(rt)
    story.append(Spacer(1, 0.12*cm))

# ════════════════════════════════════════════════════════════════════════
# FOOTER NOTE
# ════════════════════════════════════════════════════════════════════════
story.append(Spacer(1, 0.5*cm))
story.append(HRFlowable(width="100%", thickness=1, color=MID_GRAY))
story.append(Spacer(1, 0.2*cm))
footer_data = [[
    Paragraph(
        "Pharmacy Practice - Semester 7  |  B.Pharm Study Guide  |  Role of Pharmacist  |  Prepared for Exam Preparation",
        S("footer", fontSize=8, fontName="Helvetica-Oblique", textColor=colors.gray, alignment=TA_CENTER)
    )
]]
ft = Table(footer_data, colWidths=[doc.width])
story.append(ft)

# ════════════════════════════════════════════════════════════════════════
# BUILD
# ════════════════════════════════════════════════════════════════════════
doc.build(story)
print(f"PDF created successfully: {OUTPUT}")
Running Command

cd /home/daytona/workspace/pharmacy-study-guide && python generate_pdf.py

Running Command

ls -lh /home/daytona/workspace/pharmacy-study-guide/Role_of_Pharmacist_Study_Guide.pdf

Your study guide PDF is ready! Here's what's inside:

What's in the PDF

SectionContent
Cover PageSubject, topic, and purpose badge
5 Role SectionsIndustry, Research, Academics, Hospital, Community - each fully elaborated with sub-headings
Exam TipsRed-highlighted tip boxes after each section
Important NotesGreen note boxes for key memory points (e.g., TDM drugs list)
Summary TableAll 5 roles with primary functions and key keywords at a glance
8 MCQsExam-style multiple choice questions with answers and explanations
Abbreviations Table24 important abbreviations with full forms and context
Mind MapVisual colour-coded flow of all 5 roles

Role of Pharmacist Study Guide

PDF Document · PDF


Download it, print it, and it's ready to use for your Semester 7 exam prep! Want a study guide for any other topic from your syllabus?

I have to deliver this as seminar what should i do

Asking for Preferences

Notes as well as advice on how to deliver

Asking for Preferences
Reading File
Reading File
Writing File

~/pharmacy-study-guide/generate_pptx.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Role of Pharmacist";
pres.author = "B.Pharm Semester 7";

// ── Color Palette ─────────────────────────────────────────────────────
const DARK_BLUE  = "1A3A5C";
const MED_BLUE   = "2563A8";
const LIGHT_BLUE = "D6E4F7";
const ACCENT     = "F4A81D";
const WHITE      = "FFFFFF";
const LIGHT_GRAY = "F0F4FA";
const MID_GRAY   = "CCCCCC";
const TEXT_DARK  = "1C1C1C";
const GREEN      = "1E7A44";
const LIGHT_GREEN= "D6F0E0";
const RED        = "C0392B";
const LIGHT_RED  = "FDECEA";
const PURPLE     = "6A1B9A";

// ════════════════════════════════════════════════════════════════════════
// SLIDE 1 — TITLE SLIDE
// ════════════════════════════════════════════════════════════════════════
{
  const slide = pres.addSlide();

  // Dark blue full background
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: DARK_BLUE } });

  // Accent bar top
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.18, fill: { color: ACCENT } });

  // Accent bar bottom
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 5.445, w: 10, h: 0.18, fill: { color: ACCENT } });

  // Decorative circle top-right
  slide.addShape(pres.ShapeType.ellipse, { x: 7.8, y: -0.8, w: 2.5, h: 2.5, fill: { color: MED_BLUE }, line: { color: MED_BLUE } });

  // Decorative circle bottom-left
  slide.addShape(pres.ShapeType.ellipse, { x: -0.5, y: 4.3, w: 1.8, h: 1.8, fill: { color: MED_BLUE }, line: { color: MED_BLUE } });

  // Subject label
  slide.addText("PHARMACY PRACTICE — SEMESTER 7", {
    x: 0.5, y: 1.0, w: 9, h: 0.4,
    fontSize: 11, color: ACCENT, bold: true, align: "center",
    charSpacing: 3, fontFace: "Calibri"
  });

  // Main title
  slide.addText("Role of Pharmacist", {
    x: 0.5, y: 1.55, w: 9, h: 1.1,
    fontSize: 40, color: WHITE, bold: true, align: "center", fontFace: "Calibri"
  });

  // Subtitle
  slide.addText("Industry  |  Research  |  Academics  |  Hospital  |  Community", {
    x: 0.5, y: 2.75, w: 9, h: 0.45,
    fontSize: 13, color: LIGHT_BLUE, align: "center", fontFace: "Calibri"
  });

  // Divider line
  slide.addShape(pres.ShapeType.rect, { x: 3.5, y: 3.35, w: 3, h: 0.04, fill: { color: ACCENT } });

  // Presenter info
  slide.addText("B.Pharm  |  Seminar Presentation  |  2026", {
    x: 0.5, y: 3.6, w: 9, h: 0.35,
    fontSize: 11, color: MID_GRAY, align: "center", italic: true, fontFace: "Calibri"
  });
}

// ════════════════════════════════════════════════════════════════════════
// SLIDE 2 — OVERVIEW / AGENDA
// ════════════════════════════════════════════════════════════════════════
{
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: LIGHT_GRAY } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: DARK_BLUE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.07, fill: { color: ACCENT } });

  slide.addText("Overview", {
    x: 0.4, y: 0.1, w: 9, h: 0.7,
    fontSize: 26, color: WHITE, bold: true, fontFace: "Calibri"
  });

  // 5 role cards in a row
  const roles = [
    { label: "I", title: "Industry", color: MED_BLUE },
    { label: "II", title: "Research", color: GREEN },
    { label: "III", title: "Academics", color: PURPLE },
    { label: "IV", title: "Hospital", color: RED },
    { label: "V", title: "Community", color: ACCENT },
  ];

  roles.forEach((role, i) => {
    const x = 0.3 + i * 1.9;
    const textColor = role.color === ACCENT ? TEXT_DARK : WHITE;
    slide.addShape(pres.ShapeType.rect, {
      x, y: 1.3, w: 1.7, h: 1.5,
      fill: { color: role.color }, line: { color: role.color },
      shadow: { type: "outer", blur: 5, offset: 2, angle: 45, color: "888888", opacity: 0.3 }
    });
    slide.addText(role.label, {
      x, y: 1.35, w: 1.7, h: 0.6,
      fontSize: 22, color: textColor, bold: true, align: "center", fontFace: "Calibri"
    });
    slide.addText(role.title, {
      x, y: 1.95, w: 1.7, h: 0.7,
      fontSize: 12, color: textColor, bold: true, align: "center", fontFace: "Calibri"
    });
  });

  // What is a Pharmacist?
  slide.addShape(pres.ShapeType.rect, { x: 0.3, y: 3.1, w: 9.4, h: 1.9, fill: { color: LIGHT_BLUE }, line: { color: MED_BLUE, pt: 1 } });
  slide.addText([
    { text: "What is a Pharmacist?\n", options: { bold: true, color: DARK_BLUE, fontSize: 12, breakLine: true } },
    { text: "A pharmacist is a highly trained medication expert who bridges the gap between the science of drugs and the needs of patients. They work across 5 major settings: pharmaceutical industry, research, academic institutions, hospitals, and community pharmacies.", options: { color: TEXT_DARK, fontSize: 11 } }
  ], { x: 0.5, y: 3.2, w: 9.0, h: 1.7, fontFace: "Calibri" });
}

// ════════════════════════════════════════════════════════════════════════
// SLIDE 3 — ROLE IN INDUSTRY
// ════════════════════════════════════════════════════════════════════════
{
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: WHITE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: MED_BLUE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: MED_BLUE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.06, fill: { color: ACCENT } });

  slide.addText("I.  Role in Industry", {
    x: 0.4, y: 0.08, w: 8, h: 0.72,
    fontSize: 26, color: WHITE, bold: true, fontFace: "Calibri"
  });
  slide.addText("Pharmaceutical Industry", {
    x: 0.4, y: 0.08, w: 9.3, h: 0.72,
    fontSize: 13, color: LIGHT_BLUE, align: "right", fontFace: "Calibri"
  });

  const items = [
    ["Drug Dev & Formulation", "Designs tablets, capsules, injectables; preformulation studies (solubility, stability)"],
    ["Manufacturing (GMP)", "Oversees batch production following Good Manufacturing Practices and SOPs"],
    ["QC / QA", "QC: Tests product purity & potency  |  QA: Maintains quality systems & audits"],
    ["Regulatory Affairs", "Files drug dossiers with CDSCO/FDA; manages licensing & labeling compliance"],
    ["Pharmacovigilance", "Monitors drug safety post-market; prepares PSURs; manages Risk Management Plans"],
    ["Sales & Marketing", "Works as Medical Representative, Product Manager; develops promotional materials"],
  ];

  items.forEach(([title, desc], i) => {
    const y = 1.1 + i * 0.73;
    slide.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 2.3, h: 0.6, fill: { color: LIGHT_BLUE }, line: { color: MED_BLUE, pt: 0.5 } });
    slide.addText(title, { x: 0.35, y: y + 0.03, w: 2.2, h: 0.55, fontSize: 9.5, color: MED_BLUE, bold: true, align: "center", fontFace: "Calibri", valign: "middle" });
    slide.addText(desc, { x: 2.75, y: y + 0.03, w: 7.0, h: 0.55, fontSize: 10, color: TEXT_DARK, fontFace: "Calibri", valign: "middle" });
  });

  slide.addText("Key: GMP | CDSCO | QC | QA | PSUR | Pharmacovigilance", {
    x: 0.3, y: 5.25, w: 9.4, h: 0.3,
    fontSize: 9, color: MED_BLUE, bold: true, italic: true, fontFace: "Calibri"
  });
}

// ════════════════════════════════════════════════════════════════════════
// SLIDE 4 — ROLE IN RESEARCH
// ════════════════════════════════════════════════════════════════════════
{
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: WHITE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: GREEN } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: GREEN } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.06, fill: { color: ACCENT } });

  slide.addText("II.  Role in Research", {
    x: 0.4, y: 0.08, w: 8, h: 0.72,
    fontSize: 26, color: WHITE, bold: true, fontFace: "Calibri"
  });

  // Clinical Trials phases highlight
  slide.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.05, w: 9.4, h: 0.55, fill: { color: LIGHT_GREEN }, line: { color: GREEN, pt: 1 } });
  slide.addText([
    { text: "Clinical Trial Phases:  ", options: { bold: true, color: GREEN } },
    { text: "Phase I", options: { bold: true, color: RED } },
    { text: " (Safety / Healthy Volunteers)  →  ", options: { color: TEXT_DARK } },
    { text: "Phase II", options: { bold: true, color: PURPLE } },
    { text: " (Efficacy / Small patients)  →  ", options: { color: TEXT_DARK } },
    { text: "Phase III", options: { bold: true, color: MED_BLUE } },
    { text: " (Large RCT)  →  ", options: { color: TEXT_DARK } },
    { text: "Phase IV", options: { bold: true, color: "E67E22" } },
    { text: " (Post-marketing)", options: { color: TEXT_DARK } },
  ], { x: 0.4, y: 1.08, w: 9.2, h: 0.48, fontSize: 10, fontFace: "Calibri", valign: "middle" });

  const items = [
    ["Drug Discovery", "High-throughput screening, SAR studies, in silico/computational drug design"],
    ["Preclinical Research", "In vitro & in vivo studies; ADME profiling; acute & chronic toxicity testing"],
    ["Clinical Trials (I-IV)", "Manages investigational drug supply; monitors ADRs; works as CRA/CRC"],
    ["PK/PD Studies", "Develops analytical methods (HPLC, LC-MS/MS); bioavailability & bioequivalence"],
    ["Scientific Communication", "Publishes research papers; systematic reviews; patent filing; conference presentations"],
  ];

  items.forEach(([title, desc], i) => {
    const y = 1.75 + i * 0.68;
    slide.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 2.4, h: 0.56, fill: { color: LIGHT_GREEN }, line: { color: GREEN, pt: 0.5 } });
    slide.addText(title, { x: 0.35, y: y + 0.03, w: 2.3, h: 0.5, fontSize: 9.5, color: GREEN, bold: true, align: "center", fontFace: "Calibri", valign: "middle" });
    slide.addText(desc, { x: 2.85, y: y + 0.03, w: 6.9, h: 0.5, fontSize: 10, color: TEXT_DARK, fontFace: "Calibri", valign: "middle" });
  });

  slide.addText("Key: SAR | ADME | Phase I-IV | CRA | Bioequivalence | HPLC", {
    x: 0.3, y: 5.25, w: 9.4, h: 0.3,
    fontSize: 9, color: GREEN, bold: true, italic: true, fontFace: "Calibri"
  });
}

// ════════════════════════════════════════════════════════════════════════
// SLIDE 5 — ROLE IN ACADEMICS
// ════════════════════════════════════════════════════════════════════════
{
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: WHITE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: PURPLE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: PURPLE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.06, fill: { color: ACCENT } });

  slide.addText("III.  Role in Academics", {
    x: 0.4, y: 0.08, w: 8, h: 0.72,
    fontSize: 26, color: WHITE, bold: true, fontFace: "Calibri"
  });

  const cards = [
    { title: "Teaching", desc: "Lectures B.Pharm, M.Pharm, Ph.D students in Pharmacology, Pharmaceutics, Pharmacy Practice etc." },
    { title: "Curriculum Dev", desc: "Designs syllabus per PCI guidelines; develops case-based modules, MCQ banks" },
    { title: "Mentorship", desc: "Guides project work, dissertations, Ph.D research; preps students for GPAT/NIPER" },
    { title: "Research", desc: "Funded projects (DST, ICMR, DBT); publishes in indexed journals; files patents" },
    { title: "CPE / CME", desc: "Organizes Continuing Pharmacy Education programs to update practicing pharmacists" },
    { title: "Admin Roles", desc: "Serves as HOD, Dean, or Principal; handles NAAC/NBA accreditation" },
  ];

  const cols = 3;
  cards.forEach((card, i) => {
    const col = i % cols;
    const row = Math.floor(i / cols);
    const x = 0.3 + col * 3.2;
    const y = 1.1 + row * 1.9;
    slide.addShape(pres.ShapeType.rect, {
      x, y, w: 3.0, h: 1.75,
      fill: { color: "F3EAF8" }, line: { color: PURPLE, pt: 1 }
    });
    slide.addShape(pres.ShapeType.rect, { x, y, w: 3.0, h: 0.4, fill: { color: PURPLE } });
    slide.addText(card.title, {
      x: x + 0.05, y: y + 0.04, w: 2.9, h: 0.33,
      fontSize: 11, color: WHITE, bold: true, align: "center", fontFace: "Calibri"
    });
    slide.addText(card.desc, {
      x: x + 0.1, y: y + 0.45, w: 2.8, h: 1.2,
      fontSize: 9.5, color: TEXT_DARK, fontFace: "Calibri", valign: "top"
    });
  });

  slide.addText("Key: PCI | GPAT | CME | CPE | NAAC | NBA | IPA", {
    x: 0.3, y: 5.25, w: 9.4, h: 0.3,
    fontSize: 9, color: PURPLE, bold: true, italic: true, fontFace: "Calibri"
  });
}

// ════════════════════════════════════════════════════════════════════════
// SLIDE 6 — ROLE IN HOSPITALS
// ════════════════════════════════════════════════════════════════════════
{
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: WHITE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: RED } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: RED } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.06, fill: { color: ACCENT } });

  slide.addText("IV.  Role in Hospitals", {
    x: 0.4, y: 0.08, w: 8, h: 0.72,
    fontSize: 26, color: WHITE, bold: true, fontFace: "Calibri"
  });

  const items = [
    ["Drug Dispensing", "Inpatient/outpatient prescriptions; unit-dose dispensing; barcode-assisted dispensing"],
    ["Clinical Pharmacy", "Ward rounds; Medication Therapy Management (MTM); identifies Drug-Related Problems (DRPs)"],
    ["TDM", "Monitors narrow therapeutic index drugs: Digoxin, Vancomycin, Phenytoin, Lithium"],
    ["Drug Information", "Runs Drug Information Centre (DIC); answers drug queries; updates hospital formulary"],
    ["Pharmacovigilance", "Detects & reports ADRs to PvPI (National Pharmacovigilance Programme of India)"],
    ["Med. Reconciliation", "Compiles BPMH at admission; resolves discrepancies at transfer and discharge"],
    ["Sterile Preparation", "Prepares IV admixtures, chemotherapy, TPN in laminar airflow (aseptic technique)"],
    ["Antibiotic Stewardship", "Leads ASP to prevent AMR; reviews antibiotic appropriateness; recommends de-escalation"],
  ];

  items.forEach(([title, desc], i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = 0.25 + col * 4.85;
    const y = 1.08 + row * 1.06;
    slide.addShape(pres.ShapeType.rect, { x, y, w: 4.6, h: 0.95, fill: { color: LIGHT_RED }, line: { color: RED, pt: 0.5 } });
    slide.addShape(pres.ShapeType.rect, { x, y, w: 1.7, h: 0.95, fill: { color: RED } });
    slide.addText(title, { x: x + 0.05, y: y + 0.05, w: 1.6, h: 0.85, fontSize: 9, color: WHITE, bold: true, fontFace: "Calibri", valign: "middle", align: "center" });
    slide.addText(desc, { x: x + 1.8, y: y + 0.05, w: 2.7, h: 0.85, fontSize: 8.5, color: TEXT_DARK, fontFace: "Calibri", valign: "middle" });
  });

  slide.addText("Key: TDM | DRP | MTM | ASP | P&T Committee | ADR | PvPI | TPN | BPMH", {
    x: 0.3, y: 5.25, w: 9.4, h: 0.3,
    fontSize: 9, color: RED, bold: true, italic: true, fontFace: "Calibri"
  });
}

// ════════════════════════════════════════════════════════════════════════
// SLIDE 7 — ROLE IN COMMUNITY PHARMACY
// ════════════════════════════════════════════════════════════════════════
{
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: WHITE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: "E67E22" } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: "E67E22" } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.06, fill: { color: DARK_BLUE } });

  slide.addText("V.  Role in Community Pharmacy", {
    x: 0.4, y: 0.08, w: 9, h: 0.72,
    fontSize: 26, color: WHITE, bold: true, fontFace: "Calibri"
  });

  // Stat box
  slide.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.05, w: 9.4, h: 0.5, fill: { color: "FEF3E2" }, line: { color: "E67E22", pt: 1 } });
  slide.addText([
    { text: "⭐  ", options: { fontSize: 12 } },
    { text: "Community pharmacists are the most accessible healthcare providers", options: { bold: true, color: "E67E22", fontSize: 11 } },
    { text: " — patients visit pharmacies 12x more than doctors!", options: { color: TEXT_DARK, fontSize: 11 } },
  ], { x: 0.5, y: 1.1, w: 9.0, h: 0.42, fontFace: "Calibri", valign: "middle" });

  const items = [
    ["Prescription Dispensing", "Verifies & dispenses Rx; screens interactions; maintains dispensing records"],
    ["OTC Management", "Advises on self-medication; prevents misuse of analgesics, antihistamines"],
    ["Patient Counseling", "Dose, timing, side effects, storage, drug-food interactions; written instructions"],
    ["Health Screening", "BP monitoring, blood glucose, BMI, cholesterol; refers at-risk patients to doctors"],
    ["Chronic Disease Mgmt", "Counsels diabetics (insulin use), asthmatics (inhaler technique), hypertensives"],
    ["Drug Abuse Prevention", "Prevents Rx forgery; monitors controlled substances; de-addiction awareness"],
    ["Referral System", "Recognizes emergencies; refers to GP/specialist; first gateway to healthcare"],
    ["Public Health Education", "Antibiotic awareness; medicine disposal; collaborates with Jan Aushadhi/NRHM"],
  ];

  items.forEach(([title, desc], i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = 0.25 + col * 4.85;
    const y = 1.7 + row * 0.88;
    slide.addShape(pres.ShapeType.rect, { x, y, w: 4.6, h: 0.82, fill: { color: "FEF9F0" }, line: { color: "E67E22", pt: 0.5 } });
    slide.addShape(pres.ShapeType.rect, { x, y, w: 1.9, h: 0.82, fill: { color: "E67E22" } });
    slide.addText(title, { x: x + 0.05, y: y + 0.05, w: 1.8, h: 0.72, fontSize: 8.5, color: WHITE, bold: true, fontFace: "Calibri", valign: "middle", align: "center" });
    slide.addText(desc, { x: x + 2.0, y: y + 0.05, w: 2.5, h: 0.72, fontSize: 8.5, color: TEXT_DARK, fontFace: "Calibri", valign: "middle" });
  });

  slide.addText("Key: OTC | MAPs | Jan Aushadhi | NRHM | Ayushman Bharat | AMR | PMBJP", {
    x: 0.3, y: 5.25, w: 9.4, h: 0.3,
    fontSize: 9, color: "E67E22", bold: true, italic: true, fontFace: "Calibri"
  });
}

// ════════════════════════════════════════════════════════════════════════
// SLIDE 8 — SUMMARY TABLE
// ════════════════════════════════════════════════════════════════════════
{
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: LIGHT_GRAY } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: DARK_BLUE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.07, fill: { color: ACCENT } });

  slide.addText("Quick Revision — Summary", {
    x: 0.4, y: 0.08, w: 9, h: 0.72,
    fontSize: 26, color: WHITE, bold: true, fontFace: "Calibri"
  });

  // Table
  const rows = [
    ["Setting", "Primary Function", "Must-Know Keywords"],
    ["INDUSTRY",   "Manufacturing · QC/QA · Regulatory · Drug Safety",  "GMP, CDSCO, PSUR, QC, QA"],
    ["RESEARCH",   "Drug Discovery · Preclinical · Clinical Trials",     "ADME, SAR, Phase I-IV, CRA, BE"],
    ["ACADEMICS",  "Teaching · Mentorship · Research · CPE",             "PCI, GPAT, CME, NAAC, IPA"],
    ["HOSPITAL",   "Clinical Pharmacy · TDM · Drug Info · Stewardship",  "TDM, DRP, MTM, ASP, PvPI, TPN"],
    ["COMMUNITY",  "Dispensing · Counseling · Screening · Public Health","OTC, MAPs, Jan Aushadhi, NRHM"],
  ];

  const rowColors = [DARK_BLUE, LIGHT_BLUE, WHITE, LIGHT_BLUE, WHITE, LIGHT_BLUE];
  const textColors = [WHITE, TEXT_DARK, TEXT_DARK, TEXT_DARK, TEXT_DARK, TEXT_DARK];
  const roleColors = ["", MED_BLUE, GREEN, PURPLE, RED, "E67E22"];
  const colWidths = [1.6, 4.5, 3.5];

  rows.forEach((row, ri) => {
    const y = 1.0 + ri * 0.73;
    // Row background
    slide.addShape(pres.ShapeType.rect, { x: 0.25, y, w: 9.5, h: 0.72, fill: { color: rowColors[ri] }, line: { color: MID_GRAY, pt: 0.3 } });

    row.forEach((cell, ci) => {
      const x = 0.25 + [0, 1.6, 6.1][ci];
      const isFirstCol = ci === 0;
      const isHeader = ri === 0;
      let color = isHeader ? WHITE : TEXT_DARK;
      if (isFirstCol && ri > 0) color = roleColors[ri];
      slide.addText(cell, {
        x: x + 0.05, y: y + 0.08, w: colWidths[ci] - 0.1, h: 0.55,
        fontSize: isHeader ? 11 : (isFirstCol ? 11 : 9.5),
        color, bold: isHeader || isFirstCol,
        fontFace: "Calibri", valign: "middle",
        align: isFirstCol ? "center" : "left"
      });
    });
  });
}

// ════════════════════════════════════════════════════════════════════════
// SLIDE 9 — CONCLUSION + THANK YOU
// ════════════════════════════════════════════════════════════════════════
{
  const slide = pres.addSlide();

  // Dark background
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: DARK_BLUE } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.12, fill: { color: ACCENT } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 5.505, w: 10, h: 0.12, fill: { color: ACCENT } });

  // Decorative circles
  slide.addShape(pres.ShapeType.ellipse, { x: -0.6, y: -0.6, w: 2.5, h: 2.5, fill: { color: MED_BLUE }, line: { color: MED_BLUE } });
  slide.addShape(pres.ShapeType.ellipse, { x: 8.5, y: 4.1, w: 2, h: 2, fill: { color: MED_BLUE }, line: { color: MED_BLUE } });

  slide.addText("Conclusion", {
    x: 0.5, y: 0.35, w: 9, h: 0.55,
    fontSize: 14, color: ACCENT, bold: true, align: "center", charSpacing: 3, fontFace: "Calibri"
  });

  slide.addText("Pharmacists are indispensable to modern healthcare.", {
    x: 0.5, y: 1.0, w: 9, h: 0.55,
    fontSize: 18, color: WHITE, bold: true, align: "center", fontFace: "Calibri"
  });

  // 5 conclusion chips
  const chips = [
    { text: "Industry", color: MED_BLUE },
    { text: "Research", color: GREEN },
    { text: "Academics", color: PURPLE },
    { text: "Hospital", color: RED },
    { text: "Community", color: "E67E22" },
  ];
  chips.forEach((chip, i) => {
    const x = 0.55 + i * 1.8;
    slide.addShape(pres.ShapeType.roundRect, { x, y: 1.75, w: 1.6, h: 0.5, fill: { color: chip.color }, line: { color: chip.color }, rectRadius: 0.1 });
    slide.addText(chip.text, { x, y: 1.78, w: 1.6, h: 0.45, fontSize: 11, color: WHITE, bold: true, align: "center", fontFace: "Calibri" });
  });

  slide.addText([
    { text: "The role of a pharmacist has evolved far beyond dispensing medicines.\n", options: { breakLine: true } },
    { text: "Today, pharmacists are clinicians, researchers, educators, industry experts,\nand public health advocates — all in one.", options: {} },
  ], {
    x: 1, y: 2.45, w: 8, h: 1.2,
    fontSize: 13, color: LIGHT_BLUE, align: "center", fontFace: "Calibri", italic: true
  });

  // Thank you
  slide.addShape(pres.ShapeType.rect, { x: 3.0, y: 3.85, w: 4.0, h: 0.8, fill: { color: ACCENT }, line: { color: ACCENT } });
  slide.addText("Thank You", {
    x: 3.0, y: 3.87, w: 4.0, h: 0.76,
    fontSize: 24, color: DARK_BLUE, bold: true, align: "center", fontFace: "Calibri"
  });

  slide.addText("Questions & Discussion Welcome", {
    x: 0.5, y: 4.8, w: 9, h: 0.4,
    fontSize: 12, color: MID_GRAY, align: "center", italic: true, fontFace: "Calibri"
  });
}

// ════════════════════════════════════════════════════════════════════════
// WRITE FILE
// ════════════════════════════════════════════════════════════════════════
pres.writeFile({ fileName: "/home/daytona/workspace/pharmacy-study-guide/Role_of_Pharmacist_Seminar.pptx" })
  .then(() => console.log("PPTX created successfully!"))
  .catch(err => console.error("Error:", err));
Running Command

cd /home/daytona/workspace/pharmacy-study-guide && node generate_pptx.js

Running Command

ls -lh /home/daytona/workspace/pharmacy-study-guide/

Both files are ready. Here's everything you need:

Your Seminar Files

Role of Pharmacist Seminar

Presentation · PPTX

- 9 slides, color-coded, professional design

Role of Pharmacist Study Guide

PDF Document · PDF

- Full notes, MCQs, abbreviations

What's in the PPTX (9 slides)

SlideContent
1Title slide
2Overview + 5 role cards + "What is a Pharmacist?"
3Industry (color: Blue)
4Research (color: Green) with Clinical Phases highlight
5Academics (color: Purple) - 6 card grid layout
6Hospital (color: Red) - 8-point grid
7Community Pharmacy (color: Orange)
8Summary table - all 5 roles at a glance
9Conclusion + Thank You

How to Deliver the Seminar (5-10 mins)

Structure your time:

TimeWhat to say
0:00 - 0:30Intro - "A pharmacist is not just someone who dispenses medicines. Today I'll walk you through the 5 key roles of a pharmacist."
0:30 - 1:00Overview slide - briefly name the 5 roles
1:00 - 6:30Each role ~1 min - pick 3-4 key points only, don't read every bullet
6:30 - 7:30Summary slide - "To summarize, each setting has a distinct function..."
7:30 - 8:00Conclusion - "The pharmacist's role has evolved from a dispenser to a clinician, researcher and educator."

Delivery Tips:

  1. Don't read the slides word for word - use them as prompts, speak naturally
  2. Start strong - "Did you know patients visit pharmacies 12 times more than doctors?" grabs attention
  3. Use one real example per role - e.g., "In hospital pharmacy, a pharmacist prevented a serious drug interaction between warfarin and aspirin during ward rounds"
  4. Pause after each role - gives the audience time to absorb
  5. Know your abbreviations - faculty may ask "what does TDM stand for?" during Q&A
  6. Make eye contact - don't stare at the screen; know your content
  7. Speak slowly and clearly - nervous speakers rush; consciously slow down
  8. End with confidence - "Thank you, I welcome any questions" - stand still, don't fidget

Likely Q&A questions to prepare for:

  • "What is the difference between QC and QA?"
  • "Name 4 drugs that require TDM."
  • "What is PvPI?"
  • "What does a P&T Committee do?"
  • "What is Jan Aushadhi?"
All answers are in your PDF study guide. Good luck with your seminar! 🎓
This is a shared conversation. Sign in to Orris to start your own chat.