getPatient

@param $id $id
int

@return Patient Patient
434833
public static function getPatient($id, $type = '') {
		$entityManager = ( object ) DoctrineBootstrap::getEntityManager ();
		$type = 'Hospitalplugin\Entities\Patient' . $type;
		$patient = $entityManager->getRepository ( $type )->findOneBy ( array (
				'id' => $id 
		) );
		return Utils::cast ( $type, ( object ) $patient, 0 );
	}
1130953
public function getClient($id = null)
    {
        if ($id === null) {
            $id = array_keys($this->getClients())[0];
        }

        return parent::getClient($id);
    }
1296140
public function get($id)
    {
        $request = new Request('customizations');
        $request->setIdParam(urlencode($id));

        $response = $this->client->get($request);

        $this->assertSuccessResponse($response);

        return $response->getData();
    }
979965
public function get(int $id, CustomerRequest $customerRequest = null): Customer
    {
        $customerResource = $this->restClient->getResource(
            Customer::class,
            sprintf('/v2/customers/%d', $id)
        );

        return $this->hydrateCustomerWithSubEntities(
            $customerResource,
            $customerRequest ?: new CustomerRequest()
        );
    }
731269
public function get(int $id): Agenda
    {
        return $this->getClient()->call(null, $id, self::ENDPOINT, Agenda::class, false, 'GET');
    }
455047
public function get($id)
    {
        $entry = $this->readFile($id);
        if ($entry != false && $this->isTtlMode()) {
            $entry = (is_null($entry[static::ENTRY_EXPIRATION]) || $entry[static::ENTRY_EXPIRATION] > $this->getTime())
                ? $entry[static::ENTRY_VALUE]
                : false
            ;
        }
        return $entry;
    }
405555
protected function getUserByRecaller($id)
	{
		$this->viaRemember = ! is_null($user = $this->provider->retrieveByID($id));

		return $user;
	}
1276395
public function get($id)
    {
        if (!$this->has($id)) {
            return;
        }

        return $this->container->findDefinition($id)->getClass();
    }
1124850
public function getById($id)
    {
        $list = $this->getByCriteria($id, $this->getUniqueId());
        return reset($list);
    }
283645
public function getAction($id)
    {
        $manager = $this->getTaskManager();

        return $this->handleView($this->view($manager->findById($id)));
    }
274990
public function get($id) {
        return $this->request("GET", self::URL_ORDERS . $id . "/", $api_key = $this->culqi->api_key);
    }
429381
public function getPersonById($id)
    {
        $id = (int) $id;
        $id = max(0, $id);

        return $this->request('people/'.$id);
    }
266310
public function fetchById($id) {
        $select = $this->select()->where('id = ?', $id);
        return $this->fetchRow($select);
    }
785737
public function getProvider($id)
	{
		$this->ensureProviders();
		if (isset($this->providers[$id])) {
			return $this->providers[$id];
		}
		return false;
	}
1107000
public function getById($id)
    {
        if ($this->id == $id) return $this;

        return $this->children->getById($id);
    }
462136
protected function getUser($id)
    {
        $user = $this->userManager->findUserBy(['id' => $id]);

        if (null === $user) {
            throw new NotFoundHttpException(sprintf('User (%d) not found', $id));
        }

        return $user;
    }
108846
public function load($id)
    {
        $procedure = $this->procedureFactory->createProcedure();
        $procedure->setTemplate(
            $this->loadTemplate($id)
        );

        return $procedure;
    }