Update Patient Show
This commit is contained in:
parent
d6ecb88ff8
commit
8dcdc9b24b
@ -62,6 +62,11 @@ class Patient extends Controller {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
$patient = $this->db->table('patient')
|
$patient = $this->db->table('patient')
|
||||||
|
->select('patient.*, country.Country as CountryName, race.Race as RaceName, religion.Religion as ReligionName, ethnic.Ethnic as EthnicName')
|
||||||
|
->join('country', 'country.IntCountryID = patient.IntCountryID', 'left')
|
||||||
|
->join('race', 'race.RaceID = patient.RaceID', 'left')
|
||||||
|
->join('religion', 'religion.ReligionID = patient.ReligionID', 'left')
|
||||||
|
->join('ethnic', 'ethnic.EthnicID = patient.EthnicID', 'left')
|
||||||
->where('InternalPID', (int) $InternalPID)
|
->where('InternalPID', (int) $InternalPID)
|
||||||
->get()
|
->get()
|
||||||
->getRowArray();
|
->getRowArray();
|
||||||
@ -401,7 +406,7 @@ class Patient extends Controller {
|
|||||||
$formattedAge .= "{$diff->m} Bulan ";
|
$formattedAge .= "{$diff->m} Bulan ";
|
||||||
}
|
}
|
||||||
if ($diff->d > 0){
|
if ($diff->d > 0){
|
||||||
$formattedAge .= "{$diff->d} Hari ";
|
$formattedAge .= "{$diff->d} Hari";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $formattedAge;
|
return $formattedAge;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user