C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen277X214\Form1.vb Imports Edidev.FrameworkEDI

Similar documents
namespace csharp_gen277x214 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

string spath; string sedifile = "277_005010X228.X12"; string sseffile = "277_005010X228.SemRef.EVAL0.SEF";

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen837X222A1\Form1.vb Imports Edidev.FrameworkEDI

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen835X221A1\Form1.vb Imports Edidev.FrameworkEDI

namespace Gen837X222A1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

namespace csharp_gen837x223a2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen834X220A1\Form1.vb Imports Edidev.FrameworkEDI

private string sconnection = ConfigurationManager.ConnectionStrings["Development"].ConnectionString

private string sconnection = ConfigurationManager.ConnectionStrings["Development"].ConnectionString

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Tran834X220A1\Form1.vb Imports Edidev.FrameworkEDI

// Specify SEF file to load. edischema oschema = oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);

// Specify SEF file to load. oschema = (edischema) oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);

Pennsylvania PROMISe Companion Guide

ANSI ASC X12N 277 Claims Acknowledgement (277CA)

Refers to the Technical Reports Type 3 Based on ASC X12 version X /277 Health Care Claim Status Inquiry and Response

Cabinet for Health and Family Services Department for Medicaid Services

HIPAA 276/277 Companion Guide Cardinal Innovations Prepared for Health Care Providers

276 Health Care Claim Status Request Educational Guide

270/271 Health Care Eligibility, Coverage, or Benefit Inquiry and Response

276/277 Health Care Claim Status Request/ Response Real-Time. Section 1 276/277 Claim Status Request/Response: Basic Instructions

SHARES 837P Companion Guide

276/277 Health Care Claim Status Request/ Response Real-Time. Section 1 276/277 Claim Status Request/Response: Basic Instructions

Kentucky HIPAA HEALTH CARE PAYER UNSOLICITED CLAIM STATUS Companion Guide Unsolicited 277. Version 1.1

Kentucky HIPAA HEALTH CARE CLAIM: DENTAL Companion Guide 837

837 Health Care Claim Companion Guide. Professional and Institutional

Unsolicited 277 Trading Partner Specification

Integration Guide for Data Originators of Claim Status. Version 1.1

HIPAA Transaction Health Care Claim Acknowledgement Standard Companion Guide (277CA, X214)

276/ /277 Health Care Claim Status Request and Response Real-Time. Basic Instructions. Companion Document

835 Health Care Claim Payment and Remittance Advice Companion Guide X091A1

USVI HEALTH ELIGIBILITY/BENEFIT INQUIRY 5010 Companion Guide 270

EMBLEMHEALTH HIPAA Transaction Standard Companion Guide

837 Dental Health Care Claim

837 Healthcare Claim Companion Guide ANSI ASC X12N (Version 4010A) Professional, Institutional, and Dental

Vendor Specifications 270/271 Eligibility Benefit Inquiry and Response ASC X12N Version for. State of Idaho MMIS

837 Professional Health Care Claim. Section 1 837P Professional Health Care Claim: Basic Instructions

West Virginia HEALTH ELIGIBILITY/BENEFIT INQUIRY Companion Guide 270

X A1 ADDENDA COMPANION DOCUMENT PROFESSIONAL (004010X098A1)

837 Health Care Claim Professional, Institutional & Dental Companion Guide

HIPAA TRANSACTION STANDARD 837 HEALTH CARE CLAIM: PROFESSIONAL COMPANION GUIDE APRIL 21, 2004 VERSION X098A1

270/271 Companion Document ASC X12N. Health Care Eligibility and Benefit Inquiry and Response Version 4010A1 Addenda October 2002

Refers to the Technical Reports Type 3 Based on ASC X12 version X223A2

276 STATUS REQUEST - Inbound Translation

BLUE CROSS AND BLUE SHIELD OF LOUISIANA PROFESSIONAL CLAIMS COMPANION GUIDE

837 Professional Health Care Claim

Optum/Care Improvement Plus Healthcare Claim: 837 Companion Guide. Versions: X222A X223A2

Partnership HealthPlan of California

EDS SYSTEMS UNIT. Companion Guide: 837 Dental Claims Transaction

