import {
  COMPLETE_HOSPITALIZATION_CONVERSION,
  EMERGENCY_PASSAGE,
  HOSPITAL_RESTRICTED_RESERVE_CARE,
  IGS,
  INNOVATION_NUMBER,
  NON_PROGRAMMED,
  RAAC_CARE,
  RADIO_THERAPY_DOSIMETRY_TYPE,
  RADIO_THERAPY_MACHINE_TYPE,
  RUM_DESTINATION,
  RUM_ENTRY_MODE,
  RUM_EXIT_MODE,
  RUM_PROVENANCE,
  RUMObject,
  SEX,
  SPECIAL_PATIENT_MONITORING,
  TARIFFICATION_RESTRICTION,
  TOTAL_INTERVENTIONS_CATEGORY,
  ZASection
} from '../../../types'

export const DEFAULT_FINESS = '123456789'
export const DEFAULT_RSS = 'RSSDEFAULT'
export const DEFAULT_ENTRY_DATE = '01022025'
export const DEFAULT_EXIT_DATE = '05022025'
export const DEFAULT_ENTRY_DATE_ZA = '01022025'
export const DEFAULT_ADM = 'ADM01'
export const DEFAULT_RUM = 'RUM001'
export const DEFAULT_BIRTH_DATE = '01011980'
export const DEFAULT_SEX = SEX.MALE
export const DEFAULT_U_MED = '1234'
export const DEFAULT_AUTHORISATION = undefined
export const DEFAULT_ENTRY_MODE = RUM_ENTRY_MODE.ENTRY_MODE_8
export const DEFAULT_PROVENANCE = RUM_PROVENANCE.PROVENANCE_EMPTY
export const DEFAULT_EXIT_MODE = RUM_EXIT_MODE.EXIT_MODE_8
export const DEFAULT_DESTINATION = RUM_DESTINATION.DESTINATION_EMPTY
export const DEFAULT_CP_RES = '75013'
export const DEFAULT_WEIGHT = ''
export const DEFAULT_AGE_GESTATION = ''
export const DEFAULT_LAST_MENS_DATE = ''
export const DEFAULT_SESSION = 0
export const DEFAULT_N_DA = 0
export const DEFAULT_N_DAD = 0
export const DEFAULT_N_ZA = 0
export const DEFAULT_DP = ''
export const DEFAULT_DR = ''
export const DEFAULT_IGS = IGS.IGS_EMPTY
export const DEFAULT_CONF = undefined
export const DEFAULT_RT_M = RADIO_THERAPY_MACHINE_TYPE.RTM_EMPTY
export const DEFAULT_RT_D = RADIO_THERAPY_DOSIMETRY_TYPE.RTDT_EMPTY
export const DEFAULT_INNOV = INNOVATION_NUMBER.INNOVATION_NUMBER_EMPTY
export const DEFAULT_CONV = COMPLETE_HOSPITALIZATION_CONVERSION.COMPLETE_HOSPITALIZATION_CONVERSION_EMPTY
export const DEFAULT_RAAC = RAAC_CARE.RAAC_CARE_EMPTY
export const DEFAULT_SPEC = SPECIAL_PATIENT_MONITORING.SPECIAL_PATIENT_MONITORING_EMPTY
export const DEFAULT_RH = HOSPITAL_RESTRICTED_RESERVE_CARE.HOSPITAL_RESTRICTED_RESERVE_CARE_EMPTY
export const DEFAULT_TARIF = TARIFFICATION_RESTRICTION.TARIFFICATION_RESTRICTION_EMPTY
export const DEFAULT_CAT = TOTAL_INTERVENTIONS_CATEGORY.TOTAL_INTERVENTIONS_CATEGORY_EMPTY
export const DEFAULT_NP = NON_PROGRAMMED.NON_PROGRAMMED_EMPTY
export const DEFAULT_ER = EMERGENCY_PASSAGE.EMERGENCY_PASSAGE_EMPTY
export const DEFAULT_FILL = ''
export const DEFAULT_RES = ''
export const DEFAULT_DA_0 = 'C003'
export const DEFAULT_DAD_0 = 'E005'
export const DEFAULT_022_RSS_FORMAT = '022'

export const DEFAULT_ZA_0: ZASection = {
  date: DEFAULT_ENTRY_DATE,
  code: 'HHFA001',
  ext: '00',
  phase: '0',
  act: '1',
  diag: '0',
  mod: 'MOD1',
  RE: '1',
  AN: '0',
  qty: '01'
}

export const DEFAULT_RUM_RECORD_PARAMS: RUMObject = {
  FINESS: DEFAULT_FINESS,
  RSS: DEFAULT_RSS,
  ADM: DEFAULT_ADM,
  RUM: DEFAULT_RUM,
  birthDate: DEFAULT_BIRTH_DATE,
  sex: DEFAULT_SEX,
  uMed: DEFAULT_U_MED,
  authorisation: DEFAULT_AUTHORISATION,
  entryDate: DEFAULT_ENTRY_DATE,
  entryMode: DEFAULT_ENTRY_MODE,
  provenance: DEFAULT_PROVENANCE,
  exitDate: DEFAULT_EXIT_DATE,
  exitMode: DEFAULT_EXIT_MODE,
  destination: DEFAULT_DESTINATION,
  cpRes: DEFAULT_CP_RES,
  weight: DEFAULT_WEIGHT,
  ageGestation: DEFAULT_AGE_GESTATION,
  lastMensDate: DEFAULT_LAST_MENS_DATE,
  session: DEFAULT_SESSION,
  DP: DEFAULT_DP,
  DR: DEFAULT_DR,
  IGS: DEFAULT_IGS,
  conf: DEFAULT_CONF,
  rtM: DEFAULT_RT_M,
  rtD: DEFAULT_RT_D,
  innov: DEFAULT_INNOV,
  conv: DEFAULT_CONV,
  raac: DEFAULT_RAAC,
  spec: DEFAULT_SPEC,
  RH: DEFAULT_RH,
  tarif: DEFAULT_TARIF,
  cat: DEFAULT_CAT,
  NP: DEFAULT_NP,
  ER: DEFAULT_ER,
  FILL: DEFAULT_FILL,
  RES: DEFAULT_RES,
  DAs: [DEFAULT_DA_0],
  DADs: [DEFAULT_DAD_0],
  ZAs: [DEFAULT_ZA_0],
  nDA: DEFAULT_N_DA,
  nDAD: DEFAULT_N_DAD,
  nZA: DEFAULT_N_ZA
}
