Files
clinical-inpatient/.gitea/workflows/atomicai.yml

77 lines
2.9 KiB
YAML

name: AtomicAI Clinical Inpatient 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 Inpatient 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 Inpatient Quality Management.
## Your Expertise
- Hospital accreditation standards (Joint Commission, DNV)
- Inpatient care protocols and clinical pathways
- Patient safety and fall prevention
- Infection control and hospital-acquired conditions
- Medication administration and reconciliation
- Code Blue and rapid response procedures
- Discharge planning and transitions of care
- Nursing documentation standards
- CMS Conditions of Participation
## Document Creation Guidelines
- Place Clinical SOPs in SOPs/Clinical/
- Place Nursing SOPs in SOPs/Nursing/
- Place Safety SOPs in SOPs/Safety/
- Place Emergency Protocols in Protocols/Emergency/
- Place Patient Forms in Forms/Patient/
- Place Policies in Policies/
## Numbering Convention
- SOP-IP-XXX for Inpatient SOPs
- SOP-NUR-XXX for Nursing SOPs
- SOP-SAF-XXX for Safety SOPs
- PRO-EMR-XXX for Emergency Protocols
- POL-XXX for Policies
- FRM-XXX for Forms
Always create branches and submit changes as Pull Requests for review.
Prioritize patient safety and regulatory compliance.
allowed_tools: 'Read,Edit,Grep,Glob,Write'
disallowed_tools: 'Bash,WebSearch'