A test environment full of production extracts is a breach waiting for a contractor login. A test environment full of 'Jane Doe, age 40, blood pressure normal' will not catch the interface that drops a hyphenated surname or a twin. Synthetic healthcare data sits between those failures, and only when you are honest about what it is.
The benefit is realistic shape for tests and model pipelines, without shipping a patient's row to a laptop. A generated table can still memorize someone, fail the de-identification standard, or smooth away a rare case. This guide is for data and product leads deciding when to generate, and what to write down.
What are the benefits of synthetic healthcare data?
Need realistic data without a production copy?
Agnotic Technologies builds synthetic-data pipelines that keep source PHI in a controlled zone and document the privacy check.
Synthetic healthcare data is generated so it resembles real clinical data without copying a real patient's record. It helps teams test interfaces and train models when real PHI cannot leave a controlled environment. It is a benefit only when the generator, the privacy check, and the allowed use are written down. Looking synthetic is not the same as being de-identified.
- Interface tests: names, dates, repeats, missing fields, and rare codes in the shapes your HL7 v2 and FHIR feeds actually break on.
- Volume: enough rows to load a warehouse or a queue without cloning production.
- Model plumbing: feature pipelines and training jobs in an environment that is not allowed to hold PHI.
- Vendor demos and engineering onboarding: a shared set that is safe to put on a slide or a new laptop.
- A written boundary: everyone can see which decisions still require a locked evaluation on real data.
When does synthetic data help a test, and when does it miss the bug?
It helps when you need coverage of structure. It misses a production quirk the generator was never shown.
- Use it for: message variants, null combinations, identifier formats, multi-patient households, and replay of a feed at production volume.
- Keep hand-built fixtures for: every defect you have already shipped. A generator that 'covers the schema' will not reliably recreate the one Z-segment that broke a site.
- Do not use it as proof of clinical correctness: a synthetic lab panel can be internally consistent and still unlike the panels your reference lab sends.
- Compare distributions you care about: age bands, code frequency, missingness. If the synthetic set has no empty addresses and production is full of them, the test is theater.
Store the generator version with the test run. When synthetic data passes and the first real message fails, you need to know which side changed.
When does synthetic data help a model?
It helps you build and debug the pipeline. It does not show that a model is fit to influence a clinical decision.
- Fit for: wiring features, catching leakage in the training script, and checking that a job fails closed when a column disappears.
- Weak for: estimating error on a rare outcome. Generators average. The patients you most need to detect are the ones a generator is tempted to smooth.
- Hold out real evaluation: if a human will act on the score, evaluate on real records inside an environment allowed to hold them. Publish that the synthetic run was for plumbing.
- Label the set in the experiment tracker: synthetic, de-identified real, or identifiable. A model card that says 'trained on EHR data' is how the distinction disappears.
If the contract bars PHI from the data science environment, do not copy a sample in for the evaluation. Change the controls, or do not claim clinical performance from that environment.
Why is synthetic output not automatically de-identified?
Because HIPAA de-identification is a standard you meet, not a vibe the file gives off. Generating rows from protected health information is a use of that information. The output is outside the Privacy Rule only when it actually qualifies as de-identified.
45 CFR 164.514(a) says health information is not individually identifiable if it does not identify a person and there is no reasonable basis to believe it can be used to identify a person. Section 164.514(b) allows only two ways to get there. Expert determination: a person with appropriate statistical and scientific knowledge finds that the risk is very small that the anticipated recipient could identify someone, alone or with other reasonably available information, and documents the methods and results. Safe harbor: remove the listed identifiers of the person and of relatives, employers, and household members, including names, detailed geography, and dates other than year, and have no actual knowledge that the remaining information could identify someone.
45 CFR 164.502(d) allows a covered entity to use protected health information to create de-identified information, or to disclose it to a business associate for that purpose. Information that meets 164.514(a) and (b) is not individually identifiable, and the Privacy Rule's use-and-disclosure requirements do not apply to it, with two conditions: disclosing a code that would let someone re-identify the data is itself a disclosure of protected health information, and once data is re-identified it may be used only as the rule permits.
A synthetic file can fail both methods. It can keep full dates and street-level detail because the generator was asked to be 'realistic.' It can also pass a casual look and still be close enough to source rows that an expert would not call the risk very small. NISTIR 8053 describes synthetic data as a set that resembles the original while some or all of the elements are generated and do not map to actual people, and it notes that de-identified data has in some cases been re-identified. Resemblance is the goal. It is also the risk.
How can a synthetic record still point at a real patient?
The generator learned from real rows. Memorized rows, rare combinations, and a nearby re-identification key all survive the label 'synthetic.'
- Near copies: a generated note or a claim line that matches a source row on the fields you hoped were hidden. Search for duplicates against the source before anyone outside the zone sees the file.
- Membership: an attacker who already knows a person can test whether they were in the training set. Faithful generators make that easier, not harder.
- Rare combinations: a small cohort, an unusual procedure, and a year of birth can identify someone even after names are gone. Safe harbor's identifier list does not remove every quasi-identifier.
- The re-identification key: 164.514(c) allows a code only if it is not derived from the person's information, and the mechanism is not disclosed for other purposes. Parking that key in the same bucket as the synthetic extract defeats the point.
- Weights and prompts: a model trained in the PHI zone and then exported can carry patients with it. The artifact is not 'just a file format.'
- Free text: notes and portal messages copied through a generator that was supposed to paraphrase. Spot-check text. Schema checks will not see a pasted sentence.
NIST has described differentially private synthetic data as a set with the same schema and a mathematical bound on what a person's row reveals. The same note says redacting identifiers does not stop re-identification. Differential privacy does not by itself meet 164.514, and an unrecorded parameter is not a guarantee.
How should real PHI stay out of the synthetic environment?
Fit the generator inside a zone allowed to hold PHI. Only a reviewed artifact crosses out. Laptops and vendor sandboxes stay on the side their contract allows.
- Zone for fitting: access listed by person, audit on, no ad hoc exports. Creating de-identified data is a permitted use under 164.502(d). Browsing production from a notebook is not the same use.
- Crossing artifact: the synthetic tables, a data dictionary, the generator version, and the privacy write-up. Not a sample of source rows 'for comparison' on the far side.
- Checks before release: duplicate detection against source, a review of free text, a check that safe-harbor identifiers are absent if that is the method you claim, and the expert's written determination if that is the method you claim.
- Recipient: expert determination is about an anticipated recipient. 'Anyone in the company' is not a recipient. Name who may receive the file.
- Re-identification path: if you keep a code, store the mechanism apart from the file, and treat a disclosure of the code as a disclosure of PHI, because 164.502(d) says it is.
What should the pipeline record about each synthetic set?
Record each run the way you record a model training, or you cannot defend the privacy claim.
- Source: which extract, which time range, which tables, and whether notes were included.
- Method: rules, a statistical model, differential privacy, or a mix. The software version and the configuration, stored, not recalled.
- Privacy method claimed: safe harbor, expert determination, or neither. If neither, the file is still protected health information and the environment must treat it that way.
- Checks: what was compared to the source, who reviewed text, and what was rejected.
- Allowed use: testing, demo, pipeline debug, or model development. Forbidden uses in the same sentence, especially 'evaluate clinical performance' if you did not.
- Destruction: when the source extract used for fitting is deleted, and when the synthetic set expires.
Put this record where the file lives, not in a slide. The person who downloads it later was not in the meeting.
When should you refuse synthetic data?
Refuse it when the task needs the real row, when the cohort is so small that a faithful fake points at the real patients, or when nobody will sign the privacy method.
- Debugging one patient's failed claim or one order: you need that order. Synthetic data will invent a plausible cousin and waste the day.
- A promise of 'HIPAA-free data' with no safe harbor review and no expert determination: do not generate it, and do not accept it from a vendor on that sentence.
- Tiny rare-disease extracts: if the group is small enough that any realistic table identifies the members, do not distribute a synthetic twin outside the zone.
- Evaluation that will be quoted to a buyer, a clinician, or a regulator as performance on real patients: use real data under the right agreement, in the right environment.
- A generator you cannot version or a vendor who will not say whether outputs can repeat training rows.
Refusal is a normal outcome. Synthetic data helps when it lets work move without a production copy, and it stops helping when it disguises identifiable data.
How Agnotic can help
Agnotic Technologies builds the pipeline around synthetic healthcare data: a PHI zone for fitting, a release check for near copies and leftover identifiers, and a run record that states the method, the claimed de-identification path, and the allowed use. We wire synthetic sets into interface tests so the fixtures from real defects stay in the suite beside the generated volume.
We will also say when not to generate, and keep that work in an environment allowed to hold the real record.
Separate the generator from the production chart
Design the synthetic-data path with our engineers, or read more in the data engineering hub.
Related reading on Agnotic
How health data is protected, how an EHR database is shaped, and what mining clinical data does to privacy.


