-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(patient registrations): implement pdf report
This commit refactors the server side to complete the PDF report implementation. Some notable improvements: 1. Automatically template in the filters. This should be improved with varied colorschemes (IMA colors, for example). 2. Adds `timestamp` helper to handlebars for more detailed time templates. 3. Adds initial bare-bones clients structure for PDF printing modal.
- Loading branch information
Showing
14 changed files
with
219 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ angular.module('bhima.components') | |
bindings: { | ||
filters: '=' | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
client/src/js/services/receipts/modal/receiptModalController.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<div ng-if="!$ctrl.filters"> | ||
<span style="color: rgb(150, 150, 150);" class="glyphicon glyphicon-filter"></span> {{ "FORM.INFOS.NO_FILTERS_APPLIED" | translate }} | ||
<div ng-hide="$ctrl.filters"> | ||
<span class="text-muted fa fa-filter"></span> {{ "FORM.INFOS.NO_FILTERS_APPLIED" | translate }} | ||
</div> | ||
|
||
<div ng-if="$ctrl.filters"> | ||
<span style="color: rgb(7, 150, 35);" class="glyphicon glyphicon-filter"></span> | ||
<span class="text-primary fa fa-filter"></span> | ||
<span ng-repeat="f in $ctrl.filters"> | ||
<span class="label label-primary"> | ||
({{ f.title | translate }}) | ||
<strong ng-if="!f.reference2"> {{ f.reference1 }} </strong> | ||
<strong ng-if="f.reference2"> {{ f.reference1 | date }} - {{ f.reference2 | date }} </strong> | ||
</span> | ||
<span class="label label-primary"> | ||
({{ f.title | translate }}) | ||
<strong ng-hide="f.reference2"> {{ f.reference1 }} </strong> | ||
<strong ng-show="f.reference2"> {{ f.reference1 | date }} - {{ f.reference2 | date }} </strong> | ||
</span> | ||
| ||
</span> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* @overview medical/reports | ||
* | ||
* @description | ||
* This module simply exposes the build() methods of the receipts and reports | ||
* in the medical module. | ||
*/ | ||
|
||
|
||
// expose to the express router | ||
module.exports = { | ||
patientReceipt: require('./patient.receipt').build, | ||
patientRegistrations : require('./registrations') | ||
}; |
Oops, something went wrong.