part of '../app/app.dart';

const Set<String> _knownDlp = {
  'CCI',
  'Kultur',
  'Pewarna Langsung',
  'TBC',
  'Viral Load',
  'IgM IgG Leptospira',
  'PCR COVID',
};

String _templateTitle(String dlp) {
  return switch (dlp) {
    'CCI' => 'Pemeriksaan Candida Colonization Index',
    'Kultur' => 'Kultur',
    'Pewarna Langsung' => 'Pewarna Langsung',
    'TBC' => 'TBC',
    'Viral Load' => 'Viral Load',
    'IgM IgG Leptospira' => 'IgM IgG Leptospira',
    'PCR COVID' => 'PCR COVID',
    _ => dlp,
  };
}

bool _isSupervisor(String? role) {
  final normalized = role?.toLowerCase().trim() ?? '';
  return normalized.contains('supervisor') || normalized == 'spv';
}
