class DicomTag { public constructor ( tagValue ) { this . Value = tagValue ; this . StringValue = DicomTag . getStringValue ( tagValue ) ; this . Group = ( ( tagValue & 0xffff0000 ) >> 16 ) ; this . Element = ( tagValue & 0x0000ffff ) ; } public Group : number ; public Element : number ; public StringValue : string ; public Value : number ; public toString ( ) { return "(" + ( "0000" + this . Group . toString ( 8 ) ) . substr ( - 4 ) + "," + ( "0000" + this . Element . toString ( 8 ) ) . substr ( - 4 ) + ")" ; } public static getStringValue ( tagValue ) { return ( "00000000" + tagValue . toString ( 16 ) . toUpperCase ( ) ) . substr ( - 8 ) ; } }