Skip to content

Commit

Permalink
Merge pull request AMPATH#1117 from jecihjoy/HIV-864
Browse files Browse the repository at this point in the history
HIV-864: PrEP program snapshot not showing latest encounter
  • Loading branch information
jecihjoy authored Oct 4, 2021
2 parents a57abe8 + 48b3988 commit e8ebe85
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dao/patient/etl-patient-dao.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@ module.exports = (function () {
]
],
where: ['t1.uuid = ?', patientUuid],
order: [
{
column: 'encounter_datetime',
asc: false
}
],
offset: request.query.startIndex,
limit: 10
};
Expand All @@ -248,6 +254,12 @@ module.exports = (function () {
]
],
where: ['t1.uuid = ?', patientUuid],
order: [
{
column: 'encounter_datetime',
asc: false
}
],
offset: request.query.startIndex,
limit: 10
};
Expand Down

0 comments on commit e8ebe85

Please sign in to comment.