/277 Companion Guide. Refers to the Implementation Guides Based on X12 version Companion Guide Version Number: 1.1

271 Health Care Eligibility Benefit Inquiry Response Educational Guide

276/277 Claim Status Request and Response

Standard Companion Guide. Refers to the Implementation Guide Based on X12 Version X212 Health Care Claim Status Request and Response (276/277)

MOLINA MEDICAID SOLUTIONS

5010 Upcoming Changes:

COMMONWEALTH CARE ALLIANCE CCA COMPANION GUIDE

The report heading will contain a fourth line if the transmission is a New Biller test, in addition to having a different report number.

277 STATUS RESPONSE - Outbound Translation

855 Purchase Order Acknowledgment

Florida Blue Health Plan

BLUE CROSS AND BLUE SHIELD OF LOUISIANA INSTITUTIONAL CLAIMS COMPANION GUIDE

Medical Associates Health Plans and Health Choices

X A1 Addenda Companion Document - Institutional (004010X096A1) - EFFECTIVE 05/23/07

X A1 ADDENDA COMPANION DOCUMENT INSTITUTIONAL (004010X096A1)

It is recommended that separate transaction sets be used for different patients.

General Companion Guide 837 Professional and Institutional Healthcare Claims Submission Version Version Date: June 2017

Electronic Transaction Manual for Arkansas Blue Cross and Blue Shield FEDERALEMPLOYEEPROGRAM (FEP) DentalClaims

Gold Coast Health Plan Healthcare Claim: 837 Companion Guide. Versions: X222A X223A2

837 Companion Guide. October PR.P.WM.1 3/17

X A1 Addenda Companion Document - Professional (004010X098A1) - EFFECTIVE 05/23/07

Health Care Claims: Status Request and Response (Version 1.12 January 2007)

ANSI ASC X12N 837 Healthcare Claim (Version X222A1-June 2010) Professional Companion Guide

HIPAA-Related Code Lists

HIPAA X 12 Transaction Standards

ANSI ASC X12N 837 Healthcare Claim Institutional, Professional and Dental Department of Labor-OWCP Companion Guide

HIPAA X 12 Transaction Standards

Section 3 837D Dental Health Care Claim: Charts for Situational Rules

270/271 Benefit Eligibility Inquiry/Response Transactions Companion Guide ANSI ASC X12N 270/271 (Version 4010A)

NYEIS. 837 Health Care Claim Professional Companion Guide

Electronic Transaction Manual for Arkansas Blue Cross Blue Shield

Alameda Alliance for Health

HIPAA Transaction 278 Request for Review and Response Standard Companion Guide

Florida Blue Health Plan

816 Organizational Relationships

Concurrent Session 204 Transactions and Code Sets: Its All in the Guides

837 PROFESSIONAL CLAIMS AND ENCOUNTERS TRANSACTION COMPANION GUIDE

Standard Companion Guide

Administrative Services of Kansas (ASK)

Administrative Services of Kansas (ASK)

270/ /271 Health Care Eligibility, Coverage, or Benefit Inquiry and Response Real-Time. Basic Instructions. Companion Document

Assurant Health HIPAA Transaction Standard Companion Guide

ANSI X12 version Receiving Advice/ Acceptance Certificate

849 Response to Product Transfer

Mississippi Medicaid Companion Guide to the X223A2 Institutional Conduent EDI Solutions, Inc. ANSI ASC X12N 837

837 Superior Companion Guide

Streamline SmartCare Network180 EHR

ILLINOIS DEPARTMENT OF HUMAN SERVICES DIVISION OF MENTAL HEALTH. Page 1 Version 1.2 8/14/08

Horizon Blue Cross and Blue Shield of New Jersey

824 Application Advice

Express permission to use X12 copyrighted materials within this document has been granted.

5010 Upcoming Changes: 837 Professional Claims and Encounters Transaction

Transcription:

