Class Name:  | 
HL7PlusComponent  | 
HL7+ Category:  | 
Restricted (Accessed through the HL7PlusField and HL7PlusSegment object)  | 
Description:  | 
Object representation of 1 component within a HL7PlusField  | 
The HL7PlusComponent object is accessed through the HL7PlusField and HL7PlusSegment object
*All example code is in Visual Basic.Net 
 'Where MyController is a HL7PlusController object Dim oMSg As HL7PlusMessage = MyController.NewHL7PlusMessage() If IsNothing(oMSg) Then MessageBox.Show("An Error Occurred: " & MyController.LastError, "Error") Return End If 'oMsg is now an EMPTY HL7 message. 'From this point on we don't have to worry about HL7PlusController Errors 'In an EMPTY message I MUST add the MSH segment first Dim oMSH As HL7PlusSegment = oMSg.AddEmptySegment("MSH") '---Now let's play and set some field values. 'An HL7 DateTime Stamp Dim strNow As String = oMSg.ParentHL7Controller.HL7Now Dim oFld7 As HL7PlusField = oMSH.Field(7) Dim oComp1 As HL7PlusComponent = oFld7.Component(1) oComp1.SubComponentValue(1) = strNow 'The Precision oComp1.SubComponentValue(2) = "S" '----I can also just do this strNow = oMSg.ParentHL7Controller.HL7Now & oMSg.SubComponentDelimiter & "S" oComp1.Value = strNow 
 
  | 
 
 
  | 
 
 
 
 
 
 
 
 
 
 
 
  | 
 This object class uses our standard HL7PlusException Class interface for error handling wherever possible. 
 See the HL7PlusException Implementation Reference 
  |