IMPAX 6.5.1 Server Knowledge Base home > Configuring IMPAX Server with Administration Tools > Source Manager > Customizing field mappings to extract information from images > List of field mapping grammar functions
This function is used to parse a string into a series of fields, based on a field separator value, and to return the field requested.
Parameters
input— The input text string to be parsed.
index—An integer specifying which field to return, with the index count starting at zero; that is, the first field has an index value of zero.
separator—A text string that defines the field separator; typically the field separator is a single character, but the function supports multi-character separators.
Remarks
The input text string can be another field mapping grammar function.
The output of this function is the selected field as a text string.
Example
A string that includes the patient ID (1234), patient name (TEST^PATIENT), and study start date (2002Jan24) concatenated together as a single string using a forward slash (/) as the separator character.
| Element to extract | Mapping | Text extracted |
|---|---|---|
| Patient ID | subfield( '1234/TEST^PATIENT/2002Jan24', 0, '/' ) | 1234 |
| Patient name | subfield( '1234/TEST^PATIENT/2002Jan24', 1, '/' ) | TEST^PATIENT |
| Study start date | subfield( '1234/TEST^PATIENT/2002Jan24', 2, '/' ) | 2002Jan24 |
See also
Parsing out multiple values stored in one element without separators
Topic number: 9016 Applies to: IMPAX 6.5.1 Server Knowledge Base |