From 287162af914231aa5d994813de9a4d1ea64f0196 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Wed, 15 Oct 2014 16:46:28 -0400 Subject: [PATCH] Fix #33 - Server was incorrectly returning contained resources as top-level resources --- hapi-fhir-base/src/changes/changes.xml | 5 +++ .../java/ca/uhn/fhir/parser/JsonParser.java | 2 + .../java/ca/uhn/fhir/parser/XmlParser.java | 2 + .../uhn/fhir/rest/server/RestfulServer.java | 12 +++++ .../ca/uhn/fhir/parser/JsonParserTest.java | 25 ++++++++++- .../ca/uhn/fhir/parser/XmlParserTest.java | 44 ++++++++++++++++--- .../test/CompleteResourceProviderTest.java | 22 ++++++++++ 7 files changed, 105 insertions(+), 7 deletions(-) diff --git a/hapi-fhir-base/src/changes/changes.xml b/hapi-fhir-base/src/changes/changes.xml index b44974df3b6..7dfd74859e7 100644 --- a/hapi-fhir-base/src/changes/changes.xml +++ b/hapi-fhir-base/src/changes/changes.xml @@ -104,6 +104,11 @@ Documentation on contained resources contained a typo and did not actually produce contained resources. Thanks to David Hay of Orion Health for reporting! + + Server was incorrectly including contained resources being returned as both contained resources, and as + top-level resources in the returned bundle for search operations. + Thanks to Bill de Beaubien for reporting! +