Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 20, 2024
1 parent 8b19376 commit d704fac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,7 @@ export const evaluateDemographicsData = (
},
{
title: "Contact",
value: formatContactPoint(
evaluate(fhirBundle, mappings.patientTelecom),
),
value: formatContactPoint(evaluate(fhirBundle, mappings.patientTelecom)),
},
{
title: "Emergency Contact",
Expand Down Expand Up @@ -547,9 +545,7 @@ export const evaluateEmergencyContact = (

const phoneNumbers = formatContactPoint(contact.telecom);

return [relationship, address, phoneNumbers]
.filter(Boolean)
.join("\n");
return [relationship, address, phoneNumbers].filter(Boolean).join("\n");
})
.join("\n\n");
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,9 @@ describe("formatContactPoint", () => {
},
];
const actual = formatContactPoint(contactPoints);
expect(actual).toEqual("313-555-1236\nWork Fax: 313-555-1234\nPager: 313-555-1235\nmedicine@example.com\nmedicine@example.com\nOther: 123");
expect(actual).toEqual(
"313-555-1236\nWork Fax: 313-555-1234\nPager: 313-555-1235\nmedicine@example.com\nmedicine@example.com\nOther: 123",
);
});
});

Expand Down

0 comments on commit d704fac

Please sign in to comment.