-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Kavitha | BAH-3334 | add print feature for forms display control (#783) * Kavitha | BAH-3334 | import formPrintService script for all modules * Kavitha | BAH-3334 | fix showing other forms data if there is no data * Kavitha | BAH-3334 | fix failed test cases * Kavitha | BAH-2333 | add expects in formPrintService tests * add check for non coded diagnosis and tests * Kavitha | fix edit form not showing data (#786) * Kavitha | BAH-3334 | add form name null check for print (#785) * Kavitha | BAH-3334 | add name null check for print print * Kavitha | BAH-3334 | refactored iteration on obs * resolve merge conflicts * Parvathy | BAH-3334 | Refactor. Remove Duplicate Code * Parvathy | BAH-3334 | Fix. Print Functionality of Old Forms2 Forms --------- Co-authored-by: parvathy00 <[email protected]>
- Loading branch information
1 parent
a91ff7e
commit 490311f
Showing
22 changed files
with
637 additions
and
15 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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<link rel="stylesheet" href="../styles/clinicalPrint.css" media="print"/> | ||
<div class="print-wrapper"> | ||
<div class="print-logo-plus-text"> | ||
<img class="print-logo" width="125px" ng-if="printConfig.logo" ng-src="{{printConfig.logo}}" alt="logo"/> | ||
<h1 class="print-logo-text">{{printConfig.title}}</h1> | ||
<div class="print-right"></div> | ||
</div> | ||
<div class="clinic-info"> | ||
<span> {{printConfig.header}}</span> | ||
</div> | ||
<ng-include src="patientInfoPrint.html"></ng-include> | ||
<div class="sections-group"> | ||
<div class="section"> | ||
<section class="block observation dashboard-section" id="observationSection"> | ||
<ul bm-gallery access-impression="true"> | ||
<section class="block " ng-class="::{'hidden-print': noObsMessage}"> | ||
<h2 class="tableMargin" | ||
ng-class="::{'section-title': !isFulfilmentDisplayControl, 'form-field': isFulfilmentDisplayControl}">{{::title | | ||
translate}}</h2> | ||
<div class="concept-set-container-view"> | ||
<section class="block hierarchy"> | ||
<ul class="form-field" ng-if="bahmniObservations.length > 0"> | ||
<li class="tableMargin" ng-repeat="obsGroup in ::bahmniObservations"> | ||
<span class="tree-list-item row-click toggle-container" toggle="obsGroup.isOpen"> | ||
<span class="obs-date" ng-if="obsGroup.value.length > 0"> | ||
{{::obsGroup.date | bahmniDateTime}} | ||
</span> | ||
</span> | ||
<ul class="print-observations visible-print"> | ||
<li class="tableBorder" ng-repeat="observation in ::obsGroup.value track by $index"> | ||
<ul> | ||
<show-observation show-details-button="::config.showDetailsButton" patient="::patient" | ||
observation="::observation" | ||
level="2"> | ||
</show-observation> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<div ng-if="::noObsMessage"> | ||
<div class="placeholder-text" ng-if="::!message"><p translate="DISPLAY_CONTROL_ERROR_MESSAGE_KEY" | ||
translate-values="::{displayControl : '{{title | translate}}'}"></p> | ||
</div> | ||
<div class="placeholder-text" ng-if="::message">{{::message|translate}}</div> | ||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
</ul> | ||
</section> | ||
</div> | ||
</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
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
1 change: 1 addition & 0 deletions
1
ui/app/common/displaycontrols/forms/views/showObservationFormData.html
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,5 +1,6 @@ | ||
<div class="template-container"> | ||
<section class="block dashboard-section"> | ||
<button class="confirm form-print-button" ng-if="ngDialogData.showPrintOption" ng-click="printForm()">Print</button> | ||
<bahmni-observation patient="ngDialogData.patient" config="ngDialogData.config" is-on-dashboard="false" section-title="ngDialogData.section.title"></bahmni-observation> | ||
</section> | ||
</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
Oops, something went wrong.