Skip to content

Commit

Permalink
fix(patients): typo in date registry
Browse files Browse the repository at this point in the history
This commit fixes a typo in the date registry which breaks the date
from limit.
  • Loading branch information
jniles committed Dec 9, 2017
1 parent 3e9c214 commit 4096aed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/controllers/medical/patients/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function lookupPatient(patientUuid) {
* @method updatePatientDebCred
*
* @description
* This function is used to update the text value of the creditor
* This function is used to update the text value of the creditor
* and debitor tables in case the patient's name was changed
*
* @param {String} patientUuid - the patient's unique id hex string
Expand All @@ -271,7 +271,7 @@ function updatePatientDebCred(patientUuid) {
`;

return db.exec(sql, buid)
.then((row) => {
.then((row) => {
const debtorUuid = db.bid(row[0].debtorUuid);
const creditorUuid = db.bid(row[0].creditorUuid);

Expand Down Expand Up @@ -434,7 +434,7 @@ function find(options) {

// default registration date
filters.period('period', 'registration_date');
filters.dateFrom('custion_period_start', 'registration_date');
filters.dateFrom('custom_period_start', 'registration_date');
filters.dateTo('custom_period_end', 'registration_date');

const patientGroupStatement =
Expand Down

0 comments on commit 4096aed

Please sign in to comment.