AllergyIntolerance

AllergyIntolerance

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.

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


allergyIntolerancePatientClinicalStatusGet

Search for AllergyIntolerance resources by a combination of patient ID and condition status. For more information on the syntax used for searches, go to <a href="https://developer.adp.ahcentral.com/Fhir/Searching">Searching</a>.


/AllergyIntolerance/[patient]&[clinical-status]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//AllergyIntolerance/[patient]&[clinical-status]?patient=&clinical-status="
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 patient = patient_example; // String | Patient identifier.
        String clinicalStatus = clinicalStatus_example; // String | Clinical status of the condition.
        try {
            AllergyIntolerance result = apiInstance.allergyIntolerancePatientClinicalStatusGet(patient, clinicalStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllergyIntoleranceApi#allergyIntolerancePatientClinicalStatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AllergyIntoleranceApi;

public class AllergyIntoleranceApiExample {

    public static void main(String[] args) {
        AllergyIntoleranceApi apiInstance = new AllergyIntoleranceApi();
        String patient = patient_example; // String | Patient identifier.
        String clinicalStatus = clinicalStatus_example; // String | Clinical status of the condition.
        try {
            AllergyIntolerance result = apiInstance.allergyIntolerancePatientClinicalStatusGet(patient, clinicalStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllergyIntoleranceApi#allergyIntolerancePatientClinicalStatusGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Patient identifier. (optional)
String *clinicalStatus = clinicalStatus_example; // Clinical status of the condition. (optional)

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

[apiInstance allergyIntolerancePatientClinicalStatusGetWith:patient
    clinicalStatus:clinicalStatus
              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 = { 
  'patient': patient_example, // {{String}} Patient identifier.
  'clinicalStatus': clinicalStatus_example // {{String}} Clinical status of the condition.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.allergyIntolerancePatientClinicalStatusGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AllergyIntoleranceApi();
            var patient = patient_example;  // String | Patient identifier. (optional) 
            var clinicalStatus = clinicalStatus_example;  // String | Clinical status of the condition. (optional) 

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

$api_instance = new Swagger\Client\ApiAllergyIntoleranceApi();
$patient = patient_example; // String | Patient identifier.
$clinicalStatus = clinicalStatus_example; // String | Clinical status of the condition.

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

my $api_instance = WWW::SwaggerClient::AllergyIntoleranceApi->new();
my $patient = patient_example; # String | Patient identifier.
my $clinicalStatus = clinicalStatus_example; # String | Clinical status of the condition.

eval { 
    my $result = $api_instance->allergyIntolerancePatientClinicalStatusGet(patient => $patient, clinicalStatus => $clinicalStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AllergyIntoleranceApi->allergyIntolerancePatientClinicalStatusGet: $@\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()
patient = patient_example # String | Patient identifier. (optional)
clinicalStatus = clinicalStatus_example # String | Clinical status of the condition. (optional)

try: 
    api_response = api_instance.allergy_intolerance_patient_clinical_status_get(patient=patient, clinicalStatus=clinicalStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AllergyIntoleranceApi->allergyIntolerancePatientClinicalStatusGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Patient identifier.
clinical-status
String
Clinical status of the condition.

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