# A2A vs FHIR: Agent2Agent Protocol compared with HL7 FHIR R5 Task

Canonical: https://hol.org/standards/compare/a2a-vs-fhir

Schema review: 2026-11-12

A2A (Agent2Agent Protocol) and FHIR (HL7 FHIR R5 Task) are complementary layers, not substitutes. A2A: Cross-framework agent discovery and task collaboration, including Agent Cards. FHIR: Domain-specific work item with coded intent, clinical references and typed inputs/outputs. In “hand off a healthcare task to an agent”, FHIR natively defines 2 of 3 steps and A2A defines 1. HOL Throughline's crosswalk maps 8 fields across 2 directions, with 1 required-field gap; no transfer has been demonstrated end to end yet.

## Key findings

- Across 3 reviewed steps in “hand off a healthcare task to an agent”, A2A defines 1 natively and FHIR defines 2; no step is defined natively by both.

- Only A2A natively covers “Delegate a bounded task”.

- Only FHIR natively covers “Establish clinical context” and “Record the outcome”.

- No field maps directly; 7 need a transformation and 1 must be supplied from outside either message.

- 1 required target field has no usable mapping, and 3 semantic gaps are documented.

- All 4 acceptance tests for this workflow are still untested, so the crosswalk is a reviewed design proposal, not a conformance claim.

## When to choose A2A or FHIR

### Choose A2A if

- You need cross-framework agent discovery and task collaboration, including Agent Cards.

- The specification itself has to cover “Delegate a bounded task”; FHIR needs a profile or extension there.

- It fits the job A2A does in “hand off a healthcare task to an agent”: generic task lifecycle and artifacts; clinical meaning must be supplied by a domain profile.

### Choose FHIR if

- You need domain-specific work item with coded intent, clinical references and typed inputs/outputs.

- The specification itself has to cover “Establish clinical context” and “Record the outcome”; A2A needs a profile or extension there.

- You want the standard that natively defines more of “hand off a healthcare task to an agent” (2 of 3 steps).

- It fits the job FHIR does in “hand off a healthcare task to an agent”: domain-specific work item with coded intent, clinical references and typed inputs/outputs.

## At a glance

| | A2A | FHIR |
|---|---|---|
| What it does | Cross-framework agent discovery and task collaboration, including Agent Cards. | Domain-specific work item with coded intent, clinical references and typed inputs/outputs. |
| Maturity | Published | Unknown |
| Schemas reviewed | 4 | 3 |
| Steps defined natively | 1 of 3 | 2 of 3 |

## Step-by-step responsibility

- Hand off a healthcare task to an agent → Establish clinical context: A2A needs a profile (Task metadata alone does not define clinical intent or consent.) · FHIR defined in spec (Task defines clinical intent, status and contextual references.)

- Hand off a healthcare task to an agent → Delegate a bounded task: A2A defined in spec (Task and status represent generic delegated work.) · FHIR needs a profile (An agent handoff requires a domain and trust profile.)

- Hand off a healthcare task to an agent → Record the outcome: A2A needs a profile (Artifacts and task state need a validated FHIR projection.) · FHIR defined in spec (Task output and state record work under the domain workflow.)

## Field-level crosswalk

### FHIR Task → A2A Task

5.0.0 / R5 → 1.0.1 · proposed

A healthcare workflow profile must preserve the clinical work item alongside a generic agent task.

- identifier → id [transform]: Use a stable namespaced correlation key under a defined bridge policy. Loss: FHIR business identifiers and A2A server-generated task IDs have different authority and cardinality.

- status + statusReason → status [transform]: Apply an explicit state mapping and retain the original FHIR status/reason. Loss: FHIR accepted, ready and on-hold do not have simple one-to-one A2A state mappings.

- for + focus + intent + owner + input → metadata [transform]: Keep authorized references and domain semantics in a declared profile or protected reference envelope. Loss: Generic metadata does not validate FHIR clinical semantics, consent or access control.

- output → artifacts [transform]: Wrap typed, authorized output references with artifact IDs and media types. Loss: Preserve CodeableConcept types and the chosen value[x] representation.

- Gap: Clinical context and consent. The domain profile must carry task intent, subject/focus references, responsible owner and applicable access policy. A2A Task alone does not define them.

- Gap: Clinical state mapping. A completed technical task does not by itself establish that the clinical work item is complete.

### A2A Task → FHIR Task

1.0.1 → 5.0.0 / R5 · proposed

Create or update a clinical work item only with an explicit domain profile and authorized context.

- id → identifier [transform]: Store a namespaced correlation identifier; retain the clinical system identifier. Loss: FHIR identifiers can be plural and carry systems.

- status → status [transform]: Map only reviewed states and retain source state information. Loss: Agent completion is not automatic clinical completion.

