relatedpersonGet
Search for RelatedPerson resources by Resource ID or patient.
/relatedperson/
Usage and SDK Samples
Parameters
Query parameters
| Name | Description |
|---|---|
| _id | |
| patient |
Search for RelatedPerson resources by Resource ID or patient.
/relatedperson/
curl -X GET\
-H "Accept: application/json,application/xml"\
"//relatedperson/?_id=&patient="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RelatedPersonApi;
import java.io.File;
import java.util.*;
public class RelatedPersonApiExample {
public static void main(String[] args) {
RelatedPersonApi apiInstance = new RelatedPersonApi();
String id = id_example; // String | Resource ID.
String patient = patient_example; // String | Patient ID.
try {
RelatedPerson result = apiInstance.relatedpersonGet(id, patient);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RelatedPersonApi#relatedpersonGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.RelatedPersonApi;
public class RelatedPersonApiExample {
public static void main(String[] args) {
RelatedPersonApi apiInstance = new RelatedPersonApi();
String id = id_example; // String | Resource ID.
String patient = patient_example; // String | Patient ID.
try {
RelatedPerson result = apiInstance.relatedpersonGet(id, patient);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RelatedPersonApi#relatedpersonGet");
e.printStackTrace();
}
}
}
String *id = id_example; // Resource ID. (optional)
String *patient = patient_example; // Patient ID. (optional)
RelatedPersonApi *apiInstance = [[RelatedPersonApi alloc] init];
[apiInstance relatedpersonGetWith:id
patient:patient
completionHandler: ^(RelatedPerson output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var RelatedPerson = require('related_person');
var api = new RelatedPerson.RelatedPersonApi()
var opts = {
'id': id_example, // {{String}} Resource ID.
'patient': patient_example // {{String}} Patient ID.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.relatedpersonGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class relatedpersonGetExample
{
public void main()
{
var apiInstance = new RelatedPersonApi();
var id = id_example; // String | Resource ID. (optional)
var patient = patient_example; // String | Patient ID. (optional)
try
{
RelatedPerson result = apiInstance.relatedpersonGet(id, patient);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling RelatedPersonApi.relatedpersonGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiRelatedPersonApi();
$id = id_example; // String | Resource ID.
$patient = patient_example; // String | Patient ID.
try {
$result = $api_instance->relatedpersonGet($id, $patient);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RelatedPersonApi->relatedpersonGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RelatedPersonApi;
my $api_instance = WWW::SwaggerClient::RelatedPersonApi->new();
my $id = id_example; # String | Resource ID.
my $patient = patient_example; # String | Patient ID.
eval {
my $result = $api_instance->relatedpersonGet(id => $id, patient => $patient);
print Dumper($result);
};
if ($@) {
warn "Exception when calling RelatedPersonApi->relatedpersonGet: $@\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.RelatedPersonApi()
id = id_example # String | Resource ID. (optional)
patient = patient_example # String | Patient ID. (optional)
try:
api_response = api_instance.relatedperson_get(id=id, patient=patient)
pprint(api_response)
except ApiException as e:
print("Exception when calling RelatedPersonApi->relatedpersonGet: %s\n" % e)
| Name | Description |
|---|---|
| _id |
String
Resource ID.
|
| patient |
String
Patient ID.
|