-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MHV-55400]: medications shipped tracking #28827
Changes from 9 commits
4a6464f
ab457df
0e82ccc
0b1eba1
9eccf46
2ca8809
4dda2c1
1402272
79f01a2
b458ca8
aec4dc5
09bc18d
c80aa5f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,19 @@ const RenewablePrescriptions = ({ renewablePrescriptionsList = [] }) => { | |
'MMMM D, YYYY', | ||
)} | ||
</span> | ||
{prescription?.trackingList?.[0]?.completeDateTime && ( | ||
<> | ||
<br /> | ||
<span data-testid={`medications-last-shipped-${idx}`}> | ||
<i className="fas fa-truck vads-u-margin-right--1p5" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. icon found |
||
Last refill shipped on{' '} | ||
{dateFormat( | ||
prescription.trackingList[0].completeDateTime, | ||
'MMMM D, YYYY', | ||
)} | ||
</span> | ||
</> | ||
)} | ||
</p> | ||
</div> | ||
))} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -854,13 +854,13 @@ | |
"prescriptionName": "BACITRACIN 500 UNT/GM OPH OINT", | ||
"refillStatus": "refillinprocess", | ||
"refillSubmitDate": "2023-09-26T20:10:24.000Z", | ||
"refillDate": "2023-09-23T04:00:00.000Z", | ||
"refillDate": "September 24, 2023", | ||
"refillRemaining": 1, | ||
"facilityName": "SLC10 TEST LAB", | ||
"orderedDate": "2023-08-27T04:00:00.000Z", | ||
"quantity": 1, | ||
"expirationDate": "2024-08-27T04:00:00.000Z", | ||
"dispensedDate": "2023-08-29T04:00:00.000Z", | ||
"dispensedDate": "September 24, 2023", | ||
"stationNumber": "979", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what was the reason for the format change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Time does not show in the UI and I used a fixture file that has tracking info for the refill history. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we actually expect the API to return a date in that format? I'd expect a a consistent format from the backend APIs... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Made the suggested changes and pushed the updated one. |
||
"isRefillable": false, | ||
"isTrackable": true, | ||
|
@@ -887,25 +887,20 @@ | |
"indicationForUseFlag": null, | ||
"category": "Rx Medication", | ||
"trackingList": [ | ||
[ | ||
"tracking", | ||
[ | ||
{ | ||
"id": 49049, | ||
"stationNumber": "979", | ||
"rxNumber": "3636889A", | ||
"carrier": "FEDEX", | ||
"trackingNumber": "77298036368890000006962", | ||
"completeDateTime": "Sun, 24 Sep 2023 04:39:11 EDT", | ||
"divisionPhone": "(410)636-6899", | ||
"ndc": "00113002239", | ||
"dateLoaded": "Tue, 26 Sep 2023 16:20:00 EDT", | ||
"isLocalTracking": false, | ||
"othersInSamePackage": false, | ||
"viewImageDisplayed": true | ||
} | ||
] | ||
] | ||
{ | ||
"id": 49049, | ||
"stationNumber": "979", | ||
"rxNumber": "3636889A", | ||
"carrier": "FEDEX", | ||
"trackingNumber": "77298036368890000006962", | ||
"completeDateTime": "Sun, 24 Sep 2023 04:39:11 EDT", | ||
"divisionPhone": "(410)636-6899", | ||
"ndc": "00113002239", | ||
"dateLoaded": "Tue, 26 Sep 2023 16:20:00 EDT", | ||
"isLocalTracking": false, | ||
"othersInSamePackage": false, | ||
"viewImageDisplayed": true | ||
} | ||
], | ||
"rxRfRecords": [ | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we supposed to be using the index here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code change on line 25,
const latestTrackingStatus = prescription?.trackingList?.[0];
pulls an object, the first item out of the trackingList array.We updated the vets-api serialization to remove the unnecessary levels of nesting, so the API will serve a 1-level array.