All parts of the Mass ritual are determined by the rules set down in the liturgical books and supporting documents. Canon Law makes this very clear. Canon 844, nos. 3 and 4, says that Catholic ministers may give the sacraments of penance, Eucharist, and anointing of the sick to members of the oriental churches which do not have full communion with the Catholic Church and to members of other churches which are in the same condition as the oriental churches as far as these sacraments are concerned. From your statement of the case, the Catholic chaplain did not even inquire if the patient was baptized.
Baptism is a necessary prerequisite for all the other sacraments.
No effort was made to enquire about the patient's faith and disposition. No effort was made to get in touch with a minister of the patient's own church.