Imports Edidev.FrameworkEDI 1 Public Class Form1 Private Sub btngenerate_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btngenerate.click Dim oedidoc As edidocument Dim oschema As edischema Dim oschemas As edischemas Dim ointerchange As ediinterchange Dim ogroup As edigroup Dim otransactionset As editransactionset Dim osegment As edidatasegment Dim nhlcounter As Integer Dim nhlinfosourcecounter As Integer Dim nhlinforeceivercounter As Integer Dim nhlbillproviderservicecounter As Integer Dim nhlpatientcounter As Integer Dim nservicelinecounter As Integer Dim nhlinfosources As Integer Dim nhlinforeceivers As Integer Dim nhlbillproviderservices As Integer Dim nhlpatients As Integer Dim nservicelines As Integer Dim nhlinforeceiverparent As Integer Dim nhlbillproviderserviceparent As Integer Dim nhlpatientparent As Integer Dim spath As String = AppDomain.CurrentDomain.BaseDirectory Dim sedifile As String = "277_5010X214.X12" Dim sseffile As String = "277_005010X214.SemRef.EVAL0.SEF" 'EVALUATION SEF FILE 'CREATES OEDIDOC OBJECT edidocument.set(oedidoc, New edidocument) 'THIS MAKES CERTAIN THAT FREDI ONLY USES THE SEF FILE PROVIDED, AND THAT IT DOES 'NOT USE ITS BUILT IN STANDARD REFERENCE TABLE TO GENERATE THE EDI FILE. edischemas.set(oschemas, oedidoc.getschemas) oschemas.enablestandardreference = False 'ENABLES FORWARD WRITE, AND INCREASES BUFFER I/O TO IMPROVE PERFORMANCE oedidoc.cursortype = DocumentCursorTypeConstants.Cursor_ForwardWrite oedidoc.property(documentpropertyidconstants.property_documentbufferio) = 200 'SET TERMINATORS oedidoc.segmentterminator = "~" oedidoc.elementterminator = "*" oedidoc.compositeterminator = ":" 'LOADS THE SEF FILE edischema.set(oschema, oedidoc.importschema(spath & sseffile, 0)) 'CREATES THE ISA SEGMENT ediinterchange.set(ointerchange, oedidoc.createinterchange("x", "0 05010")) edidatasegment.set(osegment, ointerchange.getdatasegmentheader) osegment.dataelementvalue(1) = "00" 'Authorization Information Qualifier osegment.dataelementvalue(2) = " " 'Authorization Information osegment.dataelementvalue(3) = "00" 'Security Information Qualifier osegment.dataelementvalue(4) = " " 'Security Information osegment.dataelementvalue(5) = "ZZ" 'Interchange ID Qualifier osegment.dataelementvalue(6) = "ASKINC " 'Interchange Sender ID osegment.dataelementvalue(7) = "ZZ" 'Interchange ID Qualifier

