Convert to order transfers requisition comments

Description

When an order is being processed, a user needs to be able to see the complete requisition comment history. Work has recently happened on to re-build the StatusMessage feature (formerly known as Comments).

This ticket is for changing the APIs and the database repository so that an order, upon creation, will get a copy of all the comments/status-messages from the requisition. So this probably involves adding a field to the Order domain object and adding logic to initialize and save this field, and exposing the field via the API as part of the Order.

Requisition service sent all status massages to fulfillment service when requisitions convert to order. Save all status messages in Order.

Acceptance Criteria

  • When a requisition is converted to an order, the comments from a requisition are preserved.

  • APIs exist to expose this field as part of the order record.

Attachments

15

QAlity Plus - Test Management

Checklists

Activity

Anna Czyrko 
January 30, 2017 at 1:57 PM

To sum up I tested:

  • Convert to order transfers requisition comments for regular requisition - all works,

  • Convert to order transfers requisition comments for emergency requisition - all works.

Anna Czyrko 
January 30, 2017 at 1:55 PM

for Essential Meds Program, emergency requisition - All works
1. Initiate a requisition,
I initiate requisition with id: 044910ec-8332-4e32-884e-770c6e6a9e58
2. Add message: "draftStatusMessage": "first message for emergency requisition with initiated status",

3. Submit requisition
Requisition is submitted.
4. Check status message.

5. Add message: "draftStatusMessage": "second message for emergency requisition with submitted status",

6. Authorize requisition.
Requisition is authorized.
7. Check status message.

8. Add message "draftStatusMessage": "third message for emergency requisition with authorized status",

9. Approve requisition.
Requisition is approved.
10. Check message status.

11. Convert requisition to order.
12. Check status message.

Anna Czyrko 
January 30, 2017 at 12:44 PM
(edited)

for Essential Meds Program, regular requisition - All works

1. Initiate a requisition,
I initiate requisition with id: 272d2cc6-448e-4708-b5fb-b83fb199632e
2. Add message: "draftStatusMessage": "first message for regular requisition with initiated status",

3. Submit requisition
Requisition is submitted.
4. Check status message.

5. Add message: "draftStatusMessage": "second message for regular requisition with submitted status",

6. Authorize requisition.
Requisition is authorized.
7. Check status message.

8. Add message "draftStatusMessage": "third message for requisition with authorized status",

9. Approve requisition.
Requisition is approved.
10. Check message status.

11. Add message

I cannot add message because I got error:

12. Convert requisition to order.
13. Check status message.

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

3d 7h logged

Components

Sprint

Fix versions

Priority

Time Assistant

Created January 3, 2017 at 9:14 PM
Updated January 30, 2017 at 3:29 PM
Resolved January 30, 2017 at 1:58 PM