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