fix NPE when patient wasn't found by the PDMP
simplify xpath processing by not compiling expressions