Test PAS Patients JSON File

The SDK includes a JSON file containing a small number of test records. These records are designed to be used with the Test PAS and can support various use cases, including sending documents for import into the patient record and selecting widgets while viewing a patient record.

The JSON file contains an array of subjects (patients) where each subject has the following data items:

Field Data Type Is Mandatory? Description
nationalId string Y The unique identifier of the subject, e.g. their NHS Number
nationalIdType string Y Should always be "NHS Number"
title string N The subject's title/prefix
firstName string N The subject's first name
lastName string N The subject's last name / family name
dateOfBirth string Y The subject's date of birth in format yyyy-MM-dd
addressLines array of string N An array of address line strings
postalCode string N The subject's postal code for their address
gender string N The subject's gender
email string N The subject's email address
phone string N The subject's telephone number

Many of the data items do not undergo strict validation to provide flexibility for replicating different test scenarios locally using the Test PAS. This leniency allows you to adapt and test various scenarios as needed with ease.

A sample of JSON file content is as follows:


[
  {
    "nationalId": "1122334455",
    "nationalIdType": "NHS Number",
    "title": "Mr",
    "firstName": "Test",
    "lastName": "Tester",
    "dateOfBirth": "1970-01-01",
    "addressLines": [
      "1 My Place",
      "Test Street"
    ],
    "postalCode": "BA1 1AB",
    "gender": "Male",
    "email": "[email protected]",
    "phone": "01249 751 000"
  },
  {
    "nationalId": "6677889900",
    "nationalIdType": "NHS Number",
    "title": "Mrs",
    "firstName": "Test2",
    "lastName": "Tester2",
    "dateOfBirth": "1970-05-15",
    "addressLines": [
      "1 My Place",
      "Test Street"
    ],
    "postalCode": "BA1 1AB",
    "gender": "Female",
    "email": "[email protected]",
    "phone": "01249 751 000"
  },
]

See Also