fhirbase / fhirbase-plv8

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

Search in transactions doesn't work when no slash at the begining of request url #131

Closed draakhan closed 8 years ago

draakhan commented 8 years ago

Hi!

Tested on v1.3.0.22

SELECT fhir_truncate_storage('{"resourceType": "Patient"}');
SELECT fhir_create_resource('{"allowId": true, "resource": {"resourceType": "Patient","name": [{"given": ["Tim"]}], "id": "2345"}}');
SELECT fhir_transaction('{"resourceType":"Bundle","type":"transaction","entry":[{"request":{"method":"GET","url":"Patient?given=Tim"}}]}');
-[ RECORD 1 ]----+----------------------------------------------------------------------------------------------------------------------------------------
fhir_transaction | {"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"422","diagnostics":"Invalid operation GET Patient?given=Tim"}]}
danil commented 8 years ago

@draakhan fixed in v1.3.0.24 if not, feel free to reopen