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

Parsing out multiple values stored in one element without separators

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, more than one data element has to be combined into one element of the image header, but due to length restrictions or other modality console restrictions, no separator character can be supplied. For example, assume that patient ID and accession number are being entered into the patient ID field on the modality console; that Patient ID is a fixed length value that is 6 characters long; and that accession number is also a fixed length value that is 9 characters long.

The patient ID element of the image header has DICOM Data Element tag (0010,0020), so to parse out the patient ID and accession number, use the following expressions:

Element to extract Expression to use (use only one in each case)
Patient ID first( getdicomstring( 0x100020 ), 6 )
Patient ID sub( getdicomstring( 0x100020 ), 0, 6 )
Patient ID chop( getdicomstring( 0x100020 ), 9 )
Accession number last( getdicomstring( 0x100020 ), 9 )
Accession number sub( getdicomstring( 0x100020 ), 6, 9 )

See also


Topic number: 32191

Applies to: IMPAX 6.5.1 Server Knowledge Base