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
2

404

401

Access denied - you have no active declaration with the patient

passed
3Patient is inactive
3Scope missed

409409
4Missing scope
403403passed
4
5Encounter does not exist or belongs to other patient
404404passed
6Operation with data that belongs to other legal entity
5

409422passed
7Digital signature doesn`t match
6

409409
8Signed content doesn`t match
7

422422passed
9Encounter still active but diagnoses corrupted
8Valid request

409409passed
10Entities from the package were already cancelled
409409passed
11No entity from the request marked as entered_in_error
409409passed
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

404

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