Menu

#236 Documentation - http content type not recognized

2.2
open
nobody
None
5
2015-09-16
2015-09-16
No

Hello,

First off, props on all the work the team has put into Hapi! My engineering team at a Silicon-Valley startup is currently building out a prescriptive analytics platform for hospitals. We're using Hapi over HTTP for part of this, and noticed a discrepancy with the docs and code during testing.

The accepted content type specified is indicated as "x-application/hl7-v2+er7" for pipe encoded messages.
source: http://hl7api.sourceforge.net/hapi-hl7overhttp/specification.html#a2.4_Content_Type_and_Character_Set

However, a server we made using the drop-in LLP replacement method does not recognize that type.
ca.uhn.hl7v2.hoh.api.NonHl7ResponseException: Invalid Content-Type: x-application/hl7-v2+er7

Dug through Hapi source code and found "application/hl7-v2" specified in the ca.uhn.hl7v2.hoh.encoder.EncodingStyle enum. Changing to that content type caused the unrecognized content type error to go away.

source:

Apologies in advance if this is actually some weird error caused on our end.

Thanks,
Michael

Discussion


Log in to post a comment.