Hi @preethi.s and #bahmni team.
We have an issue with the way the patient identifier types are being queried. For i18n related reasons we would like not to rely on their names but on their UUID instead (see also this thread on the same subject). So I went ahead and made some changes to the Lucene query fetching the patient identifiers but I can’t make it work.
Perhaps some Lucene experts or yourself could shed some light, or maybe @raff?
This is and example of a query that works taken out of the integration tests:
+identifierAnywhere:*hos1225* +voided:false +patient.voided:false +identifierType.name:"openmrs identification number"
And this my modified query that does not return anything:
+identifierAnywhere:*hos1225* +voided:false +patient.voided:false +identifierType.uuid:1a339fe9\-38bc\-4ab3\-b180\-320988c0b968
Clearly the filter +identifierType.uuid:1a339fe9\-38bc\-4ab3\-b180\-320988c0b968 is not doing the job, any idea why?