fhirbase / fhirbase-plv8

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

Wrong OperationOutcome code #135

Open szymonp-kainos opened 8 years ago

szymonp-kainos commented 8 years ago

While creating new Patient resource

SELECT fhir_create_resource('{"resource": {"resourceType":"Patient", "id":"d23d3d3-d3de-3d-3-d3d3d-3", "name": [{"text":"Ivan"}]}}');

fhirbase returns

{"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"}]}

Where codes for STU3 should be Issue types

Tested on fhirbase v1.3.0.23 (where there is STU3)