001package org.hl7.fhir.r4.utils.validation.constants; 002 003public enum ReferenceValidationPolicy { 004 IGNORE, CHECK_TYPE_IF_EXISTS, CHECK_EXISTS, CHECK_EXISTS_AND_TYPE, CHECK_VALID; 005 006 public boolean checkExists() { 007 return this == CHECK_EXISTS_AND_TYPE || this == CHECK_EXISTS || this == CHECK_VALID; 008 } 009 010 public boolean checkType() { 011 return this == CHECK_TYPE_IF_EXISTS || this == CHECK_EXISTS_AND_TYPE || this == CHECK_VALID; 012 } 013 014 public boolean checkValid() { 015 return this == CHECK_VALID; 016 } 017}