feat(URL): add param for initial series and sop uids to display (#3265)

* feat: Allow navigating to a specified series and sop instance

This was a feature in OHIF v2, so adding it to v3, albeit with new
parameters.

feat: Allow comma separated as well as repeated args params

* docs

* Test fixes

* feat: Navigate to SOP selected - PR fixes

* Updated docs

* PR fixes
This commit is contained in:
Bill Wallace authored and GitHub committed 2023-04-05 12:59:56 -04:00
1 parent 226244a26c
commit 50ed96ff73
16 files changed
+284 -47

No files matched your search

@@ -7,7 +7,7 @@ const defaultProtocol = {
hasUpdatedPriorsInformation: false,
name: 'Default',
createdDate: '2021-02-23T19:22:08.894Z',
modifiedDate: '2021-02-23T19:22:08.894Z',
modifiedDate: '2023-04-01',
availableTo: {},
editableBy: {},
protocolMatchingRules: [],
@@ -33,8 +33,6 @@ const defaultProtocol = {
},
displaySetSelectors: {
defaultDisplaySetId: {
// Unused currently
imageMatchingRules: [],
// Matches displaysets, NOT series
seriesMatchingRules: [
// Try to match series with images by default, to prevent weird display
@@ -45,6 +43,15 @@ const defaultProtocol = {
greaterThan: { value: 0 },
},
},
// This display set will select the specified items by preference
// It has no affect if nothing is specified in the URL.
{
attribute: 'isDisplaySetFromUrl',
weight: 10,
constraint: {
equals: true,
},
},
],
// Can be used to select matching studies
// studyMatchingRules: [],
@@ -65,7 +72,13 @@ const defaultProtocol = {
viewportOptions: {
viewportType: 'stack',
toolGroupId: 'default',
// initialImageOptions: {
// This will specify the initial image options index if it matches in the URL
// and will otherwise not specify anything.
initialImageOptions: {
custom: 'sopInstanceLocation',
},
// Other options for initialImageOptions, which can be included in the default
// custom attribute, or can be provided directly.
// index: 180,
// preset: 'middle', // 'first', 'last', 'middle'
// },