Skip to main content
Datasets hold synthetic patient data (FHIR bundles, files, or other formats) that can be loaded into Sandboxes. Datasets can be hand-crafted or generated from a prompt.

Endpoints

MethodEndpointDescription
GET/datasetsList datasets
POST/datasetsCreate a dataset
GET/datasets/{id}Get dataset details
PATCH/datasets/{id}Update a dataset
DELETE/datasets/{id}Delete a dataset

Dataset Object

FieldTypeDescription
idstringUnique identifier
namestringDataset name
descriptionstring | nullOptional description
typeFHIR | Files | nullData format
dataunknown | nullThe dataset contents
configobject | nullGeneration or schema configuration
organization_idstringParent organization
created_atdatetimeCreation timestamp
updated_atdatetimeLast modification timestamp

SDK Example

// Create a dataset
const dataset = await verial.datasets.create({
  name: 'Diabetes patient panel',
})

// List all datasets
const datasets = await verial.datasets.list()

// Get a specific dataset
const details = await verial.datasets.get({ id: dataset.id })

// Update
await verial.datasets.update({
  id: dataset.id,
  description: '50 patients with Type 2 diabetes',
  data: fhirBundle,
})

// Generate data from a prompt
await verial.datasets.generate({
  id: dataset.id,
  prompt: '10 patients with pending prior auth requests',
})

// Delete
await verial.datasets.delete({ id: dataset.id })