Under CMS-0057-F, impacted payers face FHIR prior authorization API requirements that generally begin January 1, 2027, depending on payer type. A payer that keeps an existing X12 278 authorization system can choose to translate incoming Da Vinci PAS FHIR request bundles into X12 278 requests; a qualifying all-FHIR implementation is also permitted under HHS enforcement discretion. This article walks through the concepts of that mapping step by step, using short illustrative fragments drawn from Redix synthetic sample data.
Current status. The native Redix converter supports FHIR PAS to X12 278 request and response for supported inputs in a configured deployment. Method 2 also needs a configured partner adapter. Production delivery is scoped per customer. This article remains a conceptual mapping guide: its fragments are illustrative, drawn from Redix synthetic sample data, and are not output of the native converter. To convert a bundle, use the CMS PAS 278 tool.
In this article:
Open the CMS PAS 278 Tool (both directions)
The Pipeline
FHIR Claim
↓
Redix map files (native converter)
↓
RMap Canonical Model
↓
X12 278 RequestIn this design, a provider submits a prior authorization request as a Da Vinci PAS FHIR bundle. A payer whose authorization system still runs on X12 can translate that bundle into an X12 278 request before processing it. That is an integration choice for legacy systems, not a CMS requirement.
Note on architecture: The mapping examples below show the logical correspondence between PAS resources and X12 278 segments. In the Redix design, the transformation runs through a canonical intermediate model (RMap): FHIR → RMap → X12 278. The RMap layer keeps each external standard’s mapping separate, so a change on one side does not automatically require rewriting the other.
Step 1: Understand the FHIR PAS Bundle Structure
A Da Vinci PAS request is a FHIR Bundle containing a primary Claim resource plus supporting resources referenced by the Claim. This article uses PAS 2.0.1 for the profile details:
Bundle (type: collection) ├── Claim (primary resource) │ ├── identifier → Request reference ID │ ├── created → Request date/time │ ├── type → professional / institutional / ... │ ├── use → preauthorization │ ├── insurer → Reference → Organization │ ├── provider → Reference → Organization or PractitionerRole (requester) │ ├── patient → Reference → Patient (beneficiary) │ ├── insurance[].coverage → Reference → Coverage │ ├── careTeam[] → Organization or PractitionerRole + scope │ ├── diagnosis[] → diagnosisCodeableConcept (code on the Claim) │ └── item[] → Services: category, productOrService, extensions │ ├── Organization (insurer) ├── PractitionerRole → Practitioner (requester) ├── Patient (beneficiary) └── Coverage (subscriber, relationship, payor)
The key challenge: FHIR uses references between resources. The Claim doesn’t contain the patient’s name directly — it contains "patient": {"reference": "Patient/45080728-..."} which points to a separate Patient resource in the bundle.
The fragments in this article are short excerpts from a Redix synthetic sample bundle, with IDs shortened and X12 code-system URIs shown as published in the PAS 2.0.1 examples. They are not standalone valid resources or a complete Bundle.
Any FHIR-to-X12 mapping engine must resolve references before it can populate X12 segments.
Step 2: Understand the X12 278 Request Structure
The X12 278 prior authorization request (005010X217) is hierarchical: each level starts with an HL segment. A simplified view of the levels this article touches:
| X12 Loop | Segment | Purpose |
|---|---|---|
| Header | ISA/GS/ST/BHT | Interchange, group and transaction headers; BHT-02 13 = request |
| 2000A / 2010A | HL (20), NM1 | Utilization Management Organization (UMO) name and identifier |
| 2000B / 2010B | HL (21), NM1 | Requester name and identifier (for example, NPI) |
| 2000C / 2010C | HL (22), NM1/DMG | Subscriber name, member ID and demographics |
| 2000D / 2010D | HL (23), NM1/DMG | Dependent, only when the patient is not the subscriber |
| 2000E | HL (EV), UM/DTP/HI | Patient event — review information, dates, diagnosis codes |
| 2010EA | NM1 | Patient-event providers (for example, a service provider) |
| 2000F | HL (SS), UM, SV1/SV2/SV3 | Service level — requested services |
| Trailer | SE/GE/IEA | Transaction, group and interchange trailers |
Step 3: Map the Core Fields
Transaction Identification
| FHIR Path | X12 Segment | X12 Element | Example |
|---|---|---|---|
Claim.identifier (selected by system) |
BHT | BHT-03 (Reference ID) | PADEMO001 |
Claim.created |
BHT | BHT-04 (Date), BHT-05 (Time) | 20060101, 1200 |
| (fixed for this transaction) | BHT | BHT-01 (Structure), BHT-02 (Purpose) | 0007, 13 (request) |
FHIR input:
{
"identifier": [{
"system": "https://redix.com/fhir/NamingSystem/x12-bht-03",
"value": "PADEMO001"
}],
"created": "2006-01-01T12:00:00Z"
}X12 output:
BHT*0007*13*PADEMO001*20060101*1200~
A Claim can carry more than one identifier, so the mapping selects the one whose system it expects rather than taking the first entry.
Insurer (UMO) — Reference Resolution
The insurer is not stored inline. The Claim references an Organization:
FHIR input:
// Claim
"insurer": {"reference": "Organization/c0aed97e-..."}
// Referenced Organization
{
"resourceType": "Organization",
"name": "EXAMPLE HEALTH PLAN",
"identifier": [{
"system": "https://redix.com/fhir/NamingSystem/organization-id",
"value": "99999"
}]
}The mapping engine must:
- Follow the reference from
Claim.insurer - Find the Organization in the bundle
- Extract
nameand the identifier whose system it recognizes
X12 output:
NM1*X3*2*EXAMPLE HEALTH PLAN*****PI*99999~
The X3 qualifier identifies this as the UMO (Utilization Management Organization), and 2 marks a non-person entity. The identifier qualifier has to match what the identifier actually is. Here PI (payor identification) is a declared mapping rule for this identifier system; an ETIN would use 46 instead. An identifier with no recognized system or type should be reported as a mapping gap, not given a guessed qualifier.
Provider (Requester) — Reference Resolution
In PAS 2.0.1, Claim.provider is the requester. It references an Organization or a PractitionerRole; a PractitionerRole in turn references the Practitioner:
FHIR input:
// Claim
"provider": {"reference": "PractitionerRole/e67d807a-..."}
// Referenced PractitionerRole
{
"resourceType": "PractitionerRole",
"practitioner": {"reference": "Practitioner/86935fea-..."}
}
// Referenced Practitioner
{
"resourceType": "Practitioner",
"name": [{"family": "DOE", "given": ["JOHN"]}],
"identifier": [{"system": "http://hl7.org/fhir/sid/us-npi", "value": "1234567893"}]
}X12 output:
NM1*1P*1*DOE*JOHN****XX*1234567893~
1P = Provider, used here for the requester in loop 2010B. 1 = Person. XX = National Provider Identifier (NPI), chosen because the identifier’s system is the NPI system. When the requester is an Organization, NM1-02 is 2 and the organization name is used. Other provider roles, such as a service provider (SJ) at the patient-event level, are separate entities with their own NM1 segments; they are not the requester.
Subscriber — Demographics from Patient and Coverage
Claim.patient is the beneficiary: the person the services are for. The subscriber comes from the Coverage resource. In this example, Coverage declares the patient as the subscriber (relationship self), so the patient’s details populate the subscriber level:
FHIR input:
// Claim
"patient": {"reference": "Patient/45080728-..."},
"insurance": [{"sequence": 1, "focal": true, "coverage": {"reference": "Coverage/98aa499c-..."}}]
// Referenced Coverage (excerpt)
{
"resourceType": "Coverage",
"beneficiary": {"reference": "Patient/45080728-..."},
"subscriber": {"reference": "Patient/45080728-..."},
"relationship": {"coding": [{"system": "http://terminology.hl7.org/CodeSystem/subscriber-relationship", "code": "self"}]}
}
// Referenced Patient
{
"resourceType": "Patient",
"name": [{"family": "PUBLIC", "given": ["JANE"]}],
"identifier": [{"system": "https://redix.com/fhir/NamingSystem/member-id", "value": "MEMBER0001"}],
"birthDate": "1980-01-01",
"gender": "female"
}X12 output:
NM1*IL*1*PUBLIC*JANE****MI*MEMBER0001~ DMG*D8*19800101*F~
IL = Insured or Subscriber. MI = Member Identification Number. DMG carries the birth date (D8 = CCYYMMDD date) and gender from the Patient resource. When Coverage names a different subscriber, the subscriber’s details go in the subscriber level and the patient’s go in the dependent level (2000D/2010D); the patient cannot simply be reused as the insured.
Step 4: Map Extensions (The PAS-Specific Part)
Da Vinci PAS uses FHIR extensions for X12 values that don’t exist in base FHIR. In PAS 2.0.1, the values that feed the X12 UM segment sit on each Claim.item, not on the Claim itself. Two come from item extensions and one from a base element:
| PAS 2.0.1 Element | X12 UM Element | Example Values |
|---|---|---|
Claim.item.extension: extension-serviceItemRequestType |
UM-01 (Request Category) | HS (Health Services Review), SC (Specialty Care Review) |
Claim.item.extension: extension-certificationType |
UM-02 (Certification Type) | I (Initial) |
Claim.item.category |
UM-03 (Service Type) | 1 (Medical Care), 3 (Consultation) |
FHIR input (item excerpt):
"item": [
{
"sequence": 1,
"extension": [
{
"url": "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType",
"valueCodeableConcept": {
"coding": [{"system": "https://codesystem.x12.org/005010/1525", "code": "HS"}]
}
},
{
"url": "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType",
"valueCodeableConcept": {
"coding": [{"system": "https://codesystem.x12.org/005010/1322", "code": "I"}]
}
}
],
"category": {
"coding": [{"system": "https://codesystem.x12.org/005010/1365", "code": "1"}]
},
"locationCodeableConcept": {
"coding": [{"system": "https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set", "code": "11"}]
}
}
]X12 output:
UM*HS*I*1*11:B~
UM-04 carries the place of service (11) with facility code qualifier B; the Redix sample carries that qualifier as an additional coding, omitted from this excerpt. Where the UM segment is emitted (patient-event level 2000E, service level 2000F, or both) depends on the request shape and the recipient’s requirements; the Redix sample emits one UM at the patient-event level. If a request category or certification type is missing, the mapping needs an explicit, documented policy or should report the gap. There is no general standards rule for deriving it from Claim.type.
Step 5: Map Repeating Structures (Loops)
Diagnoses
In PAS 2.0.1, each diagnosis is a code carried directly on the Claim (diagnosisCodeableConcept), not a reference to a Condition resource:
FHIR input:
"diagnosis": [
{
"sequence": 1,
"diagnosisCodeableConcept": {
"coding": [{"system": "http://hl7.org/fhir/sid/icd-10-cm", "code": "M54.50"}]
}
}
]The X12 qualifier depends on both the code system and the diagnosis role:
| FHIR System | Principal Diagnosis | Other Diagnosis |
|---|---|---|
icd-10-cm |
ABK | ABF |
icd-9-cm (historical data only) |
BK | BF |
X12 output:
HI*ABK:M5450~
Which diagnosis is principal has to come from a documented rule, for example sequence or Claim.diagnosis.type, checked against what the recipient expects. The code system alone does not decide it.
Service Lines
Each Claim.item[] entry becomes a service-level entry:
FHIR input:
"item": [
{
"sequence": 1,
"productOrService": {
"coding": [{"code": "99213", "system": "http://www.ama-assn.org/go/cpt"}]
},
"quantity": {"value": 1, "unit": "UN"}
}
]X12 output:
SV1*HC:99213**UN*1~
UN (unit) and the count come from item.quantity. SV1-02, the line charge amount, is empty because the sample item carries no price. When a request includes one, the mapping has to declare the currency and use the line total (item.net) rather than the per-unit price.
The procedure qualifier is derived from the coding system:
| FHIR System | X12 Qualifier |
|---|---|
ama-assn.org/go/cpt |
HC |
hl7.org/fhir/sid/ndc |
N4 |
Step 6: The Provider Identity Problem
Provider roles are where a PAS-to-278 mapping needs the most explicit rules.
In PAS 2.0.1, Claim.provider (the requester) and each careTeam[].provider reference an Organization or a PractitionerRole, and a PractitionerRole chains further to a Practitioner and, where present, an Organization. Each care-team entry also carries the PAS careTeamClaimScope extension, which says whether it applies to the whole request or only to items that list it in item.careTeamSequence. The mapping engine must:
- Map
Claim.providerto the requester (2010B), separately from the care team - Follow each
careTeam[].providerreference, and through a PractitionerRole its practitioner and organization references - Determine entity type (person vs. organization) and identifier type (for example, NPI)
- Use the scope extension and
item.careTeamSequenceto choose the patient-event level (2010EA) or the service level (2010F) - Assign the X12 entity code from a documented role policy, and report entries the policy does not cover
FHIR input:
"careTeam": [
{
"sequence": 1,
"extension": [{
"url": "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-careTeamClaimScope",
"valueBoolean": true
}],
"provider": {"reference": "PractitionerRole/e67d807a-..."},
"role": {"coding": [{"system": "http://terminology.hl7.org/CodeSystem/claimcareteamrole", "code": "primary"}]}
}
]In this sample, the care-team entry references the same PractitionerRole as Claim.provider, so it describes the requester already carried in 2010B. A generic role such as primary does not say which X12 entity code applies (for example, SJ for a service provider), so emitting an extra event-level NM1 for it would need an explicit role policy. Without one, the mapping should report the gap rather than guess.
For 278 responses, the provider chain gets even more complex — the authorized provider may come from a PractitionerRole resource, requiring the engine to follow .practitioner and .organization chains before it can extract the NM1 fields.
Step 7: Putting It All Together
For reference, this is the synthetic X12 278 request the Redix PAS sandbox uses as its sample. It is the input of the X12-to-FHIR direction, and the FHIR fragments above come from the PAS bundle that conversion produces from it. It shows the hierarchy a reverse conversion has to rebuild: HL levels for the UMO (20), requester (21), subscriber (22), patient event (EV) and service (SS). It is not output of the native FHIR-to-X12 converter, and it is not a validated reference for every 278 scenario. Segment terminators are shown as ~.
ISA*00* *00* *ZZ*SUBMITTER *ZZ*RECEIVER *060101*1200*^*00501*000000001*0*T*:~ GS*HI*SUBMITTER*RECEIVER*20060101*1200*1*X*005010X217~ ST*278*0001*005010X217~ BHT*0007*13*PADEMO001*20060101*1200~ HL*1**20*1~ NM1*X3*2*EXAMPLE HEALTH PLAN*****PI*99999~ HL*2*1*21*1~ NM1*1P*1*DOE*JOHN****XX*1234567893~ HL*3*2*22*1~ NM1*IL*1*PUBLIC*JANE****MI*MEMBER0001~ DMG*D8*19800101*F~ HL*4*3*EV*1~ UM*HS*I*1*11:B~ HI*ABK:M5450~ HL*5*4*SS*0~ SV1*HC:99213**UN*1~ SE*15*0001~ GE*1*1~ IEA*1*000000001~
The fields have different origins. Names, identifiers, dates, review codes, place of service, the diagnosis and the service come from the bundle. BHT-01, BHT-02 and the HL structure are fixed by the transaction. The ISA/GS sender and receiver IDs and the control numbers come from trading-partner configuration, and SE-01 is a generated segment count (15 segments from ST through SE).
Visualize the Mapping
Seeing the mapping as a diagram makes the relationship between FHIR fields, mapping rules, and X12 output much clearer.
The Legacy DSL Mapping Viewer is a historical, read-only view of an earlier FHIR-to-RMap mapping, from before the native converter. It still shows the first half of the pipeline interactively:
- Left panel: FHIR resource tree (Claim, Patient, Organization, etc.)
- Center: Connection lines between source and target fields
- Right panel: RMap segments with X12 loop annotations
- Click any segment to see the DSL mapping rule and an example value trace
The viewer covers the FHIR → RMap stage of the pipeline. The second stage — RMap → X12 278 — is handled by the IFD/OFD engine, which uses the same canonical model to generate the final X12 output. Together, the two stages make up the FHIR PAS to X12 278 design described in this article. The viewer shows the earlier mapping rules, not the maps the native converter runs today; to convert a bundle, use the CMS PAS 278 tool.
Why an Intermediate Representation Matters
Direct FHIR-to-X12 mapping seems straightforward, but at scale it creates a maintenance problem. If you support multiple FHIR profiles and multiple X12 transaction types, the number of mappings grows as N × M.
The Redix approach uses a canonical intermediate model (RMap):
FHIR Claim
↓ (Redix map files, native converter)
RMap Canonical Model
↓ (IFD/OFD engine)
X12 278Instead of writing a separate mapping for every format pair, the mapping is written once in each direction: FHIR → RMap, and RMap → X12. This reduces the number of mappings to maintain from N × M toward N + M. Each new FHIR profile needs a mapping to RMap, and each new X12 format needs a mapping from RMap. That is a count of mappings, not a guarantee of unchanged meaning: each mapping still has to be tested, and a profile or implementation-guide change can still require changes to RMap or to both sides.
This is the same intermediate representation (IR) pattern used in compiler design — multiple front-ends, one IR, multiple back-ends.
Frequently Asked Questions
How do you map a FHIR PAS bundle to an X12 278 request?
A Da Vinci PAS 2.0.1 request bundle (Bundle type collection) contains a primary Claim with references to the Patient (beneficiary), the insurer Organization, the requester (Organization or PractitionerRole), Coverage, and care-team providers; diagnoses are codes carried on the Claim. A mapping resolves these references and populates the X12 278 hierarchy: BHT for transaction identification, HL levels for the UMO, requester, subscriber, patient event and service, NM1 for entity names and identifiers, UM for review information, HI for diagnosis codes, and SV1/SV2/SV3 for services. Redix FHIR PAS to X12 278 conversion, request and response, is available for supported inputs in a configured Redix deployment on the native Redix converter.
What are PAS extensions and how do they map to X12?
Da Vinci PAS adds extensions for X12 278 values that base FHIR does not carry. In PAS 2.0.1, the request category (UM-01) and certification type (UM-02) are item-level extensions on Claim.item (extension-serviceItemRequestType and extension-certificationType), and the service type (UM-03) comes from Claim.item.category. Where the UM segment is placed, and what happens when a value is missing, needs a documented mapping policy rather than a guess.
Why use a canonical model instead of direct FHIR-to-X12 mapping?
Direct mapping creates an N × M maintenance problem as you support more FHIR profiles and X12 transaction types. A canonical intermediate model like RMap reduces the number of mappings toward N + M: each FHIR format maps to RMap, and each X12 format maps from RMap. That is a mapping-count simplification, not a guarantee of lossless conversion; each mapping still needs testing as profiles evolve. It follows the intermediate representation pattern used in compiler design.
What is the hardest part of FHIR PAS to X12 278 mapping?
Provider roles. In PAS 2.0.1, Claim.provider (the requester) and each careTeam entry reference an Organization or a PractitionerRole, which may chain further to a Practitioner and an Organization. The mapping must keep the requester separate from care-team providers, follow each reference, determine entity type and identifier type, use the care-team scope to choose the patient-event or service level, and assign X12 entity codes from a documented role policy instead of guessing from a generic role.
References
- CMS Interoperability and Prior Authorization Final Rule (CMS-0057-F) — Centers for Medicare & Medicaid Services
- Da Vinci Prior Authorization Support (PAS) FHIR Implementation Guide — HL7 International