- Official Post
QuoteDisplay MoreHi Marcel,
Hoping you can help me with a puzzle. I'm trying to use CQ to:
1. Ingest a mammography study
2. Delete (empty) 0054,0222 and all its sub-tags.
(0054,0222) ViewAngulationModifierCode... SQ # 78 1
[
(0008,0100) CodeValue SH # 8 1 [R-102D5 ]
(0008,0102) CodingSchemeDesignator SH # 4 1 [SRT ]
(0008,0104) CodeMeaning LO # 18 1 [Implant Displaced ]
I'm using the importconverter to call the script:
function ImportConverter(script)
-- Delete the sequence tag (0054,0222)
script:DeleteElement(0054,0222)
end
It's working reliably for the 2D mamm images, but not the 3D. Any thoughts on how I could try this differently?
Jeff
Marcel wrote:
QuoteDisplay MoreHi,
the code for element deletion may be faulty for sequences.
I found these commands work to empty a (different) sequence:
Data.DeidentificationMethodCodeSequence=nil
Data.DeidentificationMethodCodeSequence={}
It is unclear to me why there would be difference between 2D and 3D mammo images though.
Marcel
Marcel wrote:
QuoteDeleteElement does not exist I think? There is DeleteFromSequence, or setting an element to nil.