Versions Compared

Key

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


#DescriptionInputExpected resultActual resultStatus
1Patient does not exist
404

401

Access denied - you have no active declaration with the patient

passed
2Patient is inactive
409409
3Missing scope
403403passed
4Encounter does not exist or belongs to other patient
404404passed
5Operation with data that belongs to other legal entity
409422passed
6Digital signature doesn`t match
409409
7Signed content doesn`t match
422422passed
8Encounter still active but diagnoses corrupted
409409passed
9Entities from the package were already cancelled
409409passed
10No entity from the request marked as entered_in_error
409409passed
11
12Valid
Valid request: case encounter is the last for the episode

1)Signed content saved to media storage
2) status `entered_in_error`  set for objects, submitted with status `entered_in_error`

3) cancellation_reason present

4) explanatory_letter present

5) episode diagnoses in diagnoses_history are deactiveted

6) current_diagnoses replaced according to spec



1)Signed content saved to media storage
2) status `entered_in_error`  set for objects, submitted with status `entered_in_error`

3) cancellation_reason present

4) explanatory_letter present

5) episode diagnoses deactiveted

6) current_diagnoses replaced according to spec

passed
12Valid request: case encounter is not last for the episode
current_diagnoses are NOT replaced
passed
13Valid request: case encounter is single for the episode
current_diagnoses replaced with an empty array
passed
14Valid request: all encounter were canceled
current_diagnoses replaced with an empty array
passed