Bulk create patient records

As a team coordinator, as an initial onboarding step, you might want to create multiple patient records in one go. The ‘Add many patients’ feature allows you to upload a CSV file with a list of patients. PKB will then create records for all patients and carers and add them to your team. 

How do I create the CSV file to upload?

Complete the following template:

'Add many patients' CSV template'

Do not change the layout or remove the header row or the upload will fail.

Add one row per patient. All cells should be text - if you have identifiers or phone numbers beginning with 0 please ensure the cells in these columns are not being treated numerically as the 0 will automatically be removed. Make sure to save it as a CSV file e.g. not in Excel format.  CSV files will have a file extension of .csv whereas Excel files normally have a file extension of .xlsx

Please also perform a data cleanse to account for special characters that could throw off standard CSV parsing  such as , " '.  

Include up to 50,000 patients in each file. Let PKB support know if you are planning a large upload. We will give guidance on when to upload each file. 

Mandatory columns: 

Please note, patient identifiers must be unique to the patient. The Organisation Identifier is the unique ID assigned to the patient by the organisation (rather than the ID of the organisation). Likewise, the Team identifier is the unique ID assigned to the patient by the team, rather than being the ID of the team. 

Optional columns: 

If you are uploading patients who you know already have PKB accounts (for example, they have been created under an umbrella team and you are now adding them to a specific team) we recommend only including the mandatory fields in your CSV file. This will prevent you overwriting demographic details which the umbrella team have already added. 

How do I start the upload?

Go to ‘Patients’ and click ‘Add many patients’. ‘Choose file’ and browse to attach your completed CSV file

Select the privacy labels that your team requires access to provide care for these patients (your team’s default access will be pre-selected). Click on the ‘Add patients’ button to start the patient creation. 

If you get an error indicating that the file format is incorrect (see example below), please check you are using the correct template supplied, and that neither the format (CSV) or the header has been modified in any way. Click 'Cancel' and start the upload process again.

How can I monitor the progress of the upload?

Once the upload has begun you will see an entry on the 'Reports' sub tab. When the upload completes you will receive an email notification and the entry on the 'Reports' tab will have a download link.

You can download the report to see detailed status of each patient record. It will contain your original data with three additional columns showing whether the patient on each row (and carers if included) have been successfully invited/created, with supporting information where relevant.

The possible account creation outcomes are:

(Click here to see the details on how PKB matches patient records)

The possible carer creation outcomes are:

What is sent to the patient when their account is created?

When your patients have had their accounts successfully created via the CSV upload, PKB will send an email to them to ask them to complete registration. 

Which email is sent to them depends on whether they already had an existing record, or belonged to another team within your organisation etc, but we have added some examples below.

Scenario 1 - Patient record created successfully and added to your team

If the patient does not already have a PKB record, we create one for them and send the following email:

Scenario 2 - Patient already has a PKB record and is already in your team

If the patient is already part of your team, we will resend the invitation email (if they have not completed registration). If the patient has registered, we will not send any additional email.

For scenario 3 and scenario 4 the email templates sent will tell the patient what privacy access the team has gained access to or requested access to. 

If a team has access to no privacy labels the following text will be in the emails:

If the team has requested some privacy access, the email makes this clear for the patient. For example, if you request general health, mental health and social health, the email will read:

Scenario 3 - Patient record already existed in your organisation and has now been added to your team

The email template differs depending on which privacy labels have been requested for access (see note above scenario 3). 

Scenario 3a: If the patient already has a PKB record and is registered, and that record already existed in your organisation we send the following email:

Scenario 3b: If the patient already has a PKB record but is not registered, and the record already existed in your organisation we send them two emails. The first is an invitation to register (see scenario 1). The second email invites them to your team (see scenario 3b) and includes text to remind them to register: 

Scenario 4 - Patient already has a PKB record but is outside of your organisation or organisation network

The email template differs depending on which privacy labels have been requested for access (see note above scenario 3). 

Scenario 4a: If the patient already has a PKB record and is registered we send them an email to invite them to your team:

If this patient has a carer, the carer will also receive an email notifying them of the patient's invitation, which will allow them to accept the invitation on the patient's behalf. If they do this, the coordinator who performed the bulk upload will receive an email notifying them of this acceptance. 

Scenario 4b: If the patient already has a PKB record and is not registered we send them two emails. The first is an invitation to register (see scenario 1). The second email invites them to your team (see scenario 4a) but includes text to remind them to register:

If the unregistered patient has a carer, the carer will also receive an email notifying them of the patient's invitation, which will allow them to accept the invitation on the patient's behalf. If they do this, the coordinator who performed the bulk upload will receive an email notifying them of this acceptance.


What happens if I upload incorrect patient details?

If you upload a file that contains incorrect information (for example, an older version of a file) you should upload the correct file as soon as possible. The new file will overwrite the previous file you uploaded, and so will update demographic details such as name, address and date of birth.