Creates a batch of patients in Metriport and initiates Document Queries for all of them.
-N
at the end of the column name, where N
is the index (1-10).
… | zip* | email-1 | email-2 | email-3 | … |
---|---|---|---|---|---|
… | 12345 | some@domain.com | another@domain.com | … | |
… | 12312 | avocado@food.com | … | ||
… | 99887 | lawyer@job.com | personal@domain.com | family@domain.com | … |
addressLine1-2
, then all address fields
with index 2
are required (otherwise, the respective row/Patient will be marked as invalid).
Following this logic, if you don’t provide any address field for index 3
through 10
, all the
address fields for those indexes are disconsidered, and the Patient is considered valid (assuming
other non-address fields are valid too).
At least one complete address must be provided:
404
if the facility can’t be found or 400
if there’s more than one Facility
and the ID was not provided.
Once the CSV is uploaded, the Metriport API will also validate the file is in the expected format
(CSV). It might set the status of the request to failed
and send a corresponding webhook message.
If those previous validations are successful, each row will be validated individually and it’s
respective status will be stored so it can be reviewed in the
result CSV file (it won’t fail the whole
request at this point).
PUT
request like so:
processing
. Once the patiets are created and their medical
data is available, we send a new webhook message indicating the request is done, including
a link to the resulting CSV file that contains the newly created Metriport IDs for the
successfully created Patients.
waiting
: initial state, waiting for the CSV file;processing
: the CSV file has been uploaded and is being processed;completed
: the bulk create is completed;failed
: the bulk create failed (likely due to an uploaded file with invalid format);expired
: no file has been uploaded and the upload URL expired.true
, no Patients will be created, and this
request is only used to validate the CSV file and provide
feedback about each Patient demographics. Defaults to
false
.waiting
. See all the possible values
here.