The Catechism of the Catholic Church lists the sacraments as follows: "The whole liturgical life of the Church revolves around the Eucharistic sacrifice and the sacraments. There are seven sacraments in the Church: Baptism, Confirmation or Chrismation, Eucharist, Penance, Anointing of the Sick, Holy Orders, and Matrimony."
These seven sacraments were codified in the documents of the Council of Trent (1545–1563), which stated:
CANON I.- If any one saith, that the sacraments of the New Law were not all instituted by Jesus Christ, our Lord; or that they are more, or less, than seven, to wit, Baptism, Confirmation, the Eucharist, Penance, Extreme Unction, Order, and Matrimony; or even that any one of these seven is not truly and properly a sacrament; let him be anathema.
CANON IV.- If any one saith, that the sacraments of the New Law are not necessary unto salvation, but superfluous; and that, without them, or without the desire thereof, men obtain of God, through faith alone, the grace of justification; -though all (the sacraments) are not necessary for every individual; let him be anathema.
Dogma includes divine revelation, i.e., the word of God (bible and tradition) and the word of God incarnate (Jesus), and truths connected to divine revelation. The sacraments, divinely instituted, are dogma and are part of the liturgy, that is, public worship. As dogma is immutable, Baptism cannot be changed to allow a non-Trinitarian formula, the Eucharist cannot be changed to allow unrepentant sinners to receive Jesus, Matrimony cannot be changed to allow gay marriage, and Holy Orders cannot be changed to allow priestesses.