Sync template from atomicqms-style deployment
This commit is contained in:
85
.gitea/workflows/atomicai.yml
Normal file
85
.gitea/workflows/atomicai.yml
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
name: AtomicAI Pharmacy QMS Assistant
|
||||||
|
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
|
issues:
|
||||||
|
types: [opened, assigned]
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, assigned]
|
||||||
|
pull_request_review_comment:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
claude-assistant:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
github.actor != 'atomicqms-service' &&
|
||||||
|
(
|
||||||
|
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@atomicai') && github.event.comment.user.login != 'atomicqms-service') ||
|
||||||
|
(github.event_name == 'issues' && github.event.action == 'opened' && contains(github.event.issue.body, '@atomicai')) ||
|
||||||
|
(github.event_name == 'pull_request' && github.event.action == 'opened' && contains(github.event.pull_request.body, '@atomicai')) ||
|
||||||
|
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@atomicai') && github.event.comment.user.login != 'atomicqms-service') ||
|
||||||
|
(github.event.action == 'assigned' && github.event.assignee.login == 'atomicai')
|
||||||
|
|
||||||
|
)
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Run AtomicAI Pharmacy QMS Assistant
|
||||||
|
uses: https://beta.atomicqms.com/atomicqms-service/actions/claude-code-gitea-action-slim@main
|
||||||
|
with:
|
||||||
|
trigger_phrase: '@atomicai'
|
||||||
|
assignee_trigger: 'atomicai'
|
||||||
|
claude_git_name: 'AtomicAI'
|
||||||
|
claude_git_email: 'atomicai@atomicqms.local'
|
||||||
|
custom_instructions: |
|
||||||
|
You are AtomicAI, an AI assistant specialized in Pharmacy Quality Management.
|
||||||
|
|
||||||
|
## Your Expertise
|
||||||
|
- State Board of Pharmacy regulations
|
||||||
|
- DEA requirements for controlled substances
|
||||||
|
- FDA drug handling regulations
|
||||||
|
- USP <795> Non-Sterile Compounding
|
||||||
|
- USP <797> Sterile Compounding
|
||||||
|
- USP <800> Hazardous Drug Handling
|
||||||
|
- USP <825> Radiopharmaceuticals
|
||||||
|
- HIPAA patient privacy requirements
|
||||||
|
- Joint Commission pharmacy standards
|
||||||
|
- ACHC/URAC specialty pharmacy accreditation
|
||||||
|
|
||||||
|
## Document Creation Guidelines
|
||||||
|
- Place Dispensing SOPs in SOPs/Dispensing/
|
||||||
|
- Place Compounding SOPs in SOPs/Compounding/
|
||||||
|
- Place Controlled Substance SOPs in SOPs/Controlled-Substances/
|
||||||
|
- Place Inventory SOPs in SOPs/Inventory/
|
||||||
|
- Place Patient Safety SOPs in SOPs/Patient-Safety/
|
||||||
|
- Place General SOPs in SOPs/General/
|
||||||
|
- Place Compounding logs in Forms/Compounding-Logs/
|
||||||
|
- Place Temperature logs in Forms/Temperature-Logs/
|
||||||
|
- Place DEA forms in Forms/Controlled-Substance/
|
||||||
|
- Place Training records in Forms/Training/
|
||||||
|
|
||||||
|
## Numbering Convention
|
||||||
|
- POL-XXX for Policies
|
||||||
|
- SOP-DISP-XXX for Dispensing SOPs
|
||||||
|
- SOP-COMP-XXX for Compounding SOPs
|
||||||
|
- SOP-CS-XXX for Controlled Substance SOPs
|
||||||
|
- SOP-INV-XXX for Inventory SOPs
|
||||||
|
- SOP-SAF-XXX for Patient Safety SOPs
|
||||||
|
- SOP-GEN-XXX for General SOPs
|
||||||
|
- WI-XXX for Work Instructions
|
||||||
|
- FRM-XXX for Forms
|
||||||
|
- LOG-XXX for Logs
|
||||||
|
|
||||||
|
Always create branches and submit changes as Pull Requests for review.
|
||||||
|
Include regulatory references (USP, DEA, State Board) where applicable.
|
||||||
|
allowed_tools: 'Read,Edit,Grep,Glob,Write'
|
||||||
|
disallowed_tools: 'Bash,WebSearch'
|
||||||
0
Forms/Compounding-Logs/.gitkeep
Normal file
0
Forms/Compounding-Logs/.gitkeep
Normal file
0
Forms/Controlled-Substance/.gitkeep
Normal file
0
Forms/Controlled-Substance/.gitkeep
Normal file
0
Forms/Temperature-Logs/.gitkeep
Normal file
0
Forms/Temperature-Logs/.gitkeep
Normal file
0
Forms/Training/.gitkeep
Normal file
0
Forms/Training/.gitkeep
Normal file
0
Policies/.gitkeep
Normal file
0
Policies/.gitkeep
Normal file
83
README.md
83
README.md
@@ -1,3 +1,84 @@
|
|||||||
# pharmacy-template
|
# Pharmacy Quality Management System
|
||||||
|
|
||||||
A comprehensive QMS template designed for pharmacy operations including retail, hospital, compounding, and specialty pharmacies.
|
A comprehensive QMS template designed for pharmacy operations including retail, hospital, compounding, and specialty pharmacies.
|
||||||
|
|
||||||
|
## 💊 Designed For
|
||||||
|
|
||||||
|
- **Retail Pharmacies** - Community and chain pharmacies
|
||||||
|
- **Hospital Pharmacies** - Inpatient and outpatient pharmacy services
|
||||||
|
- **Compounding Pharmacies** - Sterile and non-sterile compounding
|
||||||
|
- **Specialty Pharmacies** - High-cost and complex medication management
|
||||||
|
- **Long-Term Care Pharmacies** - Nursing home and assisted living facilities
|
||||||
|
- **Mail Order Pharmacies** - Central fill and mail-order operations
|
||||||
|
- **Nuclear Pharmacies** - Radiopharmaceutical preparation
|
||||||
|
|
||||||
|
## 📋 Regulatory Framework
|
||||||
|
|
||||||
|
This template supports compliance with:
|
||||||
|
|
||||||
|
- **State Board of Pharmacy** regulations
|
||||||
|
- **DEA** (Drug Enforcement Administration) requirements
|
||||||
|
- **FDA** regulations for drug handling
|
||||||
|
- **USP <795>** - Non-Sterile Compounding
|
||||||
|
- **USP <797>** - Sterile Compounding
|
||||||
|
- **USP <800>** - Hazardous Drug Handling
|
||||||
|
- **USP <825>** - Radiopharmaceuticals
|
||||||
|
- **HIPAA** - Patient privacy and data protection
|
||||||
|
- **Joint Commission** - Hospital pharmacy standards
|
||||||
|
- **ACHC/URAC** - Specialty pharmacy accreditation
|
||||||
|
|
||||||
|
## Repository Structure
|
||||||
|
|
||||||
|
```
|
||||||
|
├── SOPs/
|
||||||
|
│ ├── Dispensing/ # Prescription processing & dispensing
|
||||||
|
│ ├── Compounding/ # Sterile & non-sterile compounding
|
||||||
|
│ ├── Controlled-Substances/# DEA compliance & C-II handling
|
||||||
|
│ ├── Inventory/ # Drug procurement & management
|
||||||
|
│ ├── Patient-Safety/ # Error prevention & reporting
|
||||||
|
│ └── General/ # General pharmacy operations
|
||||||
|
├── Forms/
|
||||||
|
│ ├── Compounding-Logs/ # Master formulation & batch records
|
||||||
|
│ ├── Temperature-Logs/ # Refrigerator & freezer monitoring
|
||||||
|
│ ├── Controlled-Substance/ # DEA forms & perpetual inventory
|
||||||
|
│ └── Training/ # Competency assessments
|
||||||
|
├── Policies/ # Pharmacy policies
|
||||||
|
├── Work-Instructions/ # Step-by-step procedures
|
||||||
|
└── Templates/ # Document templates
|
||||||
|
```
|
||||||
|
|
||||||
|
## 🤖 AI-Powered Assistance
|
||||||
|
|
||||||
|
This repository includes **AtomicAI**, your pharmacy QMS assistant. Mention `@atomicai` in any issue or pull request to:
|
||||||
|
|
||||||
|
- Draft pharmacy SOPs following USP guidelines
|
||||||
|
- Create compounding formulation records
|
||||||
|
- Generate controlled substance procedures
|
||||||
|
- Develop patient counseling protocols
|
||||||
|
- Review documents for regulatory compliance
|
||||||
|
|
||||||
|
### Example Prompts
|
||||||
|
|
||||||
|
- "@atomicai create an SOP for sterile compounding garbing procedures per USP 797"
|
||||||
|
- "@atomicai draft a controlled substance discrepancy investigation form"
|
||||||
|
- "@atomicai write a policy for medication error reporting"
|
||||||
|
- "@atomicai create a temperature excursion response procedure"
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
1. **Customize Policies** - Update policies in `/Policies` for your pharmacy type
|
||||||
|
2. **Adapt SOPs** - Modify SOPs to match your workflow and state requirements
|
||||||
|
3. **Set Up Logs** - Configure forms for your compounding and inventory needs
|
||||||
|
4. **Train Staff** - Use training forms to document competencies
|
||||||
|
|
||||||
|
## Key Documents to Create First
|
||||||
|
|
||||||
|
1. **Dispensing SOP** - Core prescription processing workflow
|
||||||
|
2. **Error Reporting Policy** - Patient safety foundation
|
||||||
|
3. **Controlled Substance Policy** - DEA compliance essential
|
||||||
|
4. **Compounding SOPs** - If applicable to your practice
|
||||||
|
5. **HIPAA Policy** - Patient privacy requirements
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
*This template is maintained by AtomicQMS. For questions, open an issue in this repository.*
|
||||||
|
|||||||
0
SOPs/Compounding/.gitkeep
Normal file
0
SOPs/Compounding/.gitkeep
Normal file
0
SOPs/Controlled-Substances/.gitkeep
Normal file
0
SOPs/Controlled-Substances/.gitkeep
Normal file
0
SOPs/Dispensing/.gitkeep
Normal file
0
SOPs/Dispensing/.gitkeep
Normal file
0
SOPs/General/.gitkeep
Normal file
0
SOPs/General/.gitkeep
Normal file
0
SOPs/Inventory/.gitkeep
Normal file
0
SOPs/Inventory/.gitkeep
Normal file
0
SOPs/Patient-Safety/.gitkeep
Normal file
0
SOPs/Patient-Safety/.gitkeep
Normal file
0
Templates/.gitkeep
Normal file
0
Templates/.gitkeep
Normal file
0
Work-Instructions/.gitkeep
Normal file
0
Work-Instructions/.gitkeep
Normal file
Reference in New Lab Ticket
Block a user