fix no created_at
This commit is contained in:
parent
51c369ebe5
commit
b5939e1cc9
@ -11,7 +11,7 @@ class PatVisitModel extends BaseUtcModel {
|
||||
protected $db;
|
||||
protected $visnum_prefix;
|
||||
|
||||
protected $useTimestamps = false;
|
||||
protected $useTimestamps = true;
|
||||
protected $createdField = 'CreateDate';
|
||||
protected $updatedField = '';
|
||||
|
||||
|
||||
@ -6,11 +6,13 @@ use CodeIgniter\Database\RawSql;
|
||||
class PatientModel extends BaseUtcModel {
|
||||
protected $table = 'patient';
|
||||
protected $primaryKey = 'InternalPID';
|
||||
protected $useTimestamps = true;
|
||||
protected $allowedFields = ['PatientID', 'AlternatePID', 'Prefix', 'NameFirst', 'NameMiddle', 'NameMaiden', 'NameLast', 'Suffix', 'NameAlias', 'Gender', 'Birthdate', 'PlaceOfBirth', 'Street_1', 'Street_2', 'Street_3',
|
||||
'City', 'Province', 'ZIP', 'EmailAddress1', 'EmailAddress2', 'Phone', 'MobilePhone', 'Custodian', 'AccountNumber', 'Country', 'Race', 'MaritalStatus', 'Religion', 'Ethnic', 'Citizenship',
|
||||
'DeathIndicator', 'DeathDateTime', 'LinkTo', 'CreateDate', 'DelDate' ];
|
||||
|
||||
protected $useTimestamps = true;
|
||||
protected $createdField = 'CreateDate';
|
||||
protected $updatedField = '';
|
||||
|
||||
|
||||
public function getPatients($filters = []) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user