fhirbase plv-8 API search criteria with queryString for NOT EQUAL(<> or !=)

42 views
Skip to first unread message

ansuman.bes...@gmail.com

unread,
Oct 18, 2016, 2:01:11 AM10/18/16
to FHIRbase
Hii everybody,

We have implemented the fhirbase with pgsql and plv8 to support all the FhirbaseAPI related queries. 

fhir_search
 

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



Reply all
Reply to author
Forward
0 new messages