- //n->ReplaceOrCreate(TransferSyntax, 0x0002,0x0010);
- n->ReplaceOrCreate(StudyDate, 0x0008,0x0020);
- n->ReplaceOrCreate(StudyTime, 0x0008,0x0030);
- n->ReplaceOrCreate(Modality, 0x0008,0x0060);
- n->ReplaceOrCreate(PatientName, 0x0010,0x0010);
-
- n->ReplaceOrCreate(SamplesPerPixel, 0x0028,0x0002);
- n->ReplaceOrCreate(NumberOfFrames, 0x0028,0x0008);
- n->ReplaceOrCreate(Rows, 0x0028,0x0010);
- n->ReplaceOrCreate(Columns, 0x0028,0x0011);
- n->ReplaceOrCreate(BitsAllocated, 0x0028,0x0100);
- n->ReplaceOrCreate(BitsStored, 0x0028,0x0101);
- n->ReplaceOrCreate(HighBit, 0x0028,0x0102);
- n->ReplaceOrCreate(PixelRepresentation,0x0028,0x0102);
+ //n->Insert(TransferSyntax, 0x0002,0x0010);
+ n->Insert(StudyDate, 0x0008,0x0020);
+ n->Insert(StudyTime, 0x0008,0x0030);
+ n->Insert(Modality, 0x0008,0x0060);
+ n->Insert(PatientName, 0x0010,0x0010);
+
+ n->Insert(SamplesPerPixel, 0x0028,0x0002);
+ n->Insert(NumberOfFrames, 0x0028,0x0008);
+ n->Insert(Rows, 0x0028,0x0010);
+ n->Insert(Columns, 0x0028,0x0011);
+ n->Insert(BitsAllocated, 0x0028,0x0100);
+ n->Insert(BitsStored, 0x0028,0x0101);
+ n->Insert(HighBit, 0x0028,0x0102);
+ n->Insert(PixelRepresentation,0x0028,0x0102);