16 <uid value="1.2.840.10008.5.1.4.1.1.66" name="Raw Data Storage" type="SOP Class" part="PS 3.4" retired="false"/>
22 if __name__ ==
"__main__":
26 filename = os.path.join( dataroot,
'012345.002.050.dcm' )
27 r.SetFileName( filename )
32 uid =
"1.2.840.10008.5.1.4.1.1.66"
36 de.SetByteValue( uid,
gdcm.VL(len(uid)) )
42 ano.SetFile( r.GetFile() )
43 ano.RemovePrivateTags()
44 ano.RemoveGroupLength()
134 ano.Replace(
gdcm.Tag(0x0008,0x9123), gen.Generate() )
157 writer.SetFile( ano.GetFile() )
158 writer.SetFileName(
"rawstorage.dcm" );