...
- Verify the validity of access token
- Check user scope declaration_request:create in order to perform this action
Validate Legal Entity Type
Invoke Get Legal Entity By Id
Validate Responde $.data.type == MSP or MSP_PHARMACY or PRIMARY_CARE and $.data.status =='active' and $.data.nhs_verified ==true
Validate doctor
Get employee details
...