-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
107 changed files
with
124,858 additions
and
2,760 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Doctor extends Model | ||
{ | ||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Famhist extends Model | ||
{ | ||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
/// TopicFilter.php | ||
// required for search filter | ||
// This TopicFilter class is responsible for filtering the data based on the topic. We pass the type in the query string, and according to that, we get out the result. | ||
|
||
namespace App\Filters; | ||
|
||
class DateFilter | ||
{ | ||
public function filter($builder, $value) | ||
{ | ||
return $builder->where('testDate','like', $value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
// BlogFilter.php | ||
// required for search filter | ||
|
||
namespace App\Filters; | ||
|
||
use App\Filters\AbstractFilter; | ||
use Illuminate\Database\Eloquent\Builder; | ||
|
||
class ImageFilter extends AbstractFilter | ||
{ | ||
protected $filters = [ | ||
// 'patientName' => PatientFilter::class | ||
'doctorName' => DoctorFilter::class | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
// BlogFilter.php | ||
// required for search filter | ||
|
||
namespace App\Filters; | ||
|
||
use App\Filters\AbstractFilter; | ||
use Illuminate\Database\Eloquent\Builder; | ||
|
||
class LabsumFilter extends AbstractFilter | ||
{ | ||
protected $filters = [ | ||
// 'patientName' => PatientFilter::class | ||
'labDate' => DateFilter::class | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php | ||
|
||
function random_num() { | ||
rand(1000,5000); | ||
} | ||
|
||
function get_package_json() { | ||
$start = false; | ||
$jsondata = file_get_contents("c:\\xampp\\htdocs\\MyHealth-master\\package.json"); | ||
|
||
$jsonIterator = new RecursiveIteratorIterator( | ||
new RecursiveArrayIterator(json_decode($jsondata, TRUE)), | ||
RecursiveIteratorIterator::SELF_FIRST); | ||
|
||
foreach ($jsonIterator as $key => $val) { | ||
if ($key == 'devDependencies') | ||
{ | ||
$start = true; | ||
} | ||
|
||
if($start == true) { | ||
if(is_array($val)) { | ||
echo "packages\n"; | ||
} else { | ||
print "$key => $val\n"; | ||
} | ||
} | ||
} | ||
} | ||
|
||
function get_package_json2($pkg) { | ||
|
||
$jsondata = file_get_contents("c:\\xampp\\htdocs\\MyHealth-master\\package.json");// | ||
//$jsondata = file_get_contents('/home/vagrant/sites/MyHealth-master/package.json'); | ||
|
||
$jsonIterator = new RecursiveIteratorIterator( | ||
new RecursiveArrayIterator(json_decode($jsondata, TRUE)), | ||
RecursiveIteratorIterator::SELF_FIRST); | ||
|
||
foreach ($jsonIterator as $key => $val) { | ||
|
||
if ($key == $pkg) { | ||
if(is_array($val)) { | ||
echo "package\n"; | ||
} else { | ||
print "$key => $val\n"; | ||
} | ||
} | ||
} | ||
} | ||
|
||
function cwd() { | ||
echo getcwd() . "\n"; | ||
} | ||
|
||
function php_ver() | ||
{ | ||
print 'PHP => ' . phpversion(); | ||
} | ||
|
||
function mysql_ver() | ||
{ | ||
$ver = exec("mysql -V"); | ||
print('MySql Version => ' . substr($ver,24,7)); | ||
} | ||
|
||
function mysql_db_ver() | ||
{ | ||
$results = DB::select( DB::raw('SHOW VARIABLES LIKE "version"') ); | ||
$test = json_encode($results); | ||
$test2 = strrchr($test,":"); | ||
// var_dump($test2); | ||
$len = strlen($test2); | ||
$pos = strpos($test2,"}"); | ||
$test3 = substr($test2,1,$pos-1); | ||
echo 'MySql => ' . $test3; | ||
echo ''; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.