Skip to content

Commit

Permalink
Samyuktha / Keerthi | MOBN-2407 | Refactor. Print styling of Patient … (
Browse files Browse the repository at this point in the history
#76)

* Samyuktha / Keerthi | MOBN-2407 | Refactor. Print styling of Patient Summary & Validation committee.

* Samyuktha | MOBN-2407 | Fix. Pading of print doc for Patient Summary & Validation committee.

* Samyuktha | MOBN-2407 | Fix. Patient name on the Patient summary print.

* Samyuktha | MOBN-2407 | Fix. Config usage to display correct patient name on the Patient summary print.

* Samyuktha | MOBN-2407 | Fix. Config of patient context.
  • Loading branch information
saisamyukthag authored Jun 27, 2024
1 parent 18f3946 commit 2de304b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ angular.module('bahmni.clinical')
}

$scope.showNameAndImage = $scope.showNameAndImage !== undefined ? $scope.showNameAndImage : true;
$scope.mobileView = patientContextConfig.mobileView !== undefined ? patientContextConfig.mobileView : false;
if ($scope.showNameAndImage) {
$scope.patientContext.image = Bahmni.Common.Constants.patientImageUrlByPatientUuid + $scope.patientContext.uuid;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{{::value.description |translate}}: {{value.value}}
</li>
</ul>
<div class="patient-info hidden-tablet-above">
<div ng-if="mobileView" class="patient-info hidden-tablet-above">
<button type="button" class="prev-page" history-back ng-if="!allowNavigation">
<i class="fa fa-arrow-left"></i>
</button>
Expand All @@ -31,6 +31,6 @@
</button>
<span class="name">{{patientContext.givenName}} {{patientContext.familyName}}</span>
<span class="gender-age">({{patientContext.birthdate | birthDateToYears}}, {{patientContext.gender.slice(0,1)}})</span>
</div>
</div>
</div>
</div>
</div>
7 changes: 4 additions & 3 deletions ui/app/styles/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1019,13 +1019,13 @@ h3 {
}
}
.value-text-only, .text-only{
width: calc(100% - 190px) !important;
width: auto !important;
padding: 3px 0px 0px !important;
display:inline-block;
}
.testUnderPanel{
//width: 65% !important;
width: 180px !important;
width: 484px !important;
padding: 3px 0px 0px !important;
font-weight: normal !important;
display: inline-block;
Expand Down Expand Up @@ -1139,6 +1139,7 @@ h3 {
}

@media print {
padding: 3px 0px 0px !important;
body {
font-size: 20px;
}
Expand All @@ -1152,4 +1153,4 @@ h3 {
margin-bottom: 30px;
}
}
}
}

0 comments on commit 2de304b

Please sign in to comment.