Modify Requisition domain and REST API to support new emergency requisition workflow

Description

This ticket deals with modifying the Requisition domain and REST API response as per design from
The change stub is available on branch OLMIS-4098-emergency-requisition-redesign
The API should also now populate the "availableFullSupplyProducts" collection, based on the list from requisition domain ("available products") and full-supply flag. The collection will only be populated for emergency requisitions, since there are no more available full supply products for regular requisitions (all are always added as line items). The populate of availableFullSupply is a part of OLMIS-4113. The "availableNonFullSupplyProducts" should work the same, but for the opposite flag value.

Acceptance criteria

  • The database model is modified as designed (rename) and appropriate migration is written

  • REST API response is modified as designed (additional collection of "availableFullSupplyProducts") and properly populated (from available products and based on the full-supply flag)

  • Demo data is updated to work with new model

Assignee

Sebastian Brudziński

Reporter

Sebastian Brudziński

Labels

None

Story Points

2

Time tracking

8h

Components

Sprint

None

Fix versions

Priority

Major
Configure