Search with queryString
SELECT fhir_search('{"resourceType": "Patient", "queryString": "name=smith"}');
This query is working fine and giving output as expected; We now have a requirement for searching all the patients whose name!=smith
When running the query like
SELECT fhir_search('{"resourceType": "Patient", "queryString": "name<>WILLIAMONE"}');
It is giving error as
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 anybody suggest any fix for this type of error or how to exactly implement a search query with NOT EQUAL constraint on any attibute
N.B: The resource is kept as jsonb as fhirbase format