feat (patient): add patient employee checker
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user