fhirbase/fhirbase-plv8

fhir_search uri decode bug

Closed this issue · 0 comments

Bolik commented
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 михаил