- External input → resourceType [supplied]: Set the FHIR resource discriminator to Task. Loss: Validate the resource against R5 and its applicable profile.

- External input → intent [gap]: Obtain clinical workflow intent from the authorized caller or domain profile. Loss: A2A Task has no equivalent required intent field.

- artifacts → output [transform]: Produce typed outputs with CodeableConcept and exactly one value[x] per entry. Loss: An opaque agent artifact does not determine a clinical code.

Required target gaps: intent

- Gap: Required domain semantics. The applicable implementation guide may add requirements beyond the base Task resource, including subject, owner and terminology bindings.

## Questions

### What is the difference between A2A and FHIR?

A2A (Agent2Agent Protocol) and FHIR (HL7 FHIR R5 Task) are complementary layers, not substitutes. A2A: Cross-framework agent discovery and task collaboration, including Agent Cards. FHIR: Domain-specific work item with coded intent, clinical references and typed inputs/outputs. In “hand off a healthcare task to an agent”, FHIR natively defines 2 of 3 steps and A2A defines 1. HOL Throughline's crosswalk maps 8 fields across 2 directions, with 1 required-field gap; no transfer has been demonstrated end to end yet.

### When should you use A2A vs FHIR?

Use A2A for cross-framework agent discovery and task collaboration, including Agent Cards. Use FHIR for domain-specific work item with coded intent, clinical references and typed inputs/outputs. In “hand off a healthcare task to an agent”, only A2A natively covers “Delegate a bounded task”. Only FHIR natively covers “Establish clinical context” and “Record the outcome”.

### Do you need both A2A and FHIR?

Usually. Each covers steps the other does not: in “hand off a healthcare task to an agent”, only A2A natively covers “Delegate a bounded task” and only FHIR covers “Establish clinical context” and “Record the outcome”. Systems that need both responsibilities use both specifications and map data between them.

### Can A2A replace FHIR?

No. In the reviewed workflow, A2A natively covers “Delegate a bounded task” and FHIR natively covers “Establish clinical context” and “Record the outcome”. A system that needs both responsibilities uses both specifications and maps data between them.

### How do A2A and FHIR work together?

Data crosses the boundary in 2 directions: FHIR Task → A2A Task and A2A Task → FHIR Task. 0 fields map directly and 7 need a transformation; 1 required field still need a trusted source.

### Has A2A-FHIR interoperability been tested?

0 of 4 acceptance tests for “hand off a healthcare task to an agent” have passed, and no transfer has been demonstrated end to end yet. Treat the mappings as a reviewed design proposal, not a conformance claim.

### Which versions does this comparison cover?

A2A schemas: 1.0.1. FHIR schemas: 5.0.0 / R5. Source definitions were observed 2026-11-12 and carry revision and SHA-256 hashes.

## Reviewed workflows

- [Hand off a healthcare task to an agent](https://hol.org/standards/workflows/workflow-healthcare-task): Compare HL7 FHIR R5 Task with A2A while preserving clinical intent, subject, ownership and state.

## Sources

- [Agent2Agent Protocol (primary source)](https://github.com/a2aproject/A2A)

- [HL7 FHIR R5 Task (primary source)](https://info.hl7.org/ai)

- [A2A Artifact · 1.0.1](https://raw.githubusercontent.com/a2aproject/A2A/v1.0.1/specification/a2a.proto) — observed 2026-11-12

- [A2A Part · 1.0.1](https://raw.githubusercontent.com/a2aproject/A2A/v1.0.1/specification/a2a.proto) — observed 2026-11-12

- [A2A Task · 1.0.1](https://raw.githubusercontent.com/a2aproject/A2A/v1.0.1/specification/a2a.proto) — observed 2026-11-12

- [A2A TaskStatus · 1.0.1](https://raw.githubusercontent.com/a2aproject/A2A/v1.0.1/specification/a2a.proto) — observed 2026-11-12

- [HL7 FHIR Task · Task · 5.0.0 / R5](https://hl7.org/fhir/R5/task.schema.json) — observed 2026-11-12

- [HL7 FHIR Task · Task_Input · 5.0.0 / R5](https://hl7.org/fhir/R5/task.schema.json) — observed 2026-11-12

- [HL7 FHIR Task · Task_Output · 5.0.0 / R5](https://hl7.org/fhir/R5/task.schema.json) — observed 2026-11-12

## How to cite

HOL Throughline, “A2A vs FHIR: field-level comparison,” schema review 2026-11-12, https://hol.org/standards/compare/a2a-vs-fhir.

## Limits

Version-specific editorial comparison. Proposed crosswalks and untested acceptance criteria do not establish interoperability, conformance or any agreement between the organizations involved.
