The Aparecida bishops reference the pastoral care rites:
420. In visits to the sick in health facilities, in silently being with the sick person, kind treatment, sensitive care for the requirements of the disease, the motherhood of the church is expressed through the professionals and volunteers, disciples of the Lord. The church enfolds them with its kindness, strengthens the heart, and for the dying, accompanies them in the final passage. The sick person lovingly receives the Word, forgiveness, the sacrament of Anointing, and gestures of charity from brothers and sisters. Human suffering is a special experience of the Lord’s cross and resurrection.
For this site’s coverage of the pastoral care rites, the page with links is here. Number 46 there is basic and brief in how it describes a typical visit:
Those who visit the sick should help them to pray, sharing with them the word of God proclaimed in the assembly from which their sickness has separated them. As the occasion permits, prayer drawn from the psalms or from other prayers or litanies may be added to the word of God. Care should be taken to prepare for a future visit during which the sick will receive the Eucharist.
For a deeper look, consult an English translation of the 2007 document from the Aparecida Conference.