...
- Verify the validity of access token
- Check user scope declaration_request:create in order to perform this action
Validate Legal Entity Type
Validate legal entity from token: legal legal_entities.type should be in DECLARATIONbe in DECLARATION_REQUEST_LEGAL_ENTITY_TYPES and legaland legal_entities.status =='active' and legal_entities.nhs_verified ==true
Validate doctor
Get employee details
...