MedicationStatement

MedicationStatement

medicationStatementGet

Get a MedicationStatement resource based on the resource ID, or search by ID, patient ID, or status.


/MedicationStatement/

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//MedicationStatement/?_id=&patient=&status=&effective=&category=&source=&patient.identifer="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MedicationStatementApi;

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

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        Integer id = 56; // Integer | Resource identifier.
        String patient = patient_example; // String | Reference.
        String status = status_example; // String | Return statements that match the given status.
        date effective = ; // date | Date when patient was taking (or not taking) the medication.
        String category = category_example; // String | Returns statements of this category of MedicationStatement.
        String source = source_example; // String | Who or where the information in the statement came from.
        String patient.identifer = patient.identifer_example; // String | Patient ID.
        try {
            MedicationStatement result = apiInstance.medicationStatementGet(id, patient, status, effective, category, source, patient.identifer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationStatementApi;

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        Integer id = 56; // Integer | Resource identifier.
        String patient = patient_example; // String | Reference.
        String status = status_example; // String | Return statements that match the given status.
        date effective = ; // date | Date when patient was taking (or not taking) the medication.
        String category = category_example; // String | Returns statements of this category of MedicationStatement.
        String source = source_example; // String | Who or where the information in the statement came from.
        String patient.identifer = patient.identifer_example; // String | Patient ID.
        try {
            MedicationStatement result = apiInstance.medicationStatementGet(id, patient, status, effective, category, source, patient.identifer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementGet");
            e.printStackTrace();
        }
    }
}
Integer *id = 56; // Resource identifier. (optional)
String *patient = patient_example; // Reference. (optional)
String *status = status_example; // Return statements that match the given status. (optional)
date *effective = ; // Date when patient was taking (or not taking) the medication. (optional)
String *category = category_example; // Returns statements of this category of MedicationStatement. (optional)
String *source = source_example; // Who or where the information in the statement came from. (optional)
String *patient.identifer = patient.identifer_example; // Patient ID. (optional)

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

[apiInstance medicationStatementGetWith:id
    patient:patient
    status:status
    effective:effective
    category:category
    source:source
    patient.identifer:patient.identifer
              completionHandler: ^(MedicationStatement output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MedicationStatement = require('medication_statement');

var api = new MedicationStatement.MedicationStatementApi()
var opts = { 
  'id': 56, // {{Integer}} Resource identifier.
  'patient': patient_example, // {{String}} Reference.
  'status': status_example, // {{String}} Return statements that match the given status.
  'effective': , // {{date}} Date when patient was taking (or not taking) the medication.
  'category': category_example, // {{String}} Returns statements of this category of MedicationStatement.
  'source': source_example, // {{String}} Who or where the information in the statement came from.
  'patient.identifer': patient.identifer_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.medicationStatementGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationStatementApi();
            var id = 56;  // Integer | Resource identifier. (optional) 
            var patient = patient_example;  // String | Reference. (optional) 
            var status = status_example;  // String | Return statements that match the given status. (optional) 
            var effective = new date(); // date | Date when patient was taking (or not taking) the medication. (optional) 
            var category = category_example;  // String | Returns statements of this category of MedicationStatement. (optional) 
            var source = source_example;  // String | Who or where the information in the statement came from. (optional) 
            var patient.identifer = patient.identifer_example;  // String | Patient ID. (optional) 

            try
            {
                MedicationStatement result = apiInstance.medicationStatementGet(id, patient, status, effective, category, source, patient.identifer);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MedicationStatementApi.medicationStatementGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiMedicationStatementApi();
$id = 56; // Integer | Resource identifier.
$patient = patient_example; // String | Reference.
$status = status_example; // String | Return statements that match the given status.
$effective = ; // date | Date when patient was taking (or not taking) the medication.
$category = category_example; // String | Returns statements of this category of MedicationStatement.
$source = source_example; // String | Who or where the information in the statement came from.
$patient.identifer = patient.identifer_example; // String | Patient ID.

try {
    $result = $api_instance->medicationStatementGet($id, $patient, $status, $effective, $category, $source, $patient.identifer);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MedicationStatementApi->medicationStatementGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MedicationStatementApi;

my $api_instance = WWW::SwaggerClient::MedicationStatementApi->new();
my $id = 56; # Integer | Resource identifier.
my $patient = patient_example; # String | Reference.
my $status = status_example; # String | Return statements that match the given status.
my $effective = ; # date | Date when patient was taking (or not taking) the medication.
my $category = category_example; # String | Returns statements of this category of MedicationStatement.
my $source = source_example; # String | Who or where the information in the statement came from.
my $patient.identifer = patient.identifer_example; # String | Patient ID.

eval { 
    my $result = $api_instance->medicationStatementGet(id => $id, patient => $patient, status => $status, effective => $effective, category => $category, source => $source, patient.identifer => $patient.identifer);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationStatementApi->medicationStatementGet: $@\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.MedicationStatementApi()
id = 56 # Integer | Resource identifier. (optional)
patient = patient_example # String | Reference. (optional)
status = status_example # String | Return statements that match the given status. (optional)
effective =  # date | Date when patient was taking (or not taking) the medication. (optional)
category = category_example # String | Returns statements of this category of MedicationStatement. (optional)
source = source_example # String | Who or where the information in the statement came from. (optional)
patient.identifer = patient.identifer_example # String | Patient ID. (optional)

try: 
    api_response = api_instance.medication_statement_get(id=id, patient=patient, status=status, effective=effective, category=category, source=source, patient.identifer=patient.identifer)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationStatementApi->medicationStatementGet: %s\n" % e)

Parameters

Query parameters
Name Description
_id
Integer
Resource identifier.
patient
String
Reference.
status
String
Return statements that match the given status.
effective
date
Date when patient was taking (or not taking) the medication.
category
String
Returns statements of this category of MedicationStatement.
source
String
Who or where the information in the statement came from.
patient.identifer
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


medicationStatementPatientCategoryGet

Get a MedicationStatement resource based on the combination of patient and category.


/MedicationStatement/[patient]&[category]

Usage and SDK Samples

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

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

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String category = category_example; // String | Returns statements of this category of MedicationStatement.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientCategoryGet(patient, category);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientCategoryGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationStatementApi;

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String category = category_example; // String | Returns statements of this category of MedicationStatement.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientCategoryGet(patient, category);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientCategoryGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Reference. (optional)
String *category = category_example; // Returns statements of this category of MedicationStatement. (optional)

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

[apiInstance medicationStatementPatientCategoryGetWith:patient
    category:category
              completionHandler: ^(MedicationStatement output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MedicationStatement = require('medication_statement');

var api = new MedicationStatement.MedicationStatementApi()
var opts = { 
  'patient': patient_example, // {{String}} Reference.
  'category': category_example // {{String}} Returns statements of this category of MedicationStatement.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationStatementPatientCategoryGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationStatementApi();
            var patient = patient_example;  // String | Reference. (optional) 
            var category = category_example;  // String | Returns statements of this category of MedicationStatement. (optional) 

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

$api_instance = new Swagger\Client\ApiMedicationStatementApi();
$patient = patient_example; // String | Reference.
$category = category_example; // String | Returns statements of this category of MedicationStatement.

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

my $api_instance = WWW::SwaggerClient::MedicationStatementApi->new();
my $patient = patient_example; # String | Reference.
my $category = category_example; # String | Returns statements of this category of MedicationStatement.

eval { 
    my $result = $api_instance->medicationStatementPatientCategoryGet(patient => $patient, category => $category);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationStatementApi->medicationStatementPatientCategoryGet: $@\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.MedicationStatementApi()
patient = patient_example # String | Reference. (optional)
category = category_example # String | Returns statements of this category of MedicationStatement. (optional)

try: 
    api_response = api_instance.medication_statement_patient_category_get(patient=patient, category=category)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationStatementApi->medicationStatementPatientCategoryGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Reference.
category
String
Returns statements of this category of MedicationStatement.

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


medicationStatementPatientEffectiveGet

Get a MedicationStatement resource based on the combination of patient and effective date.


/MedicationStatement/[patient]&[effective]

Usage and SDK Samples

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

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

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        date effective = ; // date | Date when patient was taking (or not taking) the medication.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientEffectiveGet(patient, effective);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientEffectiveGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationStatementApi;

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        date effective = ; // date | Date when patient was taking (or not taking) the medication.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientEffectiveGet(patient, effective);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientEffectiveGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Reference. (optional)
date *effective = ; // Date when patient was taking (or not taking) the medication. (optional)

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

[apiInstance medicationStatementPatientEffectiveGetWith:patient
    effective:effective
              completionHandler: ^(MedicationStatement output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MedicationStatement = require('medication_statement');

var api = new MedicationStatement.MedicationStatementApi()
var opts = { 
  'patient': patient_example, // {{String}} Reference.
  'effective':  // {{date}} Date when patient was taking (or not taking) the medication.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationStatementPatientEffectiveGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationStatementApi();
            var patient = patient_example;  // String | Reference. (optional) 
            var effective = new date(); // date | Date when patient was taking (or not taking) the medication. (optional) 

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

$api_instance = new Swagger\Client\ApiMedicationStatementApi();
$patient = patient_example; // String | Reference.
$effective = ; // date | Date when patient was taking (or not taking) the medication.

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

my $api_instance = WWW::SwaggerClient::MedicationStatementApi->new();
my $patient = patient_example; # String | Reference.
my $effective = ; # date | Date when patient was taking (or not taking) the medication.

eval { 
    my $result = $api_instance->medicationStatementPatientEffectiveGet(patient => $patient, effective => $effective);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationStatementApi->medicationStatementPatientEffectiveGet: $@\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.MedicationStatementApi()
patient = patient_example # String | Reference. (optional)
effective =  # date | Date when patient was taking (or not taking) the medication. (optional)

try: 
    api_response = api_instance.medication_statement_patient_effective_get(patient=patient, effective=effective)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationStatementApi->medicationStatementPatientEffectiveGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Reference.
effective
date
Date when patient was taking (or not taking) the medication.

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


medicationStatementPatientIntentAuthoredonGet

Get a MedicationStatement resource based on the combination of patient, intent, and authoredon.


/MedicationStatement/[patient]&[intent]&[authoredon]

Usage and SDK Samples

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

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

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String intent = intent_example; // String | Medication instance order.
        String authoredon = authoredon_example; // String | The date (and perhaps time) when the prescription was initially written or authored on.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientIntentAuthoredonGet(patient, intent, authoredon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientIntentAuthoredonGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationStatementApi;

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String intent = intent_example; // String | Medication instance order.
        String authoredon = authoredon_example; // String | The date (and perhaps time) when the prescription was initially written or authored on.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientIntentAuthoredonGet(patient, intent, authoredon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientIntentAuthoredonGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Reference. (optional)
String *intent = intent_example; // Medication instance order. (optional)
String *authoredon = authoredon_example; // The date (and perhaps time) when the prescription was initially written or authored on. (optional)

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

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

var api = new MedicationStatement.MedicationStatementApi()
var opts = { 
  'patient': patient_example, // {{String}} Reference.
  'intent': intent_example, // {{String}} Medication instance order.
  'authoredon': authoredon_example // {{String}} The date (and perhaps time) when the prescription was initially written or authored on.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationStatementPatientIntentAuthoredonGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationStatementApi();
            var patient = patient_example;  // String | Reference. (optional) 
            var intent = intent_example;  // String | Medication instance order. (optional) 
            var authoredon = authoredon_example;  // String | The date (and perhaps time) when the prescription was initially written or authored on. (optional) 

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

$api_instance = new Swagger\Client\ApiMedicationStatementApi();
$patient = patient_example; // String | Reference.
$intent = intent_example; // String | Medication instance order.
$authoredon = authoredon_example; // String | The date (and perhaps time) when the prescription was initially written or authored on.

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

my $api_instance = WWW::SwaggerClient::MedicationStatementApi->new();
my $patient = patient_example; # String | Reference.
my $intent = intent_example; # String | Medication instance order.
my $authoredon = authoredon_example; # String | The date (and perhaps time) when the prescription was initially written or authored on.

eval { 
    my $result = $api_instance->medicationStatementPatientIntentAuthoredonGet(patient => $patient, intent => $intent, authoredon => $authoredon);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationStatementApi->medicationStatementPatientIntentAuthoredonGet: $@\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.MedicationStatementApi()
patient = patient_example # String | Reference. (optional)
intent = intent_example # String | Medication instance order. (optional)
authoredon = authoredon_example # String | The date (and perhaps time) when the prescription was initially written or authored on. (optional)

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

Parameters

Query parameters
Name Description
patient
String
Reference.
intent
String
Medication instance order.
authoredon
String
The date (and perhaps time) when the prescription was initially written or authored on.

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


medicationStatementPatientIntentEncounterGet

Get a MedicationStatement resource based on the combination of patient, intent, and encounter.


/MedicationStatement/[patient]&[intent]&[encounter]

Usage and SDK Samples

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

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

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String intent = intent_example; // String | Medication instance order.
        String encounter = encounter_example; // String | Encounter ID.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientIntentEncounterGet(patient, intent, encounter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientIntentEncounterGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationStatementApi;

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String intent = intent_example; // String | Medication instance order.
        String encounter = encounter_example; // String | Encounter ID.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientIntentEncounterGet(patient, intent, encounter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientIntentEncounterGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Reference. (optional)
String *intent = intent_example; // Medication instance order. (optional)
String *encounter = encounter_example; // Encounter ID. (optional)

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

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

var api = new MedicationStatement.MedicationStatementApi()
var opts = { 
  'patient': patient_example, // {{String}} Reference.
  'intent': intent_example, // {{String}} Medication instance order.
  'encounter': encounter_example // {{String}} Encounter ID.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationStatementPatientIntentEncounterGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationStatementApi();
            var patient = patient_example;  // String | Reference. (optional) 
            var intent = intent_example;  // String | Medication instance order. (optional) 
            var encounter = encounter_example;  // String | Encounter ID. (optional) 

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

$api_instance = new Swagger\Client\ApiMedicationStatementApi();
$patient = patient_example; // String | Reference.
$intent = intent_example; // String | Medication instance order.
$encounter = encounter_example; // String | Encounter ID.

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

my $api_instance = WWW::SwaggerClient::MedicationStatementApi->new();
my $patient = patient_example; # String | Reference.
my $intent = intent_example; # String | Medication instance order.
my $encounter = encounter_example; # String | Encounter ID.

eval { 
    my $result = $api_instance->medicationStatementPatientIntentEncounterGet(patient => $patient, intent => $intent, encounter => $encounter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationStatementApi->medicationStatementPatientIntentEncounterGet: $@\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.MedicationStatementApi()
patient = patient_example # String | Reference. (optional)
intent = intent_example # String | Medication instance order. (optional)
encounter = encounter_example # String | Encounter ID. (optional)

try: 
    api_response = api_instance.medication_statement_patient_intent_encounter_get(patient=patient, intent=intent, encounter=encounter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationStatementApi->medicationStatementPatientIntentEncounterGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Reference.
intent
String
Medication instance order.
encounter
String
Encounter 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


medicationStatementPatientIntentStatusGet

Get a MedicationStatement resource based on the combination of patient, intent, and source.


/MedicationStatement/[patient]&[intent]&[status]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//MedicationStatement/[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.MedicationStatementApi;

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

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String intent = intent_example; // String | Medication instance order.
        String status = status_example; // String | Return statements that match the given status.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientIntentStatusGet(patient, intent, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientIntentStatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationStatementApi;

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String intent = intent_example; // String | Medication instance order.
        String status = status_example; // String | Return statements that match the given status.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientIntentStatusGet(patient, intent, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientIntentStatusGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Reference. (optional)
String *intent = intent_example; // Medication instance order. (optional)
String *status = status_example; // Return statements that match the given status. (optional)

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

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

var api = new MedicationStatement.MedicationStatementApi()
var opts = { 
  'patient': patient_example, // {{String}} Reference.
  'intent': intent_example, // {{String}} Medication instance order.
  'status': status_example // {{String}} Return statements that match the given status.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationStatementPatientIntentStatusGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationStatementApi();
            var patient = patient_example;  // String | Reference. (optional) 
            var intent = intent_example;  // String | Medication instance order. (optional) 
            var status = status_example;  // String | Return statements that match the given status. (optional) 

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

$api_instance = new Swagger\Client\ApiMedicationStatementApi();
$patient = patient_example; // String | Reference.
$intent = intent_example; // String | Medication instance order.
$status = status_example; // String | Return statements that match the given status.

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

my $api_instance = WWW::SwaggerClient::MedicationStatementApi->new();
my $patient = patient_example; # String | Reference.
my $intent = intent_example; # String | Medication instance order.
my $status = status_example; # String | Return statements that match the given status.

eval { 
    my $result = $api_instance->medicationStatementPatientIntentStatusGet(patient => $patient, intent => $intent, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationStatementApi->medicationStatementPatientIntentStatusGet: $@\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.MedicationStatementApi()
patient = patient_example # String | Reference. (optional)
intent = intent_example # String | Medication instance order. (optional)
status = status_example # String | Return statements that match the given status. (optional)

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

Parameters

Query parameters
Name Description
patient
String
Reference.
intent
String
Medication instance order.
status
String
Return statements that match the given 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


medicationStatementPatientSourceGet

Get a MedicationStatement resource based on the combination of patient and source.


/MedicationStatement/[patient]&[source]

Usage and SDK Samples

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

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

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String source = source_example; // String | Who or where the information in the statement came from.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientSourceGet(patient, source);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientSourceGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationStatementApi;

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String source = source_example; // String | Who or where the information in the statement came from.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientSourceGet(patient, source);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientSourceGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Reference. (optional)
String *source = source_example; // Who or where the information in the statement came from. (optional)

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

[apiInstance medicationStatementPatientSourceGetWith:patient
    source:source
              completionHandler: ^(MedicationStatement output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MedicationStatement = require('medication_statement');

var api = new MedicationStatement.MedicationStatementApi()
var opts = { 
  'patient': patient_example, // {{String}} Reference.
  'source': source_example // {{String}} Who or where the information in the statement came from.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationStatementPatientSourceGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationStatementApi();
            var patient = patient_example;  // String | Reference. (optional) 
            var source = source_example;  // String | Who or where the information in the statement came from. (optional) 

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

$api_instance = new Swagger\Client\ApiMedicationStatementApi();
$patient = patient_example; // String | Reference.
$source = source_example; // String | Who or where the information in the statement came from.

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

my $api_instance = WWW::SwaggerClient::MedicationStatementApi->new();
my $patient = patient_example; # String | Reference.
my $source = source_example; # String | Who or where the information in the statement came from.

eval { 
    my $result = $api_instance->medicationStatementPatientSourceGet(patient => $patient, source => $source);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationStatementApi->medicationStatementPatientSourceGet: $@\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.MedicationStatementApi()
patient = patient_example # String | Reference. (optional)
source = source_example # String | Who or where the information in the statement came from. (optional)

try: 
    api_response = api_instance.medication_statement_patient_source_get(patient=patient, source=source)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MedicationStatementApi->medicationStatementPatientSourceGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Reference.
source
String
Who or where the information in the statement came from.

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


medicationStatementPatientStatusGet

Get a MedicationStatement resource based on the combination of patient and status.


/MedicationStatement/[patient]&[status]

Usage and SDK Samples

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

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

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String status = status_example; // String | Return statements that match the given status.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientStatusGet(patient, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientStatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MedicationStatementApi;

public class MedicationStatementApiExample {

    public static void main(String[] args) {
        MedicationStatementApi apiInstance = new MedicationStatementApi();
        String patient = patient_example; // String | Reference.
        String status = status_example; // String | Return statements that match the given status.
        try {
            MedicationStatement result = apiInstance.medicationStatementPatientStatusGet(patient, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MedicationStatementApi#medicationStatementPatientStatusGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Reference. (optional)
String *status = status_example; // Return statements that match the given status. (optional)

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

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

var api = new MedicationStatement.MedicationStatementApi()
var opts = { 
  'patient': patient_example, // {{String}} Reference.
  'status': status_example // {{String}} Return statements that match the given status.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medicationStatementPatientStatusGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MedicationStatementApi();
            var patient = patient_example;  // String | Reference. (optional) 
            var status = status_example;  // String | Return statements that match the given status. (optional) 

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

$api_instance = new Swagger\Client\ApiMedicationStatementApi();
$patient = patient_example; // String | Reference.
$status = status_example; // String | Return statements that match the given status.

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

my $api_instance = WWW::SwaggerClient::MedicationStatementApi->new();
my $patient = patient_example; # String | Reference.
my $status = status_example; # String | Return statements that match the given status.

eval { 
    my $result = $api_instance->medicationStatementPatientStatusGet(patient => $patient, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MedicationStatementApi->medicationStatementPatientStatusGet: $@\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.MedicationStatementApi()
patient = patient_example # String | Reference. (optional)
status = status_example # String | Return statements that match the given status. (optional)

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

Parameters

Query parameters
Name Description
patient
String
Reference.
status
String
Return statements that match the given 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