HIPAA and OCR for medical documents: which requirements this covers
An operations or revenue cycle team that wants OCR to extract data from faxed referrals, claims and intake forms needs to know one thing first: can the OCR service receive that PHI under a business associate agreement, and when does de-identification take the service out of business associate scope? If the provider creates, receives, maintains or transmits ePHI on the covered entity's behalf, HHS OCR treats it as a business associate even when it cannot view the content, and the parties must sign a BAA before any document is sent. A provider that holds only encrypted ePHI without the key is still a business associate. Using a cloud OCR service with PHI before a BAA is in place is a violation of the HIPAA Rules, so the check comes before the pilot, not after it.
A BAA is a contract requirement. It does not meet the Security Rule by itself, and the vendor's own compliance claims do not transfer to the covered entity. Microsoft and Google Cloud both state that signing their BAA does not make a customer compliant on its own. The covered entity still owns its risk analysis for the OCR workflow, including the fax intake point, the storage of extracted text, and any data sent to a review queue. It must also set access controls for who can upload, view and export extracted fields, and keep audit logging that shows which documents were processed and by whom. Those controls belong to the customer's configuration, and the reader should confirm them against the service's own settings.
This section does not decide whether a specific OCR service is covered, which plan or tier to buy, or whether the reader's risk analysis is complete. Those depend on the vendor's current BAA scope, the services named in the reader's own contract, and the reader's own risk analysis, which only the organization can perform. The sections that follow address which document AI services sit under a cloud BAA and how de-identification changes scope. The reader should confirm the current coverage list and the BAA terms directly with the vendor before approving any document flow.
Which document AI services a cloud BAA covers
A cloud BAA covers the specific services the provider lists as eligible, not the whole account. For OCR and document extraction, the question is which named product processes the PHI in your referrals, faxes, claims and intake forms, and whether that product sits under the contract you sign.
Amazon Textract under the AWS BAA
The AWS HIPAA Eligible Services Reference lists Amazon Textract as HIPAA eligible under an AWS BAA. Textract extracts text, forms and tables from scanned documents, which is the core step for faxed referrals and claim images. Confirm that the AWS account is covered by the BAA and that Textract is used only through the eligible service, not through a feature or region the reference page does not name. Check the reference page on the day you sign, because the list changes.
AWS eligibility listAmazon Comprehend Medical under the AWS BAA
Amazon Comprehend Medical is also listed as HIPAA eligible under an AWS BAA. It extracts medical entities such as medications, conditions and dosages from clinical text, so it is often paired with a text extraction step on intake forms and referral letters. Its eligibility does not extend to Textract, and Textract's eligibility does not extend to it. Map each service in your pipeline to its own line on the eligibility list before you treat the pipeline as covered.
Document AI under the Google Cloud BAA
Google Cloud's HIPAA page lists Document AI among the products covered by the Google Cloud BAA. Document AI processes scanned forms and documents into structured data, which maps directly to claims and intake workflows. Confirm the product list on Google Cloud's HIPAA page before signing, and check whether any specialized processor you plan to use is named separately, since a product family can be listed while a sub-feature is not.
Google Cloud HIPAA pageDocument AI Warehouse under the Google Cloud BAA
Google Cloud's HIPAA page also lists Document AI Warehouse among covered products. Warehouse stores and indexes processed documents, so it holds PHI at rest and falls within business associate scope even if you only search it. Treat it as a separate storage decision: confirm its listing, where the stored documents live, and your retention and deletion settings, because covering the extraction product does not cover a separate repository.
Other OCR services and standalone vendors
OCR tools from other cloud providers, open-source engines run in your own environment, and standalone document AI vendors each need their own answer. A vendor's marketing or a general statement about HIPAA does not establish a BAA. Ask the vendor in writing whether it will sign a BAA, which products and features the BAA covers, whether its subcontractors are bound by the same terms, and how it returns or destroys PHI at termination. If the vendor will not sign, the service cannot receive PHI.
When de-identification takes OCR out of business associate scope
HHS guidance on cloud computing says a service that receives and maintains only information de-identified under the Privacy Rule is not a business associate, because de-identified information is not protected health information. For OCR, that is the only route that keeps a cloud extraction service outside business associate scope without a BAA. The test applies to what the service actually receives, so the covered entity must remove identifiers before the image leaves its environment, not after the cloud service has returned text.
The practical problem is that a scanned referral, claim or fax usually carries identifiers on the page itself: patient name, date of birth, member number, address, provider notes and free text in the body. A redaction step has to cover the whole document, including headers, footers, fax cover sheets, page margins, handwritten annotations and attachments. Redacting only the fields a form template marks as identifiers will miss information in narrative text. A partially redacted image sent to a cloud service is still PHI, and the cloud provider is then a business associate that needs a BAA. Run the redaction inside the covered entity's own environment, and test it against a sample of real document types before any production upload.
Whether a given method meets the Privacy Rule's de-identification standard is a legal and privacy determination that the covered entity or its privacy counsel must make, and it should be documented before go-live. Ask the privacy office which standard it relies on and what residual-risk review it performed. Confirm with the OCR vendor whether any original image, cached copy, log or model training artifact is retained, since any retained identifiable copy brings the service back into scope. Because OCR processes the content of the page, the conduit exception does not apply: a service that reads a document is not a transmission-only conduit, so the BAA question cannot be avoided by describing the service as a pipe.
Mapping HHS BAA and Security Rule requirements to OCR configuration
This table maps each HHS requirement that applies to a cloud OCR or document extraction service to the service capability or contract term that answers it and the configuration the covered entity must set. Read it as a checklist for the procurement and configuration review: a signed BAA covers the service only if the listed products are in scope, and the covered entity still owns the settings that the BAA cannot provide.
| Requirement | OCR service capability or contract term | Configuration the covered entity must set |
|---|---|---|
| BAA signed before any ePHI is sent | Cloud BAA covers listed services only, such as Amazon Textract under the AWS BAA and Document AI under the Google Cloud BAA | Confirm the exact OCR product is listed as covered, then execute the BAA before uploading any referral, fax or claim |
| Storage of encrypted ePHI without the key | Provider remains a business associate even without the decryption key | Treat encrypted document stores as in scope and include them in the BAA and risk analysis |
| Conduit exception does not apply | Services that process or store ePHI are business associates, not conduits | Do not rely on transmission-only routing to skip the BAA for any OCR pipeline with a storage step |
| Security Rule safeguards in the contract | BAA must require the business associate to meet applicable Security Rule safeguards | Review the BAA text for safeguard obligations and record them in the covered entity's risk analysis |
| Reporting of disallowed uses and breaches | BAA must require reporting of uses or disclosures not allowed by the contract and of breaches | Confirm notification paths and contacts in the BAA and route them to the privacy and security incident process |
| Return or destruction of PHI at termination | Required where feasible under the sample BAA provisions | Confirm deletion of stored input documents and extracted outputs is available, and set a documented exit procedure |
| Flow-down to subcontractors | Vendor must pass the same restrictions to its subcontractors | Request the vendor's subcontractor list and confirm the same BAA terms apply downstream |
| Auditing and documentation | HIPAA does not require the provider to allow audits; the BAA or SLA may set documentation rights | Negotiate evidence rights in the BAA or SLA based on the covered entity's own risk analysis |
| Storage or processing outside the United States | Permitted with a BAA in place, but the location's risks must be analyzed | Confirm processing regions for each OCR product and record the location risk in the Security Rule risk analysis |
Configuration sequence before OCR receives a referral or claim
This sequence confirms that the OCR service is covered by a signed BAA, sets the data handling choices that the BAA cannot make for you, and proves the pipeline works on synthetic documents before any live referral, fax or claim is routed through it.
Confirm the OCR service is named in the BAA
Privacy or compliance counsel checks the signed business associate agreement with the cloud provider and confirms that the specific OCR service you plan to use is listed as covered, not only the cloud platform in general. For AWS, the check is against the HIPAA Eligible Services Reference, which lists Amazon Textract as HIPAA eligible under an AWS BAA. For Google Cloud, confirm Document AI is among the products named in the Google Cloud BAA scope. Record the agreement version, the covered service names and the date you checked. The step is done when the file shows the OCR service on the covered list and the account the pipeline will run in is the one the BAA covers.
Review breach reporting, subcontractor and return terms
Privacy and legal review the BAA against the sample provisions HHS published, which describe what a business associate contract should require. Confirm the terms cover Security Rule safeguards, reporting of uses or disclosures the contract does not allow, breach notification, return or destruction of PHI at termination where feasible, and flow-down of the same restrictions to subcontractors. Ask the provider which subcontractors touch document content and where. Also ask whether audit evidence or safeguard documentation is available through the BAA or service level agreement, since HHS notes the Rules do not require the provider to permit audits. The step closes with a written gap list sent to the vendor for any term that is missing or unclear.
Decide on de-identification before upload
Privacy decides whether documents are de-identified before they reach the OCR service, and a named privacy officer approves the method in writing. HHS guidance says a service that receives only information de-identified under the Privacy Rule is not a business associate. In practice, referral and claim pages carry names, dates, member numbers and free text that are hard to strip completely, so the approved method must cover the full page image and the extracted text, not only the form fields. If the method cannot be proven, treat the pipeline as handling PHI and keep the BAA in force. The output is a signed method note that states which fields are removed, who verified the removal and what happens when a page fails the check.
Choose region, storage and record the risk analysis
Security selects the processing region and storage location for document images and extracted text, then records the choice in the Security Rule risk analysis. HHS guidance allows storage outside the United States when a BAA is in place, but the location's risks must be assessed in that analysis. Confirm in the provider's documentation which regions host the OCR service and whether any processing or temporary storage leaves that region. Document the decision owner, the reason for the region and the controls that address the location risk. The step is complete when the risk analysis entry exists and names the region, storage bucket and processing endpoint the pipeline uses.
Restrict IAM roles and bucket access
IT and security create a dedicated service role for the OCR pipeline and limit it to the input location, the output location and the OCR actions it needs. Storage buckets for faxes, referrals and claims are private, with public access blocked and encryption at rest enabled. Only named roles can read the extracted text, and human access to raw images is limited to a documented group. Review the policy with a second engineer and remove any broad administrative permissions copied from test accounts. The step is done when a policy review shows that no principal outside the pipeline and approved group can read or write the input or output paths.
Enable logging of submissions and outputs
Security turns on logging for document submissions, OCR job starts and completions, and output writes, and sends these logs to a central store that the security team controls. Logs should record who or what submitted a document, when, to which pipeline and where the output went, without copying the PHI itself into the log. Confirm retention for the logs matches your audit policy. Test that a sample submission produces a traceable record from intake to output. The step closes when the security team can trace one synthetic submission end to end from the log store alone.
Set retention for images and extracted text
Privacy and IT set separate retention periods for input images, intermediate files and extracted text, and configure the storage lifecycle so each rule runs automatically. Confirm whether the OCR service keeps any copy of submitted content after the job finishes and whether that behavior can be turned off or limited under the account settings. Document the retention schedule in the same risk analysis entry as the region decision. The step is complete when the lifecycle rules are visible in configuration, the schedule is approved by the privacy owner, and a test document is confirmed deleted when its retention window closes.
Test with synthetic documents before live routing
The operations and security team builds a set of synthetic referrals, faxes, claims and intake forms that resemble live layouts but contain invented patient data. They run these through the full pipeline, check extraction accuracy on the fields that matter, confirm that the logs, permissions and retention rules behave as documented, and test what happens when a page fails or is unreadable. Any failure returns to the earlier steps. Live faxes are routed only after privacy and security sign off on the test results in writing, and the first live routing is limited to the approved fax line or queue.
How a fax or claim moves through OCR and the BAA boundary
The diagram starts at the fax server or intake portal, where referrals, faxes, claims and intake forms first arrive as ePHI. A step controlled by the covered entity then either de-identifies the page under the Privacy Rule or passes PHI on. Only if PHI passes on does the cloud OCR service sit inside the business associate agreement boundary, so the signed BAA must cover that specific OCR product. Check where the extracted-data store and the logs are written, because both can hold PHI even when the OCR step is covered.
Illustrative flow showing where PHI enters, where the BAA applies, and where logs and data are written.
Evidence to keep for auditors and customer reviews
A privacy or security reviewer will judge the OCR pipeline on the records the covered entity keeps, not on a vendor badge. HHS OCR does not certify products, and no HHS-approved certification standard exists for a business associate, so the evidence is the signed contract plus the organization's own documentation of how the service is configured and used.
Signed BAA and named services
Keep the executed business associate agreement with the cloud provider and the list of services it names. The covered entity must have a BAA in place before any ePHI reaches the OCR service, because using a cloud service to maintain ePHI without one is a violation of the HIPAA Rules. Check that each document extraction service in your pipeline appears by name in the covered services list, not only the parent cloud account. A BAA that does not name the OCR service does not cover it.
- BAA requirement
- 45 CFR 164.308(b)(1)
Provider HIPAA documentation at signing
Save a dated copy of the provider's HIPAA documentation as it stood when you signed or renewed the BAA. Vendor pages change, and the reviewer will ask what the provider committed to at the time PHI first flowed into the pipeline. Record the URL, the access date and the scope statement for each OCR product. Treat any statement that a provider is HIPAA compliant as a claim to verify against your own use, since Google and Microsoft both say signing the BAA does not make the customer compliant.
Microsoft HIPAA offeringRisk analysis entry for the pipeline
The covered entity's Security Rule risk analysis should include a dedicated entry for the OCR pipeline. Describe every hop a referral, fax or claim takes, where the document is stored before and after extraction, which region hosts the service, and what happens if the provider is outside the United States. HHS says storage outside the United States is permitted under a BAA, but the location's risks must appear in the risk analysis. Link each risk to a treatment decision and an owner.
De-identification procedure and sign-off
If the pipeline claims that the provider receives only de-identified information, keep the written de-identification procedure, the method used, the person who approved it and the date. HHS states that a service receiving only information de-identified under the Privacy Rule is not a business associate, so this record decides whether the BAA applies at all. Include a sample of inputs and outputs showing that identifiers such as names, dates and record numbers were removed before the call. Without this record, assume the service is in scope.
IAM and access review records
Export the identity and access policies attached to the document buckets, processing roles and extraction API keys, along with the date of each access review and the reviewer's sign-off. Confirm that only named workflows can call the OCR service and that staff access to raw scanned documents is limited to the roles that need it. Keep the removal record for anyone who left the team. Reviewers often find over-broad roles in this step, so the review should show who checked them and what changed.
Configuration exports and test runs
Keep exports of the logging, encryption and retention settings for the OCR service, the storage buckets and the output store, taken at the review date. Pair them with a log of test runs using synthetic documents such as made-up referrals, faxes and claims, showing what was extracted, where output landed and when it was deleted. The provider's audit rights are limited: HHS notes the Rules do not require a provider to allow customer audits, so ask for documentation rights and audit reports in the BAA or service level agreement before you rely on them.
What buyers ask about OCR, BAAs and de-identification
Does a BAA with the cloud provider cover OCR for medical documents?
A BAA covers an OCR service only when the provider lists that specific service as HIPAA eligible under its BAA. Amazon Textract is listed as HIPAA eligible under an AWS BAA in the AWS HIPAA Eligible Services Reference, and Google Cloud's HIPAA page lists Document AI and Document AI Warehouse among the products covered by the Google Cloud BAA. Confirm the service name, region and account type against the current list, because eligibility is set per service, not per cloud account. Under HHS guidance, a cloud provider that creates, receives, maintains or transmits ePHI for you is a business associate even if it cannot view the data, so the BAA must be executed before any document is uploaded. Also confirm that the OCR output storage, logs and any downstream service you use are covered, since a covered service that writes results to an uncovered bucket or tool still exposes PHI.
If OCR output is only a few extracted fields, is it still PHI?
Usually yes, if the fields identify a patient or relate to care. A referral that yields a patient name, date of birth and diagnosis code is still ePHI even when only three fields leave the document, because the output is individually identifiable health information. Treat the extracted data with the same controls as the source document: encryption, access logging, retention limits and a BAA covering every service that stores or transmits it. Reducing the output scope does reduce risk and can simplify your Security Rule risk analysis, but it does not remove business associate status for the service that processes the original document.
Can we de-identify a fax before uploading it to an OCR service?
Only if the de-identification meets the Privacy Rule standard, and only if you can show it did. HHS guidance says a provider that receives and maintains only information de-identified under the Privacy Rule is not a business associate, because de-identified information is not PHI. The hard part is that OCR must read the document to find identifiers, so redacting before OCR means running a process that already touches the PHI, and that process needs its own controls and a BAA if a vendor performs it. Handwritten notes, faxed headers, free text in referrals and image artifacts make complete redaction error-prone. Confirm with your privacy officer which de-identification method you will use, whether you will retain a re-identification key, and how you will test the output before any service receives it.
What drives the cost and effort of a configuration review for OCR?
The main drivers are the number of document types, the number of systems that receive extracted data, the complexity of de-identification and the evidence your compliance team requires. A review covering one form type sent to one cloud service costs less effort than one covering referrals, faxes, claims and intake forms routed into an EHR, a data warehouse and a claims system. Ask any provider for a written scope listing document types, integrations, storage locations, logging and retention settings, and the evidence deliverables. DeployOpen works on fixed-scope engagements agreed in writing before work starts, and it does not publish a price list, so a quote follows from that scope. DeployOpen prepares systems, controls and evidence for compliance assessments but does not issue audit reports or certifications.
What does the OCR project need from our staff?
It needs named owners from privacy, security, the business unit that owns each document type, and the team that runs the receiving systems. Privacy must define which fields are PHI, what de-identification is allowed and what the retention rule is. Security must approve access roles, encryption, logging and the subcontractor list. The document owners must provide sample forms, including poor scans and faxes, so accuracy can be checked against real layouts without exposing data outside approved environments. Expect the BAA and vendor questionnaire to need legal review. Plan for these people to be available during configuration and testing, since delays usually come from waiting for decisions rather than from technical work.
Can our team run a self-hosted OCR pipeline without outside help?
A team with document engineering and security skills can run an open-source OCR pipeline inside its own infrastructure, which removes the business associate question for the OCR step itself. The work includes access control, audit logging, backups, patching, retention and monitoring, and it recurs for as long as the system runs. Self-hosting does not remove HIPAA obligations: your Security Rule risk analysis, workforce training and incident response still apply. If your team lacks capacity or evidence experience, a fixed-scope engagement can cover hardening, documentation and assessment preparation while your staff keep operating the system. Confirm which open-source OCR engines and model licenses permit your intended use before you commit.
Which terms should we confirm in the vendor contract before uploading PHI?
Confirm that the BAA names the specific OCR service, that it requires Security Rule safeguards, reporting of uses or disclosures not allowed by the contract and breaches, and return or destruction of PHI at termination where feasible. HHS sample provisions also require flow-down of the same restrictions to subcontractors. Check whether the vendor offers audit documentation or certifications, since HHS says the Rules do not require providers to allow customer audits, so this must come through the BAA or service level agreement. Confirm where data is stored and processed, and whether processing outside the United States applies to your deployment. Find these terms in the vendor's HIPAA documentation and your signed agreement, not in marketing pages.
What a cloud BAA does not cover for OCR pipelines
A signed cloud BAA covers the named services under that agreement, not the whole pipeline around them. Each gap below is a place where scanned referrals, faxes, claims or intake forms can leave the covered path without anyone deciding that it should.
Services outside the named BAA list
A cloud BAA covers only the services it names as HIPAA eligible. Amazon Textract and Amazon Comprehend Medical are listed under the AWS BAA, and Document AI and Document AI Warehouse are listed under the Google Cloud BAA, but a neighboring service such as a storage add-on, a preview feature or a managed workflow may not be. Before you build, compare each service in the design against the current eligibility list and record the result in your risk analysis. Confirm the list version you checked, because eligibility lists change.
AWS eligible services listDownstream systems that receive extracted data
OCR output is usually pushed to an EHR, a claims system, a data warehouse, a message queue or a spreadsheet export. Each of those systems creates, receives, maintains or transmits ePHI on your behalf, so each needs its own BAA or must be inside your covered environment. Map every destination of the extracted fields, including logs and error queues that carry the raw text. Ask each downstream vendor for a signed BAA before the first production run.
LLM and summarization steps after OCR
Many pipelines add a language model after OCR to summarize a referral, classify a fax or pull fields from free text. That model call is a separate service with its own BAA status, endpoint and retention settings, even when the OCR step is covered. Treat the model call as a new vendor review. Confirm which endpoint is used, whether zero data retention applies, and whether the BAA names that endpoint. Do not assume that an OCR BAA extends to a model call made later in the same workflow.
Handwritten or poor-quality faxes sent for manual review
When extraction confidence is low, many pipelines route the page to a human reviewer through a ticketing tool, a shared inbox or an email attachment. That channel is often outside the covered service and has weaker access logging. Define a review path that stays inside the covered environment, with named reviewers and time-limited access. Ask whether any review vendor or crowd tool is involved, and confirm it signs a BAA before it sees a page.
Internal staff access and misrouted faxes
A BAA governs the vendor, not your own staff. Staff who can open the document store, the review queue or the output database can read ePHI, so role-based access, audit logs and access reviews still apply. Misrouted faxes are a separate risk: a page sent to the wrong number or indexed under the wrong patient can reach people who should never see it. Document how misrouted pages are detected, quarantined and reported under your breach procedures.
Storage outside the United States
HHS guidance allows a covered entity to use a provider that stores ePHI outside the United States if a BAA is in place, but the location must be accounted for in the Security Rule risk analysis. Check the region where scanned pages, OCR output and logs are stored, including backups and any replicated copies. Record the location, the transfer risk and the controls you chose. If a region cannot be documented, restrict the pipeline to a region you can document.
HHS cloud computing guidanceHow DeployOpen helps an organization put OCR under its HIPAA controls
DeployOpen plans, implements and documents self-hosted open-source document extraction inside the client's own infrastructure, so the covered entity controls where referrals, faxes, claims and intake forms are processed. The work is scoped in writing, built with access control and audit logging, and handed over with evidence that the client's privacy and security teams can review.
How we scope
- Inventory which document types carry PHI, such as referrals, faxed records, claims and intake forms.
- Map every OCR and extraction step, including storage, logs and any downstream systems that receive output.
- Confirm which parts of the pipeline would touch identifiable data and which could run only on de-identified content.
- Agree deliverables, timelines and the written scope before any work starts, since engagements are fixed-scope.
How we build
- Deploy the chosen open-source OCR and extraction components in the client's cloud account, data center or air-gapped network.
- Configure SSO, role-based access control and audit logging for every document queue and extracted-data store.
- Set encryption, retention and deletion controls for scanned images, intermediate files and extracted text.
- Test the deployment for data exposure, misrouted documents and access gaps before the client relies on it.
How we hand over
- Deliver written documentation of the architecture, data flows, access model and configured safeguards.
- Provide evidence packages mapped to the client's own HIPAA Security Rule risk analysis and control inventory.
- Record which vendor agreements, such as a business associate agreement with any hosted component, the client still needs to obtain.
- Walk the client's security, privacy and operations staff through the runbook and open findings.
How we support
- Back up and upgrade the self-hosted OCR stack on an agreed schedule, with changes documented.
- Retest the pipeline after upgrades, configuration changes or new document types are added.
- Offer ongoing support, upgrades and continuous security testing as a retainer, priced from the written scope.
- Help the client answer assessor and auditor questions with the evidence DeployOpen prepared, while auditors issue any findings.

