def _handle_launch_context(self, ctx):
        logging.debug("SMART: Handling launch context: {0}".format(ctx))
        if ctx in 'patient':
            #print('Patient id was {0}, row context is {1}'.format(self.patient_id, ctx))
            self.patient_id = ctx['patient']        # TODO: TEST THIS!
        if 'id_token' in ctx:
            logging.warning("SMART: Received an id_token, ignoring")
        self.launch_context = ctx
        self.save_state()
    
    
    # MARK: Current Patient
dataset/ETHPy150Open smart-on-fhir/client-py/fhirclient/client.py/FHIRClient._handle_launch_context/swapped operands of `in`