ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

n/nDescriptionInputsExpected ResultStep by Step ScriptActual Result
CRT1Create Substance
  • Authorization - NHS Admin
  • name - New, Valid
  • name_original - New, Valid
  • sctid- new, Valid

Response 201

Substance saved to DB with status is_active=true

  1. Login as NHS Admin
  2. Create substances
  •  
CRT2Create substance not by NHS Admin
  • Authorisation - Doctor
  • name - New, Valid
  • name_original - New, Valid
  • sctid - new, Valid

Response 403

Message: Your scope does not allow to access this resource. Missing allowances: substance:write"

  1. Login as MIS Admin
  •  
CRT3Create substance with name exists in DB
  • Authorization - NHS Admin
  • name - Old, Valid
  • name_original - New, Valid
  • sctid - new, Valid

Response 201

Substance saved to DB with status is_active=true


  •  
CRT4Create new substance with no valid name
  • Authorization - NHS Admin
  • name - ""
  • name_original - New, Valid
  • sctid - new, Valid

Response 422

message: can't be blank


  •  
CRT5Create new substance without name
  • Authorization - NHS Admin
  • name - NO
  • name_original - New, Valid
  • sctid - new, Valid

Responce 422

message: required property name was not present


  •   
CRT6Create substance without scopes
  • Authorization - NO
  • name - New, Valid
  • name_original - New, Valid
  • sctid - new, Valid

Responce 401

message: Authorization header is not set or doesn't contain Bearer token


  •  
CRT7Create substance with no valid name
  • Authorization - NHS Admin
  • name - New, Not Valid (ex. Amiodarone)
  • name_original - New, Valid
  • sctid - new, Valid

Response 422

Message: string does not match pattern \"^[А-Яа-яЁёЇїІіЄєҐґ\\\\- ]*$\"

 
  •  
CRT8Create substance with no valid name
  • Authorization - NHS Admin
  • name - New, Valid
  • name_original - New, Not Valid
  • sctid - new, Valid

Response 422

Message: string does not match pattern \"^[a-zA-Z\\\\- ]*$\"


  •  
CRT9Create substance with no valid sctid
  • Authorization - NHS Admin
  • name - New, Valid
  • name_original - New, Valid
  • sctid- new, Not Valid

Response 422

Message: string does not match pattern \"^[0-9]{8}$\"


  •  
  • No labels