Drug Categories Module
Overview
The Drug Categories module is like creating folders for your medications. It helps you organize drugs into logical groups, making it easier to find, manage, and report on different types of medications in your pharmacy. Think of it as creating a "filing system" for your drug inventory.
Navigating to Drug Categories
- Look for the Inventory Management section in your left sidebar menu
- Click on Drug Categories (usually near the top)
- You'll see a list of all your existing categories
Why Use Categories?
Benefits of Organizing Drugs:
- Find drugs faster: Group similar drugs together
- Better inventory management: See how many drugs you have in each category
- Smart filtering: When adding drugs, you can easily select their category
- Professional reporting: Generate reports by category (e.g., "All Antibiotics")
Creating a New Category
Basic Information Section:
- Category Name: What you want to call this group (e.g., "Antibiotics", "Pain Relievers", "Vitamins")
- Category Code: Optional short code (e.g., "ANTIB" for Antibiotics) - useful for quick reference
Hierarchy & Ordering Section:
Parent Category:
- No Selection: Creates a main/top-level category (e.g., "Antibiotics")
- With Selection: Creates a sub-category under another category
- Example: Parent "Antibiotics" → Child "Penicillins"
- Example: Parent "Pain Relievers" → Child "NSAIDs"
Sort Order:
- Lower numbers appear first in lists
- Example:
- Antibiotics: Sort Order 10
- Pain Relievers: Sort Order 20
- Vitamins: Sort Order 30
- Antibiotics will appear first in dropdown lists
Description Section:
- Rich text editor: Add formatted descriptions
- Available formatting: Bold, Italic, Underline, Headings, Bullet Lists, Numbered Lists
- Purpose: Internal notes about when to use this category
Status Section:
- Active Toggle: ON = Available for use, OFF = Hidden from dropdowns
- Tip: Turn OFF categories you no longer use instead of deleting them
Understanding Category Structure
Flat Structure (Simple):
- All categories are main/top-level
- Example: Antibiotics, Pain Relievers, Vitamins (all independent)
Hierarchical Structure (Organized):
- Main categories with sub-categories
- Example:
Best Practice Tips:
- Start simple with main categories only
- Add sub-categories when your inventory grows
- Use consistent naming (e.g., always plural: "Antibiotics" not "Antibiotic")
- Plan your hierarchy before creating many categories
Viewing Your Categories
Main Columns Displayed:
- Category Name: Name of the category
- Code: Short code (if entered)
- Parent: Shows parent category name or "— top level —"
- Sort Order: Display order number
- Active Status: Green check if active, red X if inactive
Sorting and Searching:
- Click column headers to sort alphabetically or numerically
- Use search box to find categories by name or code
- Default sorting: By sort order, then alphabetically
How Categories Work with Drugs
When Adding Drugs:
- In the Drugs Inventory, go to "Step 2: Classification"
- Select your main category from dropdown
- Select sub-category (if applicable)
- Drug is now organized in your system
Benefits in Practice:
- Filter drugs by category in drug listings
- Quick reports: "Show me all Antibiotics stock levels"
- Better organization: Vitamins don't mix with Antibiotics
- Smarter searching: Search within a category only
Actions You Can Take
For Each Category:
👁️ View: See complete category details ✏️ Edit: Update category information 🗑️ Delete: Remove category (can be restored)
Bulk Actions:
Select multiple categories using checkboxes to: 🗑️ Delete Multiple: Remove several categories at once 🔄 Restore Deleted: Bring back removed categories 🗑️ Permanent Delete: Cannot be restored
Important Considerations
Deleting vs. Deactivating:
- Deactivate (toggle OFF): Category stays in system but hidden
- Delete: Removes category from system
- Recommendation: Always deactivate first, delete only if certain
Categories with Assigned Drugs:
- If drugs are assigned to a category, think carefully before deleting
- Consider: Where will those drugs go?
- Better to deactivate or reassign drugs first
Sort Order Strategy:
- Common categories first: Antibiotics, Pain Relievers (Sort 10, 20)
- Less common last: Specialized medications (Sort 90, 100)
- Leave gaps: Use 10, 20, 30... not 1, 2, 3 (allows inserting later)
Common Scenarios
Scenario 1: Setting Up Basic Categories for New Pharmacy
- Create main categories:
- Antibiotics (Sort 10)
- Pain Relievers (Sort 20)
- Vitamins & Supplements (Sort 30)
- First Aid (Sort 40)
- Chronic Disease (Sort 50)
- Keep all as top-level (no parents)
- Mark all as Active
- Add simple descriptions
Scenario 2: Expanding to Sub-Categories
- Existing: "Antibiotics" category
- Create new sub-categories:
- Name: "Penicillins", Parent: "Antibiotics"
- Name: "Cephalosporins", Parent: "Antibiotics"
- Name: "Macrolides", Parent: "Antibiotics"
- Update existing antibiotics to correct sub-category
Scenario 3: Discontinuing a Category
- Toggle "Active" to OFF
- Add note in description: "Discontinued as of [Date]"
- Existing drugs in this category remain assigned
- Category won't appear in new drug dropdowns
Scenario 4: Reorganizing Categories
- Edit sort orders to change display sequence
- Change parent relationships to move categories
- Update descriptions as needed
- Review all drugs in affected categories
Best Practices
Naming Conventions:
- Use clear, descriptive names: "Antibiotics" not "Med1"
- Be consistent with plurals: "Pain Relievers" not "Pain Reliever"
- Consider alphabetical order for easier scanning
- Use codes sparingly: Only if needed for reporting
Hierarchy Planning:
- Limit depth: 2 levels maximum (Parent → Child)
- Keep it simple: Too many levels becomes confusing
- Balance: Not too broad, not too specific
- Test: Create a few drugs to ensure categories work well
Maintenance Routine:
- Monthly review: Check for unused categories
- Seasonal updates: Add categories for seasonal medications
- Annual cleanup: Deactivate old, unused categories
- Before deleting: Ensure no drugs are assigned
Need Help?
Common Questions:
Q: What happens if I delete a category with drugs? A: The drugs remain in system but show "— top level —" in category field
Q: Can I change a main category to a sub-category? A: Yes! Edit the category and select a parent
Q: Why can't I see my category when adding drugs? A: Check if category is marked as Active
Q: How many categories should I create? A: Start with 5-10 main categories, add as needed
Quick Tips:
- Use search to find categories quickly
- Preview hierarchy in the table view
- Test categories with a few drugs first
- Export your list before major reorganizations
- Document changes in category descriptions
Getting Support:
- System saves automatically as you work
- No limit on number of categories
- All changes are logged for tracking
- Can restore accidentally deleted categories