osegment.dataelementvalue(8) = "0003000 " 'Interchange Receiver ID osegment.dataelementvalue(9) = "110614" 'Interchange Date osegment.dataelementvalue(10) = "1355" 'Interchange Time osegment.dataelementvalue(11) = "^" 'Interchange Control Standards Identifier osegment.dataelementvalue(12) = "00501" 'Interchange Control Version Number osegment.dataelementvalue(13) = "165140088" 'Interchange Control Number osegment.dataelementvalue(14) = "0" 'Acknowledgment Requested osegment.dataelementvalue(15) = "T" 'Usage Indicator osegment.dataelementvalue(16) = ":" 'Component Element Separator 2 'CREATES THE GS SEGMENT edigroup.set(ogroup, ointerchange.creategroup("005010x214")) edidatasegment.set(osegment, ogroup.getdatasegmentheader) osegment.dataelementvalue(1) = "HN" 'Functional Identifier Code osegment.dataelementvalue(2) = "BCBSKS" 'Application Sender's Code osegment.dataelementvalue(3) = "0003000" 'Application Receiver's Code osegment.dataelementvalue(4) = "20110614" 'Date osegment.dataelementvalue(5) = "1355" 'Time osegment.dataelementvalue(6) = "165140905" 'Group Control Number osegment.dataelementvalue(7) = "X" 'Responsible Agency Code osegment.dataelementvalue(8) = "005010X214" 'Version / Release / Industry Identifier Code 'CREATES THE ST SEGMENT editransactionset.set(otransactionset, ogroup.createtransactionset("277")) edidatasegment.set(osegment, otransactionset.getdatasegmentheader) osegment.dataelementvalue(1) = "277" 'Transaction Set Identifier Code osegment.dataelementvalue(2) = "0004" 'Transaction Set Control Number osegment.dataelementvalue(3) = "005010X214" 'Implementation Convention Reference 'BHT BEGINNING OF HIERARCHICAL TRANSACTION edidatasegment.set(osegment, otransactionset.createdatasegment("bht")) osegment.dataelementvalue(1) = "0085" 'Hierarchical Structure Code osegment.dataelementvalue(2) = "08" 'Transaction Set Purpose Code osegment.dataelementvalue(3) = "277X21400004" 'Reference Identification osegment.dataelementvalue(4) = "20060321" 'Date osegment.dataelementvalue(5) = "1025" 'Time osegment.dataelementvalue(6) = "TH" 'Transaction Type Code nhlcounter = 0 nhlinfosourcecounter = 1 nhlinforeceivercounter = 1 nhlbillproviderservicecounter = 1 nhlpatientcounter = 1 nservicelinecounter = 1 'This example has one of the following: nhlinfosources = 1 nhlinforeceivers = 1 nhlbillproviderservices = 1 nhlpatients = 1 nservicelines = 1 '2000A INFORMATION SOURCE LEVEL Do While nhlinfosourcecounter <= nhlinfosources nhlcounter = nhlcounter + 1 'increment HL loop nhlinforeceiverparent = nhlcounter 'The value of this HL counter is the HL parent for the HL subscriber loop osegment.dataelementvalue(1) = nhlcounter 'Hierarchical ID Number osegment.dataelementvalue(3) = "20" 'Hierarchical Level Code osegment.dataelementvalue(4) = "1" 'Hierarchical Child Code '2100A INFORMATION SOURCE NAME

osegment.dataelementvalue(1) = "PR" 'Entity Identifier Code osegment.dataelementvalue(2) = "2" 'Entity Type Qualifier osegment.dataelementvalue(3) = "OUR INSURANCE COMPANY" 'Name Last or Organization Name osegment.dataelementvalue(8) = "PI" 'Identification Code Qualifier osegment.dataelementvalue(9) = "OIC02" 'Identification Code 3 '2200A TRANSMISSION RECEIPT CONTROL IDENTIFIER osegment.dataelementvalue(1) = "1" 'Trace Type Code osegment.dataelementvalue(2) = "00911232" 'Reference Identification 'INFORMATION SOURCE RECEIPT DATE 'DTP DATE OR TIME OR PERIOD edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\dtp")) osegment.dataelementvalue(1) = "050" 'Date/Time Qualifier osegment.dataelementvalue(2) = "D8" 'Date Time Period Format Qualifier osegment.dataelementvalue(3) = "20060320" 'Date Time Period 'INFORMATION SOURCE PROCESS DATE 'DTP DATE OR TIME OR PERIOD edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\dtp(2)")) osegment.dataelementvalue(1) = "009" 'Date/Time Qualifier osegment.dataelementvalue(2) = "D8" 'Date Time Period Format Qualifier osegment.dataelementvalue(3) = "20060321" 'Date Time Period '2000B INFORMATION RECEIVER LEVEL Do While nhlinforeceivercounter <= nhlinforeceivers nhlcounter = nhlcounter + 1 nhlbillproviderserviceparent = nhlcounter osegment.dataelementvalue(1) = nhlcounter 'Hierarchical ID Number osegment.dataelementvalue(2) = nhlinforeceiverparent 'Hierarchical Parent ID Number osegment.dataelementvalue(3) = "21" 'Hierarchical Level Code osegment.dataelementvalue(4) = "1" 'Hierarchical Child Code '2100B INFORMATION RECEIVER NAME osegment.dataelementvalue(1) = "41" 'Entity Identifier Code osegment.dataelementvalue(2) = "1" 'Entity Type Qualifier osegment.dataelementvalue(3) = "KING" 'Name Last or Organization Name osegment.dataelementvalue(4) = "EWELL" 'Name First osegment.dataelementvalue(5) = "B" 'Name Middle osegment.dataelementvalue(8) = "46" 'Identification Code Qualifier osegment.dataelementvalue(9) = "S00005" 'Identification Code '2200B INFORMATION RECEIVER APPLICATION TRACE IDENTIFIER osegment.dataelementvalue(1) = "2" 'Trace Type Code osegment.dataelementvalue(2) = "200203207890" 'Reference Identification 'INFORMATION RECEIVER STATUS INFO 'STC STATUS INFORMATION edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\stc")) osegment.dataelementvalue(1, 1) = "A1" 'Industry Code osegment.dataelementvalue(1, 2) = "19" 'Industry Code osegment.dataelementvalue(1, 3) = "PR" 'Entity Identifier Code osegment.dataelementvalue(2) = "20060321" 'Date osegment.dataelementvalue(3) = "WQ" 'Action Code osegment.dataelementvalue(4) = "455" 'Monetary Amount

