'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:4.0.30319.17929
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml.Serialization

'
'This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.17929.
'
Namespace HL7ResultsWebService
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Web.Services.WebServiceBindingAttribute(Name:="ResultsServicePort", [Namespace]:="http://medplus.com/resultsHub/observations"),  _
     System.Xml.Serialization.SoapIncludeAttribute(GetType(ProviderAccount)),  _
     System.Xml.Serialization.SoapIncludeAttribute(GetType(HL7Message))>  _
    Partial Public Class ResultsService
        Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
        
        Private getResultsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private getMoreResultsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private acknowledgeResultsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private getHL7ResultsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private getMoreHL7ResultsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private acknowledgeHL7ResultsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private getProviderAccountsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private useDefaultCredentialsSetExplicitly As Boolean
        
        '''<remarks/>
        Public Sub New()
            MyBase.New
            Me.Url = "https://cert.hub.care360.com:443/resultsHub/observations/hl7"
            If (Me.IsLocalFileSystemWebService(Me.Url) = true) Then
                Me.UseDefaultCredentials = true
                Me.useDefaultCredentialsSetExplicitly = false
            Else
                Me.useDefaultCredentialsSetExplicitly = true
            End If
        End Sub
        
        Public Shadows Property Url() As String
            Get
                Return MyBase.Url
            End Get
            Set
                If (((Me.IsLocalFileSystemWebService(MyBase.Url) = true)  _
                            AndAlso (Me.useDefaultCredentialsSetExplicitly = false))  _
                            AndAlso (Me.IsLocalFileSystemWebService(value) = false)) Then
                    MyBase.UseDefaultCredentials = false
                End If
                MyBase.Url = value
            End Set
        End Property
        
        Public Shadows Property UseDefaultCredentials() As Boolean
            Get
                Return MyBase.UseDefaultCredentials
            End Get
            Set
                MyBase.UseDefaultCredentials = value
                Me.useDefaultCredentialsSetExplicitly = true
            End Set
        End Property
        
        '''<remarks/>
        Public Event getResultsCompleted As getResultsCompletedEventHandler
        
        '''<remarks/>
        Public Event getMoreResultsCompleted As getMoreResultsCompletedEventHandler
        
        '''<remarks/>
        Public Event acknowledgeResultsCompleted As acknowledgeResultsCompletedEventHandler
        
        '''<remarks/>
        Public Event getHL7ResultsCompleted As getHL7ResultsCompletedEventHandler
        
        '''<remarks/>
        Public Event getMoreHL7ResultsCompleted As getMoreHL7ResultsCompletedEventHandler
        
        '''<remarks/>
        Public Event acknowledgeHL7ResultsCompleted As acknowledgeHL7ResultsCompletedEventHandler
        
        '''<remarks/>
        Public Event getProviderAccountsCompleted As getProviderAccountsCompletedEventHandler
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="http://medplus.com/resultsHub/observations", ResponseNamespace:="http://medplus.com/resultsHub/observations")>  _
        Public Function getResults(ByVal resultsRequest As ResultsRequest) As <System.Xml.Serialization.SoapElementAttribute("result")> ResultsResponse
            Dim results() As Object = Me.Invoke("getResults", New Object() {resultsRequest})
            Return CType(results(0),ResultsResponse)
        End Function
        
        '''<remarks/>
        Public Function BegingetResults(ByVal resultsRequest As ResultsRequest, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getResults", New Object() {resultsRequest}, callback, asyncState)
        End Function
        
        '''<remarks/>
        Public Function EndgetResults(ByVal asyncResult As System.IAsyncResult) As ResultsResponse
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),ResultsResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub getResultsAsync(ByVal resultsRequest As ResultsRequest)
            Me.getResultsAsync(resultsRequest, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub getResultsAsync(ByVal resultsRequest As ResultsRequest, ByVal userState As Object)
            If (Me.getResultsOperationCompleted Is Nothing) Then
                Me.getResultsOperationCompleted = AddressOf Me.OngetResultsOperationCompleted
            End If
            Me.InvokeAsync("getResults", New Object() {resultsRequest}, Me.getResultsOperationCompleted, userState)
        End Sub
        
        Private Sub OngetResultsOperationCompleted(ByVal arg As Object)
            If (Not (Me.getResultsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent getResultsCompleted(Me, New getResultsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="http://medplus.com/resultsHub/observations", ResponseNamespace:="http://medplus.com/resultsHub/observations")>  _
        Public Function getMoreResults(ByVal requestId As String) As <System.Xml.Serialization.SoapElementAttribute("result")> ResultsResponse
            Dim results() As Object = Me.Invoke("getMoreResults", New Object() {requestId})
            Return CType(results(0),ResultsResponse)
        End Function
        
        '''<remarks/>
        Public Function BegingetMoreResults(ByVal requestId As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getMoreResults", New Object() {requestId}, callback, asyncState)
        End Function
        
        '''<remarks/>
        Public Function EndgetMoreResults(ByVal asyncResult As System.IAsyncResult) As ResultsResponse
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),ResultsResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub getMoreResultsAsync(ByVal requestId As String)
            Me.getMoreResultsAsync(requestId, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub getMoreResultsAsync(ByVal requestId As String, ByVal userState As Object)
            If (Me.getMoreResultsOperationCompleted Is Nothing) Then
                Me.getMoreResultsOperationCompleted = AddressOf Me.OngetMoreResultsOperationCompleted
            End If
            Me.InvokeAsync("getMoreResults", New Object() {requestId}, Me.getMoreResultsOperationCompleted, userState)
        End Sub
        
        Private Sub OngetMoreResultsOperationCompleted(ByVal arg As Object)
            If (Not (Me.getMoreResultsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent getMoreResultsCompleted(Me, New getMoreResultsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="http://medplus.com/resultsHub/observations", ResponseNamespace:="http://medplus.com/resultsHub/observations")>  _
        Public Sub acknowledgeResults(ByVal requestId As String, ByVal acknowledgeMessages() As String)
            Me.Invoke("acknowledgeResults", New Object() {requestId, acknowledgeMessages})
        End Sub
        
        '''<remarks/>
        Public Function BeginacknowledgeResults(ByVal requestId As String, ByVal acknowledgeMessages() As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("acknowledgeResults", New Object() {requestId, acknowledgeMessages}, callback, asyncState)
        End Function
        
        '''<remarks/>
        Public Sub EndacknowledgeResults(ByVal asyncResult As System.IAsyncResult)
            Me.EndInvoke(asyncResult)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub acknowledgeResultsAsync(ByVal requestId As String, ByVal acknowledgeMessages() As String)
            Me.acknowledgeResultsAsync(requestId, acknowledgeMessages, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub acknowledgeResultsAsync(ByVal requestId As String, ByVal acknowledgeMessages() As String, ByVal userState As Object)
            If (Me.acknowledgeResultsOperationCompleted Is Nothing) Then
                Me.acknowledgeResultsOperationCompleted = AddressOf Me.OnacknowledgeResultsOperationCompleted
            End If
            Me.InvokeAsync("acknowledgeResults", New Object() {requestId, acknowledgeMessages}, Me.acknowledgeResultsOperationCompleted, userState)
        End Sub
        
        Private Sub OnacknowledgeResultsOperationCompleted(ByVal arg As Object)
            If (Not (Me.acknowledgeResultsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent acknowledgeResultsCompleted(Me, New System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="http://medplus.com/resultsHub/observations", ResponseNamespace:="http://medplus.com/resultsHub/observations")>  _
        Public Function getHL7Results(ByVal resultsRequest As ResultsRequest) As <System.Xml.Serialization.SoapElementAttribute("result")> HL7ResultsResponse
            Dim results() As Object = Me.Invoke("getHL7Results", New Object() {resultsRequest})
            Return CType(results(0),HL7ResultsResponse)
        End Function
        
        '''<remarks/>
        Public Function BegingetHL7Results(ByVal resultsRequest As ResultsRequest, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getHL7Results", New Object() {resultsRequest}, callback, asyncState)
        End Function
        
        '''<remarks/>
        Public Function EndgetHL7Results(ByVal asyncResult As System.IAsyncResult) As HL7ResultsResponse
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),HL7ResultsResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub getHL7ResultsAsync(ByVal resultsRequest As ResultsRequest)
            Me.getHL7ResultsAsync(resultsRequest, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub getHL7ResultsAsync(ByVal resultsRequest As ResultsRequest, ByVal userState As Object)
            If (Me.getHL7ResultsOperationCompleted Is Nothing) Then
                Me.getHL7ResultsOperationCompleted = AddressOf Me.OngetHL7ResultsOperationCompleted
            End If
            Me.InvokeAsync("getHL7Results", New Object() {resultsRequest}, Me.getHL7ResultsOperationCompleted, userState)
        End Sub
        
        Private Sub OngetHL7ResultsOperationCompleted(ByVal arg As Object)
            If (Not (Me.getHL7ResultsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent getHL7ResultsCompleted(Me, New getHL7ResultsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="http://medplus.com/resultsHub/observations", ResponseNamespace:="http://medplus.com/resultsHub/observations")>  _
        Public Function getMoreHL7Results(ByVal requestId As String) As <System.Xml.Serialization.SoapElementAttribute("result")> HL7ResultsResponse
            Dim results() As Object = Me.Invoke("getMoreHL7Results", New Object() {requestId})
            Return CType(results(0),HL7ResultsResponse)
        End Function
        
        '''<remarks/>
        Public Function BegingetMoreHL7Results(ByVal requestId As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getMoreHL7Results", New Object() {requestId}, callback, asyncState)
        End Function
        
        '''<remarks/>
        Public Function EndgetMoreHL7Results(ByVal asyncResult As System.IAsyncResult) As HL7ResultsResponse
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),HL7ResultsResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub getMoreHL7ResultsAsync(ByVal requestId As String)
            Me.getMoreHL7ResultsAsync(requestId, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub getMoreHL7ResultsAsync(ByVal requestId As String, ByVal userState As Object)
            If (Me.getMoreHL7ResultsOperationCompleted Is Nothing) Then
                Me.getMoreHL7ResultsOperationCompleted = AddressOf Me.OngetMoreHL7ResultsOperationCompleted
            End If
            Me.InvokeAsync("getMoreHL7Results", New Object() {requestId}, Me.getMoreHL7ResultsOperationCompleted, userState)
        End Sub
        
        Private Sub OngetMoreHL7ResultsOperationCompleted(ByVal arg As Object)
            If (Not (Me.getMoreHL7ResultsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent getMoreHL7ResultsCompleted(Me, New getMoreHL7ResultsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="http://medplus.com/resultsHub/observations", ResponseNamespace:="http://medplus.com/resultsHub/observations")>  _
        Public Sub acknowledgeHL7Results(ByVal requestId As String, ByVal acknowledgeMessages() As HL7Message)
            Me.Invoke("acknowledgeHL7Results", New Object() {requestId, acknowledgeMessages})
        End Sub
        
        '''<remarks/>
        Public Function BeginacknowledgeHL7Results(ByVal requestId As String, ByVal acknowledgeMessages() As HL7Message, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("acknowledgeHL7Results", New Object() {requestId, acknowledgeMessages}, callback, asyncState)
        End Function
        
        '''<remarks/>
        Public Sub EndacknowledgeHL7Results(ByVal asyncResult As System.IAsyncResult)
            Me.EndInvoke(asyncResult)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub acknowledgeHL7ResultsAsync(ByVal requestId As String, ByVal acknowledgeMessages() As HL7Message)
            Me.acknowledgeHL7ResultsAsync(requestId, acknowledgeMessages, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub acknowledgeHL7ResultsAsync(ByVal requestId As String, ByVal acknowledgeMessages() As HL7Message, ByVal userState As Object)
            If (Me.acknowledgeHL7ResultsOperationCompleted Is Nothing) Then
                Me.acknowledgeHL7ResultsOperationCompleted = AddressOf Me.OnacknowledgeHL7ResultsOperationCompleted
            End If
            Me.InvokeAsync("acknowledgeHL7Results", New Object() {requestId, acknowledgeMessages}, Me.acknowledgeHL7ResultsOperationCompleted, userState)
        End Sub
        
        Private Sub OnacknowledgeHL7ResultsOperationCompleted(ByVal arg As Object)
            If (Not (Me.acknowledgeHL7ResultsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent acknowledgeHL7ResultsCompleted(Me, New System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="http://medplus.com/resultsHub/observations", ResponseNamespace:="http://medplus.com/resultsHub/observations")>  _
        Public Function getProviderAccounts() As <System.Xml.Serialization.SoapElementAttribute("result")> ProviderAccount()
            Dim results() As Object = Me.Invoke("getProviderAccounts", New Object(-1) {})
            Return CType(results(0),ProviderAccount())
        End Function
        
        '''<remarks/>
        Public Function BegingetProviderAccounts(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getProviderAccounts", New Object(-1) {}, callback, asyncState)
        End Function
        
        '''<remarks/>
        Public Function EndgetProviderAccounts(ByVal asyncResult As System.IAsyncResult) As ProviderAccount()
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),ProviderAccount())
        End Function
        
        '''<remarks/>
        Public Overloads Sub getProviderAccountsAsync()
            Me.getProviderAccountsAsync(Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub getProviderAccountsAsync(ByVal userState As Object)
            If (Me.getProviderAccountsOperationCompleted Is Nothing) Then
                Me.getProviderAccountsOperationCompleted = AddressOf Me.OngetProviderAccountsOperationCompleted
            End If
            Me.InvokeAsync("getProviderAccounts", New Object(-1) {}, Me.getProviderAccountsOperationCompleted, userState)
        End Sub
        
        Private Sub OngetProviderAccountsOperationCompleted(ByVal arg As Object)
            If (Not (Me.getProviderAccountsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent getProviderAccountsCompleted(Me, New getProviderAccountsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        Public Shadows Sub CancelAsync(ByVal userState As Object)
            MyBase.CancelAsync(userState)
        End Sub
        
        Private Function IsLocalFileSystemWebService(ByVal url As String) As Boolean
            If ((url Is Nothing)  _
                        OrElse (url Is String.Empty)) Then
                Return false
            End If
            Dim wsUri As System.Uri = New System.Uri(url)
            If ((wsUri.Port >= 1024)  _
                        AndAlso (String.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) = 0)) Then
                Return true
            End If
            Return false
        End Function
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice")>  _
    Partial Public Class ResultsRequest
        
        Private endDateField As String
        
        Private maxMessagesField As System.Nullable(Of Integer)
        
        Private providerAccountIdsField() As String
        
        Private retrieveFinalsOnlyField As Boolean
        
        Private retrieveObsoleteResultsField As Boolean
        
        Private startDateField As String
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property endDate() As String
            Get
                Return Me.endDateField
            End Get
            Set
                Me.endDateField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property maxMessages() As System.Nullable(Of Integer)
            Get
                Return Me.maxMessagesField
            End Get
            Set
                Me.maxMessagesField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property providerAccountIds() As String()
            Get
                Return Me.providerAccountIdsField
            End Get
            Set
                Me.providerAccountIdsField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property retrieveFinalsOnly() As Boolean
            Get
                Return Me.retrieveFinalsOnlyField
            End Get
            Set
                Me.retrieveFinalsOnlyField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property retrieveObsoleteResults() As Boolean
            Get
                Return Me.retrieveObsoleteResultsField
            End Get
            Set
                Me.retrieveObsoleteResultsField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property startDate() As String
            Get
                Return Me.startDateField
            End Get
            Set
                Me.startDateField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice")>  _
    Partial Public Class Provider
        
        Private descriptionField As String
        
        Private nameField As String
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property description() As String
            Get
                Return Me.descriptionField
            End Get
            Set
                Me.descriptionField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property name() As String
            Get
                Return Me.nameField
            End Get
            Set
                Me.nameField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice")>  _
    Partial Public Class ProviderAccount
        
        Private accountIdField As String
        
        Private accountNameField As String
        
        Private descriptionField As String
        
        Private descriptiveNameField As String
        
        Private internalIdField As String
        
        Private providerField As Provider
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property accountId() As String
            Get
                Return Me.accountIdField
            End Get
            Set
                Me.accountIdField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property accountName() As String
            Get
                Return Me.accountNameField
            End Get
            Set
                Me.accountNameField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property description() As String
            Get
                Return Me.descriptionField
            End Get
            Set
                Me.descriptionField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property descriptiveName() As String
            Get
                Return Me.descriptiveNameField
            End Get
            Set
                Me.descriptiveNameField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property internalId() As String
            Get
                Return Me.internalIdField
            End Get
            Set
                Me.internalIdField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property provider() As Provider
            Get
                Return Me.providerField
            End Get
            Set
                Me.providerField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice")>  _
    Partial Public Class HL7Message
        
        Private controlIdField As String
        
        Private messageField() As Byte
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property controlId() As String
            Get
                Return Me.controlIdField
            End Get
            Set
                Me.controlIdField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(DataType:="base64Binary", IsNullable:=true)>  _
        Public Property message() As Byte()
            Get
                Return Me.messageField
            End Get
            Set
                Me.messageField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice")>  _
    Partial Public Class HL7ResultsResponse
        
        Private hL7MessagesField() As HL7Message
        
        Private isMoreField As System.Nullable(Of Boolean)
        
        Private requestIdField As String
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property HL7Messages() As HL7Message()
            Get
                Return Me.hL7MessagesField
            End Get
            Set
                Me.hL7MessagesField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property isMore() As System.Nullable(Of Boolean)
            Get
                Return Me.isMoreField
            End Get
            Set
                Me.isMoreField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property requestId() As String
            Get
                Return Me.requestIdField
            End Get
            Set
                Me.requestIdField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice")>  _
    Partial Public Class ResultsResponse
        
        Private hL7MessagesField() As String
        
        Private isMoreField As System.Nullable(Of Boolean)
        
        Private requestIdField As String
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property HL7Messages() As String()
            Get
                Return Me.hL7MessagesField
            End Get
            Set
                Me.hL7MessagesField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property isMore() As System.Nullable(Of Boolean)
            Get
                Return Me.isMoreField
            End Get
            Set
                Me.isMoreField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property requestId() As String
            Get
                Return Me.requestIdField
            End Get
            Set
                Me.requestIdField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub getResultsCompletedEventHandler(ByVal sender As Object, ByVal e As getResultsCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class getResultsCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As ResultsResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),ResultsResponse)
            End Get
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub getMoreResultsCompletedEventHandler(ByVal sender As Object, ByVal e As getMoreResultsCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class getMoreResultsCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As ResultsResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),ResultsResponse)
            End Get
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub acknowledgeResultsCompletedEventHandler(ByVal sender As Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub getHL7ResultsCompletedEventHandler(ByVal sender As Object, ByVal e As getHL7ResultsCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class getHL7ResultsCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As HL7ResultsResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),HL7ResultsResponse)
            End Get
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub getMoreHL7ResultsCompletedEventHandler(ByVal sender As Object, ByVal e As getMoreHL7ResultsCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class getMoreHL7ResultsCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As HL7ResultsResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),HL7ResultsResponse)
            End Get
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub acknowledgeHL7ResultsCompletedEventHandler(ByVal sender As Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub getProviderAccountsCompletedEventHandler(ByVal sender As Object, ByVal e As getProviderAccountsCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class getProviderAccountsCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As ProviderAccount()
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),ProviderAccount())
            End Get
        End Property
    End Class
End Namespace
