Versions Compared

Key

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


#Description
Expected resultActual result

Valid input data
200, record created in DB

Wrong scopestoken of user, who doesn't have the scope 403403

Declaration validation(link to test cases) handledid of the patient, who does not have a declaration with the doctor403

Patient statusid of the patient that is not active409409

PK is unique$.id not unique422

Managing organization is not a legal_entity $.managing_organization.identifier.type.coding.[0].code != "legal_entity"422

Attempt to create episode for another legal_entity$.managing_organization.identifier.value != token.client_id422

Start date is in future $.period.start !<= current_date422

End date is present in requestend_date


Care_manager is not an employee$.care_manager.identifier.type.coding.[0].code != "employee"422

Care_manager is not a DOCTORPRM.employee.type != "DOCTOR"409

Care_manager is not activePRM.employee.status!= "active"409

Care_manager is not from the same legal_entityPRM.employee.legal_entity! = token.client_id409