from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.create_from_splits(
document={
"id": "id",
"file_name": "fileName",
},
splits=[0],
)
print(response.created_documents)
{
"createdDocuments": [
{
"id": "<string>",
"fileName": "<string>",
"startPageInclusive": 123,
"endPageInclusive": 123
}
]
}
Creates new documents from specified page splits of an existing document.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.create_from_splits(
document={
"id": "id",
"file_name": "fileName",
},
splits=[0],
)
print(response.created_documents)
{
"createdDocuments": [
{
"id": "<string>",
"fileName": "<string>",
"startPageInclusive": 123,
"endPageInclusive": 123
}
]
}
Successfully created new documents from splits.