Your immigration status does not matter.
By NYC law (Executive Order 41), police, EMS, and hospitals do not ask or share immigration status. We don't ask either. You have full access to the civil court system regardless of status — federal courts have repeatedly confirmed undocumented workers can sue and recover damages for injuries on the job in New York.