A2G Smart
Study LibraryExam CenterLive ClassesArticlesAcademic Help

Site footer

A2G Smart

Syllabus-aligned pharmacy notes, practice tests and live classes for B.Pharm, D.Pharm and competitive exams — most notes are free.

Explore

  • Study Library
  • Exam Center
  • Live Classes
  • Articles
  • Academic Help

Information

  • About Us
  • Pricing
  • Contact Us
  • Editorial Policy

Policies

  • Privacy Policy
  • Terms of Use
  • Refund & Cancellation
  • Shipping & Delivery

Need help?

Questions about notes, tests, payments or enrolment — we reply quickly.

  • Contact us
  • a2gtrickacademy@gmail.com

© 2026 A2G Smart. All rights reserved.

Payments are processed securely by Razorpay (UPI, cards, net banking).

A2G Smart is an independent study platform and is not affiliated with PCI, UPSC, RRB or any exam-conducting body.

Back to top
    HomeLibraryWEB TECHNOLOGIES AND DATA...
    Computer Applications in Pharmacy

    Web Technologies and Databases | BP205T Unit 2

    Arvind Sharma28 Feb 2026 15 min read Faculty reviewed
    This unit introduces fundamental web technologies essential for modern pharmaceutical data management and information dissemination. We will explore the building blocks of web pages with HTML, understand data representation with XML, and style web content using CSS. A foundational understanding of programming languages, web servers, and various server products will be provided. Finally, we delve into database concepts, focusing on MySQL and MS Access, culminating in the critical application of these technologies in a Pharmacy Drug Database.

    Introduction to HTML

    What is HTML?

    HTML, or HyperText Markup Language, is the standard markup language for documents designed to be displayed in a web browser. It describes the structure of a web page semantically and originally included cues for the appearance of the document.

    Purpose and Key Features of HTML

    • Structure Web Content: HTML uses a system of tags and attributes to define the different parts of a web page, such as headings, paragraphs, lists, links, images, and tables.
    • Hyperlinking: The 'HyperText' aspect refers to the ability to link to other documents or resources, forming the basis of the World Wide Web.
    • Platform Independent: HTML documents can be viewed on any operating system with a web browser.
    • Foundation of Web Pages: Virtually every web page on the internet is built using HTML.

    Basic HTML Structure

    An HTML document is composed of nested elements, each defined by tags.

    ComponentDescriptionExample
    <!DOCTYPE html>Declaration defining document type and version (HTML5).<!DOCTYPE html>
    <html>The root element of an HTML page.<html lang="en">
    <head>Contains meta-information about the HTML document (e.g., title, character set, stylesheets).<head><title>My Page</title></head>
    <title>Sets the title of the document, appearing in the browser tab.<title>Pharmacy Info</title>
    <body>Contains all the visible content of the web page.<body>...</body>
    <h1> to <h6>Heading tags, with <h1> being the most important.<h2>Drug Categories</h2>
    <p>Defines a paragraph of text.<p>This is a paragraph.</p>
    <a>Anchor tag for creating hyperlinks.<a href="url">Link Text</a>
    <img>Embeds an image into the document.<img src="drug.jpg" alt="Drug Image">
    <ul>, <ol>, <li>Unordered list, ordered list, and list item.<ul><li>Item 1</li></ul>
    Topper Secrets: Remember that HTML primarily structures content. While it can apply some basic styling, its main role is semantic markup. Confusing HTML with a full programming language is a common trap.

    Introduction to XML

    What is XML?

    XML, or eXtensible Markup Language, is a markup language much like HTML, but designed to store and transport data, not to display data. XML tags are not predefined; they must be defined by the user.

    Purpose and Key Features of XML

    • Data Storage and Transport: XML is excellent for exchanging structured data between different applications and systems. It acts as a common format for data transfer.
    • Self-Descriptive: The tags in XML are meaningful and describe the data they contain, making the data human-readable and understandable without external schema (though schemas are often used).
    • Extensible: Users can define their own tags and document structure, making it highly flexible for various data types.
    • Platform Independent: XML data can be processed on any platform and by any programming language.

    XML vs. HTML

    FeatureHTMLXML
    PurposeDisplay data and define its appearance.Store and transport data.
    TagsPredefined tags (e.g., <p>, <h1>, <a>).User-defined tags (e.g., <drug>, <dosage>).
    Case SensitivityGenerally case-insensitive (though best practice is lowercase).Case-sensitive.
    Error HandlingMore lenient with errors.Strict error handling (well-formed documents).
    FocusHow data looks.What data is.
    Topper Secrets: XML is crucial for data exchange in healthcare and pharmaceutical industries, e.g., for electronic health records (EHR) and drug information systems. Its self-describing nature aids interoperability.

    Introduction to CSS

    What is CSS?

    CSS, or Cascading Style Sheets, is a stylesheet language used for describing the presentation of a document written in HTML (or XML). It controls the layout, colors, fonts, and overall visual appearance of web pages.

    Purpose and Key Features of CSS

    • Separate Content from Presentation: CSS allows designers to separate the content (HTML) from its visual presentation. This improves content accessibility, provides more flexibility and control in the specification of presentation characteristics, and reduces complexity in the structural content.
    • Consistent Styling: Apply consistent styles across multiple web pages from a single stylesheet.
    • Faster Page Load: By linking an external CSS file, the browser can cache the stylesheet, leading to faster loading times for subsequent pages.
    • Responsive Design: CSS is fundamental for creating web pages that adapt their layout to different screen sizes and devices.

    Types of CSS

    TypeDescriptionUsagePros & Cons
    Inline CSSStyles applied directly to an HTML element using the style attribute.<p style="color:blue; font-size:14px;">Text</p>Pro: Quick fix, specific to one element. Con: Not reusable, mixes content & style.
    Internal/Embedded CSSStyles defined within a <style> tag in the <head> section of an HTML document.<head><style>p { color:red; }</style></head>Pro: Styles apply to a single page. Con: Not reusable across multiple pages.
    External CSSStyles defined in a separate .css file and linked to the HTML document.<head><link rel="stylesheet" href="styles.css"></head>Pro: Reusable across multiple pages, clean separation. Con: Requires an extra HTTP request.

    Basic CSS Syntax

    A CSS rule consists of a selector and a declaration block.

    • Selector: Points to the HTML element you want to style (e.g., p, h1, .class, #id).
    • Declaration: Contains one or more declarations separated by semicolons, each including a property and a value (e.g., color: blue;).
    p {
    color: blue; /* Property: color, Value: blue */
    font-size: 16px;
    }

    Introduction to Programming Languages

    What are Programming Languages?

    A programming language is a formal language comprising a set of instructions that produce various kinds of output. Programming languages are used to implement algorithms and control the behavior of a machine, typically a computer.

    Categories of Programming Languages

    CategoryDescriptionExamples (Web Context)
    High-Level LanguagesCloser to human language, easier to read, write, and maintain. Requires a compiler or interpreter.Python, Java, JavaScript, PHP, C#
    Low-Level LanguagesCloser to machine code, offer direct memory management, faster execution, but harder to program.Assembly Language, Machine Code

    Programming Paradigms (Conceptual Types)

    • Procedural Programming: Organizes code into procedures or functions that perform specific tasks. Focuses on step-by-step instructions. (e.g., C, Pascal)
    • Object-Oriented Programming (OOP): Organizes code around objects, which are instances of classes. Emphasizes data and the methods that operate on that data. (e.g., Java, Python, C#, PHP, JavaScript)
    • Functional Programming: Focuses on pure functions, avoiding shared state and mutable data. (e.g., Haskell, Lisp, also supported in Python, JavaScript)
    • Scripting Languages: Often interpreted rather than compiled, designed for automating tasks or enhancing web pages. (e.g., JavaScript, Python, PHP, Ruby)

    Relevance in Web Technologies (Examples)

    • JavaScript: Essential for front-end (client-side) web development, enabling interactive and dynamic web pages. Also used for back-end (server-side) with Node.js.
    • Python: Versatile language used for web development (Django, Flask), data science, AI, and scripting.
    • PHP: Popular server-side scripting language for web development, especially for dynamic content and database interaction (e.g., WordPress).
    • Java: Used for large-scale enterprise web applications (Spring, Jakarta EE).
    Topper Secrets: For B.Pharm, focus on the 'what' and 'why' of programming languages in the web context, not deep coding. Understand JavaScript's role in client-side interactivity and the server-side role of languages like Python or PHP.

    Introduction to Web Servers

    What are Web Servers?

    A web server is a computer program that stores web content (HTML documents, images, stylesheets, scripts) and delivers web pages to clients (web browsers) upon request. It uses the Hypertext Transfer Protocol (HTTP) to communicate.

    How Web Servers Work (Request-Response Cycle)

    1. Client Request: A user types a URL into their web browser (client). The browser translates this into an HTTP request and sends it over the internet to the web server hosting that URL.
    2. DNS Resolution: The Domain Name System (DNS) translates the human-readable URL (e.g., www.example.com) into an IP address that the computer can understand.
    3. Request Processing: The web server receives the HTTP request, locates the requested resource (e.g., an HTML file, an image), and processes it.
    4. Response Delivery: The web server sends an HTTP response back to the client, which includes the requested resource (e.g., the HTML page) and an HTTP status code (e.g., 200 OK, 404 Not Found).
    5. Client Rendering: The web browser receives the response and renders the web page for the user to view.

    Common Web Server Software

    ServerDescriptionKey Features
    Apache HTTP ServerMost widely used open-source web server. Highly customizable and cross-platform.Module-based, robust, mature, large community.
    Nginx (Engine-X)High-performance web server, also acts as a reverse proxy, load balancer, and HTTP cache. Known for handling many concurrent connections efficiently.Asynchronous architecture, low memory footprint, excellent for high-traffic sites.
    Microsoft IIS (Internet Information Services)Microsoft's proprietary web server, integrated with Windows Server.Tight integration with Windows OS and .NET technologies, good for enterprise environments.
    LiteSpeed Web ServerHigh-performance Apache drop-in replacement.Faster, more scalable, good for WordPress/cPannel hosting.

    Introduction to Server Products

    Beyond basic web servers, a variety of server products are deployed to provide comprehensive backend services, supporting the complex operations of modern web applications.

    Types of Server Products

    Product TypeDescriptionExamples/Key Technologies
    Application ServersRun the business logic and dynamic content generation for web applications. They provide an environment for running server-side code (e.g., Java servlets, JSP, Python scripts).Apache Tomcat (for Java), JBoss/WildFly (for Java EE), Node.js runtime (for JavaScript), Gunicorn/uWSGI (for Python web apps).
    Database ServersHost and manage databases, allowing data storage, retrieval, and manipulation. Crucial for dynamic web content.MySQL, PostgreSQL, MongoDB, Microsoft SQL Server (covered in detail later).
    Operating Systems (Server Editions)Provide the foundational software platform on which all other server products run. Optimized for stability, security, and networking.Linux (e.g., Ubuntu Server, CentOS), Windows Server.
    Mail ServersHandle the sending, receiving, and storing of email messages.Exim, Postfix, Microsoft Exchange Server.
    FTP ServersFacilitate file transfer between clients and servers over the File Transfer Protocol.vsftpd, FileZilla Server.
    Caching ServersStore frequently accessed data temporarily to reduce database load and speed up response times.Memcached, Redis.
    Topper Secrets: Understand that a 'server' is not just a single piece of hardware but an ecosystem of specialized software (web server, application server, database server, etc.) working together to deliver a complete web service.

    Introduction to Databases

    What are Databases?

    A database is an organized collection of structured information, or data, typically stored electronically in a computer system. It is designed for efficient storage, retrieval, modification, and management of data.

    Purpose and Importance of Databases

    • Data Storage: Provides a systematic way to store vast amounts of data.
    • Data Retrieval: Allows quick and efficient access to specific data through queries.
    • Data Integrity: Ensures data is accurate, consistent, and reliable.
    • Data Security: Provides mechanisms to control access and protect sensitive information.
    • Data Sharing: Facilitates concurrent access to data by multiple users or applications.

    Database Management System (DBMS)

    A DBMS is a software system that enables users to define, create, maintain, and control access to the database. It sits between the user/application and the database itself.

    Examples: MySQL, PostgreSQL, Oracle Database, Microsoft SQL Server, MongoDB, MS Access.

    Types of Databases (Primary Classification)

    TypeDescriptionStructureExamplesUse Cases
    Relational Databases (SQL)Data stored in tables with predefined schemas. Data is organized into rows (records) and columns (fields), and relationships are defined between tables using keys.Tables (relations), rows (tuples), columns (attributes). Uses SQL for querying.MySQL, PostgreSQL, Oracle, MS SQL Server, MS Access.Transactional systems, financial records, inventory management.
    Non-Relational Databases (NoSQL)Designed to handle large volumes of unstructured, semi-structured, and rapidly changing data. Offer flexible schemas and horizontal scalability.Diverse models: key-value, document, column-family, graph.MongoDB (Document), Cassandra (Column-Family), Redis (Key-Value), Neo4j (Graph).Big data, real-time web applications, content management, social networks.

    Key Database Concepts

    • Table (Relation): A collection of related data entries organized into rows and columns.
    • Record (Row/Tuple): A single entry in a table, representing a complete set of data for an entity.
    • Field (Column/Attribute): A single piece of data for all records in a table (e.g., 'Drug Name', 'Dosage').
    • Primary Key: A column (or set of columns) in a table that uniquely identifies each record.
    • Foreign Key: A column (or set of columns) in one table that refers to the primary key in another table, establishing a relationship.

    MySQL

    What is MySQL?

    MySQL is an open-source Relational Database Management System (RDBMS). It is one of the most popular databases for web applications and is a core component of the LAMP (Linux, Apache, MySQL, PHP/Python/Perl) stack.

    Key Features of MySQL

    • Open Source: Freely available and can be modified.
    • Reliability & Scalability: Known for its stability and ability to handle large databases and high traffic.
    • Platform Compatibility: Runs on various operating systems including Windows, Linux, macOS, and many others.
    • SQL Standard: Uses Structured Query Language (SQL) for database management, a standardized language for defining and manipulating data.
    • Security: Robust security features including user access control and data encryption.
    • Connectivity: Supports various programming interfaces (APIs) for integration with different programming languages.

    Basic SQL Commands in MySQL

    SQL is used to interact with MySQL databases. Here are fundamental commands:

    Command TypeCommandDescriptionExample (Pharmacy Context)
    Data Definition Language (DDL)CREATE DATABASECreates a new database.CREATE DATABASE PharmacyDB;
    CREATE TABLECreates a new table within a database.CREATE TABLE Drugs (DrugID INT PRIMARY KEY, Name VARCHAR(255), Dosage VARCHAR(50));
    Data Manipulation Language (DML)INSERT INTOAdds new records (rows) to a table.INSERT INTO Drugs (DrugID, Name, Dosage) VALUES (1, 'Paracetamol', '500mg');
    SELECTRetrieves data from one or more tables.SELECT Name, Dosage FROM Drugs WHERE DrugID = 1;
    UPDATEModifies existing records in a table.UPDATE Drugs SET Dosage = '650mg' WHERE Name = 'Paracetamol';
    DELETE FROMRemoves records from a table.DELETE FROM Drugs WHERE DrugID = 1;
    Topper Secrets: MySQL is server-based, meaning it typically runs on a dedicated server and is accessed by multiple clients or web applications. This is a key differentiator from desktop databases like MS Access.

    MS Access

    What is MS Access?

    Microsoft Access is a Relational Database Management System (RDBMS) from Microsoft. It combines the relational Microsoft Jet Database Engine with a graphical user interface (GUI) and software development tools, making it suitable for small-scale applications and personal use.

    Key Features of MS Access

    • GUI-Based: Provides an intuitive graphical interface for creating, managing, and querying databases without extensive coding.
    • Integrated Environment: Integrates database engine, development tools, and user interface into a single application.
    • Rapid Application Development (RAD): Easy to create forms, reports, and queries quickly.
    • SQL Support: Uses a variant of SQL called Access SQL for querying data, although users often interact through the GUI.
    • Desktop-Oriented: Primarily designed for single-user or small multi-user environments. Data is often stored in a single .accdb or .mdb file.
    • Part of Microsoft Office Suite: Integrates well with other Microsoft Office applications like Excel and Word.

    Components of MS Access

    ComponentDescriptionPurpose
    TablesStores data in rows (records) and columns (fields), similar to other RDBMS.Fundamental data storage.
    QueriesUsed to retrieve, manipulate, and analyze data from one or more tables. Can be used to ask specific questions about the data.Data extraction and analysis.
    FormsGraphical interfaces for entering, viewing, and editing data in a user-friendly manner.User input and data display.
    ReportsFormatted output of data from tables or queries, suitable for printing or presentation.Data summarization and presentation.
    MacrosSimplified sets of actions that automate common tasks (e.g., opening a form, running a report).Task automation.
    ModulesVisual Basic for Applications (VBA) code used for more complex custom functionalities beyond what macros can provide.Advanced customization and programming.

    MS Access vs. MySQL (Comparison)

    FeatureMS AccessMySQL
    Purpose/ScaleDesktop database, small to medium applications, single-user/small workgroups.Server-side database, large-scale web applications, multi-user, high traffic.
    InterfaceGUI-centric, built-in forms/reports.Command-line or external GUI tools (e.g., MySQL Workbench).
    DeploymentFile-based (.accdb/.mdb), local installation.Client-server architecture, installed on a dedicated server.
    CostProprietary (part of MS Office suite).Open-source (free for most uses).
    ProgrammingVBA for advanced features.SQL for core operations, extensive API support for various languages.
    ConcurrencyLimited multi-user support, prone to issues with many concurrent writes.Designed for high concurrency, robust locking mechanisms.

    Pharmacy Drug Database

    What is a Pharmacy Drug Database?

    A Pharmacy Drug Database is a specialized, structured collection of comprehensive information about pharmaceutical products, designed to support various functions within the pharmacy and healthcare sectors.

    Key Information Stored in a Pharmacy Drug Database

    • Drug Identification:
      • Generic Name: (e.g., Paracetamol, Amoxicillin)
      • Brand Names: (e.g., Tylenol, Amoxil)
      • Drug Codes: NDC (National Drug Code), RxNorm ID, WHO ATC code.
      • Chemical Structure/Formula
    • Dosage and Administration:
      • Dosage Forms: (e.g., tablet, capsule, injection, syrup)
      • Strengths: (e.g., 500mg, 250mg/5mL)
      • Routes of Administration: (e.g., oral, intravenous, topical)
      • Recommended Dosage: (for various age groups, conditions)
    • Pharmacology:
      • Mechanism of Action
      • Pharmacokinetics: (Absorption, Distribution, Metabolism, Excretion)
      • Pharmacodynamics
    • Clinical Information:
      • Indications: (Conditions the drug treats)
      • Contraindications: (Situations where the drug should not be used)
      • Adverse Drug Reactions (ADRs)/Side Effects
      • Drug Interactions: (with other drugs, food, diseases)
      • Warnings and Precautions
      • Pregnancy and Lactation Categories
    • Supply Chain & Regulatory:
      • Manufacturer Information
      • Packaging Details
      • Pricing Information
      • Availability
      • Regulatory Status

    Applications and Importance in Pharmacy

    • Prescribing & Dispensing: Provides accurate drug information, helps prevent medication errors (e.g., wrong dose, drug-drug interactions).
    • Clinical Decision Support Systems (CDSS): Alerts prescribers to potential problems (allergies, contraindications) at the point of care.
    • Inventory Management: Tracks drug stock, expiry dates, and ordering.
    • Patient Education: Provides pharmacists with information to counsel patients effectively.
    • Research & Development: Data for drug discovery, clinical trials, and epidemiological studies.
    • Drug Information Services: Foundation for drug information centers.
    • Regulatory Compliance: Ensures adherence to national and international drug regulations.

    Examples of Pharmacy Drug Database Providers/Standards

    • RxNorm: A standardized nomenclature for clinical drugs produced by the National Library of Medicine (NLM).
    • DrugBank: A comprehensive, free-to-access online database containing information on drugs and drug targets.
    • Medispan: A commercial drug database widely used in healthcare IT systems for drug information and clinical decision support.
    • First Databank (FDB): Another leading provider of drug information and clinical decision support solutions.
    Topper Secrets: Understanding the structure and content of a Pharmacy Drug Database is a direct application of database principles. Be ready to list key data points and their importance for patient safety and efficient pharmacy operations.

    A2G Smart · a2gsmart.com

    Student Reviews

    No reviews yet

    Share your feedback and help other learners!