import { type Base, genBase } from "./_base"

export interface Installation extends Base {
  code: string
  name: string
  encounterClass_code?: string | null
}

export interface CreateDto {
  name: string
  code: string
  encounterClass_code?: string | null
}

export interface GetListDto {
  page: number
  size: number
  name?: string
  code?: string
  encounterClass_code?: string
}

export interface GetDetailDto {
  id?: string
}

export interface UpdateDto extends CreateDto {
  id?: number
}

export interface DeleteDto {
  id?: string
}

export function genInstallation(): Installation {
  return {
    ...genBase(),
    name: 'name',
    code: 'code',
    encounterClass_code: null,
  }
}
