Package dev.dsf.fhir.service
Interface ReferenceCleaner
- All Known Implementing Classes:
ReferenceCleanerImpl
public interface ReferenceCleaner
-
Method Summary
Modifier and TypeMethodDescription<R extends org.hl7.fhir.r4.model.Resource>
RcleanLiteralReferences(R resource) Removes literal references, if a conditional reference is also set<R extends org.hl7.fhir.r4.model.Resource>
RcleanReferenceResourcesIfBundle(R resource) Removes embedded resources from references withinBundleentries
-
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 benull- 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 withinBundleentries- Type Parameters:
R- the resource type- Parameters:
resource- the resource to clean, may benull- Returns:
- null if given resource is null, cleaned up resource (same instance)
-