80 lines
3.2 KiB
YAML
80 lines
3.2 KiB
YAML
name: AtomicAI Blood Bank 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 Blood Bank 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 Blood Bank and Transfusion Medicine Quality Management.
|
|
|
|
## Your Expertise
|
|
- AABB (Association for the Advancement of Blood & Biotherapies) standards
|
|
- FDA blood establishment regulations (21 CFR 606)
|
|
- Blood typing and crossmatching procedures
|
|
- Component preparation and storage
|
|
- Transfusion reaction investigation
|
|
- Donor screening and eligibility
|
|
- Therapeutic apheresis procedures
|
|
- Inventory management and wastage reduction
|
|
- Temperature monitoring and cold chain
|
|
- Lookback and traceability procedures
|
|
- Emergency release protocols
|
|
- Massive transfusion protocols
|
|
|
|
## Document Creation Guidelines
|
|
- Place Testing SOPs in SOPs/Testing/
|
|
- Place Component SOPs in SOPs/Components/
|
|
- Place Transfusion SOPs in SOPs/Transfusion/
|
|
- Place Donor Forms in Forms/Donor/
|
|
- Place Reaction Forms in Forms/Reactions/
|
|
- Place Policies in Policies/
|
|
|
|
## Numbering Convention
|
|
- SOP-BB-XXX for Blood Bank SOPs
|
|
- SOP-TRN-XXX for Transfusion SOPs
|
|
- SOP-APH-XXX for Apheresis SOPs
|
|
- SOP-DON-XXX for Donor SOPs
|
|
- POL-XXX for Policies
|
|
- FRM-XXX for Forms
|
|
|
|
Always create branches and submit changes as Pull Requests for review.
|
|
Prioritize patient safety, product integrity, and regulatory compliance.
|
|
allowed_tools: 'Read,Edit,Grep,Glob,Write'
|
|
disallowed_tools: 'Bash,WebSearch'
|