public class HL7Parser
extends java.lang.Object
| Constructor and Description |
|---|
HL7Parser() |
| Modifier and Type | Method and Description |
|---|---|
LocalExtensionAgent |
getLocalExtensionAgent()
Retrieves instance of LocalExtensionAgent.
|
ISegmentSet |
parse(IHL7Stream objHL7Stream)
Parses the HL7Stream which contains a HL7 Message and populates the SegmentSet accordingly.
|
ISegmentSet |
parse(java.lang.String strFilePath)
Parses the HL7 Message from given file and populates the SegmentSet accordingly.
|
void |
setLocalExtensionAgent(LocalExtensionAgent objAgent)
Sets LocalExtensionAgent to process locally extended segments.
|
public void setLocalExtensionAgent(LocalExtensionAgent objAgent)
objAgent - instance of LocalExtensionAgentpublic LocalExtensionAgent getLocalExtensionAgent()
public ISegmentSet parse(IHL7Stream objHL7Stream) throws java.io.IOException, ParseException, SegmentNotSupportedException
objHL7Stream - instance of HL7Streamjava.io.IOException - if Input/Output operation failsParseException - if parsing operation failsSegmentNotSupportedException - if Segment is not supported or not registered with LocalExtensionAgentpublic ISegmentSet parse(java.lang.String strFilePath) throws java.io.IOException, ParseException
strFilePath - path to filejava.io.IOException - if Input/Output operation failsParseException - if parsing operation fails