Can. 530 The functions especially entrusted to the parish priest are as follows:
1/ the administration of baptism; …
Can. 860 §1. Apart from a case of necessity, baptism is not to be conferred in private houses, unless the local ordinary has permitted it for a grave cause. §2. Except in a case of necessity or for some other compelling pastoral reason, baptism is not to be celebrated in hospitals unless the diocesan bishop has established otherwise.
Can. 867 §1. Parents are obliged to take care that infants are baptized in the first few weeks; as soon as possible after the birth or even before it, they are to go to the pastor to request the sacrament for their child and to be prepared properly for it. §2. An infant in danger of death is to be baptized without delay.
Can. 868 §1. For an infant to be baptized licitly: 1/ the parents or at least one of them or the person who legitimately takes their place must consent; 2/ there must be a founded hope that the infant will be brought up in the Catholic religion; if such hope is altogether lacking, the baptism is to be delayed according to the prescripts of particular law after the parents have been advised about the reason. §2. An infant of Catholic parents or even of non-Catholic parents is baptized licitly in danger of death even against the will of the parents.