Stream: implementers
Topic: Observation Attachment
Lauri Karppinen (Sep 25 2019 at 12:17):
I just recently noticed that Attachment has been removed from observation.value in v4. I have been referencing from observation to binary resource from observation as valueAttachment. Is there some other way to do that?
Diego Bosca (Sep 25 2019 at 12:24):
Not really sure, but maybe "derivedFrom" attribute can achieve what you are looking for
Yunwei Wang (Sep 25 2019 at 14:34):
@Lauri Karppinen You can use derivedFrom and reference to a Media resource
Reinhard Egelkraut (Sep 25 2019 at 15:09):
@Lauri Karppinen there was a lot of discussion going on during the last couple of months concerning Observation.valueAttachment, Media, DocumentReference etc (see also https://confluence.hl7.org/pages/viewpage.action?pageId=40735720).
The current solution is, that Observation.valueAttachment will be brought back in R5 and as extension in R4, see also the motion from the last WGM in Atlanta: https://confluence.hl7.org/pages/viewpage.action?pageId=66916658#OOWGMMeetingMinutes:September16-20-Q2.1
Furthermore the resource media will potentially be removed in R5, due to overlapping structure with the data type Attachment. If you take a look at the current version on build.fhir.org you already can see the upcoming changes.
Eric Haas (Sep 25 2019 at 15:49):
@Reinhard Egelkraut is correct. he must have been in Atlanta :-). You could use Media in R4 but Media has been deprecated and merged with DocumentReference and valueAttachment returning in R5. If the observation value is really some other result value from a binary file then use derived from. ( for example 'X' detected and here is the the proof in this image ). Otherwise I would recommend using a valueAttachment extension. We voted on and approved adding a standard extension for valueAttachment to R4 for compatibility moving forward.
Lauri Karppinen (Sep 27 2019 at 07:13):
Thanks for the answers. Should I already be able to find valueAttachment extension approved somewhere? I tried simplifier to find it but with no luck.
Eric Haas (Sep 27 2019 at 16:37):
Not available yet the tracker was just approved. I will apply it soon. And then would use this method to create the extension...... the extension would be http://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.valueAttachment
Kathy Pickering (Oct 22 2019 at 15:51):
@Eric Haas Is this how you would expect the extension to be returned?
resource": {
"resourceType": "Observation",
"id": "117276868",
"extension": [
{
"url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.valueAttachment",
"valueAttachment": {
"data": "SomeBase64data"
"contentType": "application/xhtml"
}
}
],
...
"dataAbsentReason": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "not-permitted",
"display": "Not Permitted"
}
],
"text": "Not Permitted"
}
Eric Haas (Oct 22 2019 at 20:00):
The extension yes. I would not have a dataAbsentReason (DAR) since the value is there as an extension.
Last updated: Apr 12 2022 at 19:14 UTC