This function extracts the phrase after another phrase in a block of text. One use of this is to extract information from free text fields in the current or in a previous episode.
For example, suppose that we defined a Calculated Value Attribute to have name Hormone and formula
Report1 text after “detected:”
then Hormone would be evaluated from the value of the Report1 attribute as follows in the case fragment below:
01 Jun 03 20 Jun 03 02 Nov 03 Report1 Hormone value detected: 657 Report2 Total IgE: not detected Hormone 657
Text after can also be used directly in a condition, for example, the following condition is true for the case above:
Report2 text after “IGE:” is “not detected”
This function works as follows: The block of text is searched for the matching phrase. A marker is set where this phrase ends in the text. The text after the matching phrase is returned. If there is more than one line in the original block of text, the text from the matching phrase to the end of the current line is returned. If this search fails because the matching phrase was not found (or for any other reason), a blank (empty) string is returned.
The search for the matching text is not case sensitive, for example, the phrase “IGE” will match “IgE” as shown above.
See also: