Condition

Condition

conditionGet

Get a Condition resource based on the resource ID, or search by ID, patient ID, clinical status, category, code, or onset date. For more information on the syntax used for searches, go to Searching.


/condition/

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//condition/?_id=&patient=&clinical-status=&category=&code=&onset-date="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConditionApi;

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

public class ConditionApiExample {

    public static void main(String[] args) {
        
        ConditionApi apiInstance = new ConditionApi();
        String id = id_example; // String | Resource identifier.
        String patient = patient_example; // String | Patient identifier.
        String clinicalStatus = clinicalStatus_example; // String | Clinical status of the condition.
        String category = category_example; // String | Category of the condition.
        String code = code_example; // String | Code for the condition. For example, a SNOMED code.
        String onsetDate = onsetDate_example; // String | Date-related onsets.
        try {
            Condition result = apiInstance.conditionGet(id, patient, clinicalStatus, category, code, onsetDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConditionApi#conditionGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConditionApi;

public class ConditionApiExample {

    public static void main(String[] args) {
        ConditionApi apiInstance = new ConditionApi();
        String id = id_example; // String | Resource identifier.
        String patient = patient_example; // String | Patient identifier.
        String clinicalStatus = clinicalStatus_example; // String | Clinical status of the condition.
        String category = category_example; // String | Category of the condition.
        String code = code_example; // String | Code for the condition. For example, a SNOMED code.
        String onsetDate = onsetDate_example; // String | Date-related onsets.
        try {
            Condition result = apiInstance.conditionGet(id, patient, clinicalStatus, category, code, onsetDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConditionApi#conditionGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Resource identifier. (optional)
String *patient = patient_example; // Patient identifier. (optional)
String *clinicalStatus = clinicalStatus_example; // Clinical status of the condition. (optional)
String *category = category_example; // Category of the condition. (optional)
String *code = code_example; // Code for the condition. For example, a SNOMED code. (optional)
String *onsetDate = onsetDate_example; // Date-related onsets. (optional)

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

[apiInstance conditionGetWith:id
    patient:patient
    clinicalStatus:clinicalStatus
    category:category
    code:code
    onsetDate:onsetDate
              completionHandler: ^(Condition output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Condition = require('condition');

var api = new Condition.ConditionApi()
var opts = { 
  'id': id_example, // {{String}} Resource identifier.
  'patient': patient_example, // {{String}} Patient identifier.
  'clinicalStatus': clinicalStatus_example, // {{String}} Clinical status of the condition.
  'category': category_example, // {{String}} Category of the condition.
  'code': code_example, // {{String}} Code for the condition. For example, a SNOMED code.
  'onsetDate': onsetDate_example // {{String}} Date-related onsets.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.conditionGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ConditionApi();
            var id = id_example;  // String | Resource identifier. (optional) 
            var patient = patient_example;  // String | Patient identifier. (optional) 
            var clinicalStatus = clinicalStatus_example;  // String | Clinical status of the condition. (optional) 
            var category = category_example;  // String | Category of the condition. (optional) 
            var code = code_example;  // String | Code for the condition. For example, a SNOMED code. (optional) 
            var onsetDate = onsetDate_example;  // String | Date-related onsets. (optional) 

            try
            {
                Condition result = apiInstance.conditionGet(id, patient, clinicalStatus, category, code, onsetDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConditionApi.conditionGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConditionApi();
$id = id_example; // String | Resource identifier.
$patient = patient_example; // String | Patient identifier.
$clinicalStatus = clinicalStatus_example; // String | Clinical status of the condition.
$category = category_example; // String | Category of the condition.
$code = code_example; // String | Code for the condition. For example, a SNOMED code.
$onsetDate = onsetDate_example; // String | Date-related onsets.

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

my $api_instance = WWW::SwaggerClient::ConditionApi->new();
my $id = id_example; # String | Resource identifier.
my $patient = patient_example; # String | Patient identifier.
my $clinicalStatus = clinicalStatus_example; # String | Clinical status of the condition.
my $category = category_example; # String | Category of the condition.
my $code = code_example; # String | Code for the condition. For example, a SNOMED code.
my $onsetDate = onsetDate_example; # String | Date-related onsets.

eval { 
    my $result = $api_instance->conditionGet(id => $id, patient => $patient, clinicalStatus => $clinicalStatus, category => $category, code => $code, onsetDate => $onsetDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConditionApi->conditionGet: $@\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.ConditionApi()
id = id_example # String | Resource identifier. (optional)
patient = patient_example # String | Patient identifier. (optional)
clinicalStatus = clinicalStatus_example # String | Clinical status of the condition. (optional)
category = category_example # String | Category of the condition. (optional)
code = code_example # String | Code for the condition. For example, a SNOMED code. (optional)
onsetDate = onsetDate_example # String | Date-related onsets. (optional)

try: 
    api_response = api_instance.condition_get(id=id, patient=patient, clinicalStatus=clinicalStatus, category=category, code=code, onsetDate=onsetDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConditionApi->conditionGet: %s\n" % e)

Parameters

Query parameters
Name Description
_id
String
Resource identifier.
patient
String
Patient identifier.
clinical-status
String
Clinical status of the condition.
category
String
Category of the condition.
code
String
Code for the condition. For example, a SNOMED code.
onset-date
String
Date-related onsets.

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


conditionPatientCategoryGet

Search for Condition resources based on a combination of patient ID and condition category.


/condition/[patient]&[category]

Usage and SDK Samples

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

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

public class ConditionApiExample {

    public static void main(String[] args) {
        
        ConditionApi apiInstance = new ConditionApi();
        String patient = patient_example; // String | Patient identifier.
        String category = category_example; // String | Condition category.
        try {
            Condition result = apiInstance.conditionPatientCategoryGet(patient, category);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConditionApi#conditionPatientCategoryGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConditionApi;

public class ConditionApiExample {

    public static void main(String[] args) {
        ConditionApi apiInstance = new ConditionApi();
        String patient = patient_example; // String | Patient identifier.
        String category = category_example; // String | Condition category.
        try {
            Condition result = apiInstance.conditionPatientCategoryGet(patient, category);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConditionApi#conditionPatientCategoryGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Patient identifier. (optional)
String *category = category_example; // Condition category. (optional)

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

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

var api = new Condition.ConditionApi()
var opts = { 
  'patient': patient_example, // {{String}} Patient identifier.
  'category': category_example // {{String}} Condition category.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.conditionPatientCategoryGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ConditionApi();
            var patient = patient_example;  // String | Patient identifier. (optional) 
            var category = category_example;  // String | Condition category. (optional) 

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

$api_instance = new Swagger\Client\ApiConditionApi();
$patient = patient_example; // String | Patient identifier.
$category = category_example; // String | Condition category.

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

my $api_instance = WWW::SwaggerClient::ConditionApi->new();
my $patient = patient_example; # String | Patient identifier.
my $category = category_example; # String | Condition category.

eval { 
    my $result = $api_instance->conditionPatientCategoryGet(patient => $patient, category => $category);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConditionApi->conditionPatientCategoryGet: $@\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.ConditionApi()
patient = patient_example # String | Patient identifier. (optional)
category = category_example # String | Condition category. (optional)

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

Parameters

Query parameters
Name Description
patient
String
Patient identifier.
category
String
Condition category.

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


conditionPatientCodeGet

Search for Condition resources based on a combination of patient ID and condition code. For more information on the syntax used for searches, go to Searching.


/condition/[patient]&[code]

Usage and SDK Samples

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

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

public class ConditionApiExample {

    public static void main(String[] args) {
        
        ConditionApi apiInstance = new ConditionApi();
        String patient = patient_example; // String | Patient identifier.
        String code = code_example; // String | Condition code. For example, a SNOMED code.
        try {
            Condition result = apiInstance.conditionPatientCodeGet(patient, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConditionApi#conditionPatientCodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConditionApi;

public class ConditionApiExample {

    public static void main(String[] args) {
        ConditionApi apiInstance = new ConditionApi();
        String patient = patient_example; // String | Patient identifier.
        String code = code_example; // String | Condition code. For example, a SNOMED code.
        try {
            Condition result = apiInstance.conditionPatientCodeGet(patient, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConditionApi#conditionPatientCodeGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Patient identifier. (optional)
String *code = code_example; // Condition code. For example, a SNOMED code. (optional)

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

[apiInstance conditionPatientCodeGetWith:patient
    code:code
              completionHandler: ^(Condition output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Condition = require('condition');

var api = new Condition.ConditionApi()
var opts = { 
  'patient': patient_example, // {{String}} Patient identifier.
  'code': code_example // {{String}} Condition code. For example, a SNOMED code.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.conditionPatientCodeGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ConditionApi();
            var patient = patient_example;  // String | Patient identifier. (optional) 
            var code = code_example;  // String | Condition code. For example, a SNOMED code. (optional) 

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

$api_instance = new Swagger\Client\ApiConditionApi();
$patient = patient_example; // String | Patient identifier.
$code = code_example; // String | Condition code. For example, a SNOMED code.

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

my $api_instance = WWW::SwaggerClient::ConditionApi->new();
my $patient = patient_example; # String | Patient identifier.
my $code = code_example; # String | Condition code. For example, a SNOMED code.

eval { 
    my $result = $api_instance->conditionPatientCodeGet(patient => $patient, code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConditionApi->conditionPatientCodeGet: $@\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.ConditionApi()
patient = patient_example # String | Patient identifier. (optional)
code = code_example # String | Condition code. For example, a SNOMED code. (optional)

try: 
    api_response = api_instance.condition_patient_code_get(patient=patient, code=code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConditionApi->conditionPatientCodeGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Patient identifier.
code
String
Condition code. For example, a SNOMED code.

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


conditionPatientOnsetDateGet

Search for Condition resources based on a combination of patient ID and onset date. For more information on the syntax used for searches, go to Searching.


/condition/[patient]&[onset-date]

Usage and SDK Samples

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

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

public class ConditionApiExample {

    public static void main(String[] args) {
        
        ConditionApi apiInstance = new ConditionApi();
        String patient = patient_example; // String | Patient identifier.
        String onsetDate = onsetDate_example; // String | Date-related onsets.
        try {
            Condition result = apiInstance.conditionPatientOnsetDateGet(patient, onsetDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConditionApi#conditionPatientOnsetDateGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConditionApi;

public class ConditionApiExample {

    public static void main(String[] args) {
        ConditionApi apiInstance = new ConditionApi();
        String patient = patient_example; // String | Patient identifier.
        String onsetDate = onsetDate_example; // String | Date-related onsets.
        try {
            Condition result = apiInstance.conditionPatientOnsetDateGet(patient, onsetDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConditionApi#conditionPatientOnsetDateGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; // Patient identifier. (optional)
String *onsetDate = onsetDate_example; // Date-related onsets. (optional)

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

[apiInstance conditionPatientOnsetDateGetWith:patient
    onsetDate:onsetDate
              completionHandler: ^(Condition output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Condition = require('condition');

var api = new Condition.ConditionApi()
var opts = { 
  'patient': patient_example, // {{String}} Patient identifier.
  'onsetDate': onsetDate_example // {{String}} Date-related onsets.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.conditionPatientOnsetDateGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ConditionApi();
            var patient = patient_example;  // String | Patient identifier. (optional) 
            var onsetDate = onsetDate_example;  // String | Date-related onsets. (optional) 

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

$api_instance = new Swagger\Client\ApiConditionApi();
$patient = patient_example; // String | Patient identifier.
$onsetDate = onsetDate_example; // String | Date-related onsets.

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

my $api_instance = WWW::SwaggerClient::ConditionApi->new();
my $patient = patient_example; # String | Patient identifier.
my $onsetDate = onsetDate_example; # String | Date-related onsets.

eval { 
    my $result = $api_instance->conditionPatientOnsetDateGet(patient => $patient, onsetDate => $onsetDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConditionApi->conditionPatientOnsetDateGet: $@\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.ConditionApi()
patient = patient_example # String | Patient identifier. (optional)
onsetDate = onsetDate_example # String | Date-related onsets. (optional)

try: 
    api_response = api_instance.condition_patient_onset_date_get(patient=patient, onsetDate=onsetDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConditionApi->conditionPatientOnsetDateGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
Patient identifier.
onset-date
String
Date-related onsets.

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


conditionPatientStatusGet

Search for Condition resources based on a combination of patient ID and clinical status. For more information on the syntax used for searches, go to Searching.


/condition/[patient]&[status]

Usage and SDK Samples

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

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

public class ConditionApiExample {

    public static void main(String[] args) {
        
        ConditionApi apiInstance = new ConditionApi();
        String patient = patient_example; // String | Patient identifier.
        String clinicalStatus = clinicalStatus_example; // String | Clinical status of the condition.
        try {
            Condition result = apiInstance.conditionPatientStatusGet(patient, clinicalStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConditionApi#conditionPatientStatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConditionApi;

public class ConditionApiExample {

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

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

[apiInstance conditionPatientStatusGetWith:patient
    clinicalStatus:clinicalStatus
              completionHandler: ^(Condition output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Condition = require('condition');

var api = new Condition.ConditionApi()
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.conditionPatientStatusGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

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

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

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

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

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

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

try: 
    api_response = api_instance.condition_patient_status_get(patient=patient, clinicalStatus=clinicalStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConditionApi->conditionPatientStatusGet: %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