{"id":13592338,"url":"https://github.com/azoner/pyx12","last_synced_at":"2025-04-08T23:32:05.764Z","repository":{"id":2514657,"uuid":"3490313","full_name":"azoner/pyx12","owner":"azoner","description":"HIPAA X12 document validator and converter","archived":false,"fork":false,"pushed_at":"2024-03-25T01:15:53.000Z","size":5573,"stargazers_count":161,"open_issues_count":23,"forks_count":96,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-10-02T02:26:24.620Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azoner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2012-02-20T02:52:48.000Z","updated_at":"2024-09-28T05:17:51.000Z","dependencies_parsed_at":"2024-06-19T00:18:23.785Z","dependency_job_id":"8a47e8bb-774c-4680-b0de-01368e2fde04","html_url":"https://github.com/azoner/pyx12","commit_stats":{"total_commits":1613,"total_committers":11,"mean_commits":"146.63636363636363","dds":"0.022318660880347174","last_synced_commit":"f60ad528d54c0b0ae25044d2629a29faeefa2f5f"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azoner%2Fpyx12","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azoner%2Fpyx12/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azoner%2Fpyx12/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azoner%2Fpyx12/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azoner","download_url":"https://codeload.github.com/azoner/pyx12/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223346675,"owners_count":17130479,"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":[],"created_at":"2024-08-01T16:01:08.176Z","updated_at":"2024-11-06T13:30:57.351Z","avatar_url":"https://github.com/azoner.png","language":"Python","readme":"# Pyx12\n\n[![Build Status](https://github.com/azoner/pyx12/actions/workflows/main.yml/badge.svg)](https://github.com/azoner/pyx12/actions/workflows/main.yml)\n\n\nPyx12 is a HIPAA X12 document validator and converter.  It parses an ANSI X12N data file and validates it against a representation of the Implementation Guidelines for a HIPAA transaction.  By default, it creates a 997 response for 4010 and a 999 response for 5010. It can create an html representation of the X12 document or can translate to and from an XML representation of the data file. \n\n# Usage\n\nAs a command line tool\n\n    x12valid \u003cfilename\u003e\n\nTo fix common X12 structural errors\n\n    x12norm --fix --eol \u003cfilename\u003e\n\n# Code Examples\n\n    Iterate over a loop.  Alter children. Show changes\n```python\n    src = pyx12.x12context.X12ContextReader(param, errh, fd_in)\n    for datatree in src.iter_segments('2300'):\n        # do something with a 2300 claim loop\n        # we have access to the 2300 loop and all its children\n        for loop2400 in datatree.select('2400'):\n            print(loop2400.get_value('SV101'))\n            # update something\n            loop2400.set_value('SV102', 'xx')\n            # delete something\n            if loop2400.exists('PWK'):\n                loop2400.delete('PWK')\n        # iterate over all the child segments\n        for seg_node in datatree.iterate_segments():\n            print(seg_node.format())\n```\n\n# Prerequisites\n\nPyx12 uses some runtime features of setuptools / distribute.  If you use pip to install, all is good.  If not, install setuptools first.\n\nGet setuptools \u003chttp://pypi.python.org/pypi/setuptools/\u003e\n\nGet pip \u003chttp://www.pip-installer.org/en/latest/installing.html\u003e\n\n# Install\n\nInstall system-wide\n\n    pip install pyx12\n\nOr install in a virtual environment\n\n    virtualenv my_env\n    pip -E my_env install pyx12\n\n# Licensing\n\nPyx12 has a BSD license. The full license text is included with the source code for the package. \n","funding_links":[],"categories":["CLI utilities"],"sub_categories":["Golang"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazoner%2Fpyx12","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazoner%2Fpyx12","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazoner%2Fpyx12/lists"}