feat(patient): add occupation code support and update job selection

- Replace hardcoded job options with dynamic list from constants
- Update patient preview to display occupation by code if available
- Expand occupation codes in constants with comprehensive list
This commit is contained in:
Khafid Prayoga
2025-10-09 19:15:21 +07:00
parent ed972019dc
commit 91da0a1af9
4 changed files with 96 additions and 97 deletions

No files matched your search

+1
View File
@@ -36,6 +36,7 @@ export function toTitleCase(str: string): string {
return str.toLowerCase().replace(/\b\w/g, (char) => char.toUpperCase())
}
/**
* Menghitung umur berdasarkan tanggal lahir
* @param birthDate - Tanggal lahir dalam format Date atau string