feat: Add White Labelling, Hanging Protocols, and tons of Extensions / Mode fixes

* modified

* new files in existing extensions/libraries/modes

* fixed bugs and tests

* Clean up

* fix: viewport display fixed

* Fixed configs for deployment

* Removed unnecessary files and functions

* Fixed default HP module

* Added white labelling

* Fixed hash routing

* Removed unnecessary routers

Co-authored-by: Alireza Sedghi <ar.sedghi@gmail.com>
This commit is contained in:
Erik ZieglerandAlireza Sedghi authored and GitHub committed 2021-05-28 14:32:48 -04:00
1 parent 0db81b30f3
commit 99b8dc4759
93 files changed
+3825 -1293

No files matched your search

@@ -0,0 +1,188 @@
const hangingProtocolName = 'petCT';
const petCTProtocol = {
id: 'PET/CT',
locked: true,
hasUpdatedPriorsInformation: false,
name: 'PET/CT',
createdDate: '2021-02-23T18:32:42.849Z',
modifiedDate: '2021-02-23T18:32:42.849Z',
availableTo: {},
editableBy: {},
protocolMatchingRules: [
{
id: 'wauZK2QNEfDPwcAQo',
weight: 1,
attribute: 'StudyInstanceUID',
constraint: {
equals: {
value: '1.3.6.1.4.1.25403.345050719074.3824.20170125112931.11',
},
},
required: true,
},
],
stages: [
{
id: 'hYbmMy3b7pz7GLiaT',
name: 'oneByTwo',
viewportStructure: {
type: 'grid',
properties: {
rows: 2,
columns: 2,
},
},
viewports: [
{
viewportSettings: [
{
options: {
voi: {
windowWidth: 500,
windowCenter: 500,
},
},
commandName: '',
// Type can be viewport or prop
// viewport: It is most suited for settings that
// should be applied before the first render
// prop: It is the type of command that can be applied
// after the image render, such as tool activations.
type: 'viewport',
},
],
imageMatchingRules: [],
seriesMatchingRules: [
{
id: 'vSjk7NCYjtdS3XZAw',
weight: 1,
attribute: 'SeriesNumber',
constraint: {
equals: {
value: "4",
},
},
required: false,
},
],
studyMatchingRules: [],
},
{
viewportSettings: [
{
options: {
invert: true,
},
commandName: '',
type: 'viewport',
},
],
imageMatchingRules: [
],
seriesMatchingRules: [
{
id: 'GPEYqFLv2dwzCM322',
weight: 1,
attribute: 'SeriesNumber',
constraint: {
equals: {
value: "1",
},
},
required: false,
},
],
studyMatchingRules: [
],
},
{
viewportSettings: [
{
options: {
invert: true,
},
commandName: '',
type: 'viewport',
},
],
imageMatchingRules: [
],
seriesMatchingRules: [
{
id: 'GPEYqFLv2dwzCM322',
weight: 1,
attribute: 'SeriesNumber',
constraint: {
equals: {
value: "6",
},
},
required: false,
},
],
studyMatchingRules: [
],
},
{
viewportSettings: [
{
options: {
invert: true,
},
commandName: '',
type: 'viewport',
},
],
imageMatchingRules: [
],
seriesMatchingRules: [
{
id: 'GPEYqFLv2dwzCM322',
weight: 1,
attribute: 'SeriesDescription',
constraint: {
contains: {
value: "Corrected",
},
},
required: false,
},
{
id: 'GPEYqFLv2dwzCM322',
weight: 2,
attribute: 'SeriesDescription',
constraint: {
doesNotContain: {
value: "Uncorrected",
},
},
required: false,
},
],
studyMatchingRules: [
],
},
],
createdDate: '2021-02-23T18:32:42.850Z',
},
],
numberOfPriorsReferenced: 0,
};
function getHangingProtocolModule() {
return [
{
name: hangingProtocolName,
protocols: [petCTProtocol],
},
];
}
export default getHangingProtocolModule;