Skip to content

Commit

Permalink
Fixed procedure billing for In-patient
Browse files Browse the repository at this point in the history
  • Loading branch information
mos-adebayo committed Aug 1, 2017
1 parent bd276b5 commit 5e25b82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions _core/controller/TreatmentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ public function getEncounterHistory($admissionId){
}*/

public function logEncounter($doctorId, $patientId, $admissionId, $treatmentId, $encounterId, $consultation, $symptoms, $diagnosis, $comments, $prescriptions, $glass_prescription){
if($consultation != null){
$this->treatmentModel->addProcedure(
array(
'treatment_id' => $treatmentId,
'description' => $consultation
)
);
}
return $this->treatmentModel->logEncounter($doctorId, $patientId, $admissionId, $treatmentId, $encounterId, $consultation, $symptoms, $diagnosis, $comments, $prescriptions, $glass_prescription);
}

Expand Down
2 changes: 1 addition & 1 deletion js/treatment/in-patient.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Treatment = {

// Pre-populate form
if(typeof data.consultation != "undefined"){
document.addTreatmentForm.consultation.value = data.consultation;
// document.addTreatmentForm.consultation.value = data.consultation;
document.addTreatmentForm.symptoms.value = data.symptoms;
document.addTreatmentForm.diagnosis.value = data.diagnosis;
document.addTreatmentForm.comment.value = data.comments;
Expand Down

0 comments on commit 5e25b82

Please sign in to comment.