Files
Khafid Prayoga f4dadd67f8 feat(medical-action-src): add type code selection with strict typing
- Add medicalActionTypeCode constants and type definition
- Update MedicalActionSrc interface to use strict type for type_code
- Implement select dropdown for type code in entry form
- Enable type code validation in schema
2025-10-17 16:23:51 +07:00

20 lines
404 B
TypeScript

import { type Base, genBase } from './_base'
import type { medicalActionTypeCodeKey } from '~/lib/constants'
export interface MedicalActionSrc extends Base {
code: string
name: string
type_code: medicalActionTypeCodeKey
item_id: number
}
export function genMedicalActionSrc(): MedicalActionSrc {
return {
...genBase(),
code: '',
name: '',
type_code: '',
item_id: 0,
}
}