'TOTAL ACCEPTED QUANTITY 'QTY QUANTITY edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\qty")) osegment.dataelementvalue(1) = "90" 'Quantity Qualifier osegment.dataelementvalue(2) = "3" 'Quantity 4 'TOTAL REJECTED QUANTITY 'QTY QUANTITY edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\qty(2)")) osegment.dataelementvalue(1) = "AA" 'Quantity Qualifier osegment.dataelementvalue(2) = "5" 'Quantity 'TOTAL ACCEPTED AMOUNT 'AMT MONETARY AMOUNT edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\amt")) osegment.dataelementvalue(1) = "YU" 'Amount Qualifier Code osegment.dataelementvalue(2) = "155" 'Monetary Amount 'TOTAL REJECTED AMOUNT 'AMT MONETARY AMOUNT edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\amt(2)")) osegment.dataelementvalue(1) = "YY" 'Amount Qualifier Code osegment.dataelementvalue(2) = "300" 'Monetary Amount '2000C BILLING PROVIDER OF SERVICE LEVEL Do While nhlbillproviderservicecounter <= nhlbillproviderservices nhlcounter = nhlcounter + 1 nhlpatientparent = nhlcounter ID Number osegment.dataelementvalue(1) = nhlcounter 'Hierarchical ID Number osegment.dataelementvalue(2) = nhlbillproviderserviceparent 'Hierarchical Parent osegment.dataelementvalue(3) = "19" 'Hierarchical Level Code osegment.dataelementvalue(4) = "1" 'Hierarchical Child Code '2100C BILLING PROVIDER NAME osegment.dataelementvalue(1) = "85" 'Entity Identifier Code osegment.dataelementvalue(2) = "1" 'Entity Type Qualifier osegment.dataelementvalue(3) = "KING" 'Name Last or Organization Name osegment.dataelementvalue(4) = "EWELL" 'Name First osegment.dataelementvalue(5) = "B" 'Name Middle osegment.dataelementvalue(8) = "XX" 'Entity Relationship Code osegment.dataelementvalue(9) = "5365432101" 'Entity Identifier Code '2200C PROVIDER OF SERVICE INFORMATION TRACE IDENTIFIER osegment.dataelementvalue(1) = "1" 'Trace Type Code osegment.dataelementvalue(2) = "00098765432" 'Reference Identification 'BILLING PROVIDER STATUS INFORMATION 'STC STATUS INFORMATION edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\stc")) osegment.dataelementvalue(1, 1) = "A1" 'Industry Code osegment.dataelementvalue(1, 2) = "19" 'Industry Code osegment.dataelementvalue(1, 3) = "PR" 'Entity Identifier Code osegment.dataelementvalue(3) = "WQ" 'Action Code osegment.dataelementvalue(4) = "305" 'Monetary Amount 'osegment.dataelementvalue(10, 1) = "A1B2C3D4E5" ' Industry Code (1271) 'osegment.dataelementvalue(10, 2) = "A1B2C3D4E5" ' Industry Code (1271) 'osegment.dataelementvalue(10, 3) = "36" ' Entity Identifier Code (98) 'osegment.dataelementvalue(11, 1) = "A1B2C3D4E5" ' Industry Code (1271)

