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 uri decode bug #169

Closed Bolik closed 7 years ago

Bolik commented 7 years ago
SELECT fhir_search_sql('{"resourceType": "Patient", "queryString": "_count=50&name=%D0%9C%D0%B8%D1%85%D0%B0%D0%B8%D0%BB"}');

 ["SELECT * FROM \"patient\" tbl1 WHERE fhir_extract_as_string( ( \"tbl1\".\"resource\" )::json , ( '[\"Patient\",\"name\"]' )::json , 'HumanName' ) ilike $1 LIMIT $2","%^^михаиn%",50]

it search for михаиn instead of михаил