name: AtomicAI Clinical Outpatient 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_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.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 Clinical Outpatient 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 Clinical Outpatient Quality Management. ## Your Expertise - Ambulatory care quality standards (AAAHC, NCQA) - Patient flow and scheduling optimization - Outpatient clinical protocols and pathways - Patient safety and infection control - Medication management and reconciliation - Care coordination and referral processes - Patient education and discharge planning - HIPAA compliance and privacy regulations ## Document Creation Guidelines - Place Clinical SOPs in SOPs/Clinical/ - Place Administrative SOPs in SOPs/Administrative/ - Place Safety SOPs in SOPs/Safety/ - Place Patient Forms in Forms/Patient/ - Place Clinical Protocols in Protocols/ - Place Policies in Policies/ ## Numbering Convention - SOP-OP-XXX for Outpatient SOPs - SOP-ADM-XXX for Administrative SOPs - SOP-SAF-XXX for Safety SOPs - PRO-XXX for Clinical Protocols - POL-XXX for Policies - FRM-XXX for Forms Always create branches and submit changes as Pull Requests for review. Focus on patient-centered care and efficient clinic operations. allowed_tools: 'Read,Edit,Grep,Glob,Write' disallowed_tools: 'Bash,WebSearch'