Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Version published after converting to the new editor

Table of Contents
Specification 

...

Search Medication Request

  1. Search record by `$.id` in column `medication_request.id
    1. If not found -  Search record by `$.id` in column `medication_request.request_number`
      1. If not found - Return  404 in case "Not found record in DB with this ID!"

Validate FK

  1.  Read data from `ops_db.medication_requests` by `id`
  2. Validate legal_entity_id - legal_entity_id exists
    • Return 422 in case validation fails (422 EView)
  3. Validate employee_id - employee_id exists
    • Return 422 in case validation fails (422 EView)
  4. Validate division_id - division_id exists
    • Return 422 in case validation fails (422 EView)
  5. Validate medical_program_id - medical_program_id exists
    • Return 422 in case validation fails (422 EView)
  6. Validate all medication_id - medication_id exists
    • Return 422 in case validation fails (422 EView)
  7. Validate person_id - mpi_id exists
    • Return 422 in case validation fails (422 EView)

...