szymonp-kainos

Results 4 issues of szymonp-kainos

When doing update with id on conlict: ``` SQL SELECT fhir_update_resource('{"ifMatch": "4df606bd-3642-4e07-9111-701389381d5e", "resource": {"resourceType":"Patient","id":"4df606bd-3642-4e07-9111-701389381d5e","meta":{"versionId":"4df606bd-3642-4e07-9111-701389381d5e"},"identifier":[{"use":"official","system":"Hospital Number","value":"6b574482-8d13-4186-a6a8-c2bd41e6fb66"}],"name":[{"use":"official","family":["!family!"],"given":["Gordon"]}],"gender":"male","active":"true"}}'); ``` fhirbase returns operation outcome with code `409` instead of `conflict` as stated in http://hl7.org/fhir/2016May/valueset-issue-type.html...

Fhir states that every resource can by searched by [_security](http://hl7.org/fhir/search.html#security) but fhirbase returns error while doing so ``` sql SELECT fhir_search('{"resourceType": "Patient", "queryString": "_security=Location"}'); ``` returns ``` sql ERROR: Error:...

While creating new Patient resource ``` sql SELECT fhir_create_resource('{"resource": {"resourceType":"Patient", "id":"d23d3d3-d3de-3d-3-d3d3d-3", "name": [{"text":"Ivan"}]}}'); ``` fhirbase returns ``` sql {"resourceType":"OperationOutcome","issue":[{"code":"400","diagnostics":"id is not allowed, use update operation to create with predefined id","extension":[{"url":"http-status-code","valueString":"400"}],"severity":"error"}]}...

Due to https://www.hl7.org/fhir/patient.html section 5.1.8 use of search query `_query=mpi` should be possible and return scored results. Fhirbase for query ``` sql SELECT fhir_search('{"resourceType": "Patient", "queryString": "_query=mpi&name=smith"}'); ``` returns ```...