import { age, type Patient } from '@openmrs/esm-framework'; import React from 'react'; export interface WardPatientAgeProps { patient: Patient; } const WardPatientAge: React.FC = ({ patient }) => { return patient.person?.birthdate ?
{age(patient.person.birthdate)}
: null; }; export default WardPatientAge;