IMPAX 6.5.1 Server Knowledge Base home > Configuring IMPAX Server with Administration Tools > Source Manager > Customizing field mappings to extract information from images
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 system needs to add a text string to the data element returned by the modality.
Example 1
All patient ID values at the HIS or RIS consist of the text 'HUP' followed by the numeric value returned by the modality in the patient ID element (0010,0020) of the image header. Either of the two following examples would construct the proper identifier for patient ID:
| Element to construct | Expression to use |
|---|---|
| Patient ID | 'HUP' + getdicomstring( 0x00100020 ) |
| Patient ID | padl( getdicomstring( 0x100020 ), 'HUP' ) |
Example 2
The accession number is generated by the system by concatenating the capital letter 'A' with the patient ID (0010,0020), then the requested procedure ID (0040,1001). Either of the two following examples would construct the proper identifier for accession number:
| Element to construct | Expression to use |
|---|---|
| Patient ID | 'A' + getdicomstring( 0x100020 ) + getdicomstring( 0x401001 ) |
| Patient ID | padl( padt( getdicomstring( 0x100020 ), getdicomstring( 0x401001 )), 'A' |
See also
Topic number: 32169 Applies to: IMPAX 6.5.1 Server Knowledge Base |