feature: RBAC + Clinical Audit Logging

This commit is contained in:
voltsrage
2026-06-21 15:46:55 +08:00
parent a43db52813
commit 5af6ab490e
83 changed files with 4281 additions and 70 deletions
@@ -2,7 +2,6 @@
import { storeToRefs } from 'pinia'
import { computed } from 'vue'
import { useAlertStore } from '@/stores/alerts'
import { useSettingsStore } from '@/stores/settings'
import { usePolling } from '@/composables/usePolling'
import Card from '@/components/ui/Card.vue'
import Badge from '@/components/ui/Badge.vue'
@@ -18,7 +17,6 @@ const props = defineProps({
const emit = defineEmits(['select'])
const alertStore = useAlertStore()
const settings = useSettingsStore()
const { alerts, loading } = storeToRefs(alertStore)
function loadEncounterAlerts() {
@@ -36,7 +34,7 @@ function severityVariant(severity) {
}
async function acknowledge(alertId) {
await alertStore.acknowledge(alertId, settings.clinicianId)
await alertStore.acknowledge(alertId)
await loadEncounterAlerts()
}