@@ -63,6 +63,19 @@ export interface CopyDestinationImageSet {
63
63
latestVersionId : string | undefined ;
64
64
}
65
65
66
+ /**
67
+ * <p>Contains copiable <code>Attributes</code> structure and wraps information related to specific copy use cases.
68
+ * For example, when copying subsets.</p>
69
+ * @public
70
+ */
71
+ export interface MetadataCopies {
72
+ /**
73
+ * <p>The JSON string used to specify a subset of SOP Instances to copy from source to destination image set.</p>
74
+ * @public
75
+ */
76
+ copiableAttributes : string | undefined ;
77
+ }
78
+
66
79
/**
67
80
* <p>Copy source image set information.</p>
68
81
* @public
@@ -73,6 +86,13 @@ export interface CopySourceImageSetInformation {
73
86
* @public
74
87
*/
75
88
latestVersionId : string | undefined ;
89
+
90
+ /**
91
+ * <p>Contains <code>MetadataCopies</code> structure and wraps information related to specific copy use cases.
92
+ * For example, when copying subsets.</p>
93
+ * @public
94
+ */
95
+ DICOMCopies ?: MetadataCopies ;
76
96
}
77
97
78
98
/**
@@ -114,6 +134,13 @@ export interface CopyImageSetRequest {
114
134
* @public
115
135
*/
116
136
copyImageSetInformation : CopyImageSetInformation | undefined ;
137
+
138
+ /**
139
+ * <p>Setting this flag will force the <code>CopyImageSet</code> operation, even if Patient, Study, or Series level
140
+ * metadata are mismatched across the <code>sourceImageSet</code> and <code>destinationImageSet</code>.</p>
141
+ * @public
142
+ */
143
+ force ?: boolean ;
117
144
}
118
145
119
146
/**
@@ -847,6 +874,20 @@ export interface GetImageSetRequest {
847
874
versionId ?: string ;
848
875
}
849
876
877
+ /**
878
+ * <p>Specifies the overrides used in image set modification calls to <code>CopyImageSet</code> and
879
+ * <code>UpdateImageSetMetadata</code>.</p>
880
+ * @public
881
+ */
882
+ export interface Overrides {
883
+ /**
884
+ * <p>Setting this flag will force the <code>CopyImageSet</code> and <code>UpdateImageSetMetadata</code>
885
+ * operations, even if Patient, Study, or Series level metadata are mismatched.</p>
886
+ * @public
887
+ */
888
+ forced ?: boolean ;
889
+ }
890
+
850
891
/**
851
892
* @public
852
893
*/
@@ -910,6 +951,14 @@ export interface GetImageSetResponse {
910
951
* @public
911
952
*/
912
953
imageSetArn ?: string ;
954
+
955
+ /**
956
+ * <p>This object contains the details of any overrides used while creating a specific image set version.
957
+ * If an image set was copied or updated using the <code>force</code> flag, this object will contain the
958
+ * <code>forced</code> flag.</p>
959
+ * @public
960
+ */
961
+ overrides ?: Overrides ;
913
962
}
914
963
915
964
/**
@@ -1139,6 +1188,14 @@ export interface ImageSetProperties {
1139
1188
* @public
1140
1189
*/
1141
1190
message ?: string ;
1191
+
1192
+ /**
1193
+ * <p>Contains details on overrides used when creating the returned version of an image set.
1194
+ * For example, if <code>forced</code> exists, the <code>forced</code> flag was used when
1195
+ * creating the image set.</p>
1196
+ * @public
1197
+ */
1198
+ overrides ?: Overrides ;
1142
1199
}
1143
1200
1144
1201
/**
@@ -1817,7 +1874,10 @@ export interface DICOMUpdates {
1817
1874
* <p>Contains DICOMUpdates.</p>
1818
1875
* @public
1819
1876
*/
1820
- export type MetadataUpdates = MetadataUpdates . DICOMUpdatesMember | MetadataUpdates . $UnknownMember ;
1877
+ export type MetadataUpdates =
1878
+ | MetadataUpdates . DICOMUpdatesMember
1879
+ | MetadataUpdates . RevertToVersionIdMember
1880
+ | MetadataUpdates . $UnknownMember ;
1821
1881
1822
1882
/**
1823
1883
* @public
@@ -1829,6 +1889,21 @@ export namespace MetadataUpdates {
1829
1889
*/
1830
1890
export interface DICOMUpdatesMember {
1831
1891
DICOMUpdates : DICOMUpdates ;
1892
+ revertToVersionId ?: never ;
1893
+ $unknown ?: never ;
1894
+ }
1895
+
1896
+ /**
1897
+ * <p>Specifies the previous image set version ID to revert the current image set back to.</p>
1898
+ * <note>
1899
+ * <p>You must provide either <code>revertToVersionId</code> or <code>DICOMUpdates</code> in your request. A
1900
+ * <code>ValidationException</code> error is thrown if both parameters are provided at the same time.</p>
1901
+ * </note>
1902
+ * @public
1903
+ */
1904
+ export interface RevertToVersionIdMember {
1905
+ DICOMUpdates ?: never ;
1906
+ revertToVersionId : string ;
1832
1907
$unknown ?: never ;
1833
1908
}
1834
1909
@@ -1837,16 +1912,19 @@ export namespace MetadataUpdates {
1837
1912
*/
1838
1913
export interface $UnknownMember {
1839
1914
DICOMUpdates ?: never ;
1915
+ revertToVersionId ?: never ;
1840
1916
$unknown : [ string , any ] ;
1841
1917
}
1842
1918
1843
1919
export interface Visitor < T > {
1844
1920
DICOMUpdates : ( value : DICOMUpdates ) => T ;
1921
+ revertToVersionId : ( value : string ) => T ;
1845
1922
_ : ( name : string , value : any ) => T ;
1846
1923
}
1847
1924
1848
1925
export const visit = < T > ( value : MetadataUpdates , visitor : Visitor < T > ) : T => {
1849
1926
if ( value . DICOMUpdates !== undefined ) return visitor . DICOMUpdates ( value . DICOMUpdates ) ;
1927
+ if ( value . revertToVersionId !== undefined ) return visitor . revertToVersionId ( value . revertToVersionId ) ;
1850
1928
return visitor . _ ( value . $unknown [ 0 ] , value . $unknown [ 1 ] ) ;
1851
1929
} ;
1852
1930
}
@@ -1873,6 +1951,22 @@ export interface UpdateImageSetMetadataRequest {
1873
1951
*/
1874
1952
latestVersionId : string | undefined ;
1875
1953
1954
+ /**
1955
+ * <p>Setting this flag will force the <code>UpdateImageSetMetadata</code> operation for the following attributes:</p>
1956
+ * <ul>
1957
+ * <li>
1958
+ * <p>
1959
+ * <code>Tag.StudyInstanceUID</code>, <code>Tag.SeriesInstanceUID</code>, <code>Tag.SOPInstanceUID</code>, and <code>Tag.StudyID</code>
1960
+ * </p>
1961
+ * </li>
1962
+ * <li>
1963
+ * <p>Adding, removing, or updating private tags for an individual SOP Instance</p>
1964
+ * </li>
1965
+ * </ul>
1966
+ * @public
1967
+ */
1968
+ force ?: boolean ;
1969
+
1876
1970
/**
1877
1971
* <p>Update image set metadata updates.</p>
1878
1972
* @public
@@ -1933,6 +2027,40 @@ export interface UpdateImageSetMetadataResponse {
1933
2027
message ?: string ;
1934
2028
}
1935
2029
2030
+ /**
2031
+ * @internal
2032
+ */
2033
+ export const MetadataCopiesFilterSensitiveLog = ( obj : MetadataCopies ) : any => ( {
2034
+ ...obj ,
2035
+ ...( obj . copiableAttributes && { copiableAttributes : SENSITIVE_STRING } ) ,
2036
+ } ) ;
2037
+
2038
+ /**
2039
+ * @internal
2040
+ */
2041
+ export const CopySourceImageSetInformationFilterSensitiveLog = ( obj : CopySourceImageSetInformation ) : any => ( {
2042
+ ...obj ,
2043
+ ...( obj . DICOMCopies && { DICOMCopies : MetadataCopiesFilterSensitiveLog ( obj . DICOMCopies ) } ) ,
2044
+ } ) ;
2045
+
2046
+ /**
2047
+ * @internal
2048
+ */
2049
+ export const CopyImageSetInformationFilterSensitiveLog = ( obj : CopyImageSetInformation ) : any => ( {
2050
+ ...obj ,
2051
+ ...( obj . sourceImageSet && { sourceImageSet : CopySourceImageSetInformationFilterSensitiveLog ( obj . sourceImageSet ) } ) ,
2052
+ } ) ;
2053
+
2054
+ /**
2055
+ * @internal
2056
+ */
2057
+ export const CopyImageSetRequestFilterSensitiveLog = ( obj : CopyImageSetRequest ) : any => ( {
2058
+ ...obj ,
2059
+ ...( obj . copyImageSetInformation && {
2060
+ copyImageSetInformation : CopyImageSetInformationFilterSensitiveLog ( obj . copyImageSetInformation ) ,
2061
+ } ) ,
2062
+ } ) ;
2063
+
1936
2064
/**
1937
2065
* @internal
1938
2066
*/
@@ -2051,6 +2179,7 @@ export const DICOMUpdatesFilterSensitiveLog = (obj: DICOMUpdates): any => ({
2051
2179
*/
2052
2180
export const MetadataUpdatesFilterSensitiveLog = ( obj : MetadataUpdates ) : any => {
2053
2181
if ( obj . DICOMUpdates !== undefined ) return { DICOMUpdates : DICOMUpdatesFilterSensitiveLog ( obj . DICOMUpdates ) } ;
2182
+ if ( obj . revertToVersionId !== undefined ) return { revertToVersionId : obj . revertToVersionId } ;
2054
2183
if ( obj . $unknown !== undefined ) return { [ obj . $unknown [ 0 ] ] : "UNKNOWN" } ;
2055
2184
} ;
2056
2185
0 commit comments