import { Component, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IonicModule } from '@ionic/angular';

@Component({
  standalone: true,
  imports: [CommonModule, IonicModule],
  template: `
    <ion-card>
      <ion-card-header>
        <ion-card-title>分诊结果</ion-card-title>
      </ion-card-header>

      <ion-card-content>
        <ion-item>
          <ion-label>症状描述</ion-label>
          <ion-text>{{ symptom }}</ion-text>
        </ion-item>

        <ion-item>
          <ion-label>推荐科室</ion-label>
          <ion-badge color="primary">{{ department }}</ion-badge>
        </ion-item>

        <ion-item>
          <ion-label>分诊依据</ion-label>
          <ion-text>{{ reason }}</ion-text>
        </ion-item>
      </ion-card-content>
    </ion-card>
  `
})
export class TriageResultComponent {
  @Input() symptom = '';
  @Input() department = '';
  @Input() reason = '';
}
