Skip to content

Commit

Permalink
series uid->image view; study uid -> series view
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberio-baptista committed Nov 20, 2023
1 parent 4d905b6 commit 07be890
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ const ImageView = createReactClass({
// deprecated data properties
"data-result-type": "image",
"data-result-uri": item.uri,
"data-result-uid": item.sopInstanceUID
"data-result-uid": item.sopInstanceUID,
"data-result-serieuid": item.serieuid
}}
/>
</div>
Expand Down Expand Up @@ -183,8 +184,14 @@ const ImageView = createReactClass({

render: function() {
let self = this;

var resultArray = this.props.serie.images;

for (let i = 0; i < resultArray.length; i++){
resultArray[i]['serieuid'] = this.props.serie.serieInstanceUID;
}


var selectRowProp = {
clickToSelect: true,
mode: "none",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ const SeriesView = createReactClass({
uid: item.serieInstanceUID,
// deprecated data fields
"data-result-type": "series",
"data-result-uid": item.serieInstanceUID
"data-result-uid": item.serieInstanceUID,
"data-result-studyuid": item.studyuid
}}
/>
</div>
Expand Down Expand Up @@ -156,6 +157,10 @@ const SeriesView = createReactClass({

var resultArray = this.props.study.series;

for (let i = 0; i < resultArray.length; i++){
resultArray[i]['studyuid'] = this.props.study.studyInstanceUID;
}

var selectRowProp = {
clickToSelect: true,
mode: "none",
Expand Down

0 comments on commit 07be890

Please sign in to comment.