PHI and health data

Last checked · 3 min read

Protected health information (PHI) is the US HIPAA term for health information that can identify a person, in any form, that HIPAA's rules protect. India's DPDP Act has no separate health category. There, health data is personal data and carries the Act's duties for personal data.

PHI under HIPAA

HIPAA defines protected health information as health information that can identify a person, sent or kept in any form. To count, the information must come from a health care provider, a health plan, an employer or a clearinghouse. It must be about a person’s health, care or payment for care. And it must identify the person, or give a reasonable way to identify them. Some records are left out, such as job records an employer keeps, school records covered by FERPA, and records of people who died more than 50 years ago.1

The Security Rule then asks covered entities and their business associates to protect electronic PHI. Two safeguards matter most when software agents act on it. One is audit controls that “record and examine activity” in systems that hold electronic PHI. The other is protecting it from being changed or destroyed without permission.2 The documents the Security Rule asks for are kept for six years from when they were made or last used, whichever is later.3

Health data under India’s DPDP Act

India’s Digital Personal Data Protection Act, 2023 has one category. “Personal data” means any data about a person who can be identified by or through that data.4 There is no separate “sensitive” or health class. So a diagnosis carries the same duties as an address. The hospital, clinic or app that decides why and how the data is used is the data fiduciary.

The DPDP Rules, 2025 list “appropriate logs, monitoring and review” among the minimum safeguards. They ask for those logs to be kept for one year. These duties start eighteen months after the rules were published in November 2025.5 Health data that moves over the Ayushman Bharat Digital Mission network also passes through a consent manager. The mission calls it “data blind”, with the person’s consent for every data transaction.6 India’s EHR Standards add that every action on health information, including viewing, should be recorded.7

Why it matters when AI agents touch health data

An agent that books visits, drafts notes or files claims sees health data in three places: its prompts, the details it sends to tools, and the results it gets back. Each of these can be copied somewhere new. It might land in the agent’s own trace, a gateway’s request log, an approval message in a team chat, or a monitoring tool in another country. Under both laws, every copy is health data. And each copy adds one more system that needs the same protection.

Keeping PHI out of the audit trail

An audit trail has to say what happened without becoming one more store of patient data. Three habits help:

  • Record ids and digests, not content. The kind of record, the server’s id, a fingerprint of the request and of the result, the rule and the outcome are enough to check an action later.
  • Salt the patient reference. A medical record number or a health ID has few possible values. So a plain fingerprint of it can be guessed by trying every value. A secret salt that only the hospital holds stops that.
  • Keep full requests for a short time. If full requests are stored to fix problems, keep them for the shortest time that works. Keep them on servers in the country where the data belongs.

An example

What a record of an agent's FHIR write can hold without PHI (illustration)json
{
  "tool": "fhir.create_observation",
  "resource_type": "Observation",
  "server_id": "Observation/4821",
  "patient_ref": "sha256:9c1e…  (salted digest, not the MRN)",
  "request_digest": "sha256:5b7a…",
  "result_digest": "sha256:e03f…",
  "rule": "orders-need-clinician",
  "approved_by": "usr_01j9…",
  "check": "Matches",
  "issued_at": "2026-10-19T09:14:07Z"
}

How Deedglass uses it

Deedglass's sealed records hold ids, digests, decisions and times, not the request or the result. The action history keeps the full request until you prune it. Pruning is a command you run that removes payloads older than the retention you set, 90 days by default.8 In PHI mode (v0.3.0), once an action is sealed and its checks are done, Deedglass keeps ids and digests of its request and result, not their content.9 Without it, keep identifiers out of what agents send, or use test data.

Related on this site

Sources

  1. 1eCFR: 45 CFR 160.103, Definitions · ecfr.gov · checked 19 October 2026
  2. 2eCFR: 45 CFR 164.312, Technical safeguards · ecfr.gov · checked 19 October 2026
  3. 3eCFR: 45 CFR 164.316, Documentation · ecfr.gov · checked 19 October 2026
  4. 4MeitY: The Digital Personal Data Protection Act, 2023 · meity.gov.in · checked 19 October 2026
  5. 5MeitY: Digital Personal Data Protection Rules, 2025 · meity.gov.in · checked 19 October 2026
  6. 6ABDM: Health Information Exchange and Consent Manager · abdm.gov.in · checked 19 October 2026
  7. 7NRCeS: EHR Standards for India · nrces.in · checked 19 October 2026
  8. 8Deedglass docs: Records and the record chain · docs.deedglass.com · checked 19 October 2026
  9. 9Deedglass docs: PHI mode · docs.deedglass.com · checked 19 October 2026

Last checked 19 October 2026. We re-check the glossary every month. If something here is wrong, write to hello@deedglass.com.