refactor(address): update address models and forms to use standardized fields
- Add preload relationships to address-related models - Rename postalCode to postalCode_code for consistency - Simplify location type handling with hidden fields - Update validation schemas and form components - Improve address display in patient preview
This commit is contained in:
No files matched your search
+13
-5
@@ -334,10 +334,18 @@ export const infraGroupCodes: Record<string, string> = {
|
||||
warehouse: 'Gudang / Depo',
|
||||
room: 'Ruang',
|
||||
chamber: 'Kamar',
|
||||
bed: 'Ranjang'
|
||||
bed: 'Ranjang',
|
||||
}
|
||||
|
||||
export const infraGroupCodesKeys: Record<string, string> = Object.keys(infraGroupCodes).reduce((acc, key) => {
|
||||
acc[key] = key
|
||||
return acc
|
||||
}, {} as Record<string, string>)
|
||||
export const infraGroupCodesKeys: Record<string, string> = Object.keys(infraGroupCodes).reduce(
|
||||
(acc, key) => {
|
||||
acc[key] = key
|
||||
return acc
|
||||
},
|
||||
{} as Record<string, string>,
|
||||
)
|
||||
|
||||
export const addressLocationTypeCode: Record<string, string> = {
|
||||
identity: 'Alamat KTP',
|
||||
domicile: 'Alamat Domisili',
|
||||
}
|
||||
Reference in New Issue
Block a user