Skip to content

Commit 756081e

Browse files
author
AWS
committed
AWS Health Imaging Update: CopyImageSet API adds copying selected instances between image sets, and overriding inconsistent metadata with a force parameter. UpdateImageSetMetadata API enables reverting to prior versions; updates to Study, Series, and SOP Instance UIDs; and updates to private elements, with a force parameter.
1 parent e3ef936 commit 756081e

File tree

2 files changed

+73
-7
lines changed

2 files changed

+73
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Health Imaging",
4+
"contributor": "",
5+
"description": "CopyImageSet API adds copying selected instances between image sets, and overriding inconsistent metadata with a force parameter. UpdateImageSetMetadata API enables reverting to prior versions; updates to Study, Series, and SOP Instance UIDs; and updates to private elements, with a force parameter."
6+
}

services/medicalimaging/src/main/resources/codegen-resources/service-2.json

Lines changed: 67 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"version":"2.0",
33
"metadata":{
44
"apiVersion":"2023-07-19",
5+
"auth":["aws.auth#sigv4"],
56
"endpointPrefix":"medical-imaging",
67
"protocol":"rest-json",
78
"protocols":["rest-json"],
@@ -390,6 +391,10 @@
390391
"min":12,
391392
"pattern":"\\d+"
392393
},
394+
"Boolean":{
395+
"type":"boolean",
396+
"box":true
397+
},
393398
"ClientToken":{
394399
"type":"string",
395400
"max":64,
@@ -409,6 +414,12 @@
409414
},
410415
"exception":true
411416
},
417+
"CopiableAttributes":{
418+
"type":"string",
419+
"max":260000,
420+
"min":1,
421+
"sensitive":true
422+
},
412423
"CopyDestinationImageSet":{
413424
"type":"structure",
414425
"required":[
@@ -503,6 +514,12 @@
503514
"copyImageSetInformation":{
504515
"shape":"CopyImageSetInformation",
505516
"documentation":"<p>Copy image set information.</p>"
517+
},
518+
"force":{
519+
"shape":"Boolean",
520+
"documentation":"<p>Setting this flag will force the <code>CopyImageSet</code> operation, even if Patient, Study, or Series level metadata are mismatched across the <code>sourceImageSet</code> and <code>destinationImageSet</code>.</p>",
521+
"location":"querystring",
522+
"locationName":"force"
506523
}
507524
},
508525
"payload":"copyImageSetInformation"
@@ -536,6 +553,10 @@
536553
"latestVersionId":{
537554
"shape":"ImageSetExternalVersionId",
538555
"documentation":"<p>The latest version identifier for the source image set.</p>"
556+
},
557+
"DICOMCopies":{
558+
"shape":"MetadataCopies",
559+
"documentation":"<p>Contains <code>MetadataCopies</code> structure and wraps information related to specific copy use cases. For example, when copying subsets.</p>"
539560
}
540561
},
541562
"documentation":"<p>Copy source image set information.</p>"
@@ -620,7 +641,7 @@
620641
},
621642
"DICOMAccessionNumber":{
622643
"type":"string",
623-
"max":16,
644+
"max":256,
624645
"min":0,
625646
"sensitive":true
626647
},
@@ -740,7 +761,7 @@
740761
},
741762
"DICOMNumberOfStudyRelatedSeries":{
742763
"type":"integer",
743-
"max":10000,
764+
"max":1000000,
744765
"min":0
745766
},
746767
"DICOMPatientBirthDate":{
@@ -751,7 +772,7 @@
751772
},
752773
"DICOMPatientId":{
753774
"type":"string",
754-
"max":64,
775+
"max":256,
755776
"min":0,
756777
"sensitive":true
757778
},
@@ -775,9 +796,9 @@
775796
},
776797
"DICOMSeriesInstanceUID":{
777798
"type":"string",
778-
"max":64,
799+
"max":256,
779800
"min":0,
780-
"pattern":"(?:[1-9][0-9]*|0)(\\.(?:[1-9][0-9]*|0))*",
801+
"pattern":"(?:[0-9][0-9]*|0)(\\.(?:[1-9][0-9]*|0))*",
781802
"sensitive":true
782803
},
783804
"DICOMSeriesModality":{
@@ -828,9 +849,9 @@
828849
},
829850
"DICOMStudyInstanceUID":{
830851
"type":"string",
831-
"max":64,
852+
"max":256,
832853
"min":0,
833-
"pattern":"(?:[1-9][0-9]*|0)(\\.(?:[1-9][0-9]*|0))*",
854+
"pattern":"(?:[0-9][0-9]*|0)(\\.(?:[1-9][0-9]*|0))*",
834855
"sensitive":true
835856
},
836857
"DICOMStudyTime":{
@@ -1321,6 +1342,10 @@
13211342
"imageSetArn":{
13221343
"shape":"Arn",
13231344
"documentation":"<p>The Amazon Resource Name (ARN) assigned to the image set.</p>"
1345+
},
1346+
"overrides":{
1347+
"shape":"Overrides",
1348+
"documentation":"<p>This object contains the details of any overrides used while creating a specific image set version. If an image set was copied or updated using the <code>force</code> flag, this object will contain the <code>forced</code> flag.</p>"
13241349
}
13251350
}
13261351
},
@@ -1390,6 +1415,10 @@
13901415
"message":{
13911416
"shape":"Message",
13921417
"documentation":"<p>The error message thrown if an image set action fails.</p>"
1418+
},
1419+
"overrides":{
1420+
"shape":"Overrides",
1421+
"documentation":"<p>Contains details on overrides used when creating the returned version of an image set. For example, if <code>forced</code> exists, the <code>forced</code> flag was used when creating the image set.</p>"
13931422
}
13941423
},
13951424
"documentation":"<p>The image set properties.</p>"
@@ -1668,12 +1697,27 @@
16681697
"min":1,
16691698
"pattern":"[\\w -:]+"
16701699
},
1700+
"MetadataCopies":{
1701+
"type":"structure",
1702+
"required":["copiableAttributes"],
1703+
"members":{
1704+
"copiableAttributes":{
1705+
"shape":"CopiableAttributes",
1706+
"documentation":"<p>The JSON string used to specify a subset of SOP Instances to copy from source to destination image set.</p>"
1707+
}
1708+
},
1709+
"documentation":"<p>Contains copiable <code>Attributes</code> structure and wraps information related to specific copy use cases. For example, when copying subsets.</p>"
1710+
},
16711711
"MetadataUpdates":{
16721712
"type":"structure",
16731713
"members":{
16741714
"DICOMUpdates":{
16751715
"shape":"DICOMUpdates",
16761716
"documentation":"<p>The object containing <code>removableAttributes</code> and <code>updatableAttributes</code>.</p>"
1717+
},
1718+
"revertToVersionId":{
1719+
"shape":"ImageSetExternalVersionId",
1720+
"documentation":"<p>Specifies the previous image set version ID to revert the current image set back to.</p> <note> <p>You must provide either <code>revertToVersionId</code> or <code>DICOMUpdates</code> in your request. A <code>ValidationException</code> error is thrown if both parameters are provided at the same time.</p> </note>"
16771721
}
16781722
},
16791723
"documentation":"<p>Contains DICOMUpdates.</p>",
@@ -1692,6 +1736,16 @@
16921736
"BETWEEN"
16931737
]
16941738
},
1739+
"Overrides":{
1740+
"type":"structure",
1741+
"members":{
1742+
"forced":{
1743+
"shape":"Boolean",
1744+
"documentation":"<p>Setting this flag will force the <code>CopyImageSet</code> and <code>UpdateImageSetMetadata</code> operations, even if Patient, Study, or Series level metadata are mismatched.</p>"
1745+
}
1746+
},
1747+
"documentation":"<p>Specifies the overrides used in image set modification calls to <code>CopyImageSet</code> and <code>UpdateImageSetMetadata</code>.</p>"
1748+
},
16951749
"PayloadBlob":{
16961750
"type":"blob",
16971751
"streaming":true
@@ -2087,6 +2141,12 @@
20872141
"location":"querystring",
20882142
"locationName":"latestVersion"
20892143
},
2144+
"force":{
2145+
"shape":"Boolean",
2146+
"documentation":"<p>Setting this flag will force the <code>UpdateImageSetMetadata</code> operation for the following attributes:</p> <ul> <li> <p> <code>Tag.StudyInstanceUID</code>, <code>Tag.SeriesInstanceUID</code>, <code>Tag.SOPInstanceUID</code>, and <code>Tag.StudyID</code> </p> </li> <li> <p>Adding, removing, or updating private tags for an individual SOP Instance</p> </li> </ul>",
2147+
"location":"querystring",
2148+
"locationName":"force"
2149+
},
20902150
"updateImageSetMetadataUpdates":{
20912151
"shape":"MetadataUpdates",
20922152
"documentation":"<p>Update image set metadata updates.</p>"

0 commit comments

Comments
 (0)