feat(hp): Add displayArea option for Hanging protocols and example with Mamo(#3808)
This commit is contained in:
1 parent
cb30b97610
commit
18ac08ed86
28 files changed
+771
-27
No files matched your search
@@ -0,0 +1,201 @@
|
||||
import {
|
||||
RCC,
|
||||
RMLO,
|
||||
LCC,
|
||||
LMLO,
|
||||
RCCPrior,
|
||||
LCCPrior,
|
||||
RMLOPrior,
|
||||
LMLOPrior,
|
||||
} from './mammoDisplaySetSelector';
|
||||
|
||||
const rightDisplayArea = {
|
||||
storeAsInitialCamera: true,
|
||||
imageArea: [0.8, 0.8],
|
||||
imageCanvasPoint: {
|
||||
imagePoint: [0, 0.5],
|
||||
canvasPoint: [0, 0.5],
|
||||
},
|
||||
};
|
||||
|
||||
const leftDisplayArea = {
|
||||
storeAsInitialCamera: true,
|
||||
imageArea: [0.8, 0.8],
|
||||
imageCanvasPoint: {
|
||||
imagePoint: [1, 0.5],
|
||||
canvasPoint: [1, 0.5],
|
||||
},
|
||||
};
|
||||
|
||||
const hpMammography = {
|
||||
id: '@ohif/hpMammo',
|
||||
hasUpdatedPriorsInformation: false,
|
||||
name: 'Mammography Breast Screening',
|
||||
protocolMatchingRules: [
|
||||
{
|
||||
id: 'Mammography',
|
||||
weight: 150,
|
||||
attribute: 'ModalitiesInStudy',
|
||||
constraint: {
|
||||
contains: 'MG',
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'numberOfImages',
|
||||
attribute: 'numberOfDisplaySetsWithImages',
|
||||
constraint: {
|
||||
greaterThan: 2,
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
toolGroupIds: ['default'],
|
||||
displaySetSelectors: {
|
||||
RCC,
|
||||
LCC,
|
||||
RMLO,
|
||||
LMLO,
|
||||
RCCPrior,
|
||||
LCCPrior,
|
||||
RMLOPrior,
|
||||
LMLOPrior,
|
||||
},
|
||||
|
||||
stages: [
|
||||
{
|
||||
name: 'CC/MLO',
|
||||
viewportStructure: {
|
||||
type: 'grid',
|
||||
layoutType: 'grid',
|
||||
properties: {
|
||||
rows: 2,
|
||||
columns: 2,
|
||||
},
|
||||
},
|
||||
viewports: [
|
||||
{
|
||||
viewportOptions: {
|
||||
toolGroupId: 'default',
|
||||
displayArea: leftDisplayArea,
|
||||
// flipHorizontal: true,
|
||||
// rotation: 180,
|
||||
allowUnmatchedView: true,
|
||||
},
|
||||
displaySets: [
|
||||
{
|
||||
id: 'RCC',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
viewportOptions: {
|
||||
toolGroupId: 'default',
|
||||
// flipHorizontal: true,
|
||||
displayArea: rightDisplayArea,
|
||||
allowUnmatchedView: true,
|
||||
},
|
||||
displaySets: [
|
||||
{
|
||||
id: 'LCC',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
viewportOptions: {
|
||||
toolGroupId: 'default',
|
||||
displayArea: leftDisplayArea,
|
||||
// rotation: 180,
|
||||
// flipHorizontal: true,
|
||||
allowUnmatchedView: true,
|
||||
},
|
||||
displaySets: [
|
||||
{
|
||||
id: 'RMLO',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
viewportOptions: {
|
||||
toolGroupId: 'default',
|
||||
displayArea: rightDisplayArea,
|
||||
// flipHorizontal: true,
|
||||
allowUnmatchedView: true,
|
||||
},
|
||||
displaySets: [
|
||||
{
|
||||
id: 'LMLO',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
// Compare CC current/prior top/bottom
|
||||
{
|
||||
name: 'CC compare',
|
||||
viewportStructure: {
|
||||
type: 'grid',
|
||||
layoutType: 'grid',
|
||||
properties: {
|
||||
rows: 2,
|
||||
columns: 2,
|
||||
},
|
||||
},
|
||||
viewports: [
|
||||
{
|
||||
viewportOptions: {
|
||||
toolGroupId: 'default',
|
||||
displayArea: leftDisplayArea,
|
||||
flipHorizontal: true,
|
||||
rotation: 180,
|
||||
},
|
||||
displaySets: [
|
||||
{
|
||||
id: 'RCC',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
viewportOptions: {
|
||||
toolGroupId: 'default',
|
||||
flipHorizontal: true,
|
||||
displayArea: rightDisplayArea,
|
||||
},
|
||||
displaySets: [
|
||||
{
|
||||
id: 'LCC',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
viewportOptions: {
|
||||
toolGroupId: 'default',
|
||||
displayArea: leftDisplayArea,
|
||||
flipHorizontal: true,
|
||||
},
|
||||
displaySets: [
|
||||
{
|
||||
id: 'RCCPrior',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
viewportOptions: {
|
||||
toolGroupId: 'default',
|
||||
displayArea: rightDisplayArea,
|
||||
},
|
||||
displaySets: [
|
||||
{
|
||||
id: 'LCCPrior',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
// Indicates it is prior aware, but will work with no priors
|
||||
numberOfPriorsReferenced: 0,
|
||||
};
|
||||
|
||||
export default hpMammography;
|
||||
Reference in new issue
Block a user