POST v1/serviceprovider/SendResults?mode={mode}&serviceProviderConnectionAuthCode={serviceProviderConnectionAuthCode}

Send Service Provider Results: Send Results to EMR-Link. This can be used by a lab or imaging provider to send result files to EMR-Link.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
mode

Determines whether the results sent are test mode or live (aka production) mode results. Specify 'live' to send live orders. If empty or any other value, test mode results are assumed.

string

Default value is

serviceProviderConnectionAuthCode

This parameter must be used to identify the specific lab/imaging connection if the service provider "owns" more than one connection in EMR-Link. If left empty, and the service provider owns more than one lab/imaging connection, an error will be returned. If the service provider owns only one service provider connection, this parameter can be ignored.

string

Default value is

Body Parameters

List of ResultFile objects containing the contents of the result file.

Collection of ResultFile
NameDescriptionTypeAdditional information
FileContents

Result File contents

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "FileContents": "sample string 1"
  },
  {
    "FileContents": "sample string 1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfResultFile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ResultFile>
    <FileContents>sample string 1</FileContents>
  </ResultFile>
  <ResultFile>
    <FileContents>sample string 1</FileContents>
  </ResultFile>
</ArrayOfResultFile>

Response Information

Resource Description

BaseResponse
NameDescriptionTypeAdditional information
Error

Will be set to True if any errors occur during the processing of the API method.

boolean

None.

ErrorMessage

Will contain an error message string if Error is True.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": true,
  "ErrorMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<BaseResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>true</Error>
  <ErrorMessage>sample string 2</ErrorMessage>
</BaseResponse>