allergyIntoleranceGet
Get an AllergyIntolerance resource based on the resource ID, or search by resource ID, patient ID, or clinical status. For more information on the syntax used for searches, go to Searching.
/AllergyIntolerance/
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json,application/xml"\
"//AllergyIntolerance/?_id=&patient="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AllergyIntoleranceApi;
import java.io.File;
import java.util.*;
public class AllergyIntoleranceApiExample {
public static void main(String[] args) {
AllergyIntoleranceApi apiInstance = new AllergyIntoleranceApi();
String id = id_example; // String | Resource identifier.
String patient = patient_example; // String | Patient identifier.
try {
AllergyIntolerance result = apiInstance.allergyIntoleranceGet(id, patient);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AllergyIntoleranceApi#allergyIntoleranceGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AllergyIntoleranceApi;
public class AllergyIntoleranceApiExample {
public static void main(String[] args) {
AllergyIntoleranceApi apiInstance = new AllergyIntoleranceApi();
String id = id_example; // String | Resource identifier.
String patient = patient_example; // String | Patient identifier.
try {
AllergyIntolerance result = apiInstance.allergyIntoleranceGet(id, patient);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AllergyIntoleranceApi#allergyIntoleranceGet");
e.printStackTrace();
}
}
}
String *id = id_example; // Resource identifier. (optional)
String *patient = patient_example; // Patient identifier. (optional)
AllergyIntoleranceApi *apiInstance = [[AllergyIntoleranceApi alloc] init];
[apiInstance allergyIntoleranceGetWith:id
patient:patient
completionHandler: ^(AllergyIntolerance output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AllergyIntolerance = require('allergy_intolerance');
var api = new AllergyIntolerance.AllergyIntoleranceApi()
var opts = {
'id': id_example, // {{String}} Resource identifier.
'patient': patient_example // {{String}} Patient identifier.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.allergyIntoleranceGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class allergyIntoleranceGetExample
{
public void main()
{
var apiInstance = new AllergyIntoleranceApi();
var id = id_example; // String | Resource identifier. (optional)
var patient = patient_example; // String | Patient identifier. (optional)
try
{
AllergyIntolerance result = apiInstance.allergyIntoleranceGet(id, patient);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AllergyIntoleranceApi.allergyIntoleranceGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAllergyIntoleranceApi();
$id = id_example; // String | Resource identifier.
$patient = patient_example; // String | Patient identifier.
try {
$result = $api_instance->allergyIntoleranceGet($id, $patient);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AllergyIntoleranceApi->allergyIntoleranceGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AllergyIntoleranceApi;
my $api_instance = WWW::SwaggerClient::AllergyIntoleranceApi->new();
my $id = id_example; # String | Resource identifier.
my $patient = patient_example; # String | Patient identifier.
eval {
my $result = $api_instance->allergyIntoleranceGet(id => $id, patient => $patient);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AllergyIntoleranceApi->allergyIntoleranceGet: $@\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.AllergyIntoleranceApi()
id = id_example # String | Resource identifier. (optional)
patient = patient_example # String | Patient identifier. (optional)
try:
api_response = api_instance.allergy_intolerance_get(id=id, patient=patient)
pprint(api_response)
except ApiException as e:
print("Exception when calling AllergyIntoleranceApi->allergyIntoleranceGet: %s\n" % e)
Parameters
Query parameters
| Name | Description |
|---|---|
| _id |
String
Resource identifier.
|
| patient |
String
Patient identifier.
|