From 428dc361668d73873ba9071cef99ce7fd297c32e Mon Sep 17 00:00:00 2001 From: AtomicQMS Service Date: Sat, 27 Dec 2025 11:24:16 -0500 Subject: [PATCH] Sync template from atomicqms-style deployment --- .gitea/workflows/atomicai.yml | 85 +++++++++++++++++++++++++++++ Forms/Compounding-Logs/.gitkeep | 0 Forms/Controlled-Substance/.gitkeep | 0 Forms/Temperature-Logs/.gitkeep | 0 Forms/Training/.gitkeep | 0 Policies/.gitkeep | 0 README.md | 85 ++++++++++++++++++++++++++++- SOPs/Compounding/.gitkeep | 0 SOPs/Controlled-Substances/.gitkeep | 0 SOPs/Dispensing/.gitkeep | 0 SOPs/General/.gitkeep | 0 SOPs/Inventory/.gitkeep | 0 SOPs/Patient-Safety/.gitkeep | 0 Templates/.gitkeep | 0 Work-Instructions/.gitkeep | 0 15 files changed, 168 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/atomicai.yml create mode 100644 Forms/Compounding-Logs/.gitkeep create mode 100644 Forms/Controlled-Substance/.gitkeep create mode 100644 Forms/Temperature-Logs/.gitkeep create mode 100644 Forms/Training/.gitkeep create mode 100644 Policies/.gitkeep create mode 100644 SOPs/Compounding/.gitkeep create mode 100644 SOPs/Controlled-Substances/.gitkeep create mode 100644 SOPs/Dispensing/.gitkeep create mode 100644 SOPs/General/.gitkeep create mode 100644 SOPs/Inventory/.gitkeep create mode 100644 SOPs/Patient-Safety/.gitkeep create mode 100644 Templates/.gitkeep create mode 100644 Work-Instructions/.gitkeep diff --git a/.gitea/workflows/atomicai.yml b/.gitea/workflows/atomicai.yml new file mode 100644 index 0000000..a9e839f --- /dev/null +++ b/.gitea/workflows/atomicai.yml @@ -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' diff --git a/Forms/Compounding-Logs/.gitkeep b/Forms/Compounding-Logs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Forms/Controlled-Substance/.gitkeep b/Forms/Controlled-Substance/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Forms/Temperature-Logs/.gitkeep b/Forms/Temperature-Logs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Forms/Training/.gitkeep b/Forms/Training/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Policies/.gitkeep b/Policies/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 7f109b0..20d12a8 100644 --- a/README.md +++ b/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. \ No newline at end of file +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.* diff --git a/SOPs/Compounding/.gitkeep b/SOPs/Compounding/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/SOPs/Controlled-Substances/.gitkeep b/SOPs/Controlled-Substances/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/SOPs/Dispensing/.gitkeep b/SOPs/Dispensing/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/SOPs/General/.gitkeep b/SOPs/General/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/SOPs/Inventory/.gitkeep b/SOPs/Inventory/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/SOPs/Patient-Safety/.gitkeep b/SOPs/Patient-Safety/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Templates/.gitkeep b/Templates/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Work-Instructions/.gitkeep b/Work-Instructions/.gitkeep new file mode 100644 index 0000000..e69de29