Class X12Extensions
Inheritance
System.Object
X12Extensions
Assembly: Bishop.X12.dll
Syntax
public static class X12Extensions
Methods
AddBillerLevel(X12Transaction)
Declaration
public static X12Loop AddBillerLevel(this X12Transaction self)
Parameters
Returns
Declaration
public static X12Loop AddClaim(this X12Loop self, string billNumber, int totalCharge, X12FacilityCode facilityCode, X12ClaimFreqCode freq, X12YesNo providerSig, X12PlanParticipationCode planPartCode, X12YesNoNA benAssigCertInd, X12YesNo releaseInfo, X12YesNo patSigOnFile, X12RelatedCause cause)
Parameters
Returns
AddPatientLevel(X12Transaction)
Declaration
public static X12Loop AddPatientLevel(this X12Transaction self)
Parameters
Returns
AddServiceLine(X12Loop)
Declaration
public static X12Loop AddServiceLine(this X12Loop self)
Parameters
Returns
AddSubscriberLevel(X12Transaction)
Declaration
public static X12Loop AddSubscriberLevel(this X12Transaction self)
Parameters
Returns
ForBiller(X12Loop, String, String, String)
Declaration
public static X12Loop ForBiller(this X12Loop self, string name, string npi, string fein)
Parameters
Type |
Name |
Description |
X12Loop |
self |
|
System.String |
name |
|
System.String |
npi |
|
System.String |
fein |
|
Returns
ForPatient(X12Loop, String, String, String, String, DateTime, X12Gender, String, String)
Set's the patient information
Declaration
public static X12Loop ForPatient(this X12Loop self, string first, string middle, string last, string suffix, DateTime dob, X12Gender gender, string ssn = "999999999", string claimNumber = "UNKNOWN")
Parameters
Type |
Name |
Description |
X12Loop |
self |
|
System.String |
first |
first name
|
System.String |
middle |
middle name or initial
|
System.String |
last |
last name
|
System.String |
suffix |
|
System.DateTime |
dob |
date of birth
|
X12Gender |
gender |
gender
|
System.String |
ssn |
social security number (Default:999999999)
|
System.String |
claimNumber |
claim number (Default:UNKNOWN)
|
Returns
SendPaymentTo(X12Loop, X12EntityType, String, String, String, String, String)
Declaration
public static X12Loop SendPaymentTo(this X12Loop self, X12EntityType type, string address, string stop, string city, string state, string zipCode)
Parameters
Type |
Name |
Description |
X12Loop |
self |
|
X12EntityType |
type |
|
System.String |
address |
|
System.String |
stop |
|
System.String |
city |
|
System.String |
state |
|
System.String |
zipCode |
|
Returns
SetHierType(X12Transaction, X12TsPurposeCode, X12TsTypeCode)
Set Transaction's Beginning of Hierarchical Transaction information with the current local time. This method only applies to 837 and 277 transactions.
Declaration
public static X12Transaction SetHierType(this X12Transaction self, X12TsPurposeCode purpose, X12TsTypeCode type)
Parameters
Returns
SetHierType(X12Transaction, X12TsPurposeCode, DateTime, X12TsTypeCode)
Set Transaction's Beginning of Hierarchical Transaction information with the current local time. This method only applies to 837 and 277 transactions.
Declaration
public static X12Transaction SetHierType(this X12Transaction self, X12TsPurposeCode purpose, DateTime originTime, X12TsTypeCode type)
Parameters
Returns
SetHierType(X12Transaction, X12TsPurposeCode, String, X12TsTypeCode)
Set Transaction's Beginning of Hierarchical Transaction information with the current local time. This method only applies to 837 and 277 transactions.
Declaration
public static X12Transaction SetHierType(this X12Transaction self, X12TsPurposeCode purpose, string referenceId, X12TsTypeCode type)
Parameters
Type |
Name |
Description |
X12Transaction |
self |
Currently active X12Transaction object
|
X12TsPurposeCode |
purpose |
Transaction Purpose Code
|
System.String |
referenceId |
The inventory file number of the transmission assigned by the Information Source’s system. This number operates as a transaction(batch) control number.
|
X12TsTypeCode |
type |
Transaction Type Code
|
Returns
Type |
Description |
X12Transaction |
Currently active X12Transaction object
|
SetHierType(X12Transaction, X12TsPurposeCode, String, DateTime, X12TsTypeCode)
Set Transaction's Beginning of Hierarchical Transaction information. This method only applies to 837 and 277 transactions.
Declaration
public static X12Transaction SetHierType(this X12Transaction self, X12TsPurposeCode purpose, string referenceId, DateTime originTime, X12TsTypeCode type)
Parameters
Type |
Name |
Description |
X12Transaction |
self |
Currently active X12Transaction object
|
X12TsPurposeCode |
purpose |
Transaction Purpose Code
|
System.String |
referenceId |
The inventory file number of the transmission assigned by the Information Source’s system. This number operates as a transaction(batch) control number.
|
System.DateTime |
originTime |
Transaction Create Date and Time
|
X12TsTypeCode |
type |
Transaction Type Code
|
Returns
Type |
Description |
X12Transaction |
Currently active X12Transaction object
|
Exceptions
Declaration
public static X12Transaction SetSupportContact(this X12Transaction self, string name, string email, string phone, string ext, string fax)
Parameters
Type |
Name |
Description |
X12Transaction |
self |
|
System.String |
name |
|
System.String |
email |
|
System.String |
phone |
|
System.String |
ext |
|
System.String |
fax |
|
Returns
ToReceiver(X12Transaction, String)
Declaration
public static X12Transaction ToReceiver(this X12Transaction self, string orgName)
Parameters
Returns
WithAddress(X12Loop, String, String, String, String, String)
Declaration
public static X12Loop WithAddress(this X12Loop self, string address, string stop, string city, string state, string zipCode)
Parameters
Type |
Name |
Description |
X12Loop |
self |
|
System.String |
address |
|
System.String |
stop |
|
System.String |
city |
|
System.String |
state |
|
System.String |
zipCode |
|
Returns
WithClaimCode(X12Loop, String, String, String)
Declaration
public static X12Loop WithClaimCode(this X12Loop self, string adminissionType, string adminissionSource, string patientStatus)
Parameters
Type |
Name |
Description |
X12Loop |
self |
|
System.String |
adminissionType |
|
System.String |
adminissionSource |
|
System.String |
patientStatus |
|
Returns
WithFileInfo(X12Loop, String)
Declaration
public static X12Loop WithFileInfo(this X12Loop self, string value)
Parameters
Type |
Name |
Description |
X12Loop |
self |
|
System.String |
value |
|
Returns
WithNote(X12Loop, X12NoteCode, String)
Declaration
public static X12Loop WithNote(this X12Loop self, X12NoteCode code, string value)
Parameters
Returns
WithReport(X12Loop, String, X12RptType, X12RptTransCode)
Inserts a PWK segment into loop 2300 for an attachment.
Declaration
public static X12Loop WithReport(this X12Loop self, string filename, X12RptType reportType = X12RptType.SupportDataforClaim, X12RptTransCode transCode = X12RptTransCode.ElectronicallyOnly)
Parameters
Type |
Name |
Description |
X12Loop |
self |
|
System.String |
filename |
[PWK06] identification code
|
X12RptType |
reportType |
[PWK01] Report Type Code
|
X12RptTransCode |
transCode |
[PWK02] Report Transmission Code
|
Returns
WithRepricing(X12Loop, X12RepriceMethod, Int32, Int32, String, Int32, String, Int32)
Declaration
public static X12Loop WithRepricing(this X12Loop self, X12RepriceMethod method, int allowedAmount, int savingsAmount, string orgId, int repricedAmount, string ambPatGrpCode, int ambPatGrpAmount)
Parameters
Type |
Name |
Description |
X12Loop |
self |
|
X12RepriceMethod |
method |
Repricing Method
|
System.Int32 |
allowedAmount |
Repriced Alloed Amount
|
System.Int32 |
savingsAmount |
Repriced Savings Amount
|
System.String |
orgId |
Repricing Organization Identifier
|
System.Int32 |
repricedAmount |
Repricing Per Diem or Flat Rate Amount
|
System.String |
ambPatGrpCode |
Repriced Approved Ambulatory Patient Group Code
|
System.Int32 |
ambPatGrpAmount |
Repriced Approved Ambulatory Patient GroupAmount
|
Returns
WithService(X12Loop, String, String, String, String, String, String, String, Int32, String, String, String, String, String, String, String, String, String, String, String, String)
Declaration
public static X12Loop WithService(this X12Loop self, string prodSvcIdQual, string hcpcsCode, string mod1, string mod2, string mod3, string mod4, string description, int charge, string facility, string cavity1, string cavity2, string cavity3, string cavity4, string cavity5, string prosCrownInlayCode, string quantity, string dp1, string dp2, string dp3, string dp4)
Parameters
Type |
Name |
Description |
X12Loop |
self |
|
System.String |
prodSvcIdQual |
|
System.String |
hcpcsCode |
|
System.String |
mod1 |
|
System.String |
mod2 |
|
System.String |
mod3 |
|
System.String |
mod4 |
|
System.String |
description |
|
System.Int32 |
charge |
|
System.String |
facility |
|
System.String |
cavity1 |
|
System.String |
cavity2 |
|
System.String |
cavity3 |
|
System.String |
cavity4 |
|
System.String |
cavity5 |
|
System.String |
prosCrownInlayCode |
|
System.String |
quantity |
|
System.String |
dp1 |
|
System.String |
dp2 |
|
System.String |
dp3 |
|
System.String |
dp4 |
|
Returns
WithService(X12Loop, String, String, String, String, String, String, String, Int32, String, String, String, String, String, String)
Declaration
public static X12Loop WithService(this X12Loop self, string prodSvcIdQual, string hcpcsCode, string mod1, string mod2, string mod3, string mod4, string description, int charge, string measurement, string quantity, string dp1, string dp2, string dp3, string dp4)
Parameters
Type |
Name |
Description |
X12Loop |
self |
|
System.String |
prodSvcIdQual |
|
System.String |
hcpcsCode |
|
System.String |
mod1 |
|
System.String |
mod2 |
|
System.String |
mod3 |
|
System.String |
mod4 |
|
System.String |
description |
|
System.Int32 |
charge |
|
System.String |
measurement |
|
System.String |
quantity |
|
System.String |
dp1 |
|
System.String |
dp2 |
|
System.String |
dp3 |
|
System.String |
dp4 |
|
Returns
WithService(X12Loop, String, String, String, String, String, String, String, String, Int32, String, String, Int32)
Declaration
public static X12Loop WithService(this X12Loop self, string revenueCode, string prodSvcIdQual, string hcpcsCode, string mod1, string mod2, string mod3, string mod4, string description, int charge, string measurement, string quantity, int nonCovered)
Parameters
Type |
Name |
Description |
X12Loop |
self |
|
System.String |
revenueCode |
|
System.String |
prodSvcIdQual |
|
System.String |
hcpcsCode |
|
System.String |
mod1 |
|
System.String |
mod2 |
|
System.String |
mod3 |
|
System.String |
mod4 |
|
System.String |
description |
|
System.Int32 |
charge |
|
System.String |
measurement |
|
System.String |
quantity |
|
System.Int32 |
nonCovered |
|
Returns
WithTaxonomy(X12Loop, X12ProviderRole, String)
Declaration
public static X12Loop WithTaxonomy(this X12Loop self, X12ProviderRole role, string taxonomyCode)
Parameters
Returns