Package uk.nhs.interoperability.payloads.exceptions

Examples of uk.nhs.interoperability.payloads.exceptions.MissingMandatoryFieldException.addMissingField()


      }
      if (!laid) {
        missingFields.addMissingField("EpaccsRecordUpdateAuthorSDSID", "If specifying the last updating EPaCCS author, the last updating author's SDS ID must be provided");
      }
      if (!laname) {
        missingFields.addMissingField("EpaccsRecordUpdateAuthorName", "If specifying the last updating EPaCCS author, the last updating author's name must be provided");
      }
      if (!laorgid) {
        missingFields.addMissingField("EpaccsRecordUpdateAuthorOrganisationODSID", "If specifying the last updating EPaCCS author, the last updating author's organisation ODS ID must be provided");
      }
      if (!laorg) {
View Full Code Here


      }
      if (!laname) {
        missingFields.addMissingField("EpaccsRecordUpdateAuthorName", "If specifying the last updating EPaCCS author, the last updating author's name must be provided");
      }
      if (!laorgid) {
        missingFields.addMissingField("EpaccsRecordUpdateAuthorOrganisationODSID", "If specifying the last updating EPaCCS author, the last updating author's organisation ODS ID must be provided");
      }
      if (!laorg) {
        missingFields.addMissingField("EpaccsRecordUpdateAuthorOrganisationName", "If specifying the last updating EPaCCS author, the last updating author's organisation name must be provided");
      }
    }
View Full Code Here

      }
      if (!laorgid) {
        missingFields.addMissingField("EpaccsRecordUpdateAuthorOrganisationODSID", "If specifying the last updating EPaCCS author, the last updating author's organisation ODS ID must be provided");
      }
      if (!laorg) {
        missingFields.addMissingField("EpaccsRecordUpdateAuthorOrganisationName", "If specifying the last updating EPaCCS author, the last updating author's organisation name must be provided");
      }
    }

    // Related persons - call this first so we can collate any other missing mandatory fields
    try {
View Full Code Here

    // Check any formal carers provided at least have names
     List<EndOfLifeCareDocumentFormalCarer> carerlist = isbFields.getFormalCarers();
     if (carerlist != null) {
       for (EndOfLifeCareDocumentFormalCarer carerentry : carerlist) {
         if (carerentry.getName() == null) {
           missingFields.addMissingField("FormalCarers", "If specifying a formal carer, the name of the carer must be provided");
         }
       }
     }
   
    if (missingFields.hasEntries()) {
View Full Code Here

   
    MissingMandatoryFieldException missingFields = new MissingMandatoryFieldException();
    // Null checks for mandatory fields
    // If we have a prognosis awareness for the main informal carer, we need to know who the main informal carer is (name)
    if (isbFields.getMainInformalCarerName() == null) {
      missingFields.addMissingField("MainInformalCarerName", "In order to indicate the main informal carer's awareness of the prognosis, you must also include the name of the main informal carer");
    }
    // We also need to know when the prognosis awareness was recorded
    if (isbFields.getPrognosisAwarenessRecordedDate() == null) {
      missingFields.addMissingField("PrognosisAwarenessRecordedDate", "In order to indicate the main informal carer's awareness of the prognosis, you must also include the date this awareness was recorded");
    }
View Full Code Here

    if (isbFields.getMainInformalCarerName() == null) {
      missingFields.addMissingField("MainInformalCarerName", "In order to indicate the main informal carer's awareness of the prognosis, you must also include the name of the main informal carer");
    }
    // We also need to know when the prognosis awareness was recorded
    if (isbFields.getPrognosisAwarenessRecordedDate() == null) {
      missingFields.addMissingField("PrognosisAwarenessRecordedDate", "In order to indicate the main informal carer's awareness of the prognosis, you must also include the date this awareness was recorded");
    }
   
    if (missingFields.hasEntries()) {
      throw missingFields;
    }
View Full Code Here

   
    MissingMandatoryFieldException missingFields = new MissingMandatoryFieldException();
    // Null checks for mandatory fields
    // If we have an ADRT, we need an effective time
    if (isbFields.getADRTRecordedDate() == null) {
      missingFields.addMissingField("ADRTRecordedDate", "If an ADRT is provided, the date this was recorded is also required");
    }
    // We also need to know where the ADRT documents are held
    if (isbFields.getADRTDocumentLocation() == null) {
      missingFields.addMissingField("ADRTDocumentLocation", "If an ADRT is provided, the location of the ADRT documentation is also required");
    }
View Full Code Here

    if (isbFields.getADRTRecordedDate() == null) {
      missingFields.addMissingField("ADRTRecordedDate", "If an ADRT is provided, the date this was recorded is also required");
    }
    // We also need to know where the ADRT documents are held
    if (isbFields.getADRTDocumentLocation() == null) {
      missingFields.addMissingField("ADRTDocumentLocation", "If an ADRT is provided, the location of the ADRT documentation is also required");
    }
   
    if (missingFields.hasEntries()) {
      throw missingFields;
    }
View Full Code Here

    }
    MissingMandatoryFieldException missingFields = new MissingMandatoryFieldException();
    // Null checks for mandatory fields
    // If we have an anticipatory medicine box, we need a time issued
    if (isbFields.getAnticipatoryMedicinesDateIssued() == null) {
      missingFields.addMissingField("AnticipatoryMedicinesDateIssued", "If an anticipatory medicine box has been issued, the date it was issued is required");
    }
    // We also need to know where the ADRT documents are held
    if (isbFields.getAnticipatoryMedicinesLocation() == null) {
      missingFields.addMissingField("AnticipatoryMedicinesLocation", "If an anticipatory medicine box has been issued, the location of the box is required");
    }
View Full Code Here

    if (isbFields.getAnticipatoryMedicinesDateIssued() == null) {
      missingFields.addMissingField("AnticipatoryMedicinesDateIssued", "If an anticipatory medicine box has been issued, the date it was issued is required");
    }
    // We also need to know where the ADRT documents are held
    if (isbFields.getAnticipatoryMedicinesLocation() == null) {
      missingFields.addMissingField("AnticipatoryMedicinesLocation", "If an anticipatory medicine box has been issued, the location of the box is required");
    }
    if (missingFields.hasEntries()) {
      throw missingFields;
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.