...
Check that Device request is valid and available for dispense under this medical program
Invoke https://e-health-ua.atlassian.net/wiki/spaces/CSIEH/pages/1746783445917492804914/RC+Qualify+Device+Request+by+ID
Check that program_id is in Qualify response
Device request is prohibited for dispense in case $.data[?(@.program_id=device_request.program.identifier.value)].status = 'INVALID' or program_id is absent in qualify response
In case of error - return 409 error ('Device request can not be dispensed. Invoke qualify dispense request API to get detailed info')
Device request is allowed for dispense in case $.data[?(@.program_id=device_request.program.identifier.value)].status = 'VALID' and program_id is present in qualify response
...