// Handlers
import { genCrudHandler } from '~/handlers/_handler'

// Services
import { postPatient as create, patchPatient as update, removePatient as remove } from '~/services/patient.service'

export const {
  recId,
  recAction,
  recItem,
  isReadonly,
  isProcessing,
  isFormEntryDialogOpen,
  isRecordConfirmationOpen,
  onResetState,
  handleActionSave,
  handleActionEdit,
  handleActionRemove,
  handleCancelForm,
} = genCrudHandler({
  create,
  update,
  remove,
})
