The IDLffDICOM::GetParent function method is used to find the parent references of a set of elements in a DICOM sequence.
Syntax
Result = Obj->[IDLffDICOM::]GetParent(ReferenceList)
Return Value
Returns the parent references of a set of elements in a DICOM sequence. It takes as an argument an array of references that represent DICOM elements. If no members of the ReferenceList are members of a sequence, a -1 is returned, and for each member of the ReferenceList which is not a member of a sequence, a -1 is returned.
Arguments
ReferenceList
An array of references to DICOM elements that are known to be members of a DICOM sequence.
Keywords
None
Examples
obj = OBJ_NEW('IDLffDICOM')
read = obj->Read(DIALOG_PICKFILE(FILTER = '*'))
ref = obj->GetReference('0008'x, '1110'x)
PRINT, ref
PRINT, obj->GetDescription(REFERENCE = ref)
parent = obj->GetParent(ref)
PRINT, parent
PRINT, obj->GetDescription(REFERENCE=parent)
refs = obj->GetChildren(ref[0])
PRINT, refs
PRINT, obj->GetDescription(REFERENCE = refs)
OBJ_DESTROY, obj
Version History