Skip to content

Commit

Permalink
Update patient-list-cohort.component.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
arodidev committed Oct 12, 2023
1 parent d9efd99 commit e450970
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ export const CohortPatientList: React.FC<CohortPatientListProps> = ({
const dashboard = launchableForm?.targetDashboard ? `/${launchableForm?.targetDashboard}` : '';
return {
uuid: patientUuid,
id: isReportingCohort ? rawPatient.identifiers[0].identifier : rawPatient.patient.identifiers[0].identifier,
id: isReportingCohort
? rawPatient?.identifiers[0]?.identifier
: rawPatient?.patient?.identifiers[0]?.identifier,
age: isReportingCohort ? rawPatient.person.age : rawPatient.patient.person.age,
name: isReportingCohort ? rawPatient.person.display : rawPatient.patient.person.display,
birthdate: isReportingCohort
Expand Down

0 comments on commit e450970

Please sign in to comment.