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
23Patient is inactive
409409
34Missing scope
403403passed
45Encounter does not exist or belongs to other patient
404404passed
56Operation with data that belongs to other legal entity
409422passed
67Digital signature doesn`t match
409409
78Signed content doesn`t match
422422passed
89Encounter still active but diagnoses corrupted
409409passed
910Entities from the package were already cancelled
409409passed
1011No entity from the request marked as entered_in_error
409409passed
1112Valid 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
1213Valid request: case encounter is not last for the episode
current_diagnoses are NOT replaced
passed
1314Valid request: case encounter is single for the episode
current_diagnoses replaced with an empty array
passed
1415Valid request: all encounter were canceled
current_diagnoses replaced with an empty array
passed