Skip to content

Commit

Permalink
fix: object present _id in PN VR in MongoDB
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed May 9, 2022
1 parent 70efb15 commit 4b73691
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions models/mongodb/models/dicom.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const mongoose = require("mongoose");
const {
dicomJsonAttributeSchema,
dicomJsonAttributePNSchema,
dicomJsonAttributeDASchema
dicomJsonAttributeDASchema,
getVRSchema
} = require("../schema/dicomJsonAttribute");
const { logger } = require("../../../utils/log");

Expand Down Expand Up @@ -39,14 +40,8 @@ let dicomModelSchema = new mongoose.Schema(
...dicomJsonAttributeSchema,
Value: [mongoose.SchemaTypes.String]
},
"00080090": {
...dicomJsonAttributeSchema,
Value: [dicomJsonAttributePNSchema]
},
"00100010": {
...dicomJsonAttributeSchema,
Value: [dicomJsonAttributePNSchema]
},
"00080090": getVRSchema("PN"),
"00100010": getVRSchema("PN"),
"00100020": {
...dicomJsonAttributeSchema,
Value: [mongoose.SchemaTypes.String]
Expand Down

0 comments on commit 4b73691

Please sign in to comment.