Changelog for #980

This commit is contained in:
jamesagnew 2018-12-20 06:08:10 -05:00
parent 23a09ef7d7
commit 54bb1508db
2 changed files with 18 additions and 0 deletions

View File

@ -2085,6 +2085,19 @@ public class JsonParserDstu2Test {
Assert.assertThat(message, containsString("contained")); Assert.assertThat(message, containsString("contained"));
} }
@Test
public void testParseQuestionnaireResponseAnswerWithValueReference() {
String response = "{\"resourceType\":\"QuestionnaireResponse\",\"group\":{\"question\":[{\"answer\": [{\"valueReference\": {\"reference\": \"Observation/testid\"}}]}]}}";
QuestionnaireResponse r = ourCtx.newJsonParser().parseResource(QuestionnaireResponse.class, response);
QuestionnaireResponse.GroupQuestionAnswer answer = r.getGroup().getQuestion().get(0).getAnswer().get(0);
assertNotNull(answer);
assertNotNull(answer.getValue());
assertEquals("Observation/testid", ((ResourceReferenceDt)answer.getValue()).getReference().getValue());
}
@AfterClass @AfterClass
public static void afterClassClearContext() { public static void afterClassClearContext() {
TestUtil.clearAllStaticFieldsForUnitTest(); TestUtil.clearAllStaticFieldsForUnitTest();

View File

@ -204,6 +204,11 @@
HAPI FHIR ships with a LinkedBlockingQueue implementation of the delivery channel factory. If a different HAPI FHIR ships with a LinkedBlockingQueue implementation of the delivery channel factory. If a different
type of channel factory is required, add it to your application context and mark it as @Primary. type of channel factory is required, add it to your application context and mark it as @Primary.
</action> </action>
<action type="fix" issue="980">
When using the HL7.org DSTU2 structures, a QuestionnaireResponse with a
value of type reference would fail to parse. Thanks to David Gileadi for
the pull request!
</action>
</release> </release>
<release version="3.6.0" date="2018-11-12" description="Food"> <release version="3.6.0" date="2018-11-12" description="Food">
<action type="add"> <action type="add">