RADAR: Information Landing Page

This page is a work in progress, it is attempting to be a landing page for any information on all things RADAR until the information has a more suitable home. 

Consents

RADAR contains patient data and due to the UK's current legislation the consent of each patient has to be obtained. This is stored in the patient_consents table in the RADAR database associated with the instance of the server and client code.

In the client code  in `src/app/patients/patient-detail.controller.js` the PatientDetailController contains the following code:

Consents
var PATIENT_CONSENT_STATE = 'patient.consents';
  $scope.$on('$stateChangeSuccess', function() {
    if (!patient.consented) {
      $state.go(PATIENT_CONSENT_STATE);
    }
  });

 This basically means that if the patient has not consented it will navigate to the consents component and you will not be able to see any other patient components until the patient_consents table has been updated with a record for that specific patient(you do not need to update the table in the database manually the consent component can do it when you enter the details for the consent in the various boxes.