Add test for contained binary resources. Close #26 fixed by Alexander

Kley
This commit is contained in:
James Agnew 2014-09-26 09:37:41 -04:00
parent e4009bcb4a
commit c362e21997
4 changed files with 68 additions and 8 deletions

View File

@ -67,6 +67,10 @@
HAPI now logs a single line indicating the StAX implementation being used upon the HAPI now logs a single line indicating the StAX implementation being used upon the
first time an XML parser is created. first time an XML parser is created.
</action> </action>
<action type="fix" issue="26" dev="akley">
HAPI now logs a single line indicating the StAX implementation being used upon the
first time an XML parser is created.
</action>
</release> </release>
<release version="0.6" date="2014-Sep-08" description="This release brings a number of new features and bug fixes!"> <release version="0.6" date="2014-Sep-08" description="This release brings a number of new features and bug fixes!">
<!-- <!--

View File

@ -7,11 +7,23 @@
</properties> </properties>
<body> <body>
<release version="0.7" date="TBD"> <release version="0.7" date="TBD">
<action type="add"> <action type="add" dev="suranga">
Documentation update, thanks to Suranga Nath Kasthurirathne of the OpenMRS project. Documentation fixes
</action>
<action type="add" dev="dougmartin">
Add a collection of new methods on the generic client which support the
<![CDATA[
<b><a href="./apidocs/ca/uhn/fhir/rest/client/IGenericClient.html#read(java.lang.Class,%20ca.uhn.fhir.model.primitive.UriDt)">read</a></b>,
<b><a href="./apidocs/ca/uhn/fhir/rest/client/IGenericClient.html#vread(java.lang.Class,%20ca.uhn.fhir.model.primitive.UriDt)">read</a></b>,
and <b><a href="./apidocs/ca/uhn/fhir/rest/client/IGenericClient.html#search(java.lang.Class,%20ca.uhn.fhir.model.primitive.UriDt)">search</a></b>
]]>
operations using an absolute URL. This allows developers to perform these operations using
URLs they obtained from other sources (or external resource references within resources). In
addition, the existing read/vread operations will now access absolute URL references if
they are passed in. Thanks to Doug Martin of the Regenstrief Center for Biomedical Informatics
for contributing this implementation!
</action> </action>
<action type="fix"> <action type="fix">
<<<<<<< HEAD
Server implementation was not correctly figuring out its own FHIR Base URL when deployed Server implementation was not correctly figuring out its own FHIR Base URL when deployed
on Amazon Web Service server. Thanks to Jeffrey Ting and Bill De Beaubien of on Amazon Web Service server. Thanks to Jeffrey Ting and Bill De Beaubien of
Systems Made Simple for their help in figuring out this issue! Systems Made Simple for their help in figuring out this issue!
@ -20,15 +32,44 @@
XML Parser failed to encode fields with both a resource reference child and XML Parser failed to encode fields with both a resource reference child and
a primitive type child. Thanks to Jeffrey Ting and Bill De Beaubien of a primitive type child. Thanks to Jeffrey Ting and Bill De Beaubien of
Systems Made Simple for their help in figuring out this issue! Systems Made Simple for their help in figuring out this issue!
======= </action>
<action type="fix">
HAPI now runs successfully on Servlet 2.5 containers (such as Tomcat 6). Thanks to HAPI now runs successfully on Servlet 2.5 containers (such as Tomcat 6). Thanks to
Bernard Gitaadji for reporting and diagnosing the issue! Bernard Gitaadji for reporting and diagnosing the issue!
</action> </action>
<action type="fix">
Summary (in the bundle entry) is now encoded by the XML and JSON parsers if supplied. Thanks to David Hay of
Orion Health for reporting this!
</action>
<action type="fix" issue="24">
Conformance profiles which are automatically generated by the server were missing a few mandatory elements,
which meant that the profile did not correctly validate. Thanks to Bill de Beaubien of Systems Made Simple
for reporting this!
</action>
<action type="fix"> <action type="fix">
XHTML (in narratives) containing escapable characters (e.g. &lt; or &quot;) will now always have those characters XHTML (in narratives) containing escapable characters (e.g. &lt; or &quot;) will now always have those characters
escaped properly in encoded messages. escaped properly in encoded messages.
>>>>>>> 83f9c1c6a992266de12f9076b733dffdaaf63203
</action> </action>
<action type="fix">
Resources containing entities which are not valid in basic XML (e.g. &amp;sect;) will have those
entities converted to their equivalent unicode characters when resources are encoded, since FHIR does
not allow extended entities in resource instances.
</action>
<<<<<<< HEAD
<action type="add">
Add a new client interceptor which adds HTTP Authorization Bearer Tokens (for use with OAUTH2 servers)
to client requests.
</action>
=======
<action type="fix">
Add phloc-commons dependency explicitly, which resolves an issue building HAPI from source on
some platforms. Thanks to Odysseas Pentakalos for the patch!
</action>
<action type="add">
HAPI now logs a single line indicating the StAX implementation being used upon the
first time an XML parser is created.
</action>
>>>>>>> 4622af7a822ad80c864516369e1e941660a19194
</release> </release>
<release version="0.6" date="2014-Sep-08" description="This release brings a number of new features and bug fixes!"> <release version="0.6" date="2014-Sep-08" description="This release brings a number of new features and bug fixes!">
<!-- <!--
@ -172,7 +213,9 @@
</release> </release>
<release version="0.5" date="2014-Jul-30"> <release version="0.5" date="2014-Jul-30">
<action type="add"> <action type="add">
having multiple ways of accomplishing the same thing. This means that a number of existing classes HAPI has a number of RESTful method parameter types that have similar but not identical
purposes and confusing names. A cleanup has been undertaken to clean this up.
This means that a number of existing classes
have been deprocated in favour of new naming schemes. have been deprocated in favour of new naming schemes.
<![CDATA[<br/><br/>]]> <![CDATA[<br/><br/>]]>
All annotation-based clients and all server search method parameters are now named All annotation-based clients and all server search method parameters are now named

View File

@ -76,7 +76,7 @@ public class XmlParserTest {
/** /**
* Thanks to Alexander Kley! * Thanks to Alexander Kley!
*/ */
// @Test @Test
public void testParseContainedBinaryResource() { public void testParseContainedBinaryResource() {
byte[] bin = new byte[] {0,1,2,3,4}; byte[] bin = new byte[] {0,1,2,3,4};
final Binary binary = new Binary("PatientConsent", bin); final Binary binary = new Binary("PatientConsent", bin);

15
pom.xml
View File

@ -46,13 +46,17 @@
<developers> <developers>
<developer> <developer>
<id>jamesagnew</id>
<name>James Agnew</name> <name>James Agnew</name>
<organization>University Health Network</organization>
</developer> </developer>
<developer> <developer>
<name>Dmitri Sotnikov</name> <name>Dmitri Sotnikov</name>
<organization>University Health Network</organization>
</developer> </developer>
<developer> <developer>
<name>Lisa Wong</name> <name>Lisa Wong</name>
<organization>University Health Network</organization>
</developer> </developer>
<developer> <developer>
<name>Josh Mandel</name> <name>Josh Mandel</name>
@ -60,6 +64,11 @@
</developer> </developer>
<developer> <developer>
<name>Laura MacDougall Sookraj</name> <name>Laura MacDougall Sookraj</name>
<organization>University Health Network</organization>
</developer>
<developer>
<name>Neal Acharya</name>
<organization>University Health Network</organization>
</developer> </developer>
<developer> <developer>
<name>David Hay</name> <name>David Hay</name>
@ -68,13 +77,17 @@
<developer> <developer>
<id>suranga</id> <id>suranga</id>
<name>Suranga Nath Kasthurirathne</name> <name>Suranga Nath Kasthurirathne</name>
<organization>OpenMRS</organization> <organization>OpenMRS / Regenstrief Center for Biomedical Informatics</organization>
</developer> </developer>
<developer> <developer>
<id>dougmartin</id> <id>dougmartin</id>
<name>Doug Martin</name> <name>Doug Martin</name>
<organization>Regenstrief Center for Biomedical Informatics</organization> <organization>Regenstrief Center for Biomedical Informatics</organization>
</developer> </developer>
<developer>
<id>akley</id>
<name>Alexander Kley</name>
</developer>
</developers> </developers>
<licenses> <licenses>