Skip to content

Commit 96cd4aa

Browse files
committed
Detecting duplicates
1 parent 1bfafe8 commit 96cd4aa

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

schemas/import.schema.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,12 @@
451451
"items": {
452452
"type": "string"
453453
}
454+
},
455+
"pendingDuplicates": {
456+
"type": "array",
457+
"items": {
458+
"type": "object"
459+
}
454460
}
455461
}
456462
}
@@ -916,7 +922,27 @@
916922
},
917923
"additionalProperties": false
918924
}
925+
},
926+
"pendingDuplicates":{
927+
"type": "array",
928+
"items": {
929+
"type": "object",
930+
"required": [
931+
"importSeriesId",
932+
"seriesInstanceUid"
933+
],
934+
"properties": {
935+
"importSeriesId": {
936+
"type": "string"
937+
},
938+
"seriesInstanceUid": {
939+
"type": "string"
940+
}
941+
},
942+
"additionalProperties": true
943+
}
919944
}
945+
920946
}
921947
},
922948
"postImportResponse": {

schemas/importSeries.schema.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,20 @@
9191
"replicated": {
9292
"type": "boolean"
9393
},
94+
"duplicate": {
95+
"type": "object",
96+
"properties": {
97+
"duplicateOfId": {
98+
"type": "string"
99+
},
100+
"userDecision": {
101+
"type": "string",
102+
"enum": ["Pending", "Overwrite", "Discard"]
103+
}
104+
},
105+
"additionalProperties": false,
106+
"required": ["duplicateOfId","userDecision" ]
107+
},
94108
"dicomHeaderSummary": {
95109
"type": "object",
96110
"required": [

0 commit comments

Comments
 (0)