practitionerGet
Get a Practitioner resource based on the resource ID, or search by ID, name, family name, given name, address, or communication method.
/practitioner/
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json,application/xml"\
"//practitioner/?_id=&name=&family=&given=&address=&address-state=&address-city=&address-postalcode=&communication="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PractitionerApi;
import java.io.File;
import java.util.*;
public class PractitionerApiExample {
public static void main(String[] args) {
PractitionerApi apiInstance = new PractitionerApi();
String id = id_example; // String | Resource ID.
String name = name_example; // String | Practitioner name.
String family = family_example; // String | Practitioner family (last) name.
String given = given_example; // String | Practitioner given (first) name.
String address = address_example; // String | A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text.
String addressState = addressState_example; // String | A state specified in an address.
String addressCity = addressCity_example; // String | A city specified in an address.
String addressPostalcode = addressPostalcode_example; // String | A postal code specified in an address.
String communication = communication_example; // String | A language to communicate with the practitioner.
try {
Practitioner result = apiInstance.practitionerGet(id, name, family, given, address, addressState, addressCity, addressPostalcode, communication);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PractitionerApi#practitionerGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.PractitionerApi;
public class PractitionerApiExample {
public static void main(String[] args) {
PractitionerApi apiInstance = new PractitionerApi();
String id = id_example; // String | Resource ID.
String name = name_example; // String | Practitioner name.
String family = family_example; // String | Practitioner family (last) name.
String given = given_example; // String | Practitioner given (first) name.
String address = address_example; // String | A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text.
String addressState = addressState_example; // String | A state specified in an address.
String addressCity = addressCity_example; // String | A city specified in an address.
String addressPostalcode = addressPostalcode_example; // String | A postal code specified in an address.
String communication = communication_example; // String | A language to communicate with the practitioner.
try {
Practitioner result = apiInstance.practitionerGet(id, name, family, given, address, addressState, addressCity, addressPostalcode, communication);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PractitionerApi#practitionerGet");
e.printStackTrace();
}
}
}
String *id = id_example; // Resource ID. (optional)
String *name = name_example; // Practitioner name. (optional)
String *family = family_example; // Practitioner family (last) name. (optional)
String *given = given_example; // Practitioner given (first) name. (optional)
String *address = address_example; // A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text. (optional)
String *addressState = addressState_example; // A state specified in an address. (optional)
String *addressCity = addressCity_example; // A city specified in an address. (optional)
String *addressPostalcode = addressPostalcode_example; // A postal code specified in an address. (optional)
String *communication = communication_example; // A language to communicate with the practitioner. (optional)
PractitionerApi *apiInstance = [[PractitionerApi alloc] init];
[apiInstance practitionerGetWith:id
name:name
family:family
given:given
address:address
addressState:addressState
addressCity:addressCity
addressPostalcode:addressPostalcode
communication:communication
completionHandler: ^(Practitioner output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Practitioner = require('practitioner');
var api = new Practitioner.PractitionerApi()
var opts = {
'id': id_example, // {{String}} Resource ID.
'name': name_example, // {{String}} Practitioner name.
'family': family_example, // {{String}} Practitioner family (last) name.
'given': given_example, // {{String}} Practitioner given (first) name.
'address': address_example, // {{String}} A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text.
'addressState': addressState_example, // {{String}} A state specified in an address.
'addressCity': addressCity_example, // {{String}} A city specified in an address.
'addressPostalcode': addressPostalcode_example, // {{String}} A postal code specified in an address.
'communication': communication_example // {{String}} A language to communicate with the practitioner.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.practitionerGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class practitionerGetExample
{
public void main()
{
var apiInstance = new PractitionerApi();
var id = id_example; // String | Resource ID. (optional)
var name = name_example; // String | Practitioner name. (optional)
var family = family_example; // String | Practitioner family (last) name. (optional)
var given = given_example; // String | Practitioner given (first) name. (optional)
var address = address_example; // String | A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text. (optional)
var addressState = addressState_example; // String | A state specified in an address. (optional)
var addressCity = addressCity_example; // String | A city specified in an address. (optional)
var addressPostalcode = addressPostalcode_example; // String | A postal code specified in an address. (optional)
var communication = communication_example; // String | A language to communicate with the practitioner. (optional)
try
{
Practitioner result = apiInstance.practitionerGet(id, name, family, given, address, addressState, addressCity, addressPostalcode, communication);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PractitionerApi.practitionerGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiPractitionerApi();
$id = id_example; // String | Resource ID.
$name = name_example; // String | Practitioner name.
$family = family_example; // String | Practitioner family (last) name.
$given = given_example; // String | Practitioner given (first) name.
$address = address_example; // String | A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text.
$addressState = addressState_example; // String | A state specified in an address.
$addressCity = addressCity_example; // String | A city specified in an address.
$addressPostalcode = addressPostalcode_example; // String | A postal code specified in an address.
$communication = communication_example; // String | A language to communicate with the practitioner.
try {
$result = $api_instance->practitionerGet($id, $name, $family, $given, $address, $addressState, $addressCity, $addressPostalcode, $communication);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PractitionerApi->practitionerGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PractitionerApi;
my $api_instance = WWW::SwaggerClient::PractitionerApi->new();
my $id = id_example; # String | Resource ID.
my $name = name_example; # String | Practitioner name.
my $family = family_example; # String | Practitioner family (last) name.
my $given = given_example; # String | Practitioner given (first) name.
my $address = address_example; # String | A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text.
my $addressState = addressState_example; # String | A state specified in an address.
my $addressCity = addressCity_example; # String | A city specified in an address.
my $addressPostalcode = addressPostalcode_example; # String | A postal code specified in an address.
my $communication = communication_example; # String | A language to communicate with the practitioner.
eval {
my $result = $api_instance->practitionerGet(id => $id, name => $name, family => $family, given => $given, address => $address, addressState => $addressState, addressCity => $addressCity, addressPostalcode => $addressPostalcode, communication => $communication);
print Dumper($result);
};
if ($@) {
warn "Exception when calling PractitionerApi->practitionerGet: $@\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.PractitionerApi()
id = id_example # String | Resource ID. (optional)
name = name_example # String | Practitioner name. (optional)
family = family_example # String | Practitioner family (last) name. (optional)
given = given_example # String | Practitioner given (first) name. (optional)
address = address_example # String | A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text. (optional)
addressState = addressState_example # String | A state specified in an address. (optional)
addressCity = addressCity_example # String | A city specified in an address. (optional)
addressPostalcode = addressPostalcode_example # String | A postal code specified in an address. (optional)
communication = communication_example # String | A language to communicate with the practitioner. (optional)
try:
api_response = api_instance.practitioner_get(id=id, name=name, family=family, given=given, address=address, addressState=addressState, addressCity=addressCity, addressPostalcode=addressPostalcode, communication=communication)
pprint(api_response)
except ApiException as e:
print("Exception when calling PractitionerApi->practitionerGet: %s\n" % e)
Parameters
Query parameters
| Name | Description |
|---|---|
| _id |
String
Resource ID.
|
| name |
String
Practitioner name.
|
| family |
String
Practitioner family (last) name.
|
| given |
String
Practitioner given (first) name.
|
| address |
String
A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text.
|
| address-state |
String
A state specified in an address.
|
| address-city |
String
A city specified in an address.
|
| address-postalcode |
String
A postal code specified in an address.
|
| communication |
String
A language to communicate with the practitioner.
|