Skip to content

Commit

Permalink
update the slide link
Browse files Browse the repository at this point in the history
  • Loading branch information
nanli-emory committed Apr 8, 2024
1 parent 43022c7 commit afcdf56
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/dicom-connect/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,12 @@ function initialize() {
page_states[page_states.status].data = data
function generateLink (data, type, row) {
const seriesId = row['0020000E']['Value'][0]
if (row.status !='done') return seriesId
const modality = row['00080060']['Value'][0]
if (row.status !='done') return seriesId;
const slideId = row.slideId;
if (modality=='SM') return `<a href="../viewer/viewer.html?slideId=${slideId}">${seriesId}</a>`


return `<a href="../dicom-connect/table.html?status=instances&source=${row.source}&studyId=${params.studyId}&seriesId=${seriesId}">${seriesId}</a>`;
}
function generateStatus (data, type, row) {
Expand Down Expand Up @@ -228,8 +233,10 @@ function initialize() {
datatable.data().each(function (d) {
d['0020000E']['Value'][0]
const idx = slides.findIndex(slide=>d['0020000E']['Value'][0]==slide.series)

if (idx!=-1) {
d.status = slides[idx].status
d.slideId = slides[idx]._id.$oid
} else {
d.status = 'unsync'
}
Expand Down

0 comments on commit afcdf56

Please sign in to comment.