mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-03-09 14:33:32 +00:00
remove problematic method
This commit is contained in:
parent
661ca02a6a
commit
4ab0f7076a
@ -21,7 +21,6 @@ package ca.uhn.fhir.rest.api.server.storage;
|
||||
*/
|
||||
|
||||
import ca.uhn.fhir.util.ObjectUtil;
|
||||
import org.hl7.fhir.instance.model.api.IAnyResource;
|
||||
import org.hl7.fhir.instance.model.api.IIdType;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@ -127,12 +126,4 @@ public class ResourcePersistentId {
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
public static ResourcePersistentId fromResource(IAnyResource theResource) {
|
||||
IIdType id = theResource.getIdElement();
|
||||
ResourcePersistentId retval = new ResourcePersistentId(theResource.getUserData(RESOURCE_PID));
|
||||
retval.setAssociatedResourceId(id);
|
||||
retval.setVersion(id.getVersionIdPartAsLong());
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user