hl7('/PID-5-1')
HL7 Mule Expression Language Support
This feature is part of the Mule Healthcare Toolkit, which also includes transformers and components for receiving, processing and sending HL7 messages. For details and a full list of available tools, consult the Toolkit’s documentation main page. |
The Mule Healthcare toolkit includes two Mule Expression Language (MEL) functions:
-
hl7segment()
allows access to a segment in an HL7 message -
hl7()
allows access to values within a segment
Examples
Returns the value of the |
|
hl7segment('AL1') |
Returns the value of the |
---- hl7('/PID-5-1', 'Polly') ---- |
---|
Sets the value of the |
---- hl7segment('AL1','AL1|1||^Penicillin||Produces hives') ---- |
Sets the value of the |
Usage Examples
Use a Variable Transformer to initialize the variable HL7event
with the value of the EVN
segment of the HL7 message:
<set-variable variableName="HL7event" value="#[hl7segment('EVN')]"/>
Use a Set Payload Transformer to obtain a string composed of the fields PID-5-1
and PID-5-2
:
<set-payload value="#[hl7('/PID-5-1') + ' ' + hl7('/PID-5-2')]"/>
Use an Expression Component to set modify fields PID-5-1
and PID-5-2
:
<expression-component>
hl7('/PID-5-1', 'Polly');
hl7('/PID-5-2', 'Hedra');
</expression-component>