import { Member } from "@/@types/member"

/**
 * Search Type
 */
export type SearchType = {
    keyword: string,
}

/**
 * Member List
 */
export type RequestLogType = {
    id                  : number,
    code                : string,
    member              : Member,
    submission_date     : string,
    service_name        : string,
    payment_type_name   : string,
    status_final_log    : string,
    status              : string,
    files_by_type   : files_by_type,
}

export type files_by_type = {
    claim_diagnosis : file[],
    claim_kondisi : file[],
    claim_result : file[],
}

export type file = {
    name: string,
    url: string,
}

export type DetailRequestLogType = {
    id               : number,
    code                : string,
    member_id           : string,
    policy_number       : string,
    name                : string,
    date_of_birth       : string,
    gender              : string,
    marital_status      : string,
    submission_date     : string,
    service_type        : string,
    claim_method        : string,
    no_identitas        : string,
    keterangan          : string,
    hak_kamar_pasien    : string,
    penempatan_kamar    : string,
    provider            : string,
    status              : string,
    benefit             : Benefit[],
    reason              : string
}

export type Benefit = {
    code: string,
    description: string
}


