Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle relative URI's #54

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wayfarer3130
Copy link
Contributor

This change supports handling relative URI's as clarified in the CP "Handle Relative URI's" for bulkdata requests. No other request types are modified.

@wayfarer3130
Copy link
Contributor Author

The CP for relative URI, describing why the base relative URI's are already permitted by the DICOMweb standard, as well as defining the base path for series/instance metadata is available here: https://docs.google.com/document/d/1D_qweX55vymlgNqJimJzizoT1qg0XesA/edit?usp=sharing&ouid=106394421000961430700&rtpof=true&sd=true

@pieper
Copy link
Contributor

pieper commented Apr 7, 2022

@wayfarer3130 are Bulkdata and Series really allowed to be capitalized here?

image

@wayfarer3130
Copy link
Contributor Author

@wayfarer3130 are Bulkdata and Series really allowed to be capitalized here?

image

Good catch - the Bulkdata one can be capitalized as it is an implementation specific version, while the Series must be series. Those were auto-capitalized by word.

src/api.js Show resolved Hide resolved
@wayfarer3130
Copy link
Contributor Author

wayfarer3130 commented Apr 12, 2022 via email

@dclunie
Copy link

dclunie commented Apr 12, 2022

Can you clarify "the embedded base URI is implicit"? Where does this "embedded base URI" live?

@wayfarer3130
Copy link
Contributor Author

wayfarer3130 commented Apr 12, 2022 via email

@dclunie
Copy link

dclunie commented Apr 13, 2022

The most important thing is not to introduce any breaking changes either in terms of:

  • change in existing interpretation, which I would take to be relative to the requested resource per the RFC (regardless of the implementation impact of that as @hackermd points out in terms of timing of retrieval +/- need to preserve state, that's the way it is now)
  • new additional means of specifying the path to which relative URLs are relative that existing clients may not know about and hence not follow and hence fail

I.e., the CP must not break existing valid clients.

@wayfarer3130
Copy link
Contributor Author

wayfarer3130 commented Apr 14, 2022 via email

@dclunie
Copy link

dclunie commented Apr 14, 2022

That would break existing implementations.

@pieper
Copy link
Contributor

pieper commented Jun 21, 2024

@wayfarer3130 @dclunie so did we decide this change is not correct and we should close the PR?

@wayfarer3130
Copy link
Contributor Author

@pieper - the relative URI change is valid for the standard, the only bit that isn't valid is that I assumed the base URL rather than having it provided - that is the bit of the URL in between the http://host/dicomweb/studies bit and the relative URI being specified. Let me make that explicit in the call, and then I think we should merge it. I will add tests for that too. OHIF worked around it by manually modifying the URL to include the prefix portion of the URI, but it would be nice for the rest of the services to have support.

@wayfarer3130
Copy link
Contributor Author

I think this is standards compliant now - the retrieve needs to either have the path that the original metadata fetch used, or a study uid and optionally series uid to construct the intermediate path.

@pieper
Copy link
Contributor

pieper commented Jun 21, 2024

Thanks for following up on this @wayfarer3130.

@dclunie do you have any more comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants