Class ValidationSupportUtils

java.lang.Object
org.hl7.fhir.common.hapi.validation.support.ValidationSupportUtils

public final class ValidationSupportUtils extends Object
  • Method Details

    • extractCodeSystemForCode

      public static String extractCodeSystemForCode(org.hl7.fhir.instance.model.api.IBaseResource theValueSet, String theCode)
      This method extracts a code system that can be (potentially) associated with a code when performing validation against a ValueSet. This method was created for internal purposes. Please use this method with care because it will only cover some use-cases (e.g. standard bindings) while for others it may not return correct results or return null. An incorrect result could be considered if the resource declares a code with a system, and you're calling this method to check a binding against a ValueSet that has nothing to do with that system.
      Parameters:
      theValueSet - the valueSet
      theCode - the code
      Returns:
      the system which can be associated with the code