Value

PROPERTY - Read / Write

Parent Object - HL7MessageSegment


Name: Value

Data Type: String

Description: Get / Set the HL7 Value of an HL7MessageSegment object directly.

 

NOTE: Use this property for updating very carefully. Be especially wary of using this method to update the MSH segment. It is possible to corrupt the message.

 

Example:

 

Dim oMessage As EasyHL7MC40.EasyHL7Message

Dim oSegment As EasyHL7MC40.HL7MessageSegment

Dim sValue As String = ""

'MyVendorObj is an open HL7Vendor object

oMessage = MyVendorObject.NewHL7Message()

oSegment = oMessage.CreateMessage()

'oSegment is Now the MSH segment of a blank message

oSegment = oMessage.AddSegment("PID")

'oSegment is Now a blank PID segment.

sValue = "PID|1|xxx|yyy||Smith^John^M|"

oSegment.Value = sValue

'etc, etc