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