Interface ReferenceCleaner

All Known Implementing Classes:
ReferenceCleanerImpl

public interface ReferenceCleaner
  • Method Summary

    Modifier and Type
    Method
    Description
    <R extends org.hl7.fhir.r4.model.Resource>
    R
    Removes literal references, if a conditional reference is also set
    <R extends org.hl7.fhir.r4.model.Resource>
    R
    Removes embedded resources from references within Bundle entries
  • Method Details

    • cleanLiteralReferences

      <R extends org.hl7.fhir.r4.model.Resource> R cleanLiteralReferences(R resource)
      Removes literal references, if a conditional reference is also set
      Type Parameters:
      R - the resource type
      Parameters:
      resource - the resource to clean, may be null
      Returns:
      null if given resource is null, cleaned up resource (same instance)
    • cleanReferenceResourcesIfBundle

      <R extends org.hl7.fhir.r4.model.Resource> R cleanReferenceResourcesIfBundle(R resource)
      Removes embedded resources from references within Bundle entries
      Type Parameters:
      R - the resource type
      Parameters:
      resource - the resource to clean, may be null
      Returns:
      null if given resource is null, cleaned up resource (same instance)