60 lines
4.0 KiB
HTML
60 lines
4.0 KiB
HTML
<div>
|
|
<div class="dashboard-patientInformation-section" id="patient_information" ng-if="::isDirectiveReady">
|
|
<section bindonce="patient" class="block patientInformation dashboard-section" ng-class="::{'more': patientSummary.show}">
|
|
<table class="patient dashboard-table">
|
|
<tbody>
|
|
<tr class="patient-info">
|
|
<td colspan="2">
|
|
<span class="patient-img">
|
|
<img class="patient-image" ng-src="{{::patient.image}}" fallback-src="../images/blank-user.gif">
|
|
</span>
|
|
<div class="patient-value">
|
|
<span class="patient-name">
|
|
{{::patient.name | titleCase}} ({{::patient.identifier}})</span> -
|
|
<span class="patient-gender-age" ng-bind-html="::patientAttributeTypes"></span>
|
|
<span class="patient-estimated-text" ng-if="::patient.birthdateEstimated"> (est.)</span>
|
|
<span class="patient-birth-time" ng-show="::patient.birthtime">
|
|
<span>{{ 'TIME_OF_BIRTH_LABEL'|translate }}</span>
|
|
<span ng-bind-html="::patient.birthtime | date:'hh:mm a'"></span>
|
|
</span>
|
|
<span class="patient-address">
|
|
{{::addressLine}}
|
|
</span>
|
|
<i class="ipd-indication fa fa-bed" ng-if="::hasBeenAdmitted"></i>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr ng-if="::showBirthDate">
|
|
<td class="name">{{ 'DOB_LABEL' | translate }}</td>
|
|
<td class="value">{{::patient.birthdate | bahmniDate}}
|
|
<span ng-if="::patient.birthdateEstimated" class="patient-estimated-text"> (est.)</span>
|
|
</td>
|
|
</tr>
|
|
<tr ng-repeat="attribute in config.patientAttributes" ng-if="::patient[attribute]" ng-show="::config.patientAttributes.length" ng-class="attribute">
|
|
<td class="name">{{::patient[attribute].label}}</td>
|
|
<td class="value" ng-if="::!patient[attribute].isDateField">{{::(patient[attribute].value.display || patient[attribute].value) | booleanFilter}}</td>
|
|
<td class="value" ng-if="::patient[attribute].isDateField">{{::patient[attribute].value | bahmniDate}}</td>
|
|
</tr>
|
|
<tr ng-if="::relationships && relationships.length > 0">
|
|
<td>{{ 'PATIENT_PROFILE_RELATIONSHIPS_LABEL'|translate }}</td>
|
|
</tr>
|
|
<tr ng-repeat="relationship in relationships track by relationship.uuid">
|
|
<td class="name relationshipType" ng-if="::relationship.personA.uuid === patient.uuid">{{::relationship.relationshipType.aIsToB}}</td>
|
|
<td class="value" ng-if="::relationship.personA.uuid === patient.uuid">
|
|
<a ng-click="::openPatientDashboard(relationship.personB.uuid)" title="Go to Clinical Dashboard" ng-if="::!isProviderRelationship(relationship)">
|
|
{{::relationship.personB.display}}
|
|
</a>
|
|
<span ng-if="::isProviderRelationship(relationship)">{{::relationship.personB.display}}</span>
|
|
</td>
|
|
<td class="name" ng-if="::relationship.personB.uuid === patient.uuid">{{::relationship.relationshipType.bIsToA}}</td>
|
|
<td ng-if="::relationship.personB.uuid === patient.uuid" class="value">
|
|
<a ng-click="::openPatientDashboard(relationship.personA.uuid)" title="Go to Clinical Dashboard">
|
|
{{::relationship.personA.display}}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
</div>
|
|
</div> |