FHIR Chat · http-response-header Extension · implementers

Stream: implementers

Topic: http-response-header Extension


view this post on Zulip Alex Gerstein (Sep 18 2019 at 21:14):

I was looking to use the http-response-header extension to specify custom headers for a BundleEntryResponse, but I'm unsure how the extension is intended to be used.

The extension only specifies valueString, so I'm not sure where the header name and header value should go. Is this extension missing an additional slice (like us-core-race https://www.hl7.org/fhir/us/core/StructureDefinition-us-core-race.html) to specify the name and value separately, or is the valuestring meant to contain the full header pair?

https://www.hl7.org/fhir/extension-http-response-header.html

view this post on Zulip Ivan Dubrov (Sep 19 2019 at 22:13):

Yeah, I have the same question! The current extension doesn't make much sense to me? How would one provide a header name?

view this post on Zulip Grahame Grieve (Sep 23 2019 at 21:16):

no examples in the spec. I'd say that it's just

 <extension url="http://hl7.org/fhir/StructureDefinition/http-response-header">
   <valueString value="My-Header: Value-Of-Header"/>
 </extension>

view this post on Zulip Vivek (Nov 06 2019 at 13:11):

no examples in the spec. I'd say that it's just

 <extension url="http://hl7.org/fhir/StructureDefinition/http-response-header">
   <valueString value="My-Header: Value-Of-Header"/>
 </extension>

During HL7 to FHIR conversion, if value is not coming in does it make sense to create an extension element with just the url?

view this post on Zulip Grahame Grieve (Nov 06 2019 at 22:49):

just what URL?

view this post on Zulip Vivek (Nov 07 2019 at 03:29):

just what URL?

url for the extension data type

view this post on Zulip Grahame Grieve (Nov 07 2019 at 03:56):

ah no you need a value


Last updated: Apr 12 2022 at 19:14 UTC