Suppose I have the dicom element Modality (0008, 0060) which is a part of the ScheduledProcedureStepSequence (0040,0100).
Is there somewhere in the DCMTK source some example of how to insert the item the correct way?
Do I need to check:
- whether the element it is part of a sequence item?
- if the sequence already exists?
- insert the sequence if it not exists
- insert the tag in the sequence?
- insert the sequence in the dataset?
If so can someone point me to some examples on how this can be done?
Or is there some function already available to expand my dataset say if it looks something like this:
Code: Select all
(0010,0010) PN TEST^CASE^^^
(0010,0020) LO 12345
(0010,0030) DA 20001201
(0010,0040) CS M
(0008,0060) CS CT
Code: Select all
(0010,0010) PN TEST^CASE^^^
(0010,0020) LO 12345
(0010,0030) DA 20001201
(0010,0040) CS M
(0040,0100) SQ (Sequence with explicit length #=1)
(fffe,e000) -
(0008,0060) CS CT
(fffe,e00d) -
(fffe,e0dd) -