A person can have an array of authentication methods.
To determine necessery the method of patient authentication, if person hasn’t active authentication_method - return NA.
If person has active auth_method.type = OTP - select it, if it is not - select active auth_method.type =OFFLINE. And if there is no OTP or OFFLINE, select the one that is of the active auth method with type = third_person where type = OTP and the first one is added. Then the auth method isn’t found, select the first added active auth method.type =third person where third_person.auth_method.type = OFFLINE. If nothing is found, return NA.