careteamGet
Get a CareTeam resource based on the resource ID, or search by ID, patient ID, subject, encounter, category, participant, or status. For more information on the syntax used for searches, go to Searching.
/careteam/
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json,application/xml"\
"//careteam/?_id=&patient=&subject=&encounter=&category=&participant=&status="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CareTeamApi;
import java.io.File;
import java.util.*;
public class CareTeamApiExample {
public static void main(String[] args) {
CareTeamApi apiInstance = new CareTeamApi();
String id = id_example; // String | Resource ID.
String patient = patient_example; // String | Patient ID.
String subject = subject_example; // String | Who the care team is for.
String encounter = encounter_example; // String | Encounter ID.
String category = category_example; // String | Type of team.
String participant = participant_example; // String | Who is involved.
String status = status_example; // String | Team status: proposed, active, suspended, inactive, or entered-in-error.
try {
CareTeam result = apiInstance.careteamGet(id, patient, subject, encounter, category, participant, status);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CareTeamApi#careteamGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CareTeamApi;
public class CareTeamApiExample {
public static void main(String[] args) {
CareTeamApi apiInstance = new CareTeamApi();
String id = id_example; // String | Resource ID.
String patient = patient_example; // String | Patient ID.
String subject = subject_example; // String | Who the care team is for.
String encounter = encounter_example; // String | Encounter ID.
String category = category_example; // String | Type of team.
String participant = participant_example; // String | Who is involved.
String status = status_example; // String | Team status: proposed, active, suspended, inactive, or entered-in-error.
try {
CareTeam result = apiInstance.careteamGet(id, patient, subject, encounter, category, participant, status);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CareTeamApi#careteamGet");
e.printStackTrace();
}
}
}
String *id = id_example; // Resource ID. (optional)
String *patient = patient_example; // Patient ID. (optional)
String *subject = subject_example; // Who the care team is for. (optional)
String *encounter = encounter_example; // Encounter ID. (optional)
String *category = category_example; // Type of team. (optional)
String *participant = participant_example; // Who is involved. (optional)
String *status = status_example; // Team status: proposed, active, suspended, inactive, or entered-in-error. (optional)
CareTeamApi *apiInstance = [[CareTeamApi alloc] init];
[apiInstance careteamGetWith:id
patient:patient
subject:subject
encounter:encounter
category:category
participant:participant
status:status
completionHandler: ^(CareTeam output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var CareTeam = require('care_team');
var api = new CareTeam.CareTeamApi()
var opts = {
'id': id_example, // {{String}} Resource ID.
'patient': patient_example, // {{String}} Patient ID.
'subject': subject_example, // {{String}} Who the care team is for.
'encounter': encounter_example, // {{String}} Encounter ID.
'category': category_example, // {{String}} Type of team.
'participant': participant_example, // {{String}} Who is involved.
'status': status_example // {{String}} Team status: proposed, active, suspended, inactive, or entered-in-error.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.careteamGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class careteamGetExample
{
public void main()
{
var apiInstance = new CareTeamApi();
var id = id_example; // String | Resource ID. (optional)
var patient = patient_example; // String | Patient ID. (optional)
var subject = subject_example; // String | Who the care team is for. (optional)
var encounter = encounter_example; // String | Encounter ID. (optional)
var category = category_example; // String | Type of team. (optional)
var participant = participant_example; // String | Who is involved. (optional)
var status = status_example; // String | Team status: proposed, active, suspended, inactive, or entered-in-error. (optional)
try
{
CareTeam result = apiInstance.careteamGet(id, patient, subject, encounter, category, participant, status);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CareTeamApi.careteamGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiCareTeamApi();
$id = id_example; // String | Resource ID.
$patient = patient_example; // String | Patient ID.
$subject = subject_example; // String | Who the care team is for.
$encounter = encounter_example; // String | Encounter ID.
$category = category_example; // String | Type of team.
$participant = participant_example; // String | Who is involved.
$status = status_example; // String | Team status: proposed, active, suspended, inactive, or entered-in-error.
try {
$result = $api_instance->careteamGet($id, $patient, $subject, $encounter, $category, $participant, $status);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CareTeamApi->careteamGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CareTeamApi;
my $api_instance = WWW::SwaggerClient::CareTeamApi->new();
my $id = id_example; # String | Resource ID.
my $patient = patient_example; # String | Patient ID.
my $subject = subject_example; # String | Who the care team is for.
my $encounter = encounter_example; # String | Encounter ID.
my $category = category_example; # String | Type of team.
my $participant = participant_example; # String | Who is involved.
my $status = status_example; # String | Team status: proposed, active, suspended, inactive, or entered-in-error.
eval {
my $result = $api_instance->careteamGet(id => $id, patient => $patient, subject => $subject, encounter => $encounter, category => $category, participant => $participant, status => $status);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CareTeamApi->careteamGet: $@\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.CareTeamApi()
id = id_example # String | Resource ID. (optional)
patient = patient_example # String | Patient ID. (optional)
subject = subject_example # String | Who the care team is for. (optional)
encounter = encounter_example # String | Encounter ID. (optional)
category = category_example # String | Type of team. (optional)
participant = participant_example # String | Who is involved. (optional)
status = status_example # String | Team status: proposed, active, suspended, inactive, or entered-in-error. (optional)
try:
api_response = api_instance.careteam_get(id=id, patient=patient, subject=subject, encounter=encounter, category=category, participant=participant, status=status)
pprint(api_response)
except ApiException as e:
print("Exception when calling CareTeamApi->careteamGet: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| _id |
String
Resource ID.
|
| patient |
String
Patient ID.
|
| subject |
String
Who the care team is for.
|
| encounter |
String
Encounter ID.
|
| category |
String
Type of team.
|
| participant |
String
Who is involved.
|
| status |
String
Team status: proposed, active, suspended, inactive, or entered-in-error.
|