HL7 - Server

Description-
HL7SERVER :: Process message, batch and batchfiles supported by HL7.

Usage-
HL7SERVER [-i IP] -p Port [-d LogDir] [-s StorageDir]
 [-t TimeOut]

Options-
-i                IP Address.
-p                Port.
-d                Log directory. User's temp directory is taken as default.
-s                Destination folder to store the received ACK and Batch files. User's temp directory is taken as default.
-t                Session time out in milliseconds.

Example:

1. HL7SERVER -p 9999
Starts HL7 server at localhost listening on port 9999 for receiving HL7 message
events. Message Events can be received in HL7Batch or HL7Batch File.

==============================================================================================

HL7 - Client

Description- 
HL7CLIENT :: Sends HL7 supported message, batch and batchfiles.

Usage- 
HL7CLIENT [-i IP] -p Port [-d LogDir] [-s StorageDir]
 -m|-b|-a FileName [-w WaitPeriod] [-t TimeOut] 

Options-
-i                IP Address.
-p                Port.
-d                Log directory. User's temp directory is taken as default.
-s                Destination folder to store the received ACK and Batch files. User's temp directory is taken as default.
-m                Absolute path of file containing HL7 message data.
-b                Absolute path of file containing HL7 batch or batchfile data.
-w                Time period after which request will be resend if response is not received.
-t                Session time out in milliseconds.


Example:

1. HL7CLIENT -p 9999 -m 01_ADT_Event.HL7
Sends HL7 message to HL7 server running on localhost and listening on port 9999.

2. HL7CLIENT -p 9999 -b ADT_A01_Batch.hl7
Sends HL7 batch to HL7 server running on localhost and listening on port 9999.

3. HL7CLIENT -p 9999 -b ADT_A01_BatchFile.hl7
Sends HL7 batch file to HL7 server running on localhost and listening on port
9999.


==============================================================================================

HL7 - DUMP

HL7DUMP :: Creates MS Document having infromation of all attributes of HL7 message.

HL7DUMP [-d LogDir] -f HL7file [-s DestinationFolder] 

Options-
-d                Log directory
                  User's temp directory is taken as default.
-f                Source HL7 file for dump.
-s                Destination folder path to store converted MS documet file.
                  User's temp directory is taken as default.

Example :

1. HL7DUMP -f image.hl7 -s C:/HL7Content
Dumps the information of HL7 message to MS document and stores same to folder C:/HL7Content.


==============================================================================================

HL7 - XMLDUMP

HL7XMLDUMP :: Creates XML Document having information of all attributes of HL7 message.

HL7XMLDUMP [-d LogDir] [-c FormatChoice] [-f HL7file] [-s DestinationFolder] 

Options-

-d                Log directory
-c                Choice of XML Format
				  Choice 1:
					Creates XML Document having information of all attributes of HL7 
					message using HL7 specified format and parses the XML to form HL7 message.
					XML format example: <ADT_A01>	<MSH>	<MSH.1>|</MSH.1>... </MSH>...</ADT_A01>
				  Choice 2: 
					Creates XML Document having information of all attributes of HL7.
					XML Format example: <Message Name="ADT_A01">	<Segment Name="MSH">
					<Field Name="Field Separator" Type="ST" Value="|"></Field>...</Segment>...</Message>
				  Default FormatChoice is 1.
                  User's temp directory is taken as default.
-s                Destination file path to store converted XML file.
                  User's temp directory is taken as default.
-f                Source HL7 file for dump.

Example :

1. HL7XMLDUMP -c 2 -f image.hl7 -s C:/HL7Content/image.xml
Dumps the information of HL7 message to XML document and stores same to folder
C:/HL7Content.

2. HL7XMLDUMP -f image.hl7 -s C:/HL7Content/image.xml
Dumps the information of HL7 message to XML document as per HL7 specified format as default choice is 1 if not specified and stores the XML to folder
C:/HL7Content and also parses the XML and serializes to HL7 and stores to folder C:/HL7Content.


==============================================================================================

HL7 - EDITOR

HL7EDITOR :: Editor tool edits the HL7 file. This tool can add or remove the Segment or Group. 
Also can update the Attribute of a segment in HL7 file if present or add if segment structure has that attribute.

HL7EDITOR [-d LogDir] -f HL7File
 [-e "SegmentOrGroupName"] [-i f] [-a "SegName:ItemID"] [-u "SegName:ItemID:Value"] [-s DestinationFolder]


Options-
-d                  Log directory
                    User's temp directory is taken as default.
-f                  HL7 File which is to be updated.
-e                  Segment name which is to be removed to the file.
                    For eg -> -e EVN
-i                  Segment or Group removes fourcefully if value is true.
IsFourcefullyRemove F False
                    T True
                    Default IsFourcefullyRemove is False(F).
-a                  Remove Segment Attribute
                    For eg -> -a EVN:100
-u                  Update Segment Attribute if Attribute is present or add the 
		    attribute if segment structure has that attribute.
                    For eg -> -u PID:106:NewValue
-s                  Destination folder path to store converted MS documet file.
                    User's temp directory is taken as default.

Example :

1. HL7EDITOR -f message.hl7 -e EVN -e PID
Edit the HL7 file message.hl7. Removes segment EVN, PID from the HL7 file.

2. HL7EDITOR -f message.hl7 -a EVN:100
Edit the HL7 file message.hl7. Removes attribute recordeddatetime from segment EVN of HL7 file.

3. HL7EDITOR -f message.hl7 -u PID:106:newValue
Edit the HL7 file message.hl7. Update attribute having 106 as Item ID from segment PID to the new value newValue.
The attribute will be modified if present otherwise this will get added to the segment PID if structure of PID has that attribute.


==============================================================================================

HL7 - MESSAGEVALIDATOR

HL7MESSAGEVALIDATOR :: Validates HL7 message file.

HL7MESSAGEVALIDATOR [-d LogDir] -f HL7File

Options-
-d                Log directory
                  User's temp directory is taken as default.
-f                HL7 File which is to be validated.
Example :

1. HL7MESSAGEVALIDATOR -f message.hl7
Validates message.hl7 file in strict mode.



==============================================================================================

