[OHIF-339] - workflow changes (#1931)

* workflow changes

* Cherry pick OHIF-310 into this PR.

* fix label bug and dead code

* remove comment

* Wire up CreateReportButton

* fix additionalFindingTypes + save interaction

* Remove unused createReportAsync call

* stub for report hydration prompt

* Update PR

* Remove debuggers

* push updated code

* Push updates

* push

* fix sidebar save

* enable tracking of new study or series

* fix for duplicate created report series in sidebard

* fix for unexpected viewport dialog after visiting study list then a new study

* Fix for hydration not marking multiple series as active

* Reviewer changes.

* Respond to final review comment, add series description setting for export.

Co-authored-by: James A. Petts <jamesapetts@gmail.com>
This commit is contained in:
Danny BrownandJames A. Petts authored and GitHub committed 2020-08-04 11:11:23 +02:00
1 parent 5f487840a1
commit 2a51d75f77
26 files changed
+948 -391

No files matched your search

@@ -36,6 +36,10 @@ export default class DisplaySetService {
return displaySetCache;
}
getMostRecentDisplaySet() {
return this.activeDisplaySets[this.activeDisplaySets.length - 1];
}
getActiveDisplaySets() {
return this.activeDisplaySets;
}
@@ -69,6 +73,12 @@ export default class DisplaySetService {
displaySet => displaySet.displaySetInstanceUID === displaySetInstanceUid
);
/**
*
* @param {*} input
* @param {*} param1
* @returns {string[]} - added displaySetInstanceUIDs
*/
makeDisplaySets = (input, { batch = false, madeInClient = false } = {}) => {
if (!input || !input.length) {
throw new Error('No instances were provided.');
@@ -84,11 +94,12 @@ export default class DisplaySetService {
let displaySetsAdded = [];
if (batch) {
input.forEach(instances => {
for (let i = 0; i < input.length; i++) {
const instances = input[i];
const displaySets = this.makeDisplaySetForInstances(instances);
displaySetsAdded = [...displaySetsAdded, displaySets];
});
}
} else {
const displaySets = this.makeDisplaySetForInstances(input);
@@ -109,6 +120,8 @@ export default class DisplaySetService {
displaySetsAdded,
options,
});
return displaySetsAdded;
}
};