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:
@@ -268,3 +268,13 @@ export const infraGroupCodesKeys: Record<string, string> = Object.keys(infraGrou
|
||||
},
|
||||
{} as Record<string, string>,
|
||||
)
|
||||
|
||||
export const medicalActionTypeCode: Record<string, string> = {
|
||||
chemo: 'Chemo',
|
||||
hemo: 'Hemo',
|
||||
thalasemia: 'Thalasemia',
|
||||
echocardio: 'Echocardiography',
|
||||
spirometry: 'Spirometry',
|
||||
} as const
|
||||
|
||||
export type medicalActionTypeCodeKey = keyof typeof medicalActionTypeCode
|
||||
|
||||
Reference in New Issue
Block a user