A PHP library for creating EDI 837 claim equivalent to paper-claim 1500. EDI X12 ANSI 837 File 5010 Version

Overview

EDI X12 ANSI 5010

PHP Library for creating EDI X12 ANSI 837 File 5010 Version

A Simple PHP function for creating an EDI X12 ANSI 837 file version 005010X222A1

How To use

$res[] = [
				 'x12_sender_id' => '123456' ## Federal Tax ID
				,'x12_reciever_id' => '123456' ## Wharehouse Federal Tax ID not changable
				,'x12_version' => '005010X222A1'
				,'transcode' => '03' // you can put unique value here
				,'batch_number' => '4' // if you're using batch then apply this
				,'group_number' => '4'
								
				,'payer_name'=>''
				,'payer_code' => ''
				,'payer_street' => ''
				,'payer_street2' => ''
				,'payer_city' => ''
				,'payer_state' => ''
				,'payer_zip' => ''

				,'secondary_payer_name'=>''
				,'secondary_payer_code' => ''
				,'secondary_payer_street' => ''
				,'secondary_payer_street2' => ''
				,'secondary_payer_city' => ''
				,'secondary_payer_state' => ''
				,'secondary_payer_zip' => ''
				
				,'billing_provider_lastname' => ''
				,'billing_provider_npi' => '' 
				,'billing_provider_street' => ''
				,'billing_provider_street2' => ' '
				,'billing_provider_city' => ''
				,'billing_provider_state' =>''
				,'billing_provider_zip' => ''
				,'billing_provider_pin' => ''
				,'billing_provider_federal_taxid' =>''//
				
				,'subscriber_lname' => ''
				,'subscriber_fname' => '' 
				,'subscriber_mname' => ''
				,'subscriber_policy_number' => ''
				,'subscriber_address' => ''
				,'subscriber_address2' => ''
				,'subscriber_city' =>''
				,'subscriber_state' =>''
				,'subscriber_zip' => ''
				,'subscriber_relationship' => 'self'
				,'subscriber_secondary_group_number' => ''
				,'subscriber_secondary_payer_name' => ''
				,'subscriber_secondary_insurance_type' => ''
				,'subscriber_dob' =>''
				,'subscriber_gender' =>'M'
				
				,'ref_physician_lname' => ''
				,'ref_physician_fname' => ''
				,'ref_physician_mname' => ''
				,'ref_physician_npi' =>  ''
				,'referral_number' => ''				

				,'rendering_provider_lname' => ' '
				,'rendering_provider_fname' => ''
				,'rendering_provider_mname' => ''
				,'rendering_provider_npi' => ''

				,'facility_name' =>''
				,'facility_npi' => ''
				,'facility_address' =>''
				,'facility_city' =>''
				,'facility_state' =>'MI' 
				,'facility_zip' => '480736712'

				,'submitter_org_name' =>''
				,'submitter_tax_id' => '' ## Federal Tax ID
				,'submitter_name' => ''
				,'submitter_telephone' => ''
				,'submitter_email' => ''

				,'patient_id' => ''
				,'patient_mrn' => ''
				,'patient_encounter_date' => ''
				,'patient_first_encounter_date' =>''
				,'patient_last_visit_date' =>''
				,'patient_admission_date' =>''
				,'patient_discharge_date' =>''
				,'patient_paid_amt' =>'0'
			
				,'prior_auth_code' =>''
				,'original_claim_number' =>''	 //In case of resubmission have to pass original claim number		
				,'insurance_type_code' => ''				
				,'total_amount' => ''
				,'claim_type' => '1' // 1 New Claim , 7 Re submission
				,'claim_notes' => 'Sample Notes'
				,'primary_problem_type_code' =>'ICD9'
				,'primary_problem_code' => 'I10'
				,'other_diag_list' => [
						['icd_type' => 'ICD9','icd_codes' => 'D63.8']						
				],
				'procedure_codes' => [
					[	'cpt_codes' => '99235'
						,'cpt_charge' => '284'
						,'code_pointer'=>'1'
						,'dos' => '20170726'
						,'quantity' => 1
						,'facility_code'=>'21'
					]
				]
				
			];
	/****************** Element data seperator		**************/
	$eleDataSep		= "*";

	/****************** Segment Terminator			**************/
	$segTer			= "~"; 	

	/****************** Component Element seperator **************/
	$compEleSep		= ":"; //or  ^ 			
	create_x12_837_file($res,$segTer,$eleDataSep,$compEleSep);
	echo "Done";

The output file generated have a valid X12 EDI ANSI 837 file , just send the file to your insurance wharehouse

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

paypal

You might also like...
Check if files are compatible with X version of PHP.

grumphp-php-compatibility Check if files are compatible with X version of PHP. grumphp.yml: parameters: tasks: php_compatibility:

A tool for creating configurable dumps of large MySQL-databases.

slimdump slimdump is a little tool to help you create configurable dumps of large MySQL-databases. It works off one or several configuration files. Fo

A tool for diff'ing this and OpenTHC lab metrics, creating their objects, and docs.

wcia-analytes-tool Consumes OpenTHC Lab Metrics and WCIA Analytes, and produces diff objects and docs for use in WA State interop. version 0.9.8 Getti

This composer plugin allows you to share your selected packages between your projects by creating symlinks
This composer plugin allows you to share your selected packages between your projects by creating symlinks

Composer - Shared Package Plugin This composer plugin allows you to share your selected packages between your projects by creating symlinks. All share

πŸ‹ This project aims to broaden knowledge of system administration by using Docker: virtualizing several Docker images, creating them in a new personal virtual machine.

πŸ‹ This project aims to broaden knowledge of system administration by using Docker: virtualizing several Docker images, creating them in a new personal virtual machine.

A challenge to develop frontend-backend forms and account creating.
A challenge to develop frontend-backend forms and account creating.

Symfony + Vue (Back/Front) Helped and assisted by Vanessa and Paulo. This project have two sides, the back-end(Symfony) and the front-end(Vue.js) for

A high-performance license server system service for creating and managing products, major versions, and software licenses for the purpose of selling installable software products.
A high-performance license server system service for creating and managing products, major versions, and software licenses for the purpose of selling installable software products.

A high-performance license server system service for creating and managing products, major versions, and software licenses for the purpose of selling installable software products. Comes with a SDK and command-line tool. Works anywhere that PHP runs.

A Magento 2 module that allows for creating discrete PDP (Product Detail Pages) page layouts for customers landing on the site from a PPC (Pay Per Click) link/ad by allowing routing to the same pages using a `/ppc/` prefix in the URL path.
A Magento 2 module that allows for creating discrete PDP (Product Detail Pages) page layouts for customers landing on the site from a PPC (Pay Per Click) link/ad by allowing routing to the same pages using a `/ppc/` prefix in the URL path.

A Magento 2 module that allows for creating discrete PDP (Product Detail Pages) page layouts for customers landing on the site from a PPC (Pay Per Click) link/ad by allowing routing to the same pages using a `/ppc/` prefix in the URL path.

WeExpire is an opensource tool for creating emergency notes that can be read by your trusted contacts only after your death or if you are seriously injured

WeExpire is an opensource tool for creating emergency notes that can be read by your trusted contacts only after your death or if you are

Owner
WalksWithMe
An Open Source Project Building Team
WalksWithMe
The Current US Version of PHP-Nuke Evolution Xtreme v3.0.1b-beta often known as Nuke-Evolution Xtreme. This is a hardened version of PHP-Nuke and is secure and safe. We are currently porting Xtreme over to PHP 8.0.3

2021 Nightly Builds Repository PHP-Nuke Evolution Xtreme Developers TheGhost - Ernest Allen Buffington (Lead Developer) SeaBeast08 - Sebastian Scott B

Ernest Buffington 7 Aug 28, 2022
Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests

PHPUnit Polyfills Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests. Requirements Instal

Yoast 147 Dec 12, 2022
Orkestra is a library of infrastructure and architecture helpers for creating CQRS applications

Orkestra Orkestra is an opinionated framework with a plethora of recommendations on architectural design that we use internally at Morebec to develop

MorΓ©bec 2 Aug 18, 2021
File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images, audio and video for jQuery

File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.

Sebastian Tschan 31.1k Dec 30, 2022
Creating data transfer objects with the power of php objects. No php attributes, no reflection api, and no other under the hook work.

Super Simple DTO Creating data transfer objects with the power of php objects. No php attributes, no reflection api, and no other under the hook work.

Mohammed Manssour 8 Jun 8, 2023
My first attempt at creating my own Rubik's Cube timing interface with PHP and JS!

Cubing Sessions My first attempt at creating my own Rubik's Cube timing interface with PHP and JS! I haved named it the PA Timer for fun, as I hail fr

Adam Gradess 0 Jan 12, 2022
An improved version of the PHP port of KuzuhaScript

KuzuhaScriptPHP+ (γγšγ―γ™γγ‚Šγ·γ¨PHP+) An improved version of the PHP port of KuzuhaScript (γγšγ―γ™γγ‚Šγ·γ¨). To my knowledge, it works with PHP version 4.1.0 and a

Heyuri 4 Nov 16, 2022
Simplified and enhanced version of php built-in enum.

PHP Enum enhanced Finally, in php81 has been added support for Enums. But as enums are new in php, we do not have some helpers to work with that easil

Lazizbek Ergashev 40 Nov 20, 2022
Audit your PHP version for known CVEs and patches

PHP Version Audit PHP Version Audit is a convenience tool to easily check a given PHP version against a regularly updated list of CVE exploits, new re

Daniel 103 Dec 19, 2022
This is the US hardened version of PHP-Nuke Titanium and is secure and safe

This is the US hardened version of PHP-Nuke Titanium and is secure and safe. Built on PHP Version 7.4.30 - Forums - Blogs - Projects - Advanced Site Map - Web Links - Groups - Advanced Theme Support - Downloads - Advertising - Network Advertising - Link Back System - FAQ - Bookmark Vault - Private Virtual Cemetery - Loan Amortization - Image Hosting

Ernest Allen Buffington (The Ghost) 12 Dec 25, 2022