fhirbase-plv8 icon indicating copy to clipboard operation
fhirbase-plv8 copied to clipboard

Wrong OperationOutcome code

Open szymonp-kainos opened this issue 8 years ago • 0 comments

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)

szymonp-kainos avatar Jun 20 '16 13:06 szymonp-kainos