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
This commit is contained in:
Khafid Prayoga
2025-10-17 16:23:51 +07:00
parent 2b8bf55e8a
commit f4dadd67f8
4 changed files with 41 additions and 6 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
import { type Base, genBase } from './_base'
import type { medicalActionTypeCodeKey } from '~/lib/constants'
export interface MedicalActionSrc extends Base {
code: string
name: string
type_code: string
type_code: medicalActionTypeCodeKey
item_id: number
}