-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat mammo hanging protocol #4445
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
export const mgCC = { | ||
id: 'mgCC', | ||
name: 'mammo-cc', | ||
imageLoadStrategy: 'interleaveTopToBottom', | ||
protocolMatchingRules: [ | ||
{ attribute: 'ModalitiesInStudy', constraint: { contains: ['MG', 'DX'] } }, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, this probably needs a better rule so it doesn't trigger too often. We really need to add a way to have a constraint X and constraint Y or X2 and Y2. DX is probably too aggressive by itself |
||
], | ||
displaySetSelectors: { | ||
isRCC: { | ||
seriesMatchingRules: [ | ||
{ weight: 1, attribute: 'isRCC', constraint: { equals: { value: true } } }, | ||
], | ||
}, | ||
isLCC: { | ||
seriesMatchingRules: [ | ||
{ weight: 1, attribute: 'isLCC', constraint: { equals: { value: true } } }, | ||
], | ||
}, | ||
}, | ||
stages: [ | ||
{ | ||
name: 'default', | ||
viewportStructure: { layoutType: 'grid', properties: { rows: 1, columns: 2 } }, | ||
viewports: [{ displaySets: [{ id: 'isRCC' }] }, { displaySets: [{ id: 'isLCC' }] }], | ||
}, | ||
], | ||
numberOfPriorsReferenced: -1, | ||
}; | ||
|
||
export const mgMLO = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason you aren't using the view code matcher? See mammoDisplaySetSElectors |
||
id: 'mgMLO', | ||
name: 'mammo-mlo', | ||
imageLoadStrategy: 'interleaveTopToBottom', | ||
protocolMatchingRules: [ | ||
{ attribute: 'ModalitiesInStudy', constraint: { contains: ['MG', 'DX'] } }, | ||
], | ||
displaySetSelectors: { | ||
isRMLO: { | ||
seriesMatchingRules: [ | ||
{ weight: 1, attribute: 'isRMLO', constraint: { equals: { value: true } } }, | ||
], | ||
}, | ||
isLMLO: { | ||
seriesMatchingRules: [ | ||
{ weight: 1, attribute: 'isLMLO', constraint: { equals: { value: true } } }, | ||
], | ||
}, | ||
}, | ||
stages: [ | ||
{ | ||
name: 'default', | ||
viewportStructure: { layoutType: 'grid', properties: { rows: 1, columns: 2 } }, | ||
viewports: [{ displaySets: [{ id: 'isRMLO' }] }, { displaySets: [{ id: 'isLMLO' }] }], | ||
}, | ||
], | ||
numberOfPriorsReferenced: -1, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default function isMammoPos(displaySet: any, pos: 'R' | 'L', type: 'CC' | 'MLO') { | ||
const instanceTags = displaySet.instances[0]; | ||
const viewCode = instanceTags.ViewCodeSequence?.[0]?.CodeValue; | ||
const laterality = | ||
instanceTags.ImageLaterality || | ||
instanceTags.Laterality || | ||
instanceTags.SharedFunctionalGroupsSequence?.[0]?.FrameAnatomySequence?.[0]?.FrameLaterality; | ||
|
||
const typeToCodeMap = { | ||
CC: 'R-10242', | ||
MLO: 'R-10226', | ||
}; | ||
|
||
return laterality === pos && viewCode === typeToCodeMap[type]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave the image load strategy out now - it is better handled with the progressive loading.