refactor: postal region, add new field on list

feat: implement postal region model and update address handling

- Add new PostalRegion model and service
- Replace postalCode with postalRegion in address-related components
- Update schemas and models to use locationType_code consistently
- Add usePostalRegion composable for postal code selection
- Modify patient form to handle address changes more robustly

feat(patient): add ID column and improve date formatting

- Add patient ID column to patient list
- Format dates using 'id-ID' locale in preview
- Update identity number display for foreign patients
- Include passport number for foreign nationals
This commit is contained in:
Khafid Prayoga
2025-10-13 13:07:00 +07:00
parent 44433d67c8
commit 46911514fb
16 changed files with 204 additions and 123 deletions

No files matched your search

@@ -1,8 +1,8 @@
// Base service for postal code operations
import * as base from './_crud-base'
const path = '/api/v1/postal-code'
const name = 'postal-code'
const path = '/api/v1/postal-region'
const name = 'postal-region'
export function create(data: any) {
return base.create(path, data, name)