<@800502084980965417> I'm not able to link media w...
# general
r
@reshma I'm not able to link media with the Diagnostic Report. We've paid developer account. Please check the attached screenshoot.
r
Sorry for the inconvenience here ravindra - if you go to the JSON tab in the tool and update it there it should work https://www.medplum.com/docs/api/fhir/resources/diagnosticreport
You'll need to construct the media.link appropriately to reference the Media resource
c
Hi @ravindratc - apologies about that. the
Media
resource doesn't have a
name
search param. Do you have any requests for how you'd like to search for it? For example, are you setting
Media.identifier
?
otherwise, @reshma 's suggestion is the safe strategy, setting it directly by JSON
r
r
@reshma @cody I don't get it. How to add media in Diagnostic Report. Can you please share an example or reference for it.
c
Sure, one second.
r
I'm waiting....
c
Let's say I have a
Media
resource with ID
Media/2c2a5ce4-63d2-4895-9201-3b61ed08e466
. the FHIR reference string is therefore
Media/2c2a5ce4-63d2-4895-9201-3b61ed08e466
Now in the DiagnosticReport JSON, you can add a reference to the Media:
Copy code
"media": [
    {
      "link": {
        "reference": "Media/2c2a5ce4-63d2-4895-9201-3b61ed08e466"
      }
    }
  ]
We filed a ticket for the Autocomplete control to search for
Media
resources. We'll get a solution out asap.
r
Thanks
s
Thanks for the input @cody and @reshma
r
how's the POC going @saladi. ?
s
I think we're almost there - certainly much more familiar with medplum now
r
good to hear! Keep us updated 🙂
s
I'm happy that we decided to give it a go on a side project before planning out how we'd use it with the lab
r
yeah, that's wise
177 Views