import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MedicalRecord, VitalSigns, LabResult } from '../../../../services/medical-record.service';

@Component({
  selector: 'app-patient-ehr-panel',
  standalone: true,
  imports: [CommonModule],
  templateUrl: './patient-ehr-panel.component.html',
  styleUrls: ['./patient-ehr-panel.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class PatientEhrPanelComponent {
  @Input() latestVitalSigns: VitalSigns | null = null;
  @Input() medicalRecords: MedicalRecord[] = [];
  @Input() labResults: LabResult[] = [];
  @Input() formatDateFn: (value: string) => string = (value: string) => value;
}

