{"action":"created","issue":{"url":"https://api.github.com/repos/fhirbase/fhirbase-plv8/issues/59","labels_url":"https://api.github.com/repos/fhirbase/fhirbase-plv8/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/fhirbase/fhirbase-plv8/issues/59/comments","events_url":"https://api.github.com/repos/fhirbase/fhirbase-plv8/issues/59/events","html_url":"https://github.com/fhirbase/fhirbase-plv8/issues/59","id":122909796,"number":59,"title":"Wrong response when deleting none existing resource","user":{"login":"szymonp-kainos","id":11288967,"avatar_url":"https://avatars.githubusercontent.com/u/11288967?v=3","gravatar_id":"","url":"https://api.github.com/users/szymonp-kainos","html_url":"https://github.com/szymonp-kainos","followers_url":"https://api.github.com/users/szymonp-kainos/followers","following_url":"https://api.github.com/users/szymonp-kainos/following{/other_user}","gists_url":"https://api.github.com/users/szymonp-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/szymonp-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szymonp-kainos/subscriptions","organizations_url":"https://api.github.com/users/szymonp-kainos/orgs","repos_url":"https://api.github.com/users/szymonp-kainos/repos","events_url":"https://api.github.com/users/szymonp-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/szymonp-kainos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-18T09:14:45Z","updated_at":"2015-12-18T13:24:46Z","closed_at":"2015-12-18T13:15:20Z","body":"When executing\r\n```sql\r\nSELECT fhir_delete_resource('{\"resourceType\": \"Patient\", \"id\": \"notexisting\"}');\r\n```\r\nretuned is\r\n```js\r\n\"{\"status\":\"Error\",\"message\":\"Resource Patient/notexisting, has broken old version {\\\"resourceType\\\":\\\"OperationOutcome\\\",\\\"issue\\\":[{\\\"severity\\\":\\\"error\\\",\\\"code\\\":\\\"not-found\\\",\\\"details\\\":{\\\"coding\\\":[{\\\"code\\\":\\\"MSG_NO_EXIST\\\",\\\"display\\\":\\\"Resource Id (...)\"\r\n```\r\ninstead of just operation outcome resource"},"comment":{"url":"https://api.github.com/repos/fhirbase/fhirbase-plv8/issues/comments/165777617","html_url":"https://github.com/fhirbase/fhirbase-plv8/issues/59#issuecomment-165777617","issue_url":"https://api.github.com/repos/fhirbase/fhirbase-plv8/issues/59","id":165777617,"user":{"login":"niquola","id":32066,"avatar_url":"https://avatars.githubusercontent.com/u/32066?v=3","gravatar_id":"","url":"https://api.github.com/users/niquola","html_url":"https://github.com/niquola","followers_url":"https://api.github.com/users/niquola/followers","following_url":"https://api.github.com/users/niquola/following{/other_user}","gists_url":"https://api.github.com/users/niquola/gists{/gist_id}","starred_url":"https://api.github.com/users/niquola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niquola/subscriptions","organizations_url":"https://api.github.com/users/niquola/orgs","repos_url":"https://api.github.com/users/niquola/repos","events_url":"https://api.github.com/users/niquola/events{/privacy}","received_events_url":"https://api.github.com/users/niquola/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T13:24:46Z","updated_at":"2015-12-18T13:24:46Z","body":"Should be fixed in current master - https://github.com/fhirbase/fhirbase-plv8/blob/master/test/fhir/crud_spec.coffee#L182"}}