'osegment.dataelementvalue(11, 2) = "A1B2C3D4E5" ' Industry Code (1271) 'osegment.dataelementvalue(11, 3) = "36" ' Entity Identifier Code (98) 5 'PROVIDER SECONDARY IDENTIFIER 'REF Reference Identification edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\ref")) osegment.dataelementvalue(1) = "0B" ' Reference Identification Qualifier (128) osegment.dataelementvalue(2) = "A1B2C3D4E5" ' Reference Identification (127) 'TOTAL ACCEPTED QUANTITY 'QTY Quantity edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\qty")) osegment.dataelementvalue(1) = "QA" ' Quantity Qualifier (673) osegment.dataelementvalue(2) = "1234567.12" ' Quantity (380) 'TOTAL REJECTED QUANTITY 'QTY Quantity edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\qty(2)")) osegment.dataelementvalue(1) = "QC" ' Quantity Qualifier (673) osegment.dataelementvalue(2) = "1234567.12" ' Quantity (380) 'TOTAL ACCEPTED AMOUNT 'AMT Monetary Amount edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\amt")) osegment.dataelementvalue(1) = "YU" ' Amount Qualifier Code (522) osegment.dataelementvalue(2) = "1234567.12" ' Monetary Amount (782) 'TOTAL REJECTED AMOUNT 'AMT Monetary Amount edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\amt(2)")) osegment.dataelementvalue(1) = "YY" ' Amount Qualifier Code (522) osegment.dataelementvalue(2) = "1234567.12" ' Monetary Amount (782) '2000D PATIENT LEVEL Do While nhlpatientcounter <= nhlpatients nhlcounter = nhlcounter + 1 osegment.dataelementvalue(1) = "4" 'Hierarchical ID Number osegment.dataelementvalue(2) = "3" 'Hierarchical Parent ID Number osegment.dataelementvalue(3) = "PT" 'Hierarchical Level Code '2100D PATIENT NAME osegment.dataelementvalue(1) = "QC" 'Entity Identifier Code osegment.dataelementvalue(2) = "1" 'Entity Type Qualifier osegment.dataelementvalue(3) = "PATIENT" 'Name Last or Organization Name osegment.dataelementvalue(4) = "FEMALE" 'Name First osegment.dataelementvalue(8) = "MI" 'Identification Code Qualifier osegment.dataelementvalue(9) = "2222222222" 'Identification Code '2200D CLAIM STATUS TRACKING NUMBER osegment.dataelementvalue(1) = "2" 'Trace Type Code osegment.dataelementvalue(2) = "PATIENT22222" 'Reference Identification 'CLAIM LEVEL STATUS INFORMATION 'STC STATUS INFORMATION edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\stc")) osegment.dataelementvalue(1, 1) = "A2" 'Industry Code osegment.dataelementvalue(1, 2) = "20" 'Industry Code osegment.dataelementvalue(1, 3) = "PR" 'Entity Identifier Code osegment.dataelementvalue(2) = "20060321" 'Date

osegment.dataelementvalue(3) = "WQ" osegment.dataelementvalue(4) = "55" 'Action Code 'Monetary Amount 6 'PAYER CLAIM CONTROL NUMBER 'REF REFERNCE IDENTIFICATION edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\ref")) osegment.dataelementvalue(1) = "1K" ' osegment.dataelementvalue(2) = "220216359803X" ' ''CLAIM ID NUMBER FOR CLEARINGHOUSE AND OTHER TRANSMISSION INTERMEDIARIES ''REF REFERNCE IDENTIFICATION 'edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\ref(2)")) 'osegment.dataelementvalue(1) = "D9" ' 'osegment.dataelementvalue(2) = "12421075" ' ''INSTITUTIONAL BILL TYPE IDENTIFIER ''REF REFERNCE IDENTIFICATION 'edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\ref(3)")) 'osegment.dataelementvalue(1) = "BLT" ' 'osegment.dataelementvalue(2) = "111" ' 'CLAIM LEVEL SERVICE DATE 'DTP DATE OR TIME OR PERIOD edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\dtp")) osegment.dataelementvalue(1) = "472" 'Date/Time Qualifier osegment.dataelementvalue(2) = "D8" 'Date Time Period Format Qualifier osegment.dataelementvalue(3) = "20060314" 'Date Time Period (235) )) )) Qualifier (128) '2220D SERVICE LINE INFORMATION Do While nservicelinecounter = nservicelines 'SVC Service Information osegment = otransactionset.createdatasegment("hl\trn\svc\svc") osegment.dataelementvalue(1, 1) = "HC" ' Product/Service ID Qualifier osegment.dataelementvalue(1, 2) = "22305" ' Product/Service ID (234) osegment.dataelementvalue(1, 3) = "" ' Procedure Modifier (1339) osegment.dataelementvalue(1, 4) = "" ' Procedure Modifier (1339) osegment.dataelementvalue(1, 5) = "" ' Procedure Modifier (1339) osegment.dataelementvalue(1, 6) = "" ' Procedure Modifier (1339) osegment.dataelementvalue(2) = "350" ' Monetary Amount (782) osegment.dataelementvalue(4) = "" ' Product/Service ID (234) osegment.dataelementvalue(7) = "1" ' Quantity (380) 'SERVICE LINE LEVEL STATUS INFO 'STC Status Information edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\svc\stc" osegment.dataelementvalue(1, 1) = "A3" ' Industry Code (1271) osegment.dataelementvalue(1, 2) = "122" ' Industry Code (1271) osegment.dataelementvalue(1, 3) = "" ' Entity Identifier Code (98) osegment.dataelementvalue(3) = "U" ' Action Code (306) osegment.dataelementvalue(10, 1) = "A3" ' Industry Code (1271) osegment.dataelementvalue(10, 2) = "153" ' Industry Code (1271) osegment.dataelementvalue(10, 3) = "82" ' Entity Identifier Code (98) osegment.dataelementvalue(11, 1) = "" ' Industry Code (1271) osegment.dataelementvalue(11, 2) = "" ' Industry Code (1271) osegment.dataelementvalue(11, 3) = "" ' Entity Identifier Code (98) osegment.dataelementvalue(12) = "" ' Free Form Message Text (933) 'SERVICE LINE ITEM ID 'REF Reference Identification edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\svc\ref" osegment.dataelementvalue(1) = "FJ" ' Reference Identification osegment.dataelementvalue(2) = "11" ' Reference Identification (127)

7 (2)")) Qualifier (128) (127) ")) Qualifier (1250) 'PHARMACY PRESCRIPTION NUMBER 'REF Reference Identification 'edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\svc\ref 'osegment.dataelementvalue(1) = "XZ" 'osegment.dataelementvalue(2) = "A1B2C3D4E5" ' Reference Identification ' Reference Identification 'SERVICE LINE DATE 'DTP Date or Time or Period 'edidatasegment.set(osegment, otransactionset.createdatasegment("hl\trn\svc\dtp 'osegment.dataelementvalue(1) = "472" ' Date/Time Qualifier (374) 'osegment.dataelementvalue(2) = "D8" ' Date Time Period Format 'osegment.dataelementvalue(3) = "A1B2C3D4E5" ' Date Time Period (1251) nservicelinecounter = nservicelinecounter + 1 Loop 'nservicelinecounter = nservicelines nhlpatientcounter = nhlpatientcounter + 1 Loop 'nhlpatientcounter <= nhlpatients nhlbillproviderservicecounter = nhlbillproviderservicecounter + 1 Loop 'nhlbillproviderservicecounter <= nhlbillproviderservices nhlinforeceivercounter = nhlinforeceivercounter + 1 Loop 'nhlinforeceivercounter <= nhlinforeceivers nhlinfosourcecounter = nhlinfosourcecounter + 1 Loop 'nhlinfosourcecounter <= nhlinfosources 'TRAILING SEGMENTS ARE AUTOMATICALLY CREATED WHEN FREDI COMMITS (SAVES) 'THE EDIDOC OBJECT INTO AN EDI FILE. oedidoc.save(spath & sedifile) MessageBox.Show(oEdiDoc.GetEdiString(), "EDI 277 5010 X214") End Sub End Class 'DESTROYS OBJECTS osegment.dispose() otransactionset.dispose() ogroup.dispose() ointerchange.dispose() oschema.dispose() oschemas.dispose() oedidoc.dispose()