CareTeam

CareTeam

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

Query 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.

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


careteamPatientCategoryGet

Search for CareTeam resources based on a combination of patient ID and team category. For more information on the syntax used for searches, go to Searching.


/careteam/[patient]&[category]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//careteam/[patient]&[category]?patient=&category="
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 patient = patient_example; // String | 
        String category = category_example; // String | 
        try {
            CareTeam result = apiInstance.careteamPatientCategoryGet(patient, category);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CareTeamApi#careteamPatientCategoryGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CareTeamApi;

public class CareTeamApiExample {

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

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

[apiInstance careteamPatientCategoryGetWith:patient
    category:category
              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 = { 
  'patient': patient_example, // {{String}} 
  'category': category_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.careteamPatientCategoryGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new CareTeamApi();
            var patient = patient_example;  // String |  (optional) 
            var category = category_example;  // String |  (optional) 

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

$api_instance = new Swagger\Client\ApiCareTeamApi();
$patient = patient_example; // String | 
$category = category_example; // String | 

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

my $api_instance = WWW::SwaggerClient::CareTeamApi->new();
my $patient = patient_example; # String | 
my $category = category_example; # String | 

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

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

Parameters

Query parameters
Name Description
patient
String
category
String

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


careteamPatientParticipantGet

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


/careteam/[patient]&[participant]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//careteam/[patient]&[participant]?patient=&category="
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 patient = patient_example; // String | 
        String category = category_example; // String | 
        try {
            CareTeam result = apiInstance.careteamPatientParticipantGet(patient, category);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CareTeamApi#careteamPatientParticipantGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CareTeamApi;

public class CareTeamApiExample {

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

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

[apiInstance careteamPatientParticipantGetWith:patient
    category:category
              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 = { 
  'patient': patient_example, // {{String}} 
  'category': category_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.careteamPatientParticipantGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new CareTeamApi();
            var patient = patient_example;  // String |  (optional) 
            var category = category_example;  // String |  (optional) 

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

$api_instance = new Swagger\Client\ApiCareTeamApi();
$patient = patient_example; // String | 
$category = category_example; // String | 

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

my $api_instance = WWW::SwaggerClient::CareTeamApi->new();
my $patient = patient_example; # String | 
my $category = category_example; # String | 

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

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

Parameters

Query parameters
Name Description
patient
String
category
String

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


careteamPatientStatusGet

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


/careteam/[patient]&[status]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//careteam/[patient]&[status]?patient=&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 patient = patient_example; // String | 
        String status = status_example; // String | 
        try {
            CareTeam result = apiInstance.careteamPatientStatusGet(patient, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CareTeamApi#careteamPatientStatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CareTeamApi;

public class CareTeamApiExample {

    public static void main(String[] args) {
        CareTeamApi apiInstance = new CareTeamApi();
        String patient = patient_example; // String | 
        String status = status_example; // String | 
        try {
            CareTeam result = apiInstance.careteamPatientStatusGet(patient, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CareTeamApi#careteamPatientStatusGet");
            e.printStackTrace();
        }
    }
}
String *patient = patient_example; //  (optional)
String *status = status_example; //  (optional)

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

[apiInstance careteamPatientStatusGetWith:patient
    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 = { 
  'patient': patient_example, // {{String}} 
  'status': status_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.careteamPatientStatusGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new CareTeamApi();
            var patient = patient_example;  // String |  (optional) 
            var status = status_example;  // String |  (optional) 

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

$api_instance = new Swagger\Client\ApiCareTeamApi();
$patient = patient_example; // String | 
$status = status_example; // String | 

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

my $api_instance = WWW::SwaggerClient::CareTeamApi->new();
my $patient = patient_example; # String | 
my $status = status_example; # String | 

eval { 
    my $result = $api_instance->careteamPatientStatusGet(patient => $patient, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CareTeamApi->careteamPatientStatusGet: $@\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()
patient = patient_example # String |  (optional)
status = status_example # String |  (optional)

try: 
    api_response = api_instance.careteam_patient_status_get(patient=patient, status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CareTeamApi->careteamPatientStatusGet: %s\n" % e)

Parameters

Query parameters
Name Description
patient
String
status
String

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


careteamSubjectStatusGet

Search for CareTeam resources based on a combination of subject and team status. For more information on the syntax used for searches, go to Searching.


/careteam/[subject]&[status]

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//careteam/[subject]&[status]?patient=&category="
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 patient = patient_example; // String | 
        String category = category_example; // String | 
        try {
            CareTeam result = apiInstance.careteamSubjectStatusGet(patient, category);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CareTeamApi#careteamSubjectStatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CareTeamApi;

public class CareTeamApiExample {

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

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

[apiInstance careteamSubjectStatusGetWith:patient
    category:category
              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 = { 
  'patient': patient_example, // {{String}} 
  'category': category_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.careteamSubjectStatusGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new CareTeamApi();
            var patient = patient_example;  // String |  (optional) 
            var category = category_example;  // String |  (optional) 

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

$api_instance = new Swagger\Client\ApiCareTeamApi();
$patient = patient_example; // String | 
$category = category_example; // String | 

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

my $api_instance = WWW::SwaggerClient::CareTeamApi->new();
my $patient = patient_example; # String | 
my $category = category_example; # String | 

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

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

Parameters

Query parameters
Name Description
patient
String
category
String

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