feat (patient): add patient employee checker

This commit is contained in:
dpurbosakti
2025-12-08 15:15:25 +07:00
parent 26a29be85c
commit 2cc7af845d
2 changed files with 24 additions and 0 deletions
+4
View File
@@ -103,3 +103,7 @@ func (a AuthInfo) IsNurseIntern() bool {
func (a AuthInfo) HasEmployeePosition() bool {
return a.Employee_Position_Code != nil
}
func (a AuthInfo) IsReg() bool {
return a.Employee_Position_Code != nil && *a.Employee_Position_Code == string(ero.EPCReg)
}