Hi Navidad,
Please accept my condolences for the loss of your son. May God grant you grace and peace.
As far as I can tell from your description, the explanation of your friend is correct but incomplete. It appears the priest administered the Sacrament of the Anointing of the Sick (previously known as Last Rites). This is a formal sacrament in the Catholic Church and thus there are rules that govern it.
The Code of Canon Law states in Canon 844 paragraph 4:
As a non-Catholic, these conditions would have to be met for the sacrament to be licitly administered to you. The correct explanation of your friend is baptism and spiritual worthiness. That would cover you being a "Christian not having full communion with the Catholic Church" and being "properly disposed." What your friend left out were the other requirements: danger of death, inability to approach a minister of your own community, seeking it yourself, and a manifestation of Catholic faith towards the sacraments. Obviously I do not know if you can go to a minister of your own community and if you believe in the Catholic sacraments as a Catholic would. It is disappointing that the priest did not explain what he was doing, because how can one have faith in the sacrament and believe in it as a Catholic would if one does not know what the sacrament is?
I bring this up not to impugn you or detract from any good or grace you received from the experience, but to inform readers of how the sacraments in the Catholic Church are to be administered in situations such as these.
+PAX+
Jesse