Skip to content

Commit

Permalink
fix: incorrect content of query with IS of VR
Browse files Browse the repository at this point in the history
- Test case: SeriesNumber, InstanceNumber
- Defined type of property (SeriesNumber, InstanceNumber) to string
- The IS of VR is integer string may have "+" or "-"
- Additionally, if use integer, need to parse string to int
and process the string contains comma
> So, i decied to use string instead of int

fix: 當搜尋IS型態的數值時,返回了錯誤的內容

- Test case: SeriesNumber, InstanceNumber
- 更改了 SeriesNumber 以及 InstanceNumber 定義型態為 string
- IS 屬於 interger string,其可能包含 "+" 或 "-"
- 此外,如果使用 integer 必須將搜尋參數轉成 int 並且處理
含有逗號分隔的數值
> 所以,目前決定使用字串
  • Loading branch information
Chinlinlee committed May 22, 2022
1 parent 8205ae9 commit 3511d22
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions models/mongodb/model/ImagingStudy.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,20 @@ module.exports = function (mongodb) {
type: String
} ,
dicomJson : {
type : Object ,
default : void 0
"00200013": {
vr: {
type: String
},
Value: {
type: [String]
}
}
} ,
metadata : {
type : Object ,
default : void 0
}
});
}, {strict : false});

const seriesSchema = new mongodb.Schema({
uid:
Expand Down Expand Up @@ -80,7 +86,15 @@ module.exports = function (mongodb) {
Value : {
type : [Date]
}
}
},
"00200011": {
vr: {
type: String
},
Value: {
type: [String]
}
}
}
}, {strict : false});

Expand Down

0 comments on commit 3511d22

Please sign in to comment.