{
  "version": "1.0.0",
  "exportedAt": "2026-09-03T12:09:25.369Z",
  "workflow": {
    "name": "X12 271 to FHIR Coverage (Example)",
    "description": "Downloadable Academy example: receives an X12 271 eligibility response and maps it to a FHIR R4 Coverage resource using the bundled mapping project. Synthetic data only."
  },
  "flow": {
    "tab": {
      "id": "workflow_515b651e-0f2f-443d-96ed-9a802471c5dc",
      "type": "tab",
      "label": "X12 271 to FHIR Coverage (Example)",
      "disabled": false,
      "info": "Downloadable Academy example: receives an X12 271 eligibility response and maps it to a FHIR R4 Coverage resource using the bundled mapping project. Synthetic data only.",
      "created": "2026-09-03T11:29:56.508Z"
    },
    "nodes": [
      {
        "id": "cmt3_entry",
        "type": "comment",
        "z": "workflow_515b651e-0f2f-443d-96ed-9a802471c5dc",
        "name": "Click Inject to test instantly with the built-in synthetic X12 271 eligibility response.",
        "info": "",
        "x": 910,
        "y": 620,
        "wires": []
      },
      {
        "id": "inj3_test",
        "type": "inject",
        "z": "workflow_515b651e-0f2f-443d-96ed-9a802471c5dc",
        "name": "Test with sample 271",
        "props": [
          {
            "p": "payload"
          }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240115*1200*^*00501*000000001*0*P*:~\nGS*HB*SENDER*RECEIVER*20240115*1200*1*X*005010X279A1~\nST*271*0001~\nBHT*0022*11*10001234*20240115*1200~\nHL*1**20*1~\nNM1*PR*2*ACME HEALTH PLAN*****PI*12345~\nHL*2*1*21*1~\nNM1*1P*2*GENERAL HOSPITAL*****XX*1999999999~\nHL*3*2*22*0~\nNM1*IL*1*DOE*JOHN*A***MI*SYN12345~\nDMG*D8*19800101*M~\nEB*1*IND*30**GOLD PPO~\nEB*C*IND*30***23*400~\nEB*B*IND*30****10~\nSE*13*0001~\nGE*1*1~\nIEA*1*000000001~",
        "payloadType": "str",
        "x": 730,
        "y": 700,
        "wires": [
          [
            "map3_run"
          ]
        ]
      },
      {
        "id": "cmt3_mapper",
        "type": "comment",
        "z": "workflow_515b651e-0f2f-443d-96ed-9a802471c5dc",
        "name": "Mapper runs the bundled \"X12 271 Eligibility to FHIR Coverage\" mapping project, producing a FHIR R4 Coverage resource.",
        "info": "",
        "x": 1090,
        "y": 660,
        "wires": []
      },
      {
        "id": "map3_run",
        "type": "ec-mapper",
        "z": "workflow_515b651e-0f2f-443d-96ed-9a802471c5dc",
        "name": "",
        "projectId": "mapping_ebfb842e-e9dc-4e2b-ac4e-01ddcf96a56d",
        "projectName": "X12 271 Eligibility to FHIR Coverage",
        "templateId": "",
        "inputField": "payload",
        "inputFieldType": "msg",
        "outputField": "payload",
        "outputFieldType": "msg",
        "x": 1070,
        "y": 720,
        "wires": [
          [
            "dbg3_output"
          ]
        ]
      },
      {
        "id": "dbg3_output",
        "type": "debug",
        "z": "workflow_515b651e-0f2f-443d-96ed-9a802471c5dc",
        "name": "FHIR Coverage output",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1390,
        "y": 720,
        "wires": []
      }
    ]
  },
  "requirements": [],
  "mappingProjects": [
    {
      "schemaVersion": 1,
      "exportedAt": "2026-09-03T12:09:27.903Z",
      "project": {
        "id": "mapping_ebfb842e-e9dc-4e2b-ac4e-01ddcf96a56d",
        "name": "X12 271 Eligibility to FHIR Coverage",
        "description": "Example mapping: an X12 271 eligibility response transformed into a FHIR R4 Coverage resource. Synthetic data only.",
        "templates": [
          {
            "id": "tmpl_8a387b05-294f-49fd-92ac-bd1afb034839",
            "triggerEvent": "271",
            "triggerVersion": "005010",
            "label": "X12 271 to Coverage",
            "description": "Eligibility response mapped to a FHIR Coverage resource",
            "sourceType": "x12",
            "targetType": "json",
            "mode": "fields",
            "mappings": [
              {
                "id": "310556c5-f16f-486d-b12c-9bd187ccbd2e",
                "targetPath": "subscriberId",
                "sourceRef": "NM109:NM101[\"IL\"]",
                "filterRefs": [],
                "directives": []
              },
              {
                "id": "f0830775-ccc9-4c88-aab2-c007d90724f5",
                "targetPath": "payor[0].display",
                "sourceRef": "NM103:NM101[\"PR\"]",
                "filterRefs": [],
                "directives": []
              },
              {
                "id": "c1d10c2d-9500-45e2-9064-98ce0f2cde0b",
                "targetPath": "resourceType",
                "expression": "{{ 'Coverage' }}",
                "filterRefs": [],
                "directives": []
              },
              {
                "id": "b27a4534-bace-4db2-bc92-1656f6524e12",
                "targetPath": "status",
                "expression": "{{ 'active' }}",
                "filterRefs": [],
                "directives": []
              },
              {
                "id": "a46337bc-e4cb-495c-a74d-98e640565ce5",
                "targetPath": "beneficiary.reference",
                "expression": "{{ 'Patient/example' }}",
                "filterRefs": [],
                "directives": []
              }
            ],
            "repeatingGroups": [],
            "targetSchema": [
              {
                "id": "resourceType",
                "segment": "resourceType",
                "suggestedName": "Resource Type",
                "valueType": "string"
              },
              {
                "id": "status",
                "segment": "status",
                "suggestedName": "Status",
                "valueType": "string"
              },
              {
                "id": "subscriberId",
                "segment": "subscriberId",
                "suggestedName": "Subscriber Id",
                "valueType": "string"
              },
              {
                "id": "beneficiary",
                "segment": "beneficiary",
                "suggestedName": "Beneficiary",
                "children": [
                  {
                    "id": "beneficiary.reference",
                    "segment": "beneficiary",
                    "suggestedName": "Reference",
                    "valueType": "string"
                  }
                ]
              },
              {
                "id": "payor[0]",
                "segment": "payor",
                "suggestedName": "Payor",
                "children": [
                  {
                    "id": "payor[0].display",
                    "segment": "payor",
                    "suggestedName": "Display",
                    "valueType": "string"
                  }
                ]
              },
              {
                "id": "period",
                "segment": "period",
                "suggestedName": "Period",
                "children": [
                  {
                    "id": "period.start",
                    "segment": "period",
                    "suggestedName": "Start",
                    "valueType": "string"
                  }
                ]
              }
            ],
            "sourceSchema": [
              {
                "id": "NM1[PR]",
                "segment": "NM1",
                "suggestedName": "Payer",
                "children": [
                  {
                    "id": "NM102:NM101[\"PR\"]",
                    "segment": "NM1",
                    "suggestedName": "Entity Type Qualifier",
                    "valueType": "string"
                  },
                  {
                    "id": "NM103:NM101[\"PR\"]",
                    "segment": "NM1",
                    "suggestedName": "Last Name / Organization Name",
                    "valueType": "string"
                  },
                  {
                    "id": "NM108:NM101[\"PR\"]",
                    "segment": "NM1",
                    "suggestedName": "ID Code Qualifier",
                    "valueType": "string"
                  },
                  {
                    "id": "NM109:NM101[\"PR\"]",
                    "segment": "NM1",
                    "suggestedName": "ID Code",
                    "valueType": "string"
                  }
                ]
              },
              {
                "id": "NM1[1P]",
                "segment": "NM1",
                "suggestedName": "Provider",
                "children": [
                  {
                    "id": "NM102:NM101[\"1P\"]",
                    "segment": "NM1",
                    "suggestedName": "Entity Type Qualifier",
                    "valueType": "string"
                  },
                  {
                    "id": "NM103:NM101[\"1P\"]",
                    "segment": "NM1",
                    "suggestedName": "Last Name / Organization Name",
                    "valueType": "string"
                  },
                  {
                    "id": "NM108:NM101[\"1P\"]",
                    "segment": "NM1",
                    "suggestedName": "ID Code Qualifier",
                    "valueType": "string"
                  },
                  {
                    "id": "NM109:NM101[\"1P\"]",
                    "segment": "NM1",
                    "suggestedName": "ID Code",
                    "valueType": "string"
                  }
                ]
              },
              {
                "id": "NM1[IL]",
                "segment": "NM1",
                "suggestedName": "Subscriber/Insured",
                "children": [
                  {
                    "id": "NM102:NM101[\"IL\"]",
                    "segment": "NM1",
                    "suggestedName": "Entity Type Qualifier",
                    "valueType": "string"
                  },
                  {
                    "id": "NM103:NM101[\"IL\"]",
                    "segment": "NM1",
                    "suggestedName": "Last Name / Organization Name",
                    "valueType": "string"
                  },
                  {
                    "id": "NM104:NM101[\"IL\"]",
                    "segment": "NM1",
                    "suggestedName": "First Name",
                    "valueType": "string"
                  },
                  {
                    "id": "NM105:NM101[\"IL\"]",
                    "segment": "NM1",
                    "suggestedName": "Middle Name",
                    "valueType": "string"
                  },
                  {
                    "id": "NM108:NM101[\"IL\"]",
                    "segment": "NM1",
                    "suggestedName": "ID Code Qualifier",
                    "valueType": "string"
                  },
                  {
                    "id": "NM109:NM101[\"IL\"]",
                    "segment": "NM1",
                    "suggestedName": "ID Code",
                    "valueType": "string"
                  }
                ]
              },
              {
                "id": "BHT",
                "segment": "BHT",
                "children": [
                  {
                    "id": "BHT01",
                    "segment": "BHT",
                    "valueType": "string"
                  },
                  {
                    "id": "BHT02",
                    "segment": "BHT",
                    "valueType": "string"
                  },
                  {
                    "id": "BHT03",
                    "segment": "BHT",
                    "valueType": "string"
                  },
                  {
                    "id": "BHT04",
                    "segment": "BHT",
                    "valueType": "string"
                  },
                  {
                    "id": "BHT05",
                    "segment": "BHT",
                    "valueType": "string"
                  }
                ]
              },
              {
                "id": "HL",
                "segment": "HL",
                "occurrenceCount": 3,
                "children": [
                  {
                    "id": "HL01",
                    "segment": "HL",
                    "valueType": "string"
                  },
                  {
                    "id": "HL03",
                    "segment": "HL",
                    "valueType": "string"
                  },
                  {
                    "id": "HL04",
                    "segment": "HL",
                    "valueType": "string"
                  }
                ]
              },
              {
                "id": "DMG",
                "segment": "DMG",
                "children": [
                  {
                    "id": "DMG01",
                    "segment": "DMG",
                    "valueType": "string"
                  },
                  {
                    "id": "DMG02",
                    "segment": "DMG",
                    "valueType": "string"
                  },
                  {
                    "id": "DMG03",
                    "segment": "DMG",
                    "valueType": "string"
                  }
                ]
              },
              {
                "id": "EB",
                "segment": "EB",
                "occurrenceCount": 3,
                "children": [
                  {
                    "id": "EB01",
                    "segment": "EB",
                    "valueType": "string"
                  },
                  {
                    "id": "EB02",
                    "segment": "EB",
                    "valueType": "string"
                  },
                  {
                    "id": "EB03",
                    "segment": "EB",
                    "valueType": "string"
                  },
                  {
                    "id": "EB05",
                    "segment": "EB",
                    "valueType": "string"
                  }
                ]
              }
            ],
            "createdAt": "2026-09-03T11:22:19.579Z",
            "updatedAt": "2026-09-03T11:28:54.888Z",
            "samplesAreSynthetic": true,
            "sourceSample": "ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240115*1200*^*00501*000000001*0*P*:~\nGS*HB*SENDER*RECEIVER*20240115*1200*1*X*005010X279A1~\nST*271*0001~\nBHT*0022*11*10001234*20240115*1200~\nHL*1**20*1~\nNM1*PR*2*ACME HEALTH PLAN*****PI*12345~\nHL*2*1*21*1~\nNM1*1P*2*GENERAL HOSPITAL*****XX*1999999999~\nHL*3*2*22*0~\nNM1*IL*1*DOE*JOHN*A***MI*SYN12345~\nDMG*D8*19800101*M~\nEB*1*IND*30**GOLD PPO~\nEB*C*IND*30***23*400~\nEB*B*IND*30****10~\nSE*13*0001~\nGE*1*1~\nIEA*1*000000001~",
            "targetSample": "{\n  \"resourceType\": \"Coverage\",\n  \"status\": \"active\",\n  \"subscriberId\": \"SUBSCRIBER001\",\n  \"beneficiary\": {\n    \"reference\": \"Patient/example\"\n  },\n  \"payor\": [\n    {\n      \"display\": \"ACME Health Plan\"\n    }\n  ],\n  \"period\": {\n    \"start\": \"2026-01-01\"\n  }\n}",
            "compiledLiquid": "{\n  \"subscriberId\": \"{{ x12Data | x12_query: 'NM109:NM101[\\\"IL\\\"]' }}\",\n  \"payor\": [\n    {\n      \"display\": \"{{ x12Data | x12_query: 'NM103:NM101[\\\"PR\\\"]' }}\"\n    }\n  ],\n  \"resourceType\": \"{{ 'Coverage' }}\",\n  \"status\": \"{{ 'active' }}\",\n  \"beneficiary\": {\n    \"reference\": \"{{ 'Patient/example' }}\"\n  }\n}"
          }
        ],
        "filters": [],
        "resources": [],
        "fieldNames": {},
        "version": 5,
        "createdAt": "2026-09-03T11:20:47.774Z",
        "updatedAt": "2026-09-03T11:28:58.294Z"
      }
    }
  ]
}