/
Replace HL7 Field

Replace HL7 Field

This feature allows you to bulk modify messages in a tab. For example, you can set MSH-3 to an "EPIC" for all messages, or just a particular subset. To access this feature click on the "Replace" toolbar button in the "Find" section of the main Ribbon Control.

An explanation of how to use this feature follows.

HL7 Path - This is the HL7 Path of the field that will be set. For example, this could be an entire field such as MSH-3 as shown above, or it could be a specific subcomponent such as PID-3[2].6.2 which would be the "Assigning Facility's Universal ID of the second repeat of the Patient Identifier".

Replacement Text ("Use Expression" not checked) - This the text you wish to set. For example, to set the MSH-3 field to "EPIC" for all messages, type EPIC here.

Expression Text ("Use Expression" checked) - This the expression you wish to set the HL7 Path to. For example, if you wish to set PID-2 to the value in PID-3, set "HL7 Path" to PID-2 and "Expression" to PID-3.

When - This allows you to specify a condition as to when the value is to be set. For example, if you wish to set MSH-3 to "EPIC" for all ADT messages, set "HL7 Path" to MSH-3, "Replacement Text" to EPIC, and "When" to MSH-9.1 = 'ADT'.

Note

Please Note: There is no support for the * character in the "HL7 Path", "Expression", or "When" clauses.

 Below are some examples of how to fill in the following dialog for different replacement objectives.

ObjectiveHL7 PathReplacement TextExpressionWhen
Set MSH-3 to EPIC for all messages of type ADT^A08MSH-3EPIC-MSH-9.2 = 'A08'
Set MSH-4 to the value in MSH-3 + '-TEST'MSH-4MSH-3 + '-TEST' ALWAYS
Set PID-2 to the value in PID-3 for all messagesPID-2-PID-3ALWAYS
Set PID-2 to the second repeat of PID-3PID-2 PID-3[2] ALWAYS 
Set OBR-2 to OBR-3 when OBR-2 is nullOBR-2 OBR-3OBR-2 IS NULL

Related content

Set HL7 Field
Set HL7 Field
More like this
Set HL7 Field
Set HL7 Field
More like this
Set HL7 Field Value
Set HL7 Field Value
More like this
HL7 Transform Tool
HL7 Transform Tool
More like this
HL7 Transform Tool
HL7 Transform Tool
More like this
HL7 Transform Tool
HL7 Transform Tool
More like this