fhirbase-plv8
fhirbase-plv8 copied to clipboard
Wrong OperationOutcome code
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)