MedicationRequest

MedicationRequest

medicationRequestGet

Get a MedicationRequest resource based on the resource ID, or search by resource ID, patient ID, intent, status, or authoredon (date).


/MedicationRequest/

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//MedicationRequest/?_id=&patient=&intent=&status=&authoredon="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MedicationRequestApi;

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

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String id = id_example; // String | Resource ID.
        String patient = patient_example; // String | Patient ID.
        String intent = intent_example; // String | Request intention.
        String status = status_example; // String | Request status.
        String authoredon = authoredon_example; // String | Date when the request was created.
        try {
            MedicationRequest result = apiInstance.medicationRequestGet(id, patient, intent, status, authoredon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationRequestApi;

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String id = id_example; // String | Resource ID.
        String patient = patient_example; // String | Patient ID.
        String intent = intent_example; // String | Request intention.
        String status = status_example; // String | Request status.
        String authoredon = authoredon_example; // String | Date when the request was created.
        try {
            MedicationRequest result = apiInstance.medicationRequestGet(id, patient, intent, status, authoredon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Resource ID. (optional)
String *patient = patient_example; // Patient ID. (optional)
String *intent = intent_example; // Request intention. (optional)
String *status = status_example; // Request status. (optional)
String *authoredon = authoredon_example; // Date when the request was created. (optional)

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

[apiInstance medicationRequestGetWith:id
    patient:patient
    intent:intent
    status:status
    authoredon:authoredon
              completionHandler: ^(MedicationRequest output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MedicationRequest = require('medication_request');

var api = new MedicationRequest.MedicationRequestApi()
var opts = { 
  'id': id_example, // {{String}} Resource ID.
  'patient': patient_example, // {{String}} Patient ID.
  'intent': intent_example, // {{String}} Request intention.
  'status': status_example, // {{String}} Request status.
  'authoredon': authoredon_example // {{String}} Date when the request was created.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationRequestGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationRequestApi();
            var id = id_example;  // String | Resource ID. (optional) 
            var patient = patient_example;  // String | Patient ID. (optional) 
            var intent = intent_example;  // String | Request intention. (optional) 
            var status = status_example;  // String | Request status. (optional) 
            var authoredon = authoredon_example;  // String | Date when the request was created. (optional) 

            try
            {
                MedicationRequest result = apiInstance.medicationRequestGet(id, patient, intent, status, authoredon);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MedicationRequestApi.medicationRequestGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiMedicationRequestApi();
$id = id_example; // String | Resource ID.
$patient = patient_example; // String | Patient ID.
$intent = intent_example; // String | Request intention.
$status = status_example; // String | Request status.
$authoredon = authoredon_example; // String | Date when the request was created.

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

my $api_instance = WWW::SwaggerClient::MedicationRequestApi->new();
my $id = id_example; # String | Resource ID.
my $patient = patient_example; # String | Patient ID.
my $intent = intent_example; # String | Request intention.
my $status = status_example; # String | Request status.
my $authoredon = authoredon_example; # String | Date when the request was created.

eval { 
    my $result = $api_instance->medicationRequestGet(id => $id, patient => $patient, intent => $intent, status => $status, authoredon => $authoredon);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationRequestApi->medicationRequestGet: $@\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.MedicationRequestApi()
id = id_example # String | Resource ID. (optional)
patient = patient_example # String | Patient ID. (optional)
intent = intent_example # String | Request intention. (optional)
status = status_example # String | Request status. (optional)
authoredon = authoredon_example # String | Date when the request was created. (optional)

try: 
    api_response = api_instance.medication_request_get(id=id, patient=patient, intent=intent, status=status, authoredon=authoredon)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationRequestApi->medicationRequestGet: %s\n" % e)

Parameters

Query parameters
Name Description
_id
String
Resource ID.
patient
String
Patient ID.
intent
String
Request intention.
status
String
Request status.
authoredon
String
Date when the request was created.

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


medicationRequestIntentAuthoredonGet

Search for MedicationRequest resources based on request intent and authoredon (date).


/MedicationRequest/[intent]&[authoredon]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//MedicationRequest/[intent]&[authoredon]?intent=&authoredon="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MedicationRequestApi;

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

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String intent = intent_example; // String | Request intent.
        String authoredon = authoredon_example; // String | Date when the request was created.
        try {
            MedicationRequest result = apiInstance.medicationRequestIntentAuthoredonGet(intent, authoredon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestIntentAuthoredonGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationRequestApi;

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String intent = intent_example; // String | Request intent.
        String authoredon = authoredon_example; // String | Date when the request was created.
        try {
            MedicationRequest result = apiInstance.medicationRequestIntentAuthoredonGet(intent, authoredon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestIntentAuthoredonGet");
            e.printStackTrace();
        }
    }
}
String *intent = intent_example; // Request intent. (optional)
String *authoredon = authoredon_example; // Date when the request was created. (optional)

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

[apiInstance medicationRequestIntentAuthoredonGetWith:intent
    authoredon:authoredon
              completionHandler: ^(MedicationRequest output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MedicationRequest = require('medication_request');

var api = new MedicationRequest.MedicationRequestApi()
var opts = { 
  'intent': intent_example, // {{String}} Request intent.
  'authoredon': authoredon_example // {{String}} Date when the request was created.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationRequestIntentAuthoredonGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationRequestApi();
            var intent = intent_example;  // String | Request intent. (optional) 
            var authoredon = authoredon_example;  // String | Date when the request was created. (optional) 

            try
            {
                MedicationRequest result = apiInstance.medicationRequestIntentAuthoredonGet(intent, authoredon);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MedicationRequestApi.medicationRequestIntentAuthoredonGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiMedicationRequestApi();
$intent = intent_example; // String | Request intent.
$authoredon = authoredon_example; // String | Date when the request was created.

try {
    $result = $api_instance->medicationRequestIntentAuthoredonGet($intent, $authoredon);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MedicationRequestApi->medicationRequestIntentAuthoredonGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MedicationRequestApi;

my $api_instance = WWW::SwaggerClient::MedicationRequestApi->new();
my $intent = intent_example; # String | Request intent.
my $authoredon = authoredon_example; # String | Date when the request was created.

eval { 
    my $result = $api_instance->medicationRequestIntentAuthoredonGet(intent => $intent, authoredon => $authoredon);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationRequestApi->medicationRequestIntentAuthoredonGet: $@\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.MedicationRequestApi()
intent = intent_example # String | Request intent. (optional)
authoredon = authoredon_example # String | Date when the request was created. (optional)

try: 
    api_response = api_instance.medication_request_intent_authoredon_get(intent=intent, authoredon=authoredon)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationRequestApi->medicationRequestIntentAuthoredonGet: %s\n" % e)

Parameters

Query parameters
Name Description
intent
String
Request intent.
authoredon
String
Date when the request was created.

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


medicationRequestIntentStatusGet

Search for MedicationRequest resources based on request intent and request status.


/MedicationRequest/[intent]&[status]

Usage and SDK Samples

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

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

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String intent = intent_example; // String | Request intent.
        String status = status_example; // String | Request status.
        try {
            MedicationRequest result = apiInstance.medicationRequestIntentStatusGet(intent, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestIntentStatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationRequestApi;

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String intent = intent_example; // String | Request intent.
        String status = status_example; // String | Request status.
        try {
            MedicationRequest result = apiInstance.medicationRequestIntentStatusGet(intent, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestIntentStatusGet");
            e.printStackTrace();
        }
    }
}
String *intent = intent_example; // Request intent. (optional)
String *status = status_example; // Request status. (optional)

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

[apiInstance medicationRequestIntentStatusGetWith:intent
    status:status
              completionHandler: ^(MedicationRequest output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MedicationRequest = require('medication_request');

var api = new MedicationRequest.MedicationRequestApi()
var opts = { 
  'intent': intent_example, // {{String}} Request intent.
  'status': status_example // {{String}} Request status.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationRequestIntentStatusGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationRequestApi();
            var intent = intent_example;  // String | Request intent. (optional) 
            var status = status_example;  // String | Request status. (optional) 

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

$api_instance = new Swagger\Client\ApiMedicationRequestApi();
$intent = intent_example; // String | Request intent.
$status = status_example; // String | Request status.

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

my $api_instance = WWW::SwaggerClient::MedicationRequestApi->new();
my $intent = intent_example; # String | Request intent.
my $status = status_example; # String | Request status.

eval { 
    my $result = $api_instance->medicationRequestIntentStatusGet(intent => $intent, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationRequestApi->medicationRequestIntentStatusGet: $@\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.MedicationRequestApi()
intent = intent_example # String | Request intent. (optional)
status = status_example # String | Request status. (optional)

try: 
    api_response = api_instance.medication_request_intent_status_get(intent=intent, status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationRequestApi->medicationRequestIntentStatusGet: %s\n" % e)

Parameters

Query parameters
Name Description
intent
String
Request intent.
status
String
Request 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


medicationRequestPatientAuthoredonGet

Search for MedicationRequest resources based on patient ID and authoredon (date).


/MedicationRequest/[patient]&[authoredon]

Usage and SDK Samples

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

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

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String patient = patient_example; // String | Patient ID.
        String authoredon = authoredon_example; // String | Date when the request was created.
        try {
            MedicationRequest result = apiInstance.medicationRequestPatientAuthoredonGet(patient, authoredon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestPatientAuthoredonGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationRequestApi;

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String patient = patient_example; // String | Patient ID.
        String authoredon = authoredon_example; // String | Date when the request was created.
        try {
            MedicationRequest result = apiInstance.medicationRequestPatientAuthoredonGet(patient, authoredon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestPatientAuthoredonGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Patient ID. (optional)
String *authoredon = authoredon_example; // Date when the request was created. (optional)

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

[apiInstance medicationRequestPatientAuthoredonGetWith:patient
    authoredon:authoredon
              completionHandler: ^(MedicationRequest output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MedicationRequest = require('medication_request');

var api = new MedicationRequest.MedicationRequestApi()
var opts = { 
  'patient': patient_example, // {{String}} Patient ID.
  'authoredon': authoredon_example // {{String}} Date when the request was created.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationRequestPatientAuthoredonGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationRequestApi();
            var patient = patient_example;  // String | Patient ID. (optional) 
            var authoredon = authoredon_example;  // String | Date when the request was created. (optional) 

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

$api_instance = new Swagger\Client\ApiMedicationRequestApi();
$patient = patient_example; // String | Patient ID.
$authoredon = authoredon_example; // String | Date when the request was created.

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

my $api_instance = WWW::SwaggerClient::MedicationRequestApi->new();
my $patient = patient_example; # String | Patient ID.
my $authoredon = authoredon_example; # String | Date when the request was created.

eval { 
    my $result = $api_instance->medicationRequestPatientAuthoredonGet(patient => $patient, authoredon => $authoredon);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationRequestApi->medicationRequestPatientAuthoredonGet: $@\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.MedicationRequestApi()
patient = patient_example # String | Patient ID. (optional)
authoredon = authoredon_example # String | Date when the request was created. (optional)

try: 
    api_response = api_instance.medication_request_patient_authoredon_get(patient=patient, authoredon=authoredon)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationRequestApi->medicationRequestPatientAuthoredonGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Patient ID.
authoredon
String
Date when the request was created.

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


medicationRequestPatientIntentAuthoredonGet

Search for MedicationRequest resources based on patient ID, request intent, and authoredon (date).


/MedicationRequest/[patient]&[intent]&[authoredon]

Usage and SDK Samples

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

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

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String authoredon = authoredon_example; // String | Date when the request was created.
        String patient = patient_example; // String | Patient ID.
        String intent = intent_example; // String | Request intent.
        try {
            MedicationRequest result = apiInstance.medicationRequestPatientIntentAuthoredonGet(authoredon, patient, intent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestPatientIntentAuthoredonGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationRequestApi;

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String authoredon = authoredon_example; // String | Date when the request was created.
        String patient = patient_example; // String | Patient ID.
        String intent = intent_example; // String | Request intent.
        try {
            MedicationRequest result = apiInstance.medicationRequestPatientIntentAuthoredonGet(authoredon, patient, intent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestPatientIntentAuthoredonGet");
            e.printStackTrace();
        }
    }
}
String *authoredon = authoredon_example; // Date when the request was created. (optional)
String *patient = patient_example; // Patient ID. (optional)
String *intent = intent_example; // Request intent. (optional)

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

[apiInstance medicationRequestPatientIntentAuthoredonGetWith:authoredon
    patient:patient
    intent:intent
              completionHandler: ^(MedicationRequest output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MedicationRequest = require('medication_request');

var api = new MedicationRequest.MedicationRequestApi()
var opts = { 
  'authoredon': authoredon_example, // {{String}} Date when the request was created.
  'patient': patient_example, // {{String}} Patient ID.
  'intent': intent_example // {{String}} Request intent.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationRequestPatientIntentAuthoredonGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationRequestApi();
            var authoredon = authoredon_example;  // String | Date when the request was created. (optional) 
            var patient = patient_example;  // String | Patient ID. (optional) 
            var intent = intent_example;  // String | Request intent. (optional) 

            try
            {
                MedicationRequest result = apiInstance.medicationRequestPatientIntentAuthoredonGet(authoredon, patient, intent);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MedicationRequestApi.medicationRequestPatientIntentAuthoredonGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiMedicationRequestApi();
$authoredon = authoredon_example; // String | Date when the request was created.
$patient = patient_example; // String | Patient ID.
$intent = intent_example; // String | Request intent.

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

my $api_instance = WWW::SwaggerClient::MedicationRequestApi->new();
my $authoredon = authoredon_example; # String | Date when the request was created.
my $patient = patient_example; # String | Patient ID.
my $intent = intent_example; # String | Request intent.

eval { 
    my $result = $api_instance->medicationRequestPatientIntentAuthoredonGet(authoredon => $authoredon, patient => $patient, intent => $intent);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationRequestApi->medicationRequestPatientIntentAuthoredonGet: $@\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.MedicationRequestApi()
authoredon = authoredon_example # String | Date when the request was created. (optional)
patient = patient_example # String | Patient ID. (optional)
intent = intent_example # String | Request intent. (optional)

try: 
    api_response = api_instance.medication_request_patient_intent_authoredon_get(authoredon=authoredon, patient=patient, intent=intent)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationRequestApi->medicationRequestPatientIntentAuthoredonGet: %s\n" % e)

Parameters

Query parameters
Name Description
authoredon
String
Date when the request was created.
patient
String
Patient ID.
intent
String
Request intent.

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


medicationRequestPatientIntentGet

Search for MedicationRequest resources based on patient ID and intent.


/MedicationRequest/[patient]&[intent]

Usage and SDK Samples

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

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

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String patient = patient_example; // String | Patient ID.
        String intent = intent_example; // String | Request intent.
        try {
            MedicationRequest result = apiInstance.medicationRequestPatientIntentGet(patient, intent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestPatientIntentGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationRequestApi;

public class MedicationRequestApiExample {

    public static void main(String[] args) {
        MedicationRequestApi apiInstance = new MedicationRequestApi();
        String patient = patient_example; // String | Patient ID.
        String intent = intent_example; // String | Request intent.
        try {
            MedicationRequest result = apiInstance.medicationRequestPatientIntentGet(patient, intent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationRequestApi#medicationRequestPatientIntentGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Patient ID. (optional)
String *intent = intent_example; // Request intent. (optional)

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

[apiInstance medicationRequestPatientIntentGetWith:patient
    intent:intent
              completionHandler: ^(MedicationRequest output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MedicationRequest = require('medication_request');

var api = new MedicationRequest.MedicationRequestApi()
var opts = { 
  'patient': patient_example, // {{String}} Patient ID.
  'intent': intent_example // {{String}} Request intent.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationRequestPatientIntentGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationRequestApi();
            var patient = patient_example;  // String | Patient ID. (optional) 
            var intent = intent_example;  // String | Request intent. (optional) 

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

$api_instance = new Swagger\Client\ApiMedicationRequestApi();
$patient = patient_example; // String | Patient ID.
$intent = intent_example; // String | Request intent.

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

my $api_instance = WWW::SwaggerClient::MedicationRequestApi->new();
my $patient = patient_example; # String | Patient ID.
my $intent = intent_example; # String | Request intent.

eval { 
    my $result = $api_instance->medicationRequestPatientIntentGet(patient => $patient, intent => $intent);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationRequestApi->medicationRequestPatientIntentGet: $@\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.MedicationRequestApi()
patient = patient_example # String | Patient ID. (optional)
intent = intent_example # String | Request intent. (optional)

try: 
    api_response = api_instance.medication_request_patient_intent_get(patient=patient, intent=intent)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationRequestApi->medicationRequestPatientIntentGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Patient ID.
intent
String
Request intent.

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


medicationRequestPatientIntentStatusGet

Search for MedicationRequest resources based on patient ID, request intent, and request status.


/MedicationRequest/[patient]&[intent]&[status]

Usage and SDK Samples

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

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

public class MedicationRequestApiExample {

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

public class MedicationRequestApiExample {

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

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

[apiInstance medicationRequestPatientIntentStatusGetWith:patient
    intent:intent
    status:status
              completionHandler: ^(MedicationRequest output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MedicationRequest = require('medication_request');

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

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

            var apiInstance = new MedicationRequestApi();
            var patient = patient_example;  // String | Patient ID. (optional) 
            var intent = intent_example;  // String | Request intent. (optional) 
            var status = status_example;  // String | Request status. (optional) 

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

$api_instance = new Swagger\Client\ApiMedicationRequestApi();
$patient = patient_example; // String | Patient ID.
$intent = intent_example; // String | Request intent.
$status = status_example; // String | Request status.

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

my $api_instance = WWW::SwaggerClient::MedicationRequestApi->new();
my $patient = patient_example; # String | Patient ID.
my $intent = intent_example; # String | Request intent.
my $status = status_example; # String | Request status.

eval { 
    my $result = $api_instance->medicationRequestPatientIntentStatusGet(patient => $patient, intent => $intent, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationRequestApi->medicationRequestPatientIntentStatusGet: $@\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.MedicationRequestApi()
patient = patient_example # String | Patient ID. (optional)
intent = intent_example # String | Request intent. (optional)
status = status_example # String | Request status. (optional)

try: 
    api_response = api_instance.medication_request_patient_intent_status_get(patient=patient, intent=intent, status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationRequestApi->medicationRequestPatientIntentStatusGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Patient ID.
intent
String
Request intent.
status
String
Request 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


medicationRequestPatientStatusGet

Search for MedicationRequest resources based on patient ID and request status.


/MedicationRequest/[patient]&[status]

Usage and SDK Samples

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

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

public class MedicationRequestApiExample {

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

public class MedicationRequestApiExample {

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

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

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

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

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

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

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

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

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

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

eval { 
    my $result = $api_instance->medicationRequestPatientStatusGet(patient => $patient, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationRequestApi->medicationRequestPatientStatusGet: $@\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.MedicationRequestApi()
patient = patient_example # String | Patient ID. (optional)
status = status_example # String | Request status. (optional)

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

Parameters

Query parameters
Name Description
patient
String
Patient ID.
status
String
Request 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