Versions Compared

Key

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


Doctor GetDrugs
n/nDescriptionInputsExpected ResultStep by Step ScriptActual Result
MISAT1RPAMT1

Doctor call WS over broker

  • WS = GetDrugs()
  • Authorization - Doctor of MSP  
  • MSP access_type = broker, Valid 
  • API-key = MIS secret, Valid
  • MIS broker_scopes = drugs:read,

    NHS Admin call reset person authentication method

    • Authorization - NHS Admin  
    • scope Valid (person:reset_authentication_method)
    • Person_id - Valid

    Response 200

    Get list of drugs

    1. Login as DoctorNHS admin 
    2. Call GetDrugsResetPersonAuthenticationMethod()
    •  . 
    MISAT2RPAMT2Doctor call WS direct
  • WS = GetDrugs()
  • Authorization - Doctor of MSP  
  • MSP access_type = direct, Valid 
    • Authorization - Doctor   
    • scope Invalid (person:reset_authentication_method)
    • Person_id - Valid

    Response 403


    1. Login as Doctor
    2. Call ResetPersonAuthenticationMethod()
    •  
    RPAMT1

    NHS Admin call reset person authentication method

    • Authorization - NHS Admin  
    • scope Valid (person:reset_authentication_method)
    • Person_id - Valid

    Response 200

    Get list of drugs

    1. Login as NHS admin 
    2. Call ResetPersonAuthenticationMethod()
    •  
    RPAMT1

    NHS Admin call reset person authentication method

    • Authorization - NHS Admin  
    • scope Valid (person:reset_authentication_method)
    • Person_id - Valid

    Response 200

    Get list of drugs

    1. Login as
    1. NHS admin 
    2. Call
    1. ResetPersonAuthenticationMethod()
    •  .