HIPAA protects health information tied to a person.
HIPAA is the U.S. law that governs protected health information — PHI. The definition has two halves: information about someone's health, care or payment for care, combined with anything that identifies them. A diagnosis alone is not PHI. A diagnosis next to a name, a date of birth, or a record number is.
The law lists eighteen kinds of identifiers, from names and dates to device serial numbers and photographs. That list is also the key to the other direction: strip all eighteen properly and what is left is de-identified data that HIPAA no longer restricts — which is how research, analytics and some AI work are done safely.
PHI is health information plus an identifier. Remove the identifiers correctly and the rules let go.