medicationDispensePatientGet
Get a MedicationDispense resource based on the patient ID..
/MedicationDispense/[patient]
Usage and SDK Samples
curl -X GET\
-H "Accept: application/fhir+json"\
"//MedicationDispense/[patient]?patient="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MedicationDispenseApi;
import java.io.File;
import java.util.*;
public class MedicationDispenseApiExample {
public static void main(String[] args) {
MedicationDispenseApi apiInstance = new MedicationDispenseApi();
String patient = patient_example; // String | Patient reference (e.g., `Patient/123` or an identifier)
try {
Bundle result = apiInstance.medicationDispensePatientGet(patient);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MedicationDispenseApi#medicationDispensePatientGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.MedicationDispenseApi;
public class MedicationDispenseApiExample {
public static void main(String[] args) {
MedicationDispenseApi apiInstance = new MedicationDispenseApi();
String patient = patient_example; // String | Patient reference (e.g., `Patient/123` or an identifier)
try {
Bundle result = apiInstance.medicationDispensePatientGet(patient);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MedicationDispenseApi#medicationDispensePatientGet");
e.printStackTrace();
}
}
}
String *patient = patient_example; // Patient reference (e.g., `Patient/123` or an identifier)
MedicationDispenseApi *apiInstance = [[MedicationDispenseApi alloc] init];
[apiInstance medicationDispensePatientGetWith:patient
completionHandler: ^(Bundle output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var MedicationDispense = require('medication_dispense');
var api = new MedicationDispense.MedicationDispenseApi()
var patient = patient_example; // {{String}} Patient reference (e.g., `Patient/123` or an identifier)
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.medicationDispensePatientGet(patient, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class medicationDispensePatientGetExample
{
public void main()
{
var apiInstance = new MedicationDispenseApi();
var patient = patient_example; // String | Patient reference (e.g., `Patient/123` or an identifier)
try
{
Bundle result = apiInstance.medicationDispensePatientGet(patient);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MedicationDispenseApi.medicationDispensePatientGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiMedicationDispenseApi();
$patient = patient_example; // String | Patient reference (e.g., `Patient/123` or an identifier)
try {
$result = $api_instance->medicationDispensePatientGet($patient);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MedicationDispenseApi->medicationDispensePatientGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MedicationDispenseApi;
my $api_instance = WWW::SwaggerClient::MedicationDispenseApi->new();
my $patient = patient_example; # String | Patient reference (e.g., `Patient/123` or an identifier)
eval {
my $result = $api_instance->medicationDispensePatientGet(patient => $patient);
print Dumper($result);
};
if ($@) {
warn "Exception when calling MedicationDispenseApi->medicationDispensePatientGet: $@\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.MedicationDispenseApi()
patient = patient_example # String | Patient reference (e.g., `Patient/123` or an identifier)
try:
api_response = api_instance.medication_dispense_patient_get(patient)
pprint(api_response)
except ApiException as e:
print("Exception when calling MedicationDispenseApi->medicationDispensePatientGet: %s\n" % e)
Parameters
Query parameters
| Name | Description |
|---|---|
| patient* |
String
Patient reference (e.g., `Patient/123` or an identifier)
Required
|