DiagnosticReport for Laboratory Results Reporting

DiagnosticReport

diagnosticReportCategoryDateGet

Search for DiagnosticReport resources based on a combination of category and date. For more information on the syntax used for searches, go to Searching.


/DiagnosticReport/[category]&[date]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//DiagnosticReport/[category]&[date]?date=&category (code)="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DiagnosticReportApi;

import java.io.File;
import java.util.*;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String date = date_example; // String | The clinically relevant time of the report.
        String category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportCategoryDateGet(date, category (code));
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportCategoryDateGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DiagnosticReportApi;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String date = date_example; // String | The clinically relevant time of the report.
        String category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportCategoryDateGet(date, category (code));
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportCategoryDateGet");
            e.printStackTrace();
        }
    }
}
String *date = date_example; // The clinically relevant time of the report. (optional)
String *category (code) = category (code)_example; // Which diagnostic discipline/department created the report. (optional)

DiagnosticReportApi *apiInstance = [[DiagnosticReportApi alloc] init];

[apiInstance diagnosticReportCategoryDateGetWith:date
    category (code):category (code)
              completionHandler: ^(DiagnosticReport output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiagnosticReportForLaboratoryResultsReporting = require('diagnostic_report_for_laboratory_results_reporting');

var api = new DiagnosticReportForLaboratoryResultsReporting.DiagnosticReportApi()
var opts = { 
  'date': date_example, // {{String}} The clinically relevant time of the report.
  'category (code)': category (code)_example // {{String}} Which diagnostic discipline/department created the report.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.diagnosticReportCategoryDateGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class diagnosticReportCategoryDateGetExample
    {
        public void main()
        {

            var apiInstance = new DiagnosticReportApi();
            var date = date_example;  // String | The clinically relevant time of the report. (optional) 
            var category (code) = category (code)_example;  // String | Which diagnostic discipline/department created the report. (optional) 

            try
            {
                DiagnosticReport result = apiInstance.diagnosticReportCategoryDateGet(date, category (code));
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DiagnosticReportApi.diagnosticReportCategoryDateGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDiagnosticReportApi();
$date = date_example; // String | The clinically relevant time of the report.
$category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.

try {
    $result = $api_instance->diagnosticReportCategoryDateGet($date, $category (code));
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiagnosticReportApi->diagnosticReportCategoryDateGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DiagnosticReportApi;

my $api_instance = WWW::SwaggerClient::DiagnosticReportApi->new();
my $date = date_example; # String | The clinically relevant time of the report.
my $category (code) = category (code)_example; # String | Which diagnostic discipline/department created the report.

eval { 
    my $result = $api_instance->diagnosticReportCategoryDateGet(date => $date, category (code) => $category (code));
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DiagnosticReportApi->diagnosticReportCategoryDateGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DiagnosticReportApi()
date = date_example # String | The clinically relevant time of the report. (optional)
category (code) = category (code)_example # String | Which diagnostic discipline/department created the report. (optional)

try: 
    api_response = api_instance.diagnostic_report_category_date_get(date=date, category (code)=category (code))
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiagnosticReportApi->diagnosticReportCategoryDateGet: %s\n" % e)

Parameters

Query parameters
Name Description
date
String
The clinically relevant time of the report.
category (code)
String
Which diagnostic discipline/department created the report.

Responses

Status: 200 - Successful operation

Status: 400 - Bad request. The error was encountered when parsing the content into the appropriate FHIR resource.

Status: 401 - Unauthorized. Possible causes
  • a token failed authorization
  • a user could not be found

Status: 403 - Forbidden. Possible causes
  • a code or query parameter was not supported
  • a code may have had no valid equivalent in the EHR
  • a user does not have enough permissions to perform a certain action
  • a query was invalid, for example a search token value ended in an escape character

Status: 404 - Resource not found. Possible causes
  • an operation was not supported
  • the FHIR resource was not implemented by the product adapter
  • the FHIR resource was not found
  • the service was unable to generate the FHIR resource possibly because a required element was not provided
  • the specified patient could not be found in the EHR
  • the paging information that was sent to the product was not correct indicating that the request for the page could not be honored

Status: 405 - Method not allowed. Possible cause
  • resource does not exist

Status: 412 - Precondition failed. Possible causes
  • certain precondition checks failed, for example a version mismatch
  • an update could not be processed as the If-Match tag didn't match the version

Status: 413 - Request entity too large. Possible cause
  • a request could not be honored because it was too expensive for the server to execute, for example a search that would return a million records

Status: 422 - Unprocessable entity. Possible cause
  • an exception was thrown upon violated constraint, for example missing or invalid element for resource or if an update on a resource did not happen

Status: 429 - Too many requests. Possible causes
  • too many concurrent FHIR requests

Status: 500 - Internal server error. Possible causes
  • the system was missing configuration information, for example if a URL to a service was missing or a security group was not found for the user
  • none of the available exceptions are appropriate


diagnosticReportCodeDateGet

Search for DiagnosticReport resources based on a combination of code and date. For more information on the syntax used for searches, go to Searching.


/DiagnosticReport/[code]&[date]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//DiagnosticReport/[code]&[date]?date=&code="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DiagnosticReportApi;

import java.io.File;
import java.util.*;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String date = date_example; // String | The clinically relevant time of the report.
        String code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportCodeDateGet(date, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportCodeDateGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DiagnosticReportApi;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String date = date_example; // String | The clinically relevant time of the report.
        String code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportCodeDateGet(date, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportCodeDateGet");
            e.printStackTrace();
        }
    }
}
String *date = date_example; // The clinically relevant time of the report. (optional)
String *code = code_example; // The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional)

DiagnosticReportApi *apiInstance = [[DiagnosticReportApi alloc] init];

[apiInstance diagnosticReportCodeDateGetWith:date
    code:code
              completionHandler: ^(DiagnosticReport output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiagnosticReportForLaboratoryResultsReporting = require('diagnostic_report_for_laboratory_results_reporting');

var api = new DiagnosticReportForLaboratoryResultsReporting.DiagnosticReportApi()
var opts = { 
  'date': date_example, // {{String}} The clinically relevant time of the report.
  'code': code_example // {{String}} The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.diagnosticReportCodeDateGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class diagnosticReportCodeDateGetExample
    {
        public void main()
        {

            var apiInstance = new DiagnosticReportApi();
            var date = date_example;  // String | The clinically relevant time of the report. (optional) 
            var code = code_example;  // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional) 

            try
            {
                DiagnosticReport result = apiInstance.diagnosticReportCodeDateGet(date, code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DiagnosticReportApi.diagnosticReportCodeDateGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDiagnosticReportApi();
$date = date_example; // String | The clinically relevant time of the report.
$code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.

try {
    $result = $api_instance->diagnosticReportCodeDateGet($date, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiagnosticReportApi->diagnosticReportCodeDateGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DiagnosticReportApi;

my $api_instance = WWW::SwaggerClient::DiagnosticReportApi->new();
my $date = date_example; # String | The clinically relevant time of the report.
my $code = code_example; # String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.

eval { 
    my $result = $api_instance->diagnosticReportCodeDateGet(date => $date, code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DiagnosticReportApi->diagnosticReportCodeDateGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DiagnosticReportApi()
date = date_example # String | The clinically relevant time of the report. (optional)
code = code_example # String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional)

try: 
    api_response = api_instance.diagnostic_report_code_date_get(date=date, code=code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiagnosticReportApi->diagnosticReportCodeDateGet: %s\n" % e)

Parameters

Query parameters
Name Description
date
String
The clinically relevant time of the report.
code
String
The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.

Responses

Status: 200 - Successful operation

Status: 400 - Bad request. The error was encountered when parsing the content into the appropriate FHIR resource.

Status: 401 - Unauthorized. Possible causes
  • a token failed authorization
  • a user could not be found

Status: 403 - Forbidden. Possible causes
  • a code or query parameter was not supported
  • a code may have had no valid equivalent in the EHR
  • a user does not have enough permissions to perform a certain action
  • a query was invalid, for example a search token value ended in an escape character

Status: 404 - Resource not found. Possible causes
  • an operation was not supported
  • the FHIR resource was not implemented by the product adapter
  • the FHIR resource was not found
  • the service was unable to generate the FHIR resource possibly because a required element was not provided
  • the specified patient could not be found in the EHR
  • the paging information that was sent to the product was not correct indicating that the request for the page could not be honored

Status: 405 - Method not allowed. Possible cause
  • resource does not exist

Status: 412 - Precondition failed. Possible causes
  • certain precondition checks failed, for example a version mismatch
  • an update could not be processed as the If-Match tag didn't match the version

Status: 413 - Request entity too large. Possible cause
  • a request could not be honored because it was too expensive for the server to execute, for example a search that would return a million records

Status: 422 - Unprocessable entity. Possible cause
  • an exception was thrown upon violated constraint, for example missing or invalid element for resource or if an update on a resource did not happen

Status: 429 - Too many requests. Possible causes
  • too many concurrent FHIR requests

Status: 500 - Internal server error. Possible causes
  • the system was missing configuration information, for example if a URL to a service was missing or a security group was not found for the user
  • none of the available exceptions are appropriate


diagnosticReportGet

Get a DiagnosticReport resource based on the resource ID, or search by ID, patient ID, status, category (code), code, or date. For more information on the syntax used for searches, go to Searching.


/DiagnosticReport/

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//DiagnosticReport/?_id=&patient=&status=&category (code)=&code=&date="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DiagnosticReportApi;

import java.io.File;
import java.util.*;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String id = id_example; // String | Resource ID.
        String patient = patient_example; // String | Patient ID.
        String status = status_example; // String | Report status.
        String category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.
        String code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
        String date = date_example; // String | The clinically relevant time of the report.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportGet(id, patient, status, category (code), code, date);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DiagnosticReportApi;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String id = id_example; // String | Resource ID.
        String patient = patient_example; // String | Patient ID.
        String status = status_example; // String | Report status.
        String category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.
        String code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
        String date = date_example; // String | The clinically relevant time of the report.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportGet(id, patient, status, category (code), code, date);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Resource ID. (optional)
String *patient = patient_example; // Patient ID. (optional)
String *status = status_example; // Report status. (optional)
String *category (code) = category (code)_example; // Which diagnostic discipline/department created the report. (optional)
String *code = code_example; // The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional)
String *date = date_example; // The clinically relevant time of the report. (optional)

DiagnosticReportApi *apiInstance = [[DiagnosticReportApi alloc] init];

[apiInstance diagnosticReportGetWith:id
    patient:patient
    status:status
    category (code):category (code)
    code:code
    date:date
              completionHandler: ^(DiagnosticReport output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiagnosticReportForLaboratoryResultsReporting = require('diagnostic_report_for_laboratory_results_reporting');

var api = new DiagnosticReportForLaboratoryResultsReporting.DiagnosticReportApi()
var opts = { 
  'id': id_example, // {{String}} Resource ID.
  'patient': patient_example, // {{String}} Patient ID.
  'status': status_example, // {{String}} Report status.
  'category (code)': category (code)_example, // {{String}} Which diagnostic discipline/department created the report.
  'code': code_example, // {{String}} The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
  'date': date_example // {{String}} The clinically relevant time of the report.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.diagnosticReportGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class diagnosticReportGetExample
    {
        public void main()
        {

            var apiInstance = new DiagnosticReportApi();
            var id = id_example;  // String | Resource ID. (optional) 
            var patient = patient_example;  // String | Patient ID. (optional) 
            var status = status_example;  // String | Report status. (optional) 
            var category (code) = category (code)_example;  // String | Which diagnostic discipline/department created the report. (optional) 
            var code = code_example;  // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional) 
            var date = date_example;  // String | The clinically relevant time of the report. (optional) 

            try
            {
                DiagnosticReport result = apiInstance.diagnosticReportGet(id, patient, status, category (code), code, date);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DiagnosticReportApi.diagnosticReportGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDiagnosticReportApi();
$id = id_example; // String | Resource ID.
$patient = patient_example; // String | Patient ID.
$status = status_example; // String | Report status.
$category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.
$code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
$date = date_example; // String | The clinically relevant time of the report.

try {
    $result = $api_instance->diagnosticReportGet($id, $patient, $status, $category (code), $code, $date);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiagnosticReportApi->diagnosticReportGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DiagnosticReportApi;

my $api_instance = WWW::SwaggerClient::DiagnosticReportApi->new();
my $id = id_example; # String | Resource ID.
my $patient = patient_example; # String | Patient ID.
my $status = status_example; # String | Report status.
my $category (code) = category (code)_example; # String | Which diagnostic discipline/department created the report.
my $code = code_example; # String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
my $date = date_example; # String | The clinically relevant time of the report.

eval { 
    my $result = $api_instance->diagnosticReportGet(id => $id, patient => $patient, status => $status, category (code) => $category (code), code => $code, date => $date);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DiagnosticReportApi->diagnosticReportGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DiagnosticReportApi()
id = id_example # String | Resource ID. (optional)
patient = patient_example # String | Patient ID. (optional)
status = status_example # String | Report status. (optional)
category (code) = category (code)_example # String | Which diagnostic discipline/department created the report. (optional)
code = code_example # String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional)
date = date_example # String | The clinically relevant time of the report. (optional)

try: 
    api_response = api_instance.diagnostic_report_get(id=id, patient=patient, status=status, category (code)=category (code), code=code, date=date)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiagnosticReportApi->diagnosticReportGet: %s\n" % e)

Parameters

Query parameters
Name Description
_id
String
Resource ID.
patient
String
Patient ID.
status
String
Report status.
category (code)
String
Which diagnostic discipline/department created the report.
code
String
The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
date
String
The clinically relevant time of the report.

Responses

Status: 200 - Successful operation

Status: 400 - Bad request. The error was encountered when parsing the content into the appropriate FHIR resource.

Status: 401 - Unauthorized. Possible causes
  • a token failed authorization
  • a user could not be found

Status: 403 - Forbidden. Possible causes
  • a code or query parameter was not supported
  • a code may have had no valid equivalent in the EHR
  • a user does not have enough permissions to perform a certain action
  • a query was invalid, for example a search token value ended in an escape character

Status: 404 - Resource not found. Possible causes
  • an operation was not supported
  • the FHIR resource was not implemented by the product adapter
  • the FHIR resource was not found
  • the service was unable to generate the FHIR resource possibly because a required element was not provided
  • the specified patient could not be found in the EHR
  • the paging information that was sent to the product was not correct indicating that the request for the page could not be honored

Status: 405 - Method not allowed. Possible cause
  • resource does not exist

Status: 412 - Precondition failed. Possible causes
  • certain precondition checks failed, for example a version mismatch
  • an update could not be processed as the If-Match tag didn't match the version

Status: 413 - Request entity too large. Possible cause
  • a request could not be honored because it was too expensive for the server to execute, for example a search that would return a million records

Status: 422 - Unprocessable entity. Possible cause
  • an exception was thrown upon violated constraint, for example missing or invalid element for resource or if an update on a resource did not happen

Status: 429 - Too many requests. Possible causes
  • too many concurrent FHIR requests

Status: 500 - Internal server error. Possible causes
  • the system was missing configuration information, for example if a URL to a service was missing or a security group was not found for the user
  • none of the available exceptions are appropriate


diagnosticReportPatientCategoryDateGet

Search for DiagnosticReport resources based on a combination of patient, category, and date. For more information on the syntax used for searches, go to Searching.


/DiagnosticReport/[patient]&[category]&[date]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//DiagnosticReport/[patient]&[category]&[date]?date=&patient=&category (code)="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DiagnosticReportApi;

import java.io.File;
import java.util.*;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String date = date_example; // String | The clinically relevant time of the report.
        String patient = patient_example; // String | Patient ID.
        String category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientCategoryDateGet(date, patient, category (code));
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientCategoryDateGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DiagnosticReportApi;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String date = date_example; // String | The clinically relevant time of the report.
        String patient = patient_example; // String | Patient ID.
        String category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientCategoryDateGet(date, patient, category (code));
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientCategoryDateGet");
            e.printStackTrace();
        }
    }
}
String *date = date_example; // The clinically relevant time of the report. (optional)
String *patient = patient_example; // Patient ID. (optional)
String *category (code) = category (code)_example; // Which diagnostic discipline/department created the report. (optional)

DiagnosticReportApi *apiInstance = [[DiagnosticReportApi alloc] init];

[apiInstance diagnosticReportPatientCategoryDateGetWith:date
    patient:patient
    category (code):category (code)
              completionHandler: ^(DiagnosticReport output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiagnosticReportForLaboratoryResultsReporting = require('diagnostic_report_for_laboratory_results_reporting');

var api = new DiagnosticReportForLaboratoryResultsReporting.DiagnosticReportApi()
var opts = { 
  'date': date_example, // {{String}} The clinically relevant time of the report.
  'patient': patient_example, // {{String}} Patient ID.
  'category (code)': category (code)_example // {{String}} Which diagnostic discipline/department created the report.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.diagnosticReportPatientCategoryDateGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class diagnosticReportPatientCategoryDateGetExample
    {
        public void main()
        {

            var apiInstance = new DiagnosticReportApi();
            var date = date_example;  // String | The clinically relevant time of the report. (optional) 
            var patient = patient_example;  // String | Patient ID. (optional) 
            var category (code) = category (code)_example;  // String | Which diagnostic discipline/department created the report. (optional) 

            try
            {
                DiagnosticReport result = apiInstance.diagnosticReportPatientCategoryDateGet(date, patient, category (code));
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DiagnosticReportApi.diagnosticReportPatientCategoryDateGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDiagnosticReportApi();
$date = date_example; // String | The clinically relevant time of the report.
$patient = patient_example; // String | Patient ID.
$category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.

try {
    $result = $api_instance->diagnosticReportPatientCategoryDateGet($date, $patient, $category (code));
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiagnosticReportApi->diagnosticReportPatientCategoryDateGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DiagnosticReportApi;

my $api_instance = WWW::SwaggerClient::DiagnosticReportApi->new();
my $date = date_example; # String | The clinically relevant time of the report.
my $patient = patient_example; # String | Patient ID.
my $category (code) = category (code)_example; # String | Which diagnostic discipline/department created the report.

eval { 
    my $result = $api_instance->diagnosticReportPatientCategoryDateGet(date => $date, patient => $patient, category (code) => $category (code));
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DiagnosticReportApi->diagnosticReportPatientCategoryDateGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DiagnosticReportApi()
date = date_example # String | The clinically relevant time of the report. (optional)
patient = patient_example # String | Patient ID. (optional)
category (code) = category (code)_example # String | Which diagnostic discipline/department created the report. (optional)

try: 
    api_response = api_instance.diagnostic_report_patient_category_date_get(date=date, patient=patient, category (code)=category (code))
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiagnosticReportApi->diagnosticReportPatientCategoryDateGet: %s\n" % e)

Parameters

Query parameters
Name Description
date
String
The clinically relevant time of the report.
patient
String
Patient ID.
category (code)
String
Which diagnostic discipline/department created the report.

Responses

Status: 200 - Successful operation

Status: 400 - Bad request. The error was encountered when parsing the content into the appropriate FHIR resource.

Status: 401 - Unauthorized. Possible causes
  • a token failed authorization
  • a user could not be found

Status: 403 - Forbidden. Possible causes
  • a code or query parameter was not supported
  • a code may have had no valid equivalent in the EHR
  • a user does not have enough permissions to perform a certain action
  • a query was invalid, for example a search token value ended in an escape character

Status: 404 - Resource not found. Possible causes
  • an operation was not supported
  • the FHIR resource was not implemented by the product adapter
  • the FHIR resource was not found
  • the service was unable to generate the FHIR resource possibly because a required element was not provided
  • the specified patient could not be found in the EHR
  • the paging information that was sent to the product was not correct indicating that the request for the page could not be honored

Status: 405 - Method not allowed. Possible cause
  • resource does not exist

Status: 412 - Precondition failed. Possible causes
  • certain precondition checks failed, for example a version mismatch
  • an update could not be processed as the If-Match tag didn't match the version

Status: 413 - Request entity too large. Possible cause
  • a request could not be honored because it was too expensive for the server to execute, for example a search that would return a million records

Status: 422 - Unprocessable entity. Possible cause
  • an exception was thrown upon violated constraint, for example missing or invalid element for resource or if an update on a resource did not happen

Status: 429 - Too many requests. Possible causes
  • too many concurrent FHIR requests

Status: 500 - Internal server error. Possible causes
  • the system was missing configuration information, for example if a URL to a service was missing or a security group was not found for the user
  • none of the available exceptions are appropriate


diagnosticReportPatientCategoryGet

Search for DiagnosticReport resources based on a combination of patient ID and category. For more information on the syntax used for searches, go to Searching.


/DiagnosticReport/[patient]&[category]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//DiagnosticReport/[patient]&[category]?patient=&category (code)="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DiagnosticReportApi;

import java.io.File;
import java.util.*;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String patient = patient_example; // String | Patient ID.
        String category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientCategoryGet(patient, category (code));
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientCategoryGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DiagnosticReportApi;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String patient = patient_example; // String | Patient ID.
        String category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientCategoryGet(patient, category (code));
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientCategoryGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Patient ID. (optional)
String *category (code) = category (code)_example; // Which diagnostic discipline/department created the report. (optional)

DiagnosticReportApi *apiInstance = [[DiagnosticReportApi alloc] init];

[apiInstance diagnosticReportPatientCategoryGetWith:patient
    category (code):category (code)
              completionHandler: ^(DiagnosticReport output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiagnosticReportForLaboratoryResultsReporting = require('diagnostic_report_for_laboratory_results_reporting');

var api = new DiagnosticReportForLaboratoryResultsReporting.DiagnosticReportApi()
var opts = { 
  'patient': patient_example, // {{String}} Patient ID.
  'category (code)': category (code)_example // {{String}} Which diagnostic discipline/department created the report.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.diagnosticReportPatientCategoryGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class diagnosticReportPatientCategoryGetExample
    {
        public void main()
        {

            var apiInstance = new DiagnosticReportApi();
            var patient = patient_example;  // String | Patient ID. (optional) 
            var category (code) = category (code)_example;  // String | Which diagnostic discipline/department created the report. (optional) 

            try
            {
                DiagnosticReport result = apiInstance.diagnosticReportPatientCategoryGet(patient, category (code));
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DiagnosticReportApi.diagnosticReportPatientCategoryGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDiagnosticReportApi();
$patient = patient_example; // String | Patient ID.
$category (code) = category (code)_example; // String | Which diagnostic discipline/department created the report.

try {
    $result = $api_instance->diagnosticReportPatientCategoryGet($patient, $category (code));
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiagnosticReportApi->diagnosticReportPatientCategoryGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DiagnosticReportApi;

my $api_instance = WWW::SwaggerClient::DiagnosticReportApi->new();
my $patient = patient_example; # String | Patient ID.
my $category (code) = category (code)_example; # String | Which diagnostic discipline/department created the report.

eval { 
    my $result = $api_instance->diagnosticReportPatientCategoryGet(patient => $patient, category (code) => $category (code));
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DiagnosticReportApi->diagnosticReportPatientCategoryGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DiagnosticReportApi()
patient = patient_example # String | Patient ID. (optional)
category (code) = category (code)_example # String | Which diagnostic discipline/department created the report. (optional)

try: 
    api_response = api_instance.diagnostic_report_patient_category_get(patient=patient, category (code)=category (code))
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiagnosticReportApi->diagnosticReportPatientCategoryGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Patient ID.
category (code)
String
Which diagnostic discipline/department created the report.

Responses

Status: 200 - Successful operation

Status: 400 - Bad request. The error was encountered when parsing the content into the appropriate FHIR resource.

Status: 401 - Unauthorized. Possible causes
  • a token failed authorization
  • a user could not be found

Status: 403 - Forbidden. Possible causes
  • a code or query parameter was not supported
  • a code may have had no valid equivalent in the EHR
  • a user does not have enough permissions to perform a certain action
  • a query was invalid, for example a search token value ended in an escape character

Status: 404 - Resource not found. Possible causes
  • an operation was not supported
  • the FHIR resource was not implemented by the product adapter
  • the FHIR resource was not found
  • the service was unable to generate the FHIR resource possibly because a required element was not provided
  • the specified patient could not be found in the EHR
  • the paging information that was sent to the product was not correct indicating that the request for the page could not be honored

Status: 405 - Method not allowed. Possible cause
  • resource does not exist

Status: 412 - Precondition failed. Possible causes
  • certain precondition checks failed, for example a version mismatch
  • an update could not be processed as the If-Match tag didn't match the version

Status: 413 - Request entity too large. Possible cause
  • a request could not be honored because it was too expensive for the server to execute, for example a search that would return a million records

Status: 422 - Unprocessable entity. Possible cause
  • an exception was thrown upon violated constraint, for example missing or invalid element for resource or if an update on a resource did not happen

Status: 429 - Too many requests. Possible causes
  • too many concurrent FHIR requests

Status: 500 - Internal server error. Possible causes
  • the system was missing configuration information, for example if a URL to a service was missing or a security group was not found for the user
  • none of the available exceptions are appropriate


diagnosticReportPatientCodeDateGet

Search for DiagnosticReport resources based on a combination of patient, code, and date. For more information on the syntax used for searches, go to Searching.


/DiagnosticReport/[patient]&[code]&[date]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//DiagnosticReport/[patient]&[code]&[date]?date=&patient=&code="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DiagnosticReportApi;

import java.io.File;
import java.util.*;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String date = date_example; // String | The clinically relevant time of the report.
        String patient = patient_example; // String | Patient ID.
        String code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientCodeDateGet(date, patient, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientCodeDateGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DiagnosticReportApi;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String date = date_example; // String | The clinically relevant time of the report.
        String patient = patient_example; // String | Patient ID.
        String code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientCodeDateGet(date, patient, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientCodeDateGet");
            e.printStackTrace();
        }
    }
}
String *date = date_example; // The clinically relevant time of the report. (optional)
String *patient = patient_example; // Patient ID. (optional)
String *code = code_example; // The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional)

DiagnosticReportApi *apiInstance = [[DiagnosticReportApi alloc] init];

[apiInstance diagnosticReportPatientCodeDateGetWith:date
    patient:patient
    code:code
              completionHandler: ^(DiagnosticReport output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiagnosticReportForLaboratoryResultsReporting = require('diagnostic_report_for_laboratory_results_reporting');

var api = new DiagnosticReportForLaboratoryResultsReporting.DiagnosticReportApi()
var opts = { 
  'date': date_example, // {{String}} The clinically relevant time of the report.
  'patient': patient_example, // {{String}} Patient ID.
  'code': code_example // {{String}} The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.diagnosticReportPatientCodeDateGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class diagnosticReportPatientCodeDateGetExample
    {
        public void main()
        {

            var apiInstance = new DiagnosticReportApi();
            var date = date_example;  // String | The clinically relevant time of the report. (optional) 
            var patient = patient_example;  // String | Patient ID. (optional) 
            var code = code_example;  // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional) 

            try
            {
                DiagnosticReport result = apiInstance.diagnosticReportPatientCodeDateGet(date, patient, code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DiagnosticReportApi.diagnosticReportPatientCodeDateGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDiagnosticReportApi();
$date = date_example; // String | The clinically relevant time of the report.
$patient = patient_example; // String | Patient ID.
$code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.

try {
    $result = $api_instance->diagnosticReportPatientCodeDateGet($date, $patient, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiagnosticReportApi->diagnosticReportPatientCodeDateGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DiagnosticReportApi;

my $api_instance = WWW::SwaggerClient::DiagnosticReportApi->new();
my $date = date_example; # String | The clinically relevant time of the report.
my $patient = patient_example; # String | Patient ID.
my $code = code_example; # String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.

eval { 
    my $result = $api_instance->diagnosticReportPatientCodeDateGet(date => $date, patient => $patient, code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DiagnosticReportApi->diagnosticReportPatientCodeDateGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DiagnosticReportApi()
date = date_example # String | The clinically relevant time of the report. (optional)
patient = patient_example # String | Patient ID. (optional)
code = code_example # String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional)

try: 
    api_response = api_instance.diagnostic_report_patient_code_date_get(date=date, patient=patient, code=code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiagnosticReportApi->diagnosticReportPatientCodeDateGet: %s\n" % e)

Parameters

Query parameters
Name Description
date
String
The clinically relevant time of the report.
patient
String
Patient ID.
code
String
The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.

Responses

Status: 200 - Successful operation

Status: 400 - Bad request. The error was encountered when parsing the content into the appropriate FHIR resource.

Status: 401 - Unauthorized. Possible causes
  • a token failed authorization
  • a user could not be found

Status: 403 - Forbidden. Possible causes
  • a code or query parameter was not supported
  • a code may have had no valid equivalent in the EHR
  • a user does not have enough permissions to perform a certain action
  • a query was invalid, for example a search token value ended in an escape character

Status: 404 - Resource not found. Possible causes
  • an operation was not supported
  • the FHIR resource was not implemented by the product adapter
  • the FHIR resource was not found
  • the service was unable to generate the FHIR resource possibly because a required element was not provided
  • the specified patient could not be found in the EHR
  • the paging information that was sent to the product was not correct indicating that the request for the page could not be honored

Status: 405 - Method not allowed. Possible cause
  • resource does not exist

Status: 412 - Precondition failed. Possible causes
  • certain precondition checks failed, for example a version mismatch
  • an update could not be processed as the If-Match tag didn't match the version

Status: 413 - Request entity too large. Possible cause
  • a request could not be honored because it was too expensive for the server to execute, for example a search that would return a million records

Status: 422 - Unprocessable entity. Possible cause
  • an exception was thrown upon violated constraint, for example missing or invalid element for resource or if an update on a resource did not happen

Status: 429 - Too many requests. Possible causes
  • too many concurrent FHIR requests

Status: 500 - Internal server error. Possible causes
  • the system was missing configuration information, for example if a URL to a service was missing or a security group was not found for the user
  • none of the available exceptions are appropriate


diagnosticReportPatientCodeGet

Search for DiagnosticReport resources based on a combination of patient ID and code. For more information on the syntax used for searches, go to Searching.


/DiagnosticReport/[patient]&[code]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//DiagnosticReport/[patient]&[code]?code=&patient="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DiagnosticReportApi;

import java.io.File;
import java.util.*;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
        String patient = patient_example; // String | Patient ID.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientCodeGet(code, patient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientCodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DiagnosticReportApi;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
        String patient = patient_example; // String | Patient ID.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientCodeGet(code, patient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientCodeGet");
            e.printStackTrace();
        }
    }
}
String *code = code_example; // The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional)
String *patient = patient_example; // Patient ID. (optional)

DiagnosticReportApi *apiInstance = [[DiagnosticReportApi alloc] init];

[apiInstance diagnosticReportPatientCodeGetWith:code
    patient:patient
              completionHandler: ^(DiagnosticReport output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiagnosticReportForLaboratoryResultsReporting = require('diagnostic_report_for_laboratory_results_reporting');

var api = new DiagnosticReportForLaboratoryResultsReporting.DiagnosticReportApi()
var opts = { 
  'code': code_example, // {{String}} The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
  'patient': patient_example // {{String}} Patient ID.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.diagnosticReportPatientCodeGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class diagnosticReportPatientCodeGetExample
    {
        public void main()
        {

            var apiInstance = new DiagnosticReportApi();
            var code = code_example;  // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional) 
            var patient = patient_example;  // String | Patient ID. (optional) 

            try
            {
                DiagnosticReport result = apiInstance.diagnosticReportPatientCodeGet(code, patient);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DiagnosticReportApi.diagnosticReportPatientCodeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDiagnosticReportApi();
$code = code_example; // String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
$patient = patient_example; // String | Patient ID.

try {
    $result = $api_instance->diagnosticReportPatientCodeGet($code, $patient);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiagnosticReportApi->diagnosticReportPatientCodeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DiagnosticReportApi;

my $api_instance = WWW::SwaggerClient::DiagnosticReportApi->new();
my $code = code_example; # String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
my $patient = patient_example; # String | Patient ID.

eval { 
    my $result = $api_instance->diagnosticReportPatientCodeGet(code => $code, patient => $patient);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DiagnosticReportApi->diagnosticReportPatientCodeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DiagnosticReportApi()
code = code_example # String | The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result. (optional)
patient = patient_example # String | Patient ID. (optional)

try: 
    api_response = api_instance.diagnostic_report_patient_code_get(code=code, patient=patient)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiagnosticReportApi->diagnosticReportPatientCodeGet: %s\n" % e)

Parameters

Query parameters
Name Description
code
String
The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result.
patient
String
Patient ID.

Responses

Status: 200 - Successful operation

Status: 400 - Bad request. The error was encountered when parsing the content into the appropriate FHIR resource.

Status: 401 - Unauthorized. Possible causes
  • a token failed authorization
  • a user could not be found

Status: 403 - Forbidden. Possible causes
  • a code or query parameter was not supported
  • a code may have had no valid equivalent in the EHR
  • a user does not have enough permissions to perform a certain action
  • a query was invalid, for example a search token value ended in an escape character

Status: 404 - Resource not found. Possible causes
  • an operation was not supported
  • the FHIR resource was not implemented by the product adapter
  • the FHIR resource was not found
  • the service was unable to generate the FHIR resource possibly because a required element was not provided
  • the specified patient could not be found in the EHR
  • the paging information that was sent to the product was not correct indicating that the request for the page could not be honored

Status: 405 - Method not allowed. Possible cause
  • resource does not exist

Status: 412 - Precondition failed. Possible causes
  • certain precondition checks failed, for example a version mismatch
  • an update could not be processed as the If-Match tag didn't match the version

Status: 413 - Request entity too large. Possible cause
  • a request could not be honored because it was too expensive for the server to execute, for example a search that would return a million records

Status: 422 - Unprocessable entity. Possible cause
  • an exception was thrown upon violated constraint, for example missing or invalid element for resource or if an update on a resource did not happen

Status: 429 - Too many requests. Possible causes
  • too many concurrent FHIR requests

Status: 500 - Internal server error. Possible causes
  • the system was missing configuration information, for example if a URL to a service was missing or a security group was not found for the user
  • none of the available exceptions are appropriate


diagnosticReportPatientDateGet

Search for DiagnosticReport resources based on a combination of patient ID and date. For more information on the syntax used for searches, go to Searching.


/DiagnosticReport/[patient]&[date]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//DiagnosticReport/[patient]&[date]?date=&patient="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DiagnosticReportApi;

import java.io.File;
import java.util.*;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String date = date_example; // String | The clinically relevant time of the report.
        String patient = patient_example; // String | Patient ID.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientDateGet(date, patient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientDateGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DiagnosticReportApi;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String date = date_example; // String | The clinically relevant time of the report.
        String patient = patient_example; // String | Patient ID.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientDateGet(date, patient);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientDateGet");
            e.printStackTrace();
        }
    }
}
String *date = date_example; // The clinically relevant time of the report. (optional)
String *patient = patient_example; // Patient ID. (optional)

DiagnosticReportApi *apiInstance = [[DiagnosticReportApi alloc] init];

[apiInstance diagnosticReportPatientDateGetWith:date
    patient:patient
              completionHandler: ^(DiagnosticReport output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiagnosticReportForLaboratoryResultsReporting = require('diagnostic_report_for_laboratory_results_reporting');

var api = new DiagnosticReportForLaboratoryResultsReporting.DiagnosticReportApi()
var opts = { 
  'date': date_example, // {{String}} The clinically relevant time of the report.
  'patient': patient_example // {{String}} Patient ID.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.diagnosticReportPatientDateGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class diagnosticReportPatientDateGetExample
    {
        public void main()
        {

            var apiInstance = new DiagnosticReportApi();
            var date = date_example;  // String | The clinically relevant time of the report. (optional) 
            var patient = patient_example;  // String | Patient ID. (optional) 

            try
            {
                DiagnosticReport result = apiInstance.diagnosticReportPatientDateGet(date, patient);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DiagnosticReportApi.diagnosticReportPatientDateGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDiagnosticReportApi();
$date = date_example; // String | The clinically relevant time of the report.
$patient = patient_example; // String | Patient ID.

try {
    $result = $api_instance->diagnosticReportPatientDateGet($date, $patient);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiagnosticReportApi->diagnosticReportPatientDateGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DiagnosticReportApi;

my $api_instance = WWW::SwaggerClient::DiagnosticReportApi->new();
my $date = date_example; # String | The clinically relevant time of the report.
my $patient = patient_example; # String | Patient ID.

eval { 
    my $result = $api_instance->diagnosticReportPatientDateGet(date => $date, patient => $patient);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DiagnosticReportApi->diagnosticReportPatientDateGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DiagnosticReportApi()
date = date_example # String | The clinically relevant time of the report. (optional)
patient = patient_example # String | Patient ID. (optional)

try: 
    api_response = api_instance.diagnostic_report_patient_date_get(date=date, patient=patient)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiagnosticReportApi->diagnosticReportPatientDateGet: %s\n" % e)

Parameters

Query parameters
Name Description
date
String
The clinically relevant time of the report.
patient
String
Patient ID.

Responses

Status: 200 - Successful operation

Status: 400 - Bad request. The error was encountered when parsing the content into the appropriate FHIR resource.

Status: 401 - Unauthorized. Possible causes
  • a token failed authorization
  • a user could not be found

Status: 403 - Forbidden. Possible causes
  • a code or query parameter was not supported
  • a code may have had no valid equivalent in the EHR
  • a user does not have enough permissions to perform a certain action
  • a query was invalid, for example a search token value ended in an escape character

Status: 404 - Resource not found. Possible causes
  • an operation was not supported
  • the FHIR resource was not implemented by the product adapter
  • the FHIR resource was not found
  • the service was unable to generate the FHIR resource possibly because a required element was not provided
  • the specified patient could not be found in the EHR
  • the paging information that was sent to the product was not correct indicating that the request for the page could not be honored

Status: 405 - Method not allowed. Possible cause
  • resource does not exist

Status: 412 - Precondition failed. Possible causes
  • certain precondition checks failed, for example a version mismatch
  • an update could not be processed as the If-Match tag didn't match the version

Status: 413 - Request entity too large. Possible cause
  • a request could not be honored because it was too expensive for the server to execute, for example a search that would return a million records

Status: 422 - Unprocessable entity. Possible cause
  • an exception was thrown upon violated constraint, for example missing or invalid element for resource or if an update on a resource did not happen

Status: 429 - Too many requests. Possible causes
  • too many concurrent FHIR requests

Status: 500 - Internal server error. Possible causes
  • the system was missing configuration information, for example if a URL to a service was missing or a security group was not found for the user
  • none of the available exceptions are appropriate


diagnosticReportPatientStatusGet

Search for DiagnosticReport resources based on a combination of patient ID and status. For more information on the syntax used for searches, go to Searching.


/DiagnosticReport/[patient]&[status]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//DiagnosticReport/[patient]&[status]?patient=&status="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DiagnosticReportApi;

import java.io.File;
import java.util.*;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String patient = patient_example; // String | Patient ID.
        String status = status_example; // String | Report status.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientStatusGet(patient, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientStatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DiagnosticReportApi;

public class DiagnosticReportApiExample {

    public static void main(String[] args) {
        DiagnosticReportApi apiInstance = new DiagnosticReportApi();
        String patient = patient_example; // String | Patient ID.
        String status = status_example; // String | Report status.
        try {
            DiagnosticReport result = apiInstance.diagnosticReportPatientStatusGet(patient, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiagnosticReportApi#diagnosticReportPatientStatusGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Patient ID. (optional)
String *status = status_example; // Report status. (optional)

DiagnosticReportApi *apiInstance = [[DiagnosticReportApi alloc] init];

[apiInstance diagnosticReportPatientStatusGetWith:patient
    status:status
              completionHandler: ^(DiagnosticReport output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiagnosticReportForLaboratoryResultsReporting = require('diagnostic_report_for_laboratory_results_reporting');

var api = new DiagnosticReportForLaboratoryResultsReporting.DiagnosticReportApi()
var opts = { 
  'patient': patient_example, // {{String}} Patient ID.
  'status': status_example // {{String}} Report status.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.diagnosticReportPatientStatusGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class diagnosticReportPatientStatusGetExample
    {
        public void main()
        {

            var apiInstance = new DiagnosticReportApi();
            var patient = patient_example;  // String | Patient ID. (optional) 
            var status = status_example;  // String | Report status. (optional) 

            try
            {
                DiagnosticReport result = apiInstance.diagnosticReportPatientStatusGet(patient, status);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DiagnosticReportApi.diagnosticReportPatientStatusGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDiagnosticReportApi();
$patient = patient_example; // String | Patient ID.
$status = status_example; // String | Report status.

try {
    $result = $api_instance->diagnosticReportPatientStatusGet($patient, $status);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiagnosticReportApi->diagnosticReportPatientStatusGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DiagnosticReportApi;

my $api_instance = WWW::SwaggerClient::DiagnosticReportApi->new();
my $patient = patient_example; # String | Patient ID.
my $status = status_example; # String | Report status.

eval { 
    my $result = $api_instance->diagnosticReportPatientStatusGet(patient => $patient, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DiagnosticReportApi->diagnosticReportPatientStatusGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DiagnosticReportApi()
patient = patient_example # String | Patient ID. (optional)
status = status_example # String | Report status. (optional)

try: 
    api_response = api_instance.diagnostic_report_patient_status_get(patient=patient, status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiagnosticReportApi->diagnosticReportPatientStatusGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Patient ID.
status
String
Report status.

Responses

Status: 200 - Successful operation

Status: 400 - Bad request. The error was encountered when parsing the content into the appropriate FHIR resource.

Status: 401 - Unauthorized. Possible causes
  • a token failed authorization
  • a user could not be found

Status: 403 - Forbidden. Possible causes
  • a code or query parameter was not supported
  • a code may have had no valid equivalent in the EHR
  • a user does not have enough permissions to perform a certain action
  • a query was invalid, for example a search token value ended in an escape character

Status: 404 - Resource not found. Possible causes
  • an operation was not supported
  • the FHIR resource was not implemented by the product adapter
  • the FHIR resource was not found
  • the service was unable to generate the FHIR resource possibly because a required element was not provided
  • the specified patient could not be found in the EHR
  • the paging information that was sent to the product was not correct indicating that the request for the page could not be honored

Status: 405 - Method not allowed. Possible cause
  • resource does not exist

Status: 412 - Precondition failed. Possible causes
  • certain precondition checks failed, for example a version mismatch
  • an update could not be processed as the If-Match tag didn't match the version

Status: 413 - Request entity too large. Possible cause
  • a request could not be honored because it was too expensive for the server to execute, for example a search that would return a million records

Status: 422 - Unprocessable entity. Possible cause
  • an exception was thrown upon violated constraint, for example missing or invalid element for resource or if an update on a resource did not happen

Status: 429 - Too many requests. Possible causes
  • too many concurrent FHIR requests

Status: 500 - Internal server error. Possible causes
  • the system was missing configuration information, for example if a URL to a service was missing or a security group was not found for the user
  • none of the available exceptions are appropriate