{"id":16728264,"url":"https://github.com/tmc/x12","last_synced_at":"2025-04-10T11:07:17.269Z","repository":{"id":66500319,"uuid":"52630772","full_name":"tmc/x12","owner":"tmc","description":"x12 is a Go library for parsing and handling EDI x12 documents.","archived":false,"fork":false,"pushed_at":"2024-06-30T22:51:52.000Z","size":68,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T09:52:51.104Z","etag":null,"topics":["edi","go","hipaa","x12"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-26T20:27:56.000Z","updated_at":"2025-02-21T15:48:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"f613bf8a-a3ab-4df6-bfd5-9887df7a15c6","html_url":"https://github.com/tmc/x12","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fx12","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fx12/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fx12/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fx12/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmc","download_url":"https://codeload.github.com/tmc/x12/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208043,"owners_count":21065199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["edi","go","hipaa","x12"],"created_at":"2024-10-12T23:09:29.834Z","updated_at":"2025-04-10T11:07:17.225Z","avatar_url":"https://github.com/tmc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# x12\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/tmc/x12.svg)](https://pkg.go.dev/github.com/tmc/x12)\n\nx12 is a Go library for handling EDI x12 documents.\n\n## Features\n\n- Decoding\n- Validation\n- Encoding (Marshaling)\n\n## Contributing\n\nWe welcome contributions to x12! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.\n\n## License\n\nx12 is released under the [MIT License](LICENSE).\n\n\n```shell\n$ go run ./examples/basics/basics.go\n{\n    \"Interchange\": {\n        \"Header\": {\n            \"AuthorizationInfoQualifier\": \"00\",\n            \"AuthorizationInformation\": \"          \",\n            \"SecurityInfoQualifier\": \"00\",\n            \"SecurityInfo\": \"          \",\n            \"InterchangeSenderIDQualifier\": \"08\",\n            \"InterchangeSenderID\": \"9254110060     \",\n            \"InterchangeReceiverIDQualifier\": \"ZZ\",\n            \"InterchangeReceiverID\": \"123456789      \",\n            \"InterchangeDate\": \"041216\",\n            \"InterchangeTime\": \"0805\",\n            \"InterchangeControlStandardsID\": \"U\",\n            \"InterchangeControlVersion\": \"00501\",\n            \"InterchangeControlNumber\": \"000095071\",\n            \"AcknowledgmentRequested\": \"0\",\n            \"UsageIndicator\": \"P\",\n            \"ComponentElementSeparator\": \"\\u003e\"\n        },\n        \"FunctionGroups\": [\n            {\n                \"Header\": {\n                    \"FunctionalIDCode\": \"AG\",\n                    \"ApplicationSenderCode\": \"5137624388\",\n                    \"ApplicationReceiverCode\": \"123456789\",\n                    \"Date\": \"20041216\",\n                    \"Time\": \"0805\",\n                    \"GroupControlNumber\": \"95071\",\n                    \"ResponsibleAgencyCode\": \"X\",\n                    \"VersionReleaseIndustryID\": \"005010\"\n                },\n                \"Transactions\": [\n                    {\n                        \"Header\": {\n                            \"TransactionSetIDCode\": \"824\",\n                            \"TransactionSetControlNumber\": \"021390001\"\n                        },\n                        \"Segments\": [\n                            {\n                                \"ID\": \"BGN\",\n                                \"Elements\": [\n                                    {\n                                        \"ID\": \"01\",\n                                        \"Value\": \"11\"\n                                    },\n                                    {\n                                        \"ID\": \"02\",\n                                        \"Value\": \"FFA.ABCDEF.123456\"\n                                    },\n                                    {\n                                        \"ID\": \"03\",\n                                        \"Value\": \"20020709\"\n                                    },\n                                    {\n                                        \"ID\": \"04\",\n                                        \"Value\": \"0932\"\n                                    },\n                                    {\n                                        \"ID\": \"05\",\n                                        \"Value\": \"\"\n                                    },\n                                    {\n                                        \"ID\": \"06\",\n                                        \"Value\": \"123456789\"\n                                    },\n                                    {\n                                        \"ID\": \"07\",\n                                        \"Value\": \"\"\n                                    },\n                                    {\n                                        \"ID\": \"08\",\n                                        \"Value\": \"WQ\"\n                                    }\n                                ]\n                            },\n                            {\n                                \"ID\": \"N1\",\n                                \"Elements\": [\n                                    {\n                                        \"ID\": \"01\",\n                                        \"Value\": \"41\"\n                                    },\n                                    {\n                                        \"ID\": \"02\",\n                                        \"Value\": \"ABC INSURANCE\"\n                                    },\n                                    {\n                                        \"ID\": \"03\",\n                                        \"Value\": \"46\"\n                                    },\n                                    {\n                                        \"ID\": \"04\",\n                                        \"Value\": \"111111111\"\n                                    }\n                                ]\n                            },\n                            {\n                                \"ID\": \"PER\",\n                                \"Elements\": [\n                                    {\n                                        \"ID\": \"01\",\n                                        \"Value\": \"IC\"\n                                    },\n                                    {\n                                        \"ID\": \"02\",\n                                        \"Value\": \"JOHN JOHNSON\"\n                                    },\n                                    {\n                                        \"ID\": \"03\",\n                                        \"Value\": \"TE\"\n                                    },\n                                    {\n                                        \"ID\": \"04\",\n                                        \"Value\": \"8005551212\"\n                                    },\n                                    {\n                                        \"ID\": \"05\",\n                                        \"Value\": \"EX\"\n                                    },\n                                    {\n                                        \"ID\": \"06\",\n                                        \"Value\": \"1439\"\n                                    }\n                                ]\n                            },\n                            {\n                                \"ID\": \"N1\",\n                                \"Elements\": [\n                                    {\n                                        \"ID\": \"01\",\n                                        \"Value\": \"40\"\n                                    },\n                                    {\n                                        \"ID\": \"02\",\n                                        \"Value\": \"SMITHCO\"\n                                    },\n                                    {\n                                        \"ID\": \"03\",\n                                        \"Value\": \"46\"\n                                    },\n                                    {\n                                        \"ID\": \"04\",\n                                        \"Value\": \"A1234\"\n                                    }\n                                ]\n                            },\n                            {\n                                \"ID\": \"OTI\",\n                                \"Elements\": [\n                                    {\n                                        \"ID\": \"01\",\n                                        \"Value\": \"TA\"\n                                    },\n                                    {\n                                        \"ID\": \"02\",\n                                        \"Value\": \"TN\"\n                                    },\n                                    {\n                                        \"ID\": \"03\",\n                                        \"Value\": \"NA\"\n                                    },\n                                    {\n                                        \"ID\": \"04\",\n                                        \"Value\": \"\"\n                                    },\n                                    {\n                                        \"ID\": \"05\",\n                                        \"Value\": \"\"\n                                    },\n                                    {\n                                        \"ID\": \"06\",\n                                        \"Value\": \"20020709\"\n                                    },\n                                    {\n                                        \"ID\": \"07\",\n                                        \"Value\": \"0902\"\n                                    },\n                                    {\n                                        \"ID\": \"08\",\n                                        \"Value\": \"2\"\n                                    },\n                                    {\n                                        \"ID\": \"09\",\n                                        \"Value\": \"0001\"\n                                    },\n                                    {\n                                        \"ID\": \"10\",\n                                        \"Value\": \"834\"\n                                    },\n                                    {\n                                        \"ID\": \"11\",\n                                        \"Value\": \"005010X220A1\"\n                                    }\n                                ]\n                            }\n                        ],\n                        \"Trailer\": {\n                            \"NumberOfIncludedSegments\": \"7\",\n                            \"TransactionSetControlNumber\": \"021390001\"\n                        }\n                    }\n                ],\n                \"Trailer\": {\n                    \"NumberOfIncludedTransactionSets\": \"1\",\n                    \"GroupControlNumber\": \"95071\"\n                }\n            }\n        ],\n        \"Trailer\": {\n            \"NumberOfIncludedFunctionalGroups\": \"1\",\n            \"InterchangeControlNumber\": \"000095071\"\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmc%2Fx12","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmc%2Fx12","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmc%2Fx12/lists"}