Versions Compared

Key

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


#DescriptionInputExpected resultActual resultStatus
1HP: cancel all posible enitiesencounter
observation
condition
allergy_intolerance
immunization
device
medication_statement
risk_assessment
all canceled all canceled passed
2Patient does not exist
404

401

Access denied - you have no active declaration with the patient

passed
2
3Patient is inactive
409409
3

4Missing scope
403403passed
4
5Encounter does not exist or belongs to other patient
404404passed
5
6Operation with data that belongs to other legal entity
409422
409
passed
6
7Digital signature doesn`t match
409409
7

8Signed content doesn`t match
422422passed
8
9Encounter still active but diagnoses corrupted
409409passed
9
10Entities from the package were already cancelled
409409
10
passed
11No entity from the request marked as entered_in_error
409409
11
passed
12Valid 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
13Valid request: case encounter is not last for the episode
current_diagnoses are NOT replaced
passed
14Valid request: case encounter is single for the episode
current_diagnoses replaced with an empty array
passed
15Valid request: all encounter were canceled
current_diagnoses replaced with an empty array
passed