Skip to content

Commit

Permalink
Display immunization time if available (#2399)
Browse files Browse the repository at this point in the history
Format immunization occurrenceDateTime as dateTime
  • Loading branch information
austin-hall-skylight authored Aug 19, 2024
1 parent 9585e16 commit ce725ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe("Immunizations Table", () => {
},
resourceType: "Immunization",
primarySource: true,
occurrenceDateTime: "11/10/2020",
occurrenceDateTime: "2020-11-10T07:20:00-04:00",
lotNumber: "369258741",
manufacturer: {
reference: "Organization/b5c77b86-2764-79f9-10bf-5da5e63eb7c1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ exports[`Immunizations Table should match snapshot 1`] = `
<td
class="text-top"
>
11/10/2020
11/10/2020 7:20 AM -04:00
</td>
<td
class="text-top"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const returnImmunizations = (
];

immunizationsArray.forEach((entry) => {
entry.occurrenceDateTime = formatDate(entry.occurrenceDateTime);
entry.occurrenceDateTime = formatDateTime(entry.occurrenceDateTime ?? "");

const manufacturer = evaluateReference(
fhirBundle,
Expand Down

0 comments on commit ce725ff

Please sign in to comment.