Stream: implementers
Topic: How to support binary data in Observation.value[x]
frank cao (Feb 07 2022 at 21:32):
R4 removed attachment from Observation.value[x]. I plan to use inter version extension like "url= http://hl7.org/fhir/3.0/StructureDefinition/extension-Observation.valueAttachment", but validator says "observation.valueAttachment" is invalid. Is this the right approach?
<Observation>
... other elements
<value>
<extension url="http://hl7.org/fhir/3.0/StructureDefinition/extension-Observation.valueAttachment" >
<valueAttachment>
<contentType value="pdf" />
<data value="VghpcyBpcyBzYW1wbGUgdGV4dCBpbiBsaWV1IG9mIHRoZSBiaW5hcnkgaW5mb3JtYXRpb24gY29u
dGFpbmVkIGluIGFuIGVtYmVkZGVkIGRvY3VtZW50Lg==" />
</valueAttachment>
</extension>
<value>
</Observation>
Lloyd McKenzie (Feb 07 2022 at 21:42):
@Grahame Grieve
Grahame Grieve (Feb 07 2022 at 21:56):
I believe that this is a question for #Orders and Observation WG
Lloyd McKenzie (Feb 07 2022 at 22:01):
It's not an OO question, it's a tooling question.
Lloyd McKenzie (Feb 07 2022 at 22:01):
I suspect the issue is that the extension is expected to appear on Observation, not within value. Also, "value" isn't a valid XML tag.
Eric Haas (Feb 08 2022 at 04:41):
valueAttachment is back in R5 can you use unpublished version too as extension.
frank cao (Feb 08 2022 at 14:57):
What would be the right extension url for this? I tried "http://hl7.org/fhir/3.0/StructureDefinition/extension-Observation.valueAttachment" and it didn't work.
Lloyd McKenzie (Feb 08 2022 at 15:07):
Did you declare it on Observation, not Observation.value?
frank cao (Feb 09 2022 at 16:18):
Yes. I put it under Observation, and the validator is okay with it. I used "http://hl7.org/fhir/3.0/StructureDefinition/extension-Observation.value[x]" as the extension url and it works. Is this the right url to use?
Lloyd McKenzie (Feb 09 2022 at 17:25):
Because Attachment exists in multiple versions, there's more than one option, but the one you've chosen is probably the 'best' one for use.
frank cao (Feb 09 2022 at 19:22):
Great. Thank you.
Grahame Grieve (Feb 10 2022 at 21:53):
@Lloyd McKenzie I believe the applicable clarifications are J#31721, J#31348 and J#31999
Grahame Grieve (Feb 10 2022 at 21:53):
which would mean that the url should be http://hl7.org/fhir/3.0/StructureDefinition/extension-Observation.value
Last updated: Apr 12 2022 at 19:14 UTC