Skip to content

Commit

Permalink
feat: add 0040A073 schema def in instance schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Aug 11, 2023
1 parent 9e82bff commit 066d21e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions models/mongodb/models/dicom.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ const { logger } = require("../../../utils/logs/log");
const { raccoonConfig } = require("@root/config-class");
const { dictionary } = require("@models/DICOM/dicom-tags-dic");

let verifyingObserverSchema = new mongoose.Schema(
{
"0040A027": getVRSchema("LO"),
"0040A030": getVRSchema("DT"),
"0040A075": getVRSchema("PN")
},
{
strict: false,
_id: false,
versionKey: false
}
);

let dicomModelSchema = new mongoose.Schema(
{
"studyUID": {
Expand Down Expand Up @@ -81,6 +94,10 @@ let dicomModelSchema = new mongoose.Schema(
}
}),
"00400275": dicomJsonAttributeSchema,
"0040A073": {
...dicomJsonAttributeSchema,
Value: [verifyingObserverSchema]
},
"00080016": {
...dicomJsonAttributeSchema,
Value: [mongoose.SchemaTypes.String]
Expand Down

0 comments on commit 066d21e

Please sign in to comment.