OEModule\PASAPI\resources\PatientId::resolveModelId PHP Method

resolveModelId() protected method

Resolve the model by the given Patient Id.
protected resolveModelId ( ) : mixed
return mixed
    protected function resolveModelId()
    {
        $model = $this->getModelForClass('Patient');
        $instance = $model->findByPk($this->Id);
        if ($instance) {
            return $instance;
        }
        $this->patientNotFound();
    }