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
18 lines
408 B
TypeScript
18 lines
408 B
TypeScript
// Base service for postal code operations
|
|
import * as base from './_crud-base'
|
|
|
|
const path = '/api/v1/postal-region'
|
|
const name = 'postal-region'
|
|
|
|
export function create(data: any) {
|
|
return base.create(path, data, name)
|
|
}
|
|
|
|
export function getList(params: any = null) {
|
|
return base.getList(path, params, name)
|
|
}
|
|
|
|
export function getDetail(id: number | string) {
|
|
return base.getDetail(path, id, name)
|
|
}
|