Skip to content

Commit

Permalink
fix: cannot store value of VR SQ
Browse files Browse the repository at this point in the history
- Original use Array string, but SQ is nested object,
cannot cast it to string
  • Loading branch information
Chinlinlee committed May 2, 2022
1 parent 9e3c0fd commit cf44360
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions models/mongodb/schema/dicomJsonAttribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ function getVRSchema(vr) {
}
});
} else {
return new mongoose.Schema({
...dicomJsonAttributeSchema,
Value: [mongoose.SchemaTypes.String]
}, {
return new mongoose.Schema(dicomJsonAttributeSchema, {
_id: false,
id: false,
toObject: {
Expand Down

0 comments on commit cf44360

Please sign in to comment.