POST
/
api
/
v2
/
hie
/
documents
/
query
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.hie.documents.query(
    address=[{
        "address_line1": "addressLine1",
        "city": "city",
        "state": "state",
        "zip": "zip",
    }],
    dob="dob",
    external_id="externalId",
    first_name="firstName",
    gender_at_birth="M",
    last_name="lastName",
)
print(response.async_result_id)
{
  "asyncResultId": "<string>"
}

Body

application/json

Response

202 - application/json

Default Response

The response is of type object.