Dermatologists treat diseases of the skin. To see one may require a call from the physician known as a referral. A patient may also just walk in to be seen by the dermatologist. But the dermatologist cannot treat heart, muscle, diabetes, sprains, etc.
so I would say the dermatologist is a secondary care provider.