{"schemaVersion":1,"resourceType":"connector","slug":"x12","name":"X12 EDI","catalog":"x12","description":"Inspect and edit healthcare and business interchanges without moving data off your machine","language":"Rust","categories":["formats"],"repository":"https://github.com/Query-farm/vgi-x12","license":"MIT","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.6.0","publishedAt":"2026-11-25T20:23:46Z","url":"https://github.com/Query-farm/vgi-x12/releases/tag/v0.6.0"},"links":{"html":"https://query.farm/products/orchard/connectors/x12/","llms":"https://query.farm/products/orchard/connectors/x12/llms.txt","markdown":"https://query.farm/products/orchard/connectors/x12/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/x12.json","objects":"https://query.farm/products/orchard/api/v1/connectors/x12/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=x12&q={query}"},"authentication":{"mode":"none_declared","guidance":"No service credentials are declared by this connector. Individual datasets, input files or deployments may have their own prerequisites.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[]},"deployment":{"local":{"methods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Downloads the latest release for your platform and caches it locally.","lang":"sql","code":"ATTACH 'x12' AS x12 (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-x12'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'x12' AS x12 (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-x12:0.6.0'\n);"}]}],"pinnedMethods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Uses the verified release each time you attach the connector.","lang":"sql","code":"ATTACH 'x12' AS x12 (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-x12@v0.6.0'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'x12' AS x12 (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-x12:0.6.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-x12","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=x12","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'x12' AS x12 (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-x12'\n);","attachOptions":[],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"See what you can query","sql":"SELECT segment_index, element_index, value FROM x12.main.segments_elements('ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240101*1200*^*00501*000000001*0*P*:~GS*XX*SEND*RECV*20240101*1200*1*X*005010~ST*837*0001~BHT*0019*00*REF01*20240101*1200*CH~CLM*ACCT777*500***11:B:1*Y~SV1*HC:99213*200*UN*1~CLM*ACCT778*1000***11:B:1*Y~SV1*HC:99214*1000*UN*1~SE*7*0001~GE*1*1~IEA*1*000000001~') WHERE segment_id = 'CLM';","requiresCredentials":null,"note":null,"objects":[{"name":"x12.main.segments_elements","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/x12/#obj-main-segments_elements","markdown":"https://query.farm/products/orchard/connectors/x12/objects/table_function.bWFpbg.c2VnbWVudHNfZWxlbWVudHM.md","json":"https://query.farm/products/orchard/api/v1/connectors/x12/objects/table_function.bWFpbg.c2VnbWVudHNfZWxlbWVudHM.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:24:17+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.6.0","sample":{"columns":["segment_index","element_index","value"],"types":["BIGINT","INTEGER","VARCHAR"],"rows":[[2,1,"ACCT777"],[2,2,"500"],[2,3,""],[2,4,""],[2,5,"11"]],"more":true}},"artifact":null},"objects":{"total":18,"index":"https://query.farm/products/orchard/api/v1/connectors/x12/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=x12&q={query}"},"agentTasks":["Sniff the element separator character used by this ISA header string: 'ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240101*1200*^*00501*000000001*0*P*:~'. Return one row with a single column named element_sep.","Detect the transaction set type of this X12 interchange using the worker's inline-content support (do not write it to a file): 'ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240101*1200*^*00501*000000001*0*P*:~GS*XX*SEND*RECV*20240101*1200*1*X*005010~ST*835*0001~BPR*I*1500*C*ACH~TRN*1*TRACE0001*1512345678~NM1*PR*2*ACME HEALTH PLAN*****PI*PAYER001~NM1*PE*2*WELLNESS CLINIC LLC*****XX*1999999999~CLP*PCN1001*1*500*400*100*MC*CCN0001*11~CAS*CO*45*100~SVC*HC:99213*200*160**1~DTM*232*20240110~CLP*PCN1002*4*1000*0*0*MC*CCN0002*11~SE*11*0001~GE*1*1~IEA*1*000000001~'. Return one column named tx_type.","Using the transaction_sets reference view, which shaped read_* function parses X12 transaction set 835? Return its shaped_function.","Count the segments in the interchange. Return one column named n. Use the worker's inline-content support (do not write it to a file) over this X12 interchange: 'ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240101*1200*^*00501*000000001*0*P*:~GS*XX*SEND*RECV*20240101*1200*1*X*005010~ST*837*0001~BHT*0019*00*REF01*20240101*1200*CH~NM1*85*2*BILLING CLINIC*****XX*1122334455~NM1*IL*1*DOE*JOHN****MI*MEMBER123~SBR*P*18**GROUP PLAN~NM1*QC*1*DOE*JANE~CLM*ACCT777*500***11:B:1*Y~HI*ABK:Z1234~SV1*HC:99213*200*UN*1~DTP*472*D8*20240105~SE*11*0001~GE*1*1~IEA*1*000000001~'.","Count every segment in the complete interchange, including ISA, GS, GE, and IEA. Return one column named n. Use the worker's inline-content support (do not write it to a file) over this X12 interchange: 'ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240101*1200*^*00501*000000001*0*P*:~GS*XX*SEND*RECV*20240101*1200*1*X*005010~ST*837*0001~BHT*0019*00*REF01*20240101*1200*CH~NM1*85*2*BILLING CLINIC*****XX*1122334455~NM1*IL*1*DOE*JOHN****MI*MEMBER123~SBR*P*18**GROUP PLAN~NM1*QC*1*DOE*JANE~CLM*ACCT777*500***11:B:1*Y~HI*ABK:Z1234~SV1*HC:99213*200*UN*1~DTP*472*D8*20240105~SE*11*0001~GE*1*1~IEA*1*000000001~'.","Count the exploded elements in the interchange. Return one column named n. Use the worker's inline-content support (do not write it to a file) over this X12 interchange: 'ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240101*1200*^*00501*000000001*0*P*:~GS*XX*SEND*RECV*20240101*1200*1*X*005010~ST*837*0001~BHT*0019*00*REF01*20240101*1200*CH~NM1*85*2*BILLING CLINIC*****XX*1122334455~NM1*IL*1*DOE*JOHN****MI*MEMBER123~SBR*P*18**GROUP PLAN~NM1*QC*1*DOE*JANE~CLM*ACCT777*500***11:B:1*Y~HI*ABK:Z1234~SV1*HC:99213*200*UN*1~DTP*472*D8*20240105~SE*11*0001~GE*1*1~IEA*1*000000001~'.","Report the transaction type and whether the SE segment count validates. Return columns transaction_type and se_count_ok. Use the worker's inline-content support (do not write it to a file) over this X12 interchange: 'ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240101*1200*^*00501*000000001*0*P*:~GS*XX*SEND*RECV*20240101*1200*1*X*005010~ST*837*0001~BHT*0019*00*REF01*20240101*1200*CH~NM1*85*2*BILLING CLINIC*****XX*1122334455~NM1*IL*1*DOE*JOHN****MI*MEMBER123~SBR*P*18**GROUP PLAN~NM1*QC*1*DOE*JANE~CLM*ACCT777*500***11:B:1*Y~HI*ABK:Z1234~SV1*HC:99213*200*UN*1~DTP*472*D8*20240105~SE*11*0001~GE*1*1~IEA*1*000000001~'.","Project the claim ids and total-paid amounts from the 835 remittance interchange. Return columns clp_claim_id and clp_total_paid. Use the worker's inline-content support (do not write it to a file) over this X12 interchange: 'ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240101*1200*^*00501*000000001*0*P*:~GS*XX*SEND*RECV*20240101*1200*1*X*005010~ST*835*0001~BPR*I*1500*C*ACH~TRN*1*TRACE0001*1512345678~NM1*PR*2*ACME HEALTH PLAN*****PI*PAYER001~NM1*PE*2*WELLNESS CLINIC LLC*****XX*1999999999~CLP*PCN1001*1*500*400*100*MC*CCN0001*11~CAS*CO*45*100~SVC*HC:99213*200*160**1~DTM*232*20240110~CLP*PCN1002*4*1000*0*0*MC*CCN0002*11~SE*11*0001~GE*1*1~IEA*1*000000001~'."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-x12","harvest":{"status":"ok","method":"github-auto","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":1,"passed":1,"failed":0,"needs_credentials":0,"location":"github-auto://Query-farm/vgi-x12@v0.6.0","transport":"github-auto","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:22:07+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}