documentReferenceCategoryDateGet
Search for DocumentReference resources based on a combination of category and date. For more information on the syntax used for searches, go to Searching.
/DocumentReference/[category]&[date]
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json,application/xml"\
"//DocumentReference/[category]&[date]?category=&date="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DocumentReferenceApi;
import java.io.File;
import java.util.*;
public class DocumentReferenceApiExample {
public static void main(String[] args) {
DocumentReferenceApi apiInstance = new DocumentReferenceApi();
String category = category_example; // String | Categorization of document.
String date = date_example; // String | When the document reference was created. For more information on date formats, see dates.
try {
DocumentReference result = apiInstance.documentReferenceCategoryDateGet(category, date);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentReferenceApi#documentReferenceCategoryDateGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DocumentReferenceApi;
public class DocumentReferenceApiExample {
public static void main(String[] args) {
DocumentReferenceApi apiInstance = new DocumentReferenceApi();
String category = category_example; // String | Categorization of document.
String date = date_example; // String | When the document reference was created. For more information on date formats, see dates.
try {
DocumentReference result = apiInstance.documentReferenceCategoryDateGet(category, date);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentReferenceApi#documentReferenceCategoryDateGet");
e.printStackTrace();
}
}
}
String *category = category_example; // Categorization of document. (optional)
String *date = date_example; // When the document reference was created. For more information on date formats, see dates. (optional)
DocumentReferenceApi *apiInstance = [[DocumentReferenceApi alloc] init];
[apiInstance documentReferenceCategoryDateGetWith:category
date:date
completionHandler: ^(DocumentReference output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var DocumentReference = require('document_reference');
var api = new DocumentReference.DocumentReferenceApi()
var opts = {
'category': category_example, // {{String}} Categorization of document.
'date': date_example // {{String}} When the document reference was created. For more information on date formats, see dates.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.documentReferenceCategoryDateGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class documentReferenceCategoryDateGetExample
{
public void main()
{
var apiInstance = new DocumentReferenceApi();
var category = category_example; // String | Categorization of document. (optional)
var date = date_example; // String | When the document reference was created. For more information on date formats, see dates. (optional)
try
{
DocumentReference result = apiInstance.documentReferenceCategoryDateGet(category, date);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DocumentReferenceApi.documentReferenceCategoryDateGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiDocumentReferenceApi();
$category = category_example; // String | Categorization of document.
$date = date_example; // String | When the document reference was created. For more information on date formats, see dates.
try {
$result = $api_instance->documentReferenceCategoryDateGet($category, $date);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentReferenceApi->documentReferenceCategoryDateGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DocumentReferenceApi;
my $api_instance = WWW::SwaggerClient::DocumentReferenceApi->new();
my $category = category_example; # String | Categorization of document.
my $date = date_example; # String | When the document reference was created. For more information on date formats, see dates.
eval {
my $result = $api_instance->documentReferenceCategoryDateGet(category => $category, date => $date);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DocumentReferenceApi->documentReferenceCategoryDateGet: $@\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.DocumentReferenceApi()
category = category_example # String | Categorization of document. (optional)
date = date_example # String | When the document reference was created. For more information on date formats, see dates. (optional)
try:
api_response = api_instance.document_reference_category_date_get(category=category, date=date)
pprint(api_response)
except ApiException as e:
print("Exception when calling DocumentReferenceApi->documentReferenceCategoryDateGet: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| category |
String
Categorization of document.
|
| date |
String
When the document reference was created. For more information on date formats, see <a href="http://hl7.org/fhir/search.html#date">dates</a>.
|