Class ProfileExtractor

java.lang.Object
de.gematik.bbriccs.fhir.validation.ProfileExtractor

public class ProfileExtractor extends Object
  • Constructor Details

    • ProfileExtractor

      public ProfileExtractor()
  • Method Details

    • extractProfile

      public Optional<String> extractProfile(String content)
    • isUnprofiledSearchSet

      public boolean isUnprofiledSearchSet(String content)
      For type hinting, it is required to know if the given resource is a searchset bundle without any explicit profile. In such cases, a resource might contain entries from different profile sets and thus needs to be validated differently
      Parameters:
      content - to be encoded
      Returns:
      true if the content is a searchset without an explicit profile and false otherwise