Python
import os
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted
)
response = client.v2.documents.search(
documents=[{
"id": "id",
"file_name": "fileName",
}],
query="query",
)
print(response.results){
"results": [
"<unknown>"
]
}{
"error": "<string>",
"message": "<string>",
"statusCode": 123,
"details": {}
}{
"error": "<string>"
}{
"error": "<string>"
}Document
Search across documents
Performs a search query across a specified set of documents and returns matching results.
POST
/
api
/
v2
/
documents
/
search
Python
import os
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted
)
response = client.v2.documents.search(
documents=[{
"id": "id",
"file_name": "fileName",
}],
query="query",
)
print(response.results){
"results": [
"<unknown>"
]
}{
"error": "<string>",
"message": "<string>",
"statusCode": 123,
"details": {}
}{
"error": "<string>"
}{
"error": "<string>"
}