get patient id using url