Package dev.dsf.fhir.service
Class ReferenceCleanerImpl
java.lang.Object
dev.dsf.fhir.service.ReferenceCleanerImpl
- All Implemented Interfaces:
ReferenceCleaner
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
ReferenceCleanerImpl
-
-
Method Details
-
cleanLiteralReferences
public <R extends org.hl7.fhir.r4.model.Resource> R cleanLiteralReferences(R resource) Description copied from interface:ReferenceCleanerRemoves literal references, if a conditional reference is also set- Specified by:
cleanLiteralReferencesin interfaceReferenceCleaner- 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
public <R extends org.hl7.fhir.r4.model.Resource> R cleanReferenceResourcesIfBundle(R resource) Description copied from interface:ReferenceCleanerRemoves embedded resources from references withinBundleentries- Specified by:
cleanReferenceResourcesIfBundlein interfaceReferenceCleaner- 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)
-