Stream: bulk data
Topic: relative URLs for ndjson files
Michele Mottini (May 05 2019 at 11:56):
Are relative urls for the NDJSON files OK in the response, eg
{ "transactionTime": "[instant]", "request" : "[base]/Patient/$export?_type=Patient,Observation", "requiresAccessToken" : true, "output" : [{ "type" : "Patient", "url" : "/files/2bfc744c-4bf7-4420-8765-d1f6b8b9ee8e/2a6fd73d-e6d0-4208-a173-1a708be28ad7" },
(I'd say yes, but the specs do not say)
Josh Mandel (May 05 2019 at 12:07):
They're not. What would it be relative to? The FHIR server base?
Michele Mottini (May 05 2019 at 12:19):
I guess...(getting those from @Mohammad Jafari server)
Mohammad Jafari (May 05 2019 at 12:30):
I agree these should not be relative; other than ambiguity, the files may actually reside on a different domain. I'll see if I can push a quick fix for this.
Grahame Grieve (May 05 2019 at 12:31):
we discussed relative URLSs last time and decided no, I thought?
Michele Mottini (May 05 2019 at 12:32):
our import currently crash on relative URLs - so no objections here to require absolute ones...
Josh Mandel (May 05 2019 at 12:36):
we discussed relative URLs for references in bundles, which we decided to allow. I don't know that we discussed relation URLs for outputs.
Josh Mandel (May 05 2019 at 12:37):
I think it would be good to explicitly require absolute output URLs, yes.
Grahame Grieve (May 05 2019 at 12:47):
yes for the outputs that's what I thought we dsicussed
Brian Postlethwaite (May 05 2019 at 12:51):
so a relative path of ../bulk-data-output/3534532/Practitioner-1.ndjson isn't good then.
Mohammad Jafari (May 05 2019 at 13:38):
I've fixed these in my server now.
Michele Mottini (Aug 10 2021 at 16:15):
https://jira.hl7.org/browse/FHIR-33162
Dan Gottlieb (Aug 13 2021 at 14:41):
@Michele Mottini would tweaking the description of the output.url field in the IG from "the path to the file" to "the absolute path to the file" sufficiently address this from your perspective?
Michele Mottini (Aug 13 2021 at 14:56):
Yes, that would be good
Last updated: Apr 12 2022 at 19:14 UTC