careplanPatientCategoryGet
Search for CarePlan resources based on a combination of patient ID and CarePlan category/type of plan. For more information on the syntax used for searches, go to Searching.
/careplan/[patient]&[category]
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json,application/xml"\
"//careplan/[patient]&[category]?patient=&category="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CarePlanApi;
import java.io.File;
import java.util.*;
public class CarePlanApiExample {
public static void main(String[] args) {
CarePlanApi apiInstance = new CarePlanApi();
String patient = patient_example; // String | Patient ID.
String category = category_example; // String | Type of plan.
try {
CarePlan result = apiInstance.careplanPatientCategoryGet(patient, category);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CarePlanApi#careplanPatientCategoryGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CarePlanApi;
public class CarePlanApiExample {
public static void main(String[] args) {
CarePlanApi apiInstance = new CarePlanApi();
String patient = patient_example; // String | Patient ID.
String category = category_example; // String | Type of plan.
try {
CarePlan result = apiInstance.careplanPatientCategoryGet(patient, category);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CarePlanApi#careplanPatientCategoryGet");
e.printStackTrace();
}
}
}
String *patient = patient_example; // Patient ID. (optional)
String *category = category_example; // Type of plan. (optional)
CarePlanApi *apiInstance = [[CarePlanApi alloc] init];
[apiInstance careplanPatientCategoryGetWith:patient
category:category
completionHandler: ^(CarePlan output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var CarePlan = require('care_plan');
var api = new CarePlan.CarePlanApi()
var opts = {
'patient': patient_example, // {{String}} Patient ID.
'category': category_example // {{String}} Type of plan.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.careplanPatientCategoryGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class careplanPatientCategoryGetExample
{
public void main()
{
var apiInstance = new CarePlanApi();
var patient = patient_example; // String | Patient ID. (optional)
var category = category_example; // String | Type of plan. (optional)
try
{
CarePlan result = apiInstance.careplanPatientCategoryGet(patient, category);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CarePlanApi.careplanPatientCategoryGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiCarePlanApi();
$patient = patient_example; // String | Patient ID.
$category = category_example; // String | Type of plan.
try {
$result = $api_instance->careplanPatientCategoryGet($patient, $category);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CarePlanApi->careplanPatientCategoryGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CarePlanApi;
my $api_instance = WWW::SwaggerClient::CarePlanApi->new();
my $patient = patient_example; # String | Patient ID.
my $category = category_example; # String | Type of plan.
eval {
my $result = $api_instance->careplanPatientCategoryGet(patient => $patient, category => $category);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CarePlanApi->careplanPatientCategoryGet: $@\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.CarePlanApi()
patient = patient_example # String | Patient ID. (optional)
category = category_example # String | Type of plan. (optional)
try:
api_response = api_instance.careplan_patient_category_get(patient=patient, category=category)
pprint(api_response)
except ApiException as e:
print("Exception when calling CarePlanApi->careplanPatientCategoryGet: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| patient |
String
Patient ID.
|
| category |
String
Type of plan.
|