[#XDSB-94] queries using *From and *To parameter names fail to find exact value.

Improved query by normalizing datetime
[#XDSB-121] Cleanup config parameter. Correct unit test
[#XDSB-121] Cleanup config parameter. Correct failure behaviour if patientID is missing.