Skip to main content

A Python library to convert healthcare edi data (837p Claims etc)

Project description

Healthcare Edi Converter

A Python library that can be used to convert EDI file content strings into objects. Initially it supports just the EDI x12 837p (Claims submitted to payor requesting payment)

Installation

pip install healthcare-edi-converter

Basic Use

pip install healthcare-edi-converter

837P File Overall Structure

The 837P consists of envelopes, headers, loops, and segments:

  1. Interchange Control Header (ISA) - The outermost wrapper for the EDI file. Contains metadata for sender/receiver identification, control numbers, date/time, and separators.

  2. Functional Group Header (GS) - Groups related transaction sets together (e.g., all claims for one sender). Identifies the sender, receiver, version, and date/time of the transaction group.

  3. Transaction Set Header (ST) - Marks the beginning of an individual claim transaction. Contains the transaction set identifier and control numbers.

Loops and Segments

Loop 1000: Submitter and Receiver Information Identifies the sender (submitter) and the recipient (receiver) of the claim.

1000A – Submitter Name NM1: Submitter's name and ID. PER: Submitter's contact information.

1000B – Receiver Name NM1: Receiver's name and ID.

Loop 2000: Billing/Subscriber/Patient Information

This loop contains hierarchical levels (HL) to organize the billing provider, subscriber, and patient data.

2000A: Billing Provider HL: Hierarchical structure (billing provider). PRV: Billing provider taxonomy (e.g., specialty). NM1: Billing provider’s name and ID.

2000B: Subscriber HL: Hierarchical structure (subscriber). SBR: Subscriber relationship to the insured (e.g., self, spouse). NM1: Subscriber’s name and ID. DMG: Subscriber’s demographic information (e.g., date of birth, gender).

2000C: Patient (if different from the subscriber) HL: Hierarchical structure (patient). PAT: Patient relationship to subscriber (e.g., child). NM1: Patient’s name.

Loop 2300: Claim Information

Details about the specific claim being submitted.

CLM: Claim information (e.g., amount, claim number). DTP: Date(s) of service or admission. HI: Diagnosis codes (e.g., ICD-10 codes). CN1: Contract information (if applicable).

Loop 2400: Service Line Information

Details about individual services provided.

SV1: Service line details (e.g., CPT code, service amount). DTP: Service line dates. REF: Reference IDs (e.g., prior authorization number).

Loop 2420: Service Provider Information

Identifies additional providers involved in the claim.

NM1: Referring provider, rendering provider, or supervising provider. PRV: Provider taxonomy (e.g., specialty). REF: Provider identification numbers.

Control Segments

  1. Transaction Set Trailer (SE) Indicates the end of a transaction set. Contains a count of all segments in the transaction.
  2. Functional Group Trailer (GE) Indicates the end of a functional group. Includes control numbers.
  3. Interchange Control Trailer (IEA) Indicates the end of the interchange envelope. Includes the total number of functional groups and control numbers.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

healthcare_edi_converter-0.0.1.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

healthcare_edi_converter-0.0.1-py3-none-any.whl (45.1 kB view details)

Uploaded Python 3

File details

Details for the file healthcare_edi_converter-0.0.1.tar.gz.

File metadata

  • Download URL: healthcare_edi_converter-0.0.1.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for healthcare_edi_converter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b2aa8b4e959ebddcc26d2b4ad6594f2c00a0b688f8f80905d09df9f1972d9169
MD5 9b64784c29c3dc5b82a7db4619584ec8
BLAKE2b-256 91043faa5987fd2e9fb94bc53f8afae90793384a3bc14b3819089d1bb8337a54

See more details on using hashes here.

File details

Details for the file healthcare_edi_converter-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for healthcare_edi_converter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07af765ebfb5a679969ffb7f7bc55b12ea9fb9af39c2dd21fbc7bd0d532a8bde
MD5 20904b615bc1c94a5e90326f692445f2
BLAKE2b-256 4e950c2ae924cdc251856dad9f533c43e2558e70000c3c1a417d1ec8eb065d98

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page