from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.legacy.extract(
answer_schemas=[{
"label": "label",
"question": "question",
"type": "boolean",
}],
documents=[{
"id": "id",
"file_name": "fileName",
}],
)
print(response.async_result_id){
"asyncResultId": "<string>"
}Initiates an asynchronous legacy data extraction process. Returns an ID to track the async result.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.legacy.extract(
answer_schemas=[{
"label": "label",
"question": "question",
"type": "boolean",
}],
documents=[{
"id": "id",
"file_name": "fileName",
}],
)
print(response.async_result_id){
"asyncResultId": "<string>"
}An array of answer schemas defining data to extract.
Accepted. Legacy extraction process initiated.
Accepted. Legacy extraction process initiated.
The ID to track the asynchronous legacy extraction task.