IMPAX 6.5.1 Server Knowledge Base home > Configuring IMPAX Server with Administration Tools > Source Manager > Customizing field mappings to extract information from images
The following table describes the grammar functions available when creating or modifying field mapping expressions in Source Manager:
| Function | Use |
|---|---|
| chop | Returns an input string with the last length characters removed. |
| first | Returns the first length characters of an input string. |
| getdicomsequence | Looks for a sequence within the DICOM header that matches the tag, and for every item within that sequence, evaluates match_expression and compares the value to match_value. If the comparison is true, then it evaluates return_expression and returns that as the value. |
| getdicomstring | Extracts the contents of the defined DICOM element from the image header. |
| hex | Converts string into the unsigned integer value it corresponds to. |
| in | Returns T (for true) or F (for false), depending on whether an expression's value matches one of a list of values. |
| index | Returns the position within a list of values for the value that corresponds to the input expression. |
| last | Returns the last length characters of an input string. |
| padl | Returns the concatenation of a second string with an input string. |
| padt | Returns the concatenation of an input string with a second string. |
| reverse | Returns an input string with the characters in reverse order. |
| select | Returns the value within a list of values at the index position within the list defined by the input expression. |
| squeeze | Returns an input string with all garbage characters removed. |
| stripl | Returns an input string with its leading garbage characters removed. |
| stript | Returns an input string with its trailing garbage characters removed. |
| sub | Returns the substring within an input string defined by offset and length. |
| subfield | Parses a string into a series of fields and returns the requested field. |
See also
List of field mapping attributes
Topic number: 9031 Applies to: IMPAX 6.5.1 Server Knowledge Base |