Skip to content

Commit

Permalink
show selected consultation's facility name instead of patient's last …
Browse files Browse the repository at this point in the history
…consultation's facility name (#5452)

* fixes #5451

* fix vitals monitor having wrong facilityId
  • Loading branch information
rithviknishad authored May 5, 2023
1 parent 5e93ba9 commit 78c72db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Components/Facility/ConsultationDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ export const ConsultationDetails = (props: any) => {
<section className="bg-white shadow-sm rounded-md flex items-stretch w-full flex-col lg:flex-row overflow-hidden">
<PatientVitalsCard
patient={patientData}
facilityId={facilityId}
facilityId={patientData.facility}
/>
</section>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Patient/PatientInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ export default function PatientInfoCard(props: {
</div>
<div className="flex flex-col sm:flex-row items-center gap-1 lg:mb-2">
<Link
href={`/facility/${patient.facility_object?.id}`}
href={`/facility/${consultation?.facility}`}
className="font-semibold text-black hover:text-primary-600"
>
<i
className="text-primary-400 fas fa-hospital mr-1"
aria-hidden="true"
></i>
{patient.facility_object?.name}
{consultation?.facility_name}
</Link>

{(consultation?.suggestion === "A" || op_no) && (
Expand Down

0 comments on commit 78c72db

Please sign in to comment.