Services\FhirBundleEntry::fromResource PHP Method

fromResource() public static method

public static fromResource ( $url, Resource $resource ) : FhirBundleEntry
$resource Resource
return FhirBundleEntry
    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));
    }
FhirBundleEntry