|
@@ -93,14 +93,14 @@ discard block |
|
|
block discarded – undo |
|
93
|
93
|
$this->failList['Wrong PatientNumber length'][]=$patientNumber; |
|
94
|
94
|
|
|
95
|
95
|
}else if (!$isNewPatient) { |
|
96
|
|
- if( !empty($patientRegistrationDate) ){ |
|
97
|
|
- $updated = $this->tryUpdateRegistrationDate($patientNumber, $patientRegistrationDate->format('Y-m-d')); |
|
98
|
|
- if($updated){ |
|
|
96
|
+ if (!empty($patientRegistrationDate)) { |
|
|
97
|
+ $updated=$this->tryUpdateRegistrationDate($patientNumber, $patientRegistrationDate->format('Y-m-d')); |
|
|
98
|
+ if ($updated) { |
|
99
|
99
|
$this->sucessList[]=$patientNumber.' - Updated Registration Date'; |
|
100
|
|
- }else{ |
|
|
100
|
+ }else { |
|
101
|
101
|
$this->failList['Patient already in Database'][]=$patientNumber; |
|
102
|
102
|
} |
|
103
|
|
- }else{ |
|
|
103
|
+ }else { |
|
104
|
104
|
$this->failList['Patient already in Database'][]=$patientNumber; |
|
105
|
105
|
} |
|
106
|
106
|
|
|
@@ -118,10 +118,10 @@ discard block |
|
|
block discarded – undo |
|
118
|
118
|
|
|
119
|
119
|
} |
|
120
|
120
|
|
|
121
|
|
- private function tryUpdateRegistrationDate($patientNumber, $patientRegistrationDate){ |
|
122
|
|
- $patientObject = new Patient($patientNumber, $this->linkpdo); |
|
|
121
|
+ private function tryUpdateRegistrationDate($patientNumber, $patientRegistrationDate) { |
|
|
122
|
+ $patientObject=new Patient($patientNumber, $this->linkpdo); |
|
123
|
123
|
//If patient with default registration date, update to the new one |
|
124
|
|
- if($patientObject->patientRegistrationDate == '1900-01-01' && $patientRegistrationDate !== $patientObject->patientRegistrationDate ) { |
|
|
124
|
+ if ($patientObject->patientRegistrationDate == '1900-01-01' && $patientRegistrationDate !== $patientObject->patientRegistrationDate) { |
|
125
|
125
|
$patientObject->editPatientRegistrationDate($patientRegistrationDate); |
|
126
|
126
|
return true; |
|
127
|
127
|
} |
Please login to merge, or discard this patch.