IMPAX 6.5.1 Server Knowledge Base home > Configuring IMPAX Server with Administration Tools > Source Manager > Customizing field mappings to extract information from images

Removing extraneous characters from an element


This topic provide an example of a common parsing scenario used in field mapping expressions in Source Manager. Field mappings are used to extract and manipulate study data.

In this scenario, the modality adds extraneous characters to an identifier. For the first example, assume that the accession number element (0008,0050) always has a number of garbage characters prefixed to the identifier value. The garbage characters are contained in the set of characters 'abcdx', and those values do not show up in the actual accession number.

Example Mapping to use
Extra characters are appended to the beginning of the string and accession number does not start with same characters stripl( getdicomstring( 0x80050 ), 'abcdx' )
Extra characters may be anywhere in string and accession number does not contain the same characters squeeze( getdicomstring( 0x80050 ), 'abcdx' )
Extra characters are appended to the end of the string and accession number does not end with the same characters stript( getdicomstring( 0x80050 ), 'abcdx' )

See also


Topic number: 9035

Applies to: IMPAX 6.5.1 Server Knowledge Base