ImageEn, unit iexBitmaps

TIEDicomTags.GetTagString

TIEDicomTags.GetTagString


Declaration

function GetTagString(Index: integer): String; overload;
function GetTagString(Group, Element: Word): String; overload;


Description

Returns a DICOM tag as a string. You can specify it by Group/Element or its index. You can view a list of tags at: Dicom Tag List
Supported tag types: dvCS, dvAS, dvAE, dvDA, dvDS, dvDT, dvIS, dvLO, dvLT, dvPN, dvSH, dvST, dvTM, dvUI, dvUT

Note: String values may contain non-ASCII character sets if DICOM_CharacterSet is "ISO_IR 192"


Demo

Demo  Demos\InputOutput\Dicom\Dicom.dpr


Example

ImageType := ImageEnView1.IO.Params.DICOM_Tags.GetTagString( $0008, $0008 );
PatientName := ImageEnView1.IO.Params.DICOM_Tags.GetTagString( 0010, $0010 );

// Alternatively
ImageType := ImageEnView1.IO.Params.DICOM_Tags.GetTagString( ImageEnView1.IO.Params.DICOM_Tags.IndexOf( $0008, $0008 ));
PatientName := ImageEnView1.IO.Params.DICOM_Tags.GetTagString( ImageEnView1.IO.Params.DICOM_Tags.IndexOf( $0010, $0010 ));


See Also

- GetTagNumeric
- IEGetDicomTagDescription
- WriteTo