public static function fromResource($url, Resource $resource)
{
return new self(array('title' => $resource::getFhirType(), 'id' => $url, 'self' => $url . "/_history/{$resource->getVersionId()}", 'updated' => date(DATE_ATOM, $resource->getLastModified()), 'profile' => $resource->getOeFhirProfile(), 'resource' => $resource));
}