encounterGet
Get an Encounter resource based on the resource ID, or search by ID, patient ID, status, class, type, date, or identifier.
/encounter/
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json,application/xml"\
"//encounter/?_id=&patient=&status=&class=&type=&date=&identifier="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String id = id_example; // String | Resource ID.
String patient = patient_example; // String | Patient ID.
String status = status_example; // String | Encounter status. Values include planned, in-progress, on-hold, completed, cancelled, entered-in-error, and unknown.
String class = class_example; // String | Classification of the patient encounter.
String type = type_example; // String | Specific type of encounter.
String date = date_example; // String | A date within the actualPeriod the Encounter lasted. For more information on date formats, see dates.
String identifier = identifier_example; // String | Identifier(s) by which this encounter is known.
try {
Encounter result = apiInstance.encounterGet(id, patient, status, class, type, date, identifier);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#encounterGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String id = id_example; // String | Resource ID.
String patient = patient_example; // String | Patient ID.
String status = status_example; // String | Encounter status. Values include planned, in-progress, on-hold, completed, cancelled, entered-in-error, and unknown.
String class = class_example; // String | Classification of the patient encounter.
String type = type_example; // String | Specific type of encounter.
String date = date_example; // String | A date within the actualPeriod the Encounter lasted. For more information on date formats, see dates.
String identifier = identifier_example; // String | Identifier(s) by which this encounter is known.
try {
Encounter result = apiInstance.encounterGet(id, patient, status, class, type, date, identifier);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#encounterGet");
e.printStackTrace();
}
}
}
String *id = id_example; // Resource ID. (optional)
String *patient = patient_example; // Patient ID. (optional)
String *status = status_example; // Encounter status. Values include planned, in-progress, on-hold, completed, cancelled, entered-in-error, and unknown. (optional)
String *class = class_example; // Classification of the patient encounter. (optional)
String *type = type_example; // Specific type of encounter. (optional)
String *date = date_example; // A date within the actualPeriod the Encounter lasted. For more information on date formats, see dates. (optional)
String *identifier = identifier_example; // Identifier(s) by which this encounter is known. (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance encounterGetWith:id
patient:patient
status:status
class:class
type:type
date:date
identifier:identifier
completionHandler: ^(Encounter output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Encounter = require('encounter');
var api = new Encounter.DefaultApi()
var opts = {
'id': id_example, // {{String}} Resource ID.
'patient': patient_example, // {{String}} Patient ID.
'status': status_example, // {{String}} Encounter status. Values include planned, in-progress, on-hold, completed, cancelled, entered-in-error, and unknown.
'class': class_example, // {{String}} Classification of the patient encounter.
'type': type_example, // {{String}} Specific type of encounter.
'date': date_example, // {{String}} A date within the actualPeriod the Encounter lasted. For more information on date formats, see dates.
'identifier': identifier_example // {{String}} Identifier(s) by which this encounter is known.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.encounterGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class encounterGetExample
{
public void main()
{
var apiInstance = new DefaultApi();
var id = id_example; // String | Resource ID. (optional)
var patient = patient_example; // String | Patient ID. (optional)
var status = status_example; // String | Encounter status. Values include planned, in-progress, on-hold, completed, cancelled, entered-in-error, and unknown. (optional)
var class = class_example; // String | Classification of the patient encounter. (optional)
var type = type_example; // String | Specific type of encounter. (optional)
var date = date_example; // String | A date within the actualPeriod the Encounter lasted. For more information on date formats, see dates. (optional)
var identifier = identifier_example; // String | Identifier(s) by which this encounter is known. (optional)
try
{
Encounter result = apiInstance.encounterGet(id, patient, status, class, type, date, identifier);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.encounterGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | Resource ID.
$patient = patient_example; // String | Patient ID.
$status = status_example; // String | Encounter status. Values include planned, in-progress, on-hold, completed, cancelled, entered-in-error, and unknown.
$class = class_example; // String | Classification of the patient encounter.
$type = type_example; // String | Specific type of encounter.
$date = date_example; // String | A date within the actualPeriod the Encounter lasted. For more information on date formats, see dates.
$identifier = identifier_example; // String | Identifier(s) by which this encounter is known.
try {
$result = $api_instance->encounterGet($id, $patient, $status, $class, $type, $date, $identifier);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->encounterGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | Resource ID.
my $patient = patient_example; # String | Patient ID.
my $status = status_example; # String | Encounter status. Values include planned, in-progress, on-hold, completed, cancelled, entered-in-error, and unknown.
my $class = class_example; # String | Classification of the patient encounter.
my $type = type_example; # String | Specific type of encounter.
my $date = date_example; # String | A date within the actualPeriod the Encounter lasted. For more information on date formats, see dates.
my $identifier = identifier_example; # String | Identifier(s) by which this encounter is known.
eval {
my $result = $api_instance->encounterGet(id => $id, patient => $patient, status => $status, class => $class, type => $type, date => $date, identifier => $identifier);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->encounterGet: $@\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.DefaultApi()
id = id_example # String | Resource ID. (optional)
patient = patient_example # String | Patient ID. (optional)
status = status_example # String | Encounter status. Values include planned, in-progress, on-hold, completed, cancelled, entered-in-error, and unknown. (optional)
class = class_example # String | Classification of the patient encounter. (optional)
type = type_example # String | Specific type of encounter. (optional)
date = date_example # String | A date within the actualPeriod the Encounter lasted. For more information on date formats, see dates. (optional)
identifier = identifier_example # String | Identifier(s) by which this encounter is known. (optional)
try:
api_response = api_instance.encounter_get(id=id, patient=patient, status=status, class=class, type=type, date=date, identifier=identifier)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->encounterGet: %s\n" % e)
Parameters
Query parameters
| Name | Description |
|---|---|
| _id |
String
Resource ID.
|
| patient |
String
Patient ID.
|
| status |
String
Encounter status. Values include planned, in-progress, on-hold, completed, cancelled, entered-in-error, and unknown.
|
| class |
String
Classification of the patient encounter.
|
| type |
String
Specific type of encounter.
|
| date |
String
A date within the actualPeriod the Encounter lasted. For more information on date formats, see <a href="http://hl7.org/fhir/search.html#date">dates</a>.
|
| identifier |
String
Identifier(s) by which this encounter is known.
|