fhirbase / fhirbase-plv8

[DEPRECATED] Fhirbase 2.0 is an FHIR relational storage
https://health-samurai.io/fhirbase
Other
105 stars 39 forks source link

fhir_search with NOT EQUAL(<> or !=) constraint #163

Open ansuman273 opened 7 years ago

ansuman273 commented 7 years ago

We have a requirement in fhirbase like searching all the Patient records whose name not equal to 'smith'

So we modified fhir_search(SELECT fhir_search('{"resourceType": "Patient", "queryString": "name=smith"}');) as

SELECT fhir_search('{"resourceType": "Patient", "queryString": "name<>smith"}'); but it is throwing error ERROR: TypeError: Cannot call method 'split' of undefined DETAIL: plv8_init() LINE 3912: return x.split(',').map(parse_one_value); \ Error **

ERROR: TypeError: Cannot call method 'split' of undefined SQL state: XX000 Detail: plv8_init() LINE 3912: return x.split(',').map(parse_one_value); Could you please suggest how to do it or any alternative.