This is just an extract of my chaincod package but I use the function ListDoctorPermissions to querry the state database after an asset, which in my case is a permi
ListDoctorPermissions