extraction.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. export interface UserAccount {
  2. id: string;
  3. name: string;
  4. department: string;
  5. medical_allowance: number;
  6. }
  7. export interface ExtractionResponse {
  8. provider_name: string;
  9. visit_date: string;
  10. total_amount: number;
  11. currency: string;
  12. items: string[];
  13. confidence_score: number;
  14. needs_manual_review: boolean;
  15. ai_reasoning: string;
  16. receipt_ref_no?: string | null;
  17. clinic_reg_no?: string | null;
  18. claim_category?: string | null;
  19. diagnosis_brief?: string | null;
  20. }
  21. export interface ClaimSubmission {
  22. provider_name: string;
  23. visit_date: string;
  24. amount_spent: number;
  25. currency: string;
  26. treatment_type: string;
  27. cost_center: string;
  28. declaration_signed: boolean;
  29. extraction_data?: ExtractionResponse | null;
  30. }
  31. export interface ClaimRecord {
  32. id: string;
  33. timestamp: string;
  34. submitted_by: string;
  35. department: string;
  36. amount_spent: number;
  37. amount_claimed: number;
  38. provider_name: string;
  39. visit_date: string;
  40. treatment_type: string;
  41. cost_center: string;
  42. declaration_signed: boolean;
  43. extraction_data?: ExtractionResponse | null;
  44. }