public final class HL7Encoder
extends java.lang.Object
Message
into HL7v2 text.Constructor and Description |
---|
HL7Encoder()
Construct an HL7Encoder with default params.
|
HL7Encoder(HL7Params params)
Construct an HL7Encoder with the given params.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
encode(Message m)
Encode a Message into HL7v2 format.
|
java.lang.String |
encode(Segment s)
Encode a segment into HL7v2 format
|
HL7Params |
getParams()
Return the parameters being used by this HL7Encoder
|
void |
setParams(HL7Params params)
Set the parameters to be used by this HL7Encoder
|
public HL7Encoder()
public HL7Encoder(HL7Params params)
public HL7Params getParams()
public void setParams(HL7Params params)
public java.lang.String encode(Message m)
Note that for the resulting HL7 to be valid, the segments need to be added to the Message instance in the correct order, since Message iterates through its segments in the order of insertion.
m
- Message to encodepublic java.lang.String encode(Segment s)
s
- Segment to encode