Stream: smart
Topic: Get DocumentReference attachments
Yunwei Wang (Oct 08 2021 at 13:59):
During Inferno testing, we want to verify that DocumentReference.content.attachment.url is a real url that server does not return 4xx. Some questions here:
1) If the url is not a FHIR endpoint, for example, it is a pdf or png file, I don't think SMART has scope to request/grant. So normally, how does EHR grant a client to access attachments of DocumentReference and DiagnosticReport?
2) If the url is a FHIR endpoint, we know Binary could be used. What other resources could be used as attachment of DocumentReference and DiagnosticReport?
3) Because we want to verify the existence of attachment, not the content of the attachment, we are considering HEAD request as specified in FHIR HTTP page instead of using GET to download files. Does a client need access token to do HEAD request? If so, should client request using same 'read' scope?
Last updated: Apr 12 2022 at 19:14 UTC