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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user