Skip to content

Commit

Permalink
Death report is missing patient age (#8702)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohammed Nihal <[email protected]>
Co-authored-by: Khavin Shankar <[email protected]>
Co-authored-by: Rithvik Nishad <[email protected]>
  • Loading branch information
4 people authored Oct 15, 2024
1 parent 7518c6b commit e8f898e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Components/DeathReport/DeathReport.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { useEffect, useState } from "react";
import { statusType, useAbortableEffect } from "../../Common/utils";
import { useState } from "react";
import { GENDER_TYPES } from "../../Common/constants";
import TextFormField from "../Form/FormFields/TextFormField";
import TextAreaFormField from "../Form/FormFields/TextAreaFormField";
import DateFormField from "../Form/FormFields/DateFormField";
import PhoneNumberFormField from "../Form/FormFields/PhoneNumberFormField";
import {
formatDateTime,
formatPatientAge,
humanizeStrings,
patientAgeInYears,
} from "../../Utils/utils";
import Page from "../Common/components/Page";
import Form from "../Form/Form";
Expand Down Expand Up @@ -111,7 +109,7 @@ export default function PrintDeathReport(props: { id: string }) {
const patientComorbidities = getPatientComorbidities(res.data);
const data = {
...res.data,
age: patientAgeInYears(res.data!),
age: formatPatientAge(res.data!, true),
gender: patientGender,
address: patientAddress,
comorbidities: patientComorbidities,
Expand Down Expand Up @@ -372,7 +370,7 @@ export default function PrintDeathReport(props: { id: string }) {
<div>
<TextFormField
{...field("age")}
type="number"
type="text"
label={t("age")}
/>
</div>
Expand Down

0 comments on commit e8f898e

Please sign in to comment.