CreateMessage |
Top Previous Next |
Name: CreateMessage()
Parameters: 1. bIncludeDefault (optional Boolean default = False)
Returns: Handle (Segment GUID) - The segment handle for the MSH segment.
Description: This method will initiate the creation of an HL7. If bIncludeDefault is passed as [True] then default values will be populated. If bIncludeDefault is passed as [False] (the default) then default values configured in the vendor definitions will be ignored.
*NOTE*: Regardless of whether default values have been configured in the Extended Element Properties for the MSH segment, the following values are automatically set in the MSH Segment when the CreateMessage() method is called. They can, of course be overwritten by you in subsequent SetFieldValue() method calls.
For further information, please see the EasyHL7 documentation http://www.hermetechnz.com/Documentation/EasyHL7/index.html. |