Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Check Composition’s status is not entered-_in-_error

    • in case of error - return 409 ('Composition in status <status> cannot be marked as entered-in-error ')

Validate Composition mark

...

_in

...

_error term

  • Get config parameter COMPOSITION_MARK_IN_ERROR_TERM, where Configuration.type=Composition.type and Configuration.category=Composition.catergory

  • Validate today >= (Composition.date+COMPOSITION_MARK_IN_ERROR_TERM.min)

  • Validate today <= (Composition.date+COMPOSITION_MARK_IN_ERROR_TERM.max)

    • Return 422 ("Difference between Composition date and todays date must be in range of <min value> and <max value> days") in case of error

...