Class BaseValidator

    • Constructor Summary

      Constructors 
      Constructor Description
      BaseValidator​(org.hl7.fhir.r5.context.IWorkerContext context, org.hl7.fhir.r5.utils.XVerExtensionManager xverManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected org.hl7.fhir.utilities.validation.ValidationMessage addValidationMessage​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, String msg, org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity theSeverity, String id)  
      protected org.hl7.fhir.utilities.validation.ValidationMessage addValidationMessage​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, String msg, org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity theSeverity, org.hl7.fhir.utilities.validation.ValidationMessage.Source theSource, String id)  
      protected void addValidationMessage​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, String msg, String html, org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity theSeverity, String id)  
      boolean checkMsgId​(String id, org.hl7.fhir.utilities.validation.ValidationMessage vm)  
      protected String describeReference​(String reference)  
      protected boolean fail​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg)
      Deprecated.
      protected boolean fail​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String theMessage, Object... theMessageArguments)  
      protected boolean fail​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, String msg)
      Deprecated.
      protected boolean fail​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String msg)
      Deprecated.
      protected boolean fail​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String theMessage, Object... theMessageArguments)
      Deprecated.
      protected IndexedElement getFromBundle​(org.hl7.fhir.r5.elementmodel.Element bundle, String ref, String fullUrl, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, String type, boolean isTransaction)  
      ValidationLevel getLevel()  
      Map<String,​BaseValidator.ValidationControl> getValidationControl()  
      org.hl7.fhir.r5.model.StructureDefinition getXverExt​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, org.hl7.fhir.r5.elementmodel.Element element, String url)  
      org.hl7.fhir.r5.model.StructureDefinition getXverExt​(org.hl7.fhir.r5.model.StructureDefinition profile, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String url)  
      protected boolean grammarWord​(String w)  
      protected boolean hint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg)
      Test a rule and add a ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails
      protected boolean hint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String theMessage, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails
      protected boolean hint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, String theMessage, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails
      protected boolean hint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String theMessage, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails
      boolean isXverUrl​(String url)  
      org.hl7.fhir.r5.model.Resource loadContainedResource​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, org.hl7.fhir.r5.elementmodel.Element resource, String id, Class<? extends org.hl7.fhir.r5.model.Resource> class1)  
      protected org.hl7.fhir.r5.model.Resource loadFoundResource​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, org.hl7.fhir.r5.elementmodel.Element resource, Class<? extends org.hl7.fhir.r5.model.Resource> class1)  
      protected void removeTrackedMessagesForLocation​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, Object location, String path)  
      protected org.hl7.fhir.r5.model.ValueSet resolveBindingReference​(org.hl7.fhir.r5.model.DomainResource ctxt, String reference, String uri)  
      protected org.hl7.fhir.r5.model.Base resolveInBundle​(String url, org.hl7.fhir.r5.elementmodel.Element bnd)  
      protected org.hl7.fhir.r5.elementmodel.Element resolveInBundle​(List<org.hl7.fhir.r5.elementmodel.Element> entries, String ref, String fullUrl, String type, String id)  
      protected boolean rule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String theMessage, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.ERROR validation message if the validation fails
      protected boolean rule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, String theMessage, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.ERROR validation message if the validation fails
      protected boolean rule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String msg)
      Test a rule and add a ValidationMessage.IssueSeverity.ERROR validation message if the validation fails
      protected boolean rule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String theMessage, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.ERROR validation message if the validation fails
      boolean rule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.Source source, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, String msg)  
      protected boolean ruleHtml​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, String msg, String html)
      Test a rule and add a ValidationMessage.IssueSeverity.ERROR validation message if the validation fails
      void setLevel​(ValidationLevel level)  
      protected org.hl7.fhir.utilities.validation.ValidationMessage signpost​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, String theMessage, Object... theMessageArguments)  
      protected boolean slicingHint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, boolean isCritical, String msg, String html, String[] text)
      Test a rule and add a ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails.
      protected String splitByCamelCase​(String s)  
      protected String stripPunctuation​(String s, boolean numbers)  
      protected boolean suppressedwarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      protected boolean suppressedwarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, String msg)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      protected boolean suppressedwarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, String msg, String html)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      protected boolean suppressedwarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, String msg, String html, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      protected boolean suppressedwarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String theMessage, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      protected String systemFromCanonical​(String system)  
      protected boolean txHint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String txLink, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String theMessage, Object... theMessageArguments)  
      protected boolean txRule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String txLink, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String theMessage, Object... theMessageArguments)  
      protected boolean txWarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String txLink, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      protected boolean txWarningForLaterRemoval​(Object location, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String txLink, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails.
      protected String versionFromCanonical​(String system)  
      protected boolean warning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      protected boolean warning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, String msg, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      protected boolean warning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String theMessage, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      protected boolean warningHtml​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, String msg, String html)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      protected boolean warningHtml​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, String msg, String html, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      protected boolean warningOrError​(boolean isError, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg, Object... theMessageArguments)  
      protected boolean warningOrHint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String path, boolean thePass, boolean warning, String msg, Object... theMessageArguments)
      Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
      org.hl7.fhir.r5.model.StructureDefinition xverDefn​(String url)  
      String xverElementId​(String url)  
      org.hl7.fhir.r5.utils.XVerExtensionManager.XVerExtensionStatus xverStatus​(String url)  
      String xverVersion​(String url)  
    • Constructor Detail

      • BaseValidator

        public BaseValidator​(org.hl7.fhir.r5.context.IWorkerContext context,
                             org.hl7.fhir.r5.utils.XVerExtensionManager xverManager)
    • Method Detail

      • fail

        @Deprecated
        protected boolean fail​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               int line,
                               int col,
                               String path,
                               boolean thePass,
                               String msg)
        Deprecated.
        Test a rule and add a ValidationMessage.IssueSeverity.FATAL validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • fail

        protected boolean fail​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               int line,
                               int col,
                               String path,
                               boolean thePass,
                               String theMessage,
                               Object... theMessageArguments)
      • fail

        @Deprecated
        protected boolean fail​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               List<String> pathParts,
                               boolean thePass,
                               String msg)
        Deprecated.
        Test a rule and add a ValidationMessage.IssueSeverity.FATAL validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • fail

        @Deprecated
        protected boolean fail​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               List<String> pathParts,
                               boolean thePass,
                               String theMessage,
                               Object... theMessageArguments)
        Deprecated.
        Test a rule and add a ValidationMessage.IssueSeverity.FATAL validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • fail

        @Deprecated
        protected boolean fail​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               String path,
                               boolean thePass,
                               String msg)
        Deprecated.
        Test a rule and add a ValidationMessage.IssueSeverity.FATAL validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • hint

        protected boolean hint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               int line,
                               int col,
                               String path,
                               boolean thePass,
                               String msg)
        Test a rule and add a ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • slicingHint

        protected boolean slicingHint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                      org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                      int line,
                                      int col,
                                      String path,
                                      boolean thePass,
                                      boolean isCritical,
                                      String msg,
                                      String html,
                                      String[] text)
        Test a rule and add a ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails. And mark it as a slicing hint for later recovery if appropriate
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • hint

        protected boolean hint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               int line,
                               int col,
                               String path,
                               boolean thePass,
                               String theMessage,
                               Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • signpost

        protected org.hl7.fhir.utilities.validation.ValidationMessage signpost​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                                                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                                                               int line,
                                                                               int col,
                                                                               String path,
                                                                               String theMessage,
                                                                               Object... theMessageArguments)
      • txHint

        protected boolean txHint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                 String txLink,
                                 org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                 int line,
                                 int col,
                                 String path,
                                 boolean thePass,
                                 String theMessage,
                                 Object... theMessageArguments)
      • hint

        protected boolean hint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               List<String> pathParts,
                               boolean thePass,
                               String theMessage,
                               Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • hint

        protected boolean hint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               String path,
                               boolean thePass,
                               String theMessage,
                               Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • rule

        protected boolean rule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               int line,
                               int col,
                               String path,
                               boolean thePass,
                               String theMessage,
                               Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.ERROR validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • txRule

        protected boolean txRule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                 String txLink,
                                 org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                 int line,
                                 int col,
                                 String path,
                                 boolean thePass,
                                 String theMessage,
                                 Object... theMessageArguments)
      • rule

        protected boolean rule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               List<String> pathParts,
                               boolean thePass,
                               String msg)
        Test a rule and add a ValidationMessage.IssueSeverity.ERROR validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • rule

        protected boolean rule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               List<String> pathParts,
                               boolean thePass,
                               String theMessage,
                               Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.ERROR validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • rule

        protected boolean rule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                               org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                               String path,
                               boolean thePass,
                               String theMessage,
                               Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.ERROR validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • rule

        public boolean rule​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                            org.hl7.fhir.utilities.validation.ValidationMessage.Source source,
                            org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                            String path,
                            boolean thePass,
                            String msg)
      • ruleHtml

        protected boolean ruleHtml​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                   org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                   String path,
                                   boolean thePass,
                                   String msg,
                                   String html)
        Test a rule and add a ValidationMessage.IssueSeverity.ERROR validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • warning

        protected boolean warning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                  org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                  int line,
                                  int col,
                                  String path,
                                  boolean thePass,
                                  String msg,
                                  Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • addValidationMessage

        protected org.hl7.fhir.utilities.validation.ValidationMessage addValidationMessage​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                                                                           org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                                                                           int line,
                                                                                           int col,
                                                                                           String path,
                                                                                           String msg,
                                                                                           org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity theSeverity,
                                                                                           String id)
      • addValidationMessage

        protected org.hl7.fhir.utilities.validation.ValidationMessage addValidationMessage​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                                                                           org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                                                                           int line,
                                                                                           int col,
                                                                                           String path,
                                                                                           String msg,
                                                                                           org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity theSeverity,
                                                                                           org.hl7.fhir.utilities.validation.ValidationMessage.Source theSource,
                                                                                           String id)
      • checkMsgId

        public boolean checkMsgId​(String id,
                                  org.hl7.fhir.utilities.validation.ValidationMessage vm)
      • txWarning

        protected boolean txWarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                    String txLink,
                                    org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                    int line,
                                    int col,
                                    String path,
                                    boolean thePass,
                                    String msg,
                                    Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • txWarningForLaterRemoval

        protected boolean txWarningForLaterRemoval​(Object location,
                                                   List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                                   String txLink,
                                                   org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                                   int line,
                                                   int col,
                                                   String path,
                                                   boolean thePass,
                                                   String msg,
                                                   Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails. Also, keep track of it later in case we want to remove it if we find a required binding for this element later
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • warningOrError

        protected boolean warningOrError​(boolean isError,
                                         List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                         org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                         int line,
                                         int col,
                                         String path,
                                         boolean thePass,
                                         String msg,
                                         Object... theMessageArguments)
      • warning

        protected boolean warning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                  org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                  List<String> pathParts,
                                  boolean thePass,
                                  String theMessage,
                                  Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • warning

        protected boolean warning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                  org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                  String path,
                                  boolean thePass,
                                  String msg,
                                  Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • warningOrHint

        protected boolean warningOrHint​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                        org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                        String path,
                                        boolean thePass,
                                        boolean warning,
                                        String msg,
                                        Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • warningHtml

        protected boolean warningHtml​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                      org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                      String path,
                                      boolean thePass,
                                      String msg,
                                      String html)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • warningHtml

        protected boolean warningHtml​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                      org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                      String path,
                                      boolean thePass,
                                      String msg,
                                      String html,
                                      Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • suppressedwarning

        protected boolean suppressedwarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                            org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                            int line,
                                            int col,
                                            String path,
                                            boolean thePass,
                                            String msg,
                                            Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • suppressedwarning

        protected boolean suppressedwarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                            org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                            List<String> pathParts,
                                            boolean thePass,
                                            String theMessage,
                                            Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • suppressedwarning

        protected boolean suppressedwarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                            org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                            String path,
                                            boolean thePass,
                                            String msg)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • suppressedwarning

        protected boolean suppressedwarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                            org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                            String path,
                                            boolean thePass,
                                            String msg,
                                            String html)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • addValidationMessage

        protected void addValidationMessage​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                            org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                            String path,
                                            String msg,
                                            String html,
                                            org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity theSeverity,
                                            String id)
      • suppressedwarning

        protected boolean suppressedwarning​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                            org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type,
                                            String path,
                                            boolean thePass,
                                            String msg,
                                            String html,
                                            Object... theMessageArguments)
        Test a rule and add a ValidationMessage.IssueSeverity.WARNING validation message if the validation fails
        Parameters:
        thePass - Set this parameter to false if the validation does not pass
        Returns:
        Returns thePass (in other words, returns true if the rule did not fail validation)
      • resolveInBundle

        protected org.hl7.fhir.r5.model.Base resolveInBundle​(String url,
                                                             org.hl7.fhir.r5.elementmodel.Element bnd)
      • xverStatus

        public org.hl7.fhir.r5.utils.XVerExtensionManager.XVerExtensionStatus xverStatus​(String url)
      • xverDefn

        public org.hl7.fhir.r5.model.StructureDefinition xverDefn​(String url)
      • getXverExt

        public org.hl7.fhir.r5.model.StructureDefinition getXverExt​(org.hl7.fhir.r5.model.StructureDefinition profile,
                                                                    List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                                                    String url)
      • getXverExt

        public org.hl7.fhir.r5.model.StructureDefinition getXverExt​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                                                    String path,
                                                                    org.hl7.fhir.r5.elementmodel.Element element,
                                                                    String url)
      • loadContainedResource

        public org.hl7.fhir.r5.model.Resource loadContainedResource​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                                                    String path,
                                                                    org.hl7.fhir.r5.elementmodel.Element resource,
                                                                    String id,
                                                                    Class<? extends org.hl7.fhir.r5.model.Resource> class1)
                                                             throws org.hl7.fhir.exceptions.FHIRException
        Specified by:
        loadContainedResource in interface org.hl7.fhir.r5.utils.validation.ValidationContextCarrier.IValidationContextResourceLoader
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • loadFoundResource

        protected org.hl7.fhir.r5.model.Resource loadFoundResource​(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors,
                                                                   String path,
                                                                   org.hl7.fhir.r5.elementmodel.Element resource,
                                                                   Class<? extends org.hl7.fhir.r5.model.Resource> class1)
                                                            throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException