We're going through a similar situation with my son. He has tendonitis. You need to see a doctor for a diagnosis.
How you get better varies. Some require a complete shut down period of varying time periods and some can cut back on throwing and work through it with physical therapy and anti inflamatory meds like advil.
But you really need the doc (orthopedic) to guide you.