feature: Sepsis Engine Refactor: Remove SIRS, Rewire qSOFA + Bundle
Frontend: GCS Entry, SOFA Display, Sepsis UI Refactor
This commit is contained in:
@@ -1,16 +1,27 @@
|
||||
<script setup>
|
||||
import { computed } from 'vue'
|
||||
import Card from '@/components/ui/Card.vue'
|
||||
import Badge from '@/components/ui/Badge.vue'
|
||||
import Button from '@/components/ui/Button.vue'
|
||||
import FeedbackButtons from '@/components/feedback/FeedbackButtons.vue'
|
||||
import { alertTypeLabel } from '@/api/normalize'
|
||||
|
||||
defineProps({
|
||||
const props = defineProps({
|
||||
alert: { type: Object, required: true },
|
||||
})
|
||||
|
||||
const emit = defineEmits(['acknowledge', 'resolve'])
|
||||
|
||||
const actionHint = computed(() => {
|
||||
const hints = {
|
||||
QsofaScreen: 'Recommend SOFA labs',
|
||||
SofaSepsis: 'Review organ breakdown · Initiate bundle',
|
||||
GcsCritical: 'Urgent neuro assessment',
|
||||
GcsWarning: 'Monitor consciousness',
|
||||
}
|
||||
return hints[props.alert.alertType] ?? null
|
||||
})
|
||||
|
||||
function severityVariant(severity) {
|
||||
return severity === 'Critical' ? 'critical' : 'warning'
|
||||
}
|
||||
@@ -35,11 +46,12 @@ function formatTime(iso) {
|
||||
|
||||
<template>
|
||||
<Card>
|
||||
<div class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
|
||||
<div class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
|
||||
<div class="min-w-0 flex-1">
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<Badge :variant="severityVariant(alert.severity)">{{ alert.severity }}</Badge>
|
||||
<Badge variant="info" size="xs">{{ alert.status }}</Badge>
|
||||
<Badge v-if="actionHint" variant="info" size="xs">{{ actionHint }}</Badge>
|
||||
</div>
|
||||
<h3 class="mt-2 text-sm font-semibold text-gray-900 dark:text-white">
|
||||
{{ alertTypeLabel(alert.alertType) }}
|
||||
@@ -80,4 +92,4 @@ function formatTime(iso) {
|
||||
/>
|
||||
</div>
|
||||
</Card>
|
||||
</template>
|
||||
</template>
|
||||
Reference in New Issue
Block a user