TRUNK-5977 - getPatientOrPromotePerson leading to stack traces under … (#3631) TRUNK-5977 - getPatientOrPromotePerson leading to stack traces under some conditions. This changes the current approach by first loading the person with the given id, and then checking if the returned person is a patient or not.
Unfortunately, none of the unit tests catch the error that this is fixing, but running the refapp with this fix + a related fix to idgen fixes the error case as described on the ticket.