Skip to main content

Part of Step-by-Step Guide: from registration to successful submission of the Mental Health Services Data Set (MHSDS)

Intermediate Database (IDB) for data submission

A detailed description of how to use the Intermediate Database (IDB) for data submission. 

Current Chapter

Current chapter – Intermediate Database (IDB) for data submission


Summary

A detailed description of how to use the Intermediate Database (IDB) for data submission. 


The Intermediate Database

The data needs to be submitted to NHS Digital in a Microsoft Access Database. NHS Digital has created a template of the database that is referred to as the Intermediate Database (IDB).

The IDB contains all the tables and fields that you can potentially submit to the MHSDS. It cannot be altered in any way before submission, apart from entering data and changing the file name, or it will be rejected by the SDCS Cloud validations procedure.

The data can be transferred from your records into the IDB in several ways, which are discussed below in the data entry section. 


Access database

Microsoft Access is a database management system from Microsoft. It is a member of the Microsoft 365 suite of applications, included in the Professional and higher editions or sold separately. The Intermediate Database should be compatible with all versions of Microsoft Access from Access 2007 onwards. Access is not available if you are using an Apple Mac. You will not be able to submit accdb files if you are using Microsoft Access on an Apple Mac.  It is only compatible through a Windows platform.

An Access database can store many different types of objects, such as tables, queries, forms and reports. The IDB (Intermediate Database) for MHSDS submission contains only table objects. This static set of tables is built around the data submission requirements for MHSDS.

A table is made up of a collection of fields. These fields accept certain types of data. The tables have relationships between them; for example, the tables on referrals and appointments are linked, because each referral can have one or more appointments associated with it.


The IDB (Intermediate Database) Access file

The IDB can be downloaded from the Technology Reference data Update Distribution (TRUD) site.

1. Log in or create an account.

These options can be found in the top right corner of the screen.

Screenshot of the TRUD website homepage

2. Locate the IDB

Use the search bar to find local Mental Health Services Data Set Intermediate Database

Screenshot of the results of a search for ‘mental health’ on the TRUD website

 

3. Subscribe

If this is your first time accessing the MHSDS IDB, click subscribe and accept the licence.

We recommend that you opt to receive email notifications of updates to the file, so that you are always using the most up to date version of the IDB to submit your data.

Screenshot of the Subscribe button in the bottom left corner of an item on TRUD

 

Screenshot of the Open Government Licence for TRUD that you are presented with when you click Subscribe

4. Download the IDB

Once you have subscribed, you will be able to see options for download. Pay attention to the dates on the TRUD website and only submit the version of the IDB that is currently in use. There will only be one version of the IDB in use at any one time.

Screenshot of 'Release 5.0 FINAL' IDB available to download from TRUD

Once you are on the correct release, click Download and a Zip file will open, from which you can open and save the IDB. We recommend saving a blank copy on your computer, and duplicate this each month, so that you have a different copy for each month of data, and a spare blank copy.

Screenshot of the Zip file that opens when you download a version of the IDB

 


Data entry

There are several ways to enter data into the IDB.

Manually

Each of the tables can be populated manually by simply typing into the row. This is commonly used when writing the single required record to the Header table. However, this isn’t a practical solution for other tables.

Copy and paste

Copy and pasting data from such as an Excel sheet directly into an Access table is acceptable. Although individual columns or individual rows can be copied, it is much easier to simply copy all data across as one action. Ensure that the columns are in the correct order and the column headings are exactly the same as those in the IDB. 

Access has built in functionality that attempts to aid the user if Access has been unable to successfully paste data into a table. If records could not be pasted, then Access creates a table called paste_errors. This is useful to see which records could not be pasted and to assist in resolving the data issue. However, this table must be deleted before attempting to make a submission using the SDCS Cloud. As this is a structural change to the IDB, the portal will not recognise the file, and the file will be rejected.


Data Import Wizard

Built into Access is a Data Import Wizard. This is a step-by-step process that allows you to point Access to a file that can be used to populate a certain MHSDS table.

See importing data to the Intermediate Database (IDB) for a demonstration of how to use the data import wizard and resolving common errors to help you during the import process.  

 

Like the paste_errors table. Access can also create a table called import_errors if there has been difficulty in importing data. Again, this must be removed before making the data submission.


Programmatically

Some organisations may opt to save time by writing a piece of computer code (such as using Visual Basic) to automatically populate the Access database directly from their database or source files


Last edited: 22 March 2022 11:34 am