{"action":"closed","issue":{"url":"https://api.github.com/repos/jamesagnew/hapi-fhir/issues/368","repository_url":"https://api.github.com/repos/jamesagnew/hapi-fhir","labels_url":"https://api.github.com/repos/jamesagnew/hapi-fhir/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/jamesagnew/hapi-fhir/issues/368/comments","events_url":"https://api.github.com/repos/jamesagnew/hapi-fhir/issues/368/events","html_url":"https://github.com/jamesagnew/hapi-fhir/issues/368","id":155722156,"number":368,"title":"Contained resource disappears when placed in a bundle","user":{"login":"magnuschatt","id":8876968,"avatar_url":"https://avatars.githubusercontent.com/u/8876968?v=3","gravatar_id":"","url":"https://api.github.com/users/magnuschatt","html_url":"https://github.com/magnuschatt","followers_url":"https://api.github.com/users/magnuschatt/followers","following_url":"https://api.github.com/users/magnuschatt/following{/other_user}","gists_url":"https://api.github.com/users/magnuschatt/gists{/gist_id}","starred_url":"https://api.github.com/users/magnuschatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnuschatt/subscriptions","organizations_url":"https://api.github.com/users/magnuschatt/orgs","repos_url":"https://api.github.com/users/magnuschatt/repos","events_url":"https://api.github.com/users/magnuschatt/events{/privacy}","received_events_url":"https://api.github.com/users/magnuschatt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-19T12:13:39Z","updated_at":"2016-06-08T21:37:12Z","closed_at":"2016-06-08T21:37:12Z","body":"**What works:**\r\nI create a MedicationOrder and add a Medication as a contained resource.\r\nI encode the MedicationOrder to JSON, and parse it back to a MedicationOrder and the contained Medication resource is still there.\r\n\r\n**What doesn't work:**\r\nI create a MedicationOrder and add a Medication as a contained resource.\r\nI place the MedicationOrder in a bundle and encode->parse the bundle.\r\nNow when I retrieve MedicationOrder the Medication is gone."}}
{"actor":{"display_login":"jamesagnew"}}