Skip to content

SQL-001: Create operation

This document records the SQL used by BillCriteria in SAIF.Business.Claim.Bill.

Classification

Field Value
SQL ID SQL-001
Operation type Create
Execution method Inline
Database Oracle
Schema [unqualified]**
Command type Text
Business object BillCriteria
Criteria property InsertSQL
Lifecycle method BeforeInsert

Parameters

Parameter Direction Type Max length Description
:BillID Input Number N/A Binds BillID from active calling code or Oracle signature.
:BillEntrySourceCode Input String N/A Binds BillEntrySourceCode from active calling code or Oracle signature.
:ProviderLocationID Input Number N/A Binds ProviderLocationID from active calling code or Oracle signature.
:ClaimID Input Number N/A Binds ClaimID from active calling code or Oracle signature.
:BillTypeCode Input String N/A Binds BillTypeCode from active calling code or Oracle signature.
:PatientReferenceNumber Input Number N/A Binds PatientReferenceNumber from active calling code or Oracle signature.
:MailRoomReceivedDate Input Date N/A Binds MailRoomReceivedDate from active calling code or Oracle signature.
:ClaimNumber Input Number N/A Binds ClaimNumber from active calling code or Oracle signature.
:ClaimCheckValue Input String N/A Binds ClaimCheckValue from active calling code or Oracle signature.
:WorkerFirstName Input String N/A Binds WorkerFirstName from active calling code or Oracle signature.
:WorkerMiddleInitial Input Number N/A Binds WorkerMiddleInitial from active calling code or Oracle signature.
:WorkerLastName Input String N/A Binds WorkerLastName from active calling code or Oracle signature.
:WorkerPhoneNum Input Number N/A Binds WorkerPhoneNum from active calling code or Oracle signature.
:WorkerBirthDate Input Date N/A Binds WorkerBirthDate from active calling code or Oracle signature.
:WorkerAddressLine1 Input String N/A Binds WorkerAddressLine1 from active calling code or Oracle signature.
:WorkerAddressLine2 Input String N/A Binds WorkerAddressLine2 from active calling code or Oracle signature.
:WorkerAddressLine3 Input String N/A Binds WorkerAddressLine3 from active calling code or Oracle signature.
:WorkerAddressLine4 Input String N/A Binds WorkerAddressLine4 from active calling code or Oracle signature.
:GenderCode Input String N/A Binds GenderCode from active calling code or Oracle signature.
:PatientAccountNumber Input Number N/A Binds PatientAccountNumber from active calling code or Oracle signature.
:ProviderTaxID Input Number N/A Binds ProviderTaxID from active calling code or Oracle signature.
:ProviderAddressLine1 Input Number N/A Binds ProviderAddressLine1 from active calling code or Oracle signature.
:ProviderAddressLine2 Input Number N/A Binds ProviderAddressLine2 from active calling code or Oracle signature.
:ProviderCityName Input Number N/A Binds ProviderCityName from active calling code or Oracle signature.
:ProviderStateCode Input Number N/A Binds ProviderStateCode from active calling code or Oracle signature.
:ProviderZipCode Input Number N/A Binds ProviderZipCode from active calling code or Oracle signature.
:ProviderLicenseNumber Input Number N/A Binds ProviderLicenseNumber from active calling code or Oracle signature.
:AdmissionDate Input Date N/A Binds AdmissionDate from active calling code or Oracle signature.
:DischargeDate Input Date N/A Binds DischargeDate from active calling code or Oracle signature.
:StatementFromDate Input Date N/A Binds StatementFromDate from active calling code or Oracle signature.
:StatementThruDate Input Date N/A Binds StatementThruDate from active calling code or Oracle signature.
:WorkerTaxID Input Number N/A Binds WorkerTaxID from active calling code or Oracle signature.
:Towid Input Number N/A Binds Towid from active calling code or Oracle signature.
:RebillFlag Input String N/A Binds RebillFlag from active calling code or Oracle signature.
:CurrentBillStatusID Input Number N/A Binds CurrentBillStatusID from active calling code or Oracle signature.
:PriorityNumber Input Number N/A Binds PriorityNumber from active calling code or Oracle signature.
:UpdateUser Input Date N/A Binds UpdateUser from active calling code or Oracle signature.
:UpdateNumber Input Date N/A Binds UpdateNumber from active calling code or Oracle signature.
:UpdateDate Input Date N/A Binds UpdateDate from active calling code or Oracle signature.
:ReferringProviderName Input Number N/A Binds ReferringProviderName from active calling code or Oracle signature.
:BillTotalAmount Input Number N/A Binds BillTotalAmount from active calling code or Oracle signature.
:DRGCode Input String N/A Binds DRGCode from active calling code or Oracle signature.
:BillPackageQuantity Input String N/A Binds BillPackageQuantity from active calling code or Oracle signature.
:WorkflowBypassCode Input String N/A Binds WorkflowBypassCode from active calling code or Oracle signature.
:CurrentBillStatusCode Input String N/A Binds CurrentBillStatusCode from active calling code or Oracle signature.
:CurrentResponsiblePartyID Input Number N/A Binds CurrentResponsiblePartyID from active calling code or Oracle signature.
:CurrentStatusEffectiveDate Input Date N/A Binds CurrentStatusEffectiveDate from active calling code or Oracle signature.
:CurrentUpdateUser Input Date N/A Binds CurrentUpdateUser from active calling code or Oracle signature.
:CurrentNextReviewDate Input Date N/A Binds CurrentNextReviewDate from active calling code or Oracle signature.
:UBBillTypeCode Input String N/A Binds UBBillTypeCode from active calling code or Oracle signature.
:AdmitTypeCode Input String N/A Binds AdmitTypeCode from active calling code or Oracle signature.

Tables

Table Access Columns used
CBP_BILL CREATE A, ADMISSION_DATE, B, BILL_ID, BILL_PACKAGE_QUANTITY, BILL_TOTAL_AMT, BILL_TYPE_CODE, C, CBP_ADMISSION_TYPE_CODE, CBP_BILL, CBP_BILL_ENTRY_SOURCE_CODE, CLAIM_ID

Sample SQL

Insert into CBP_BILL ( BILL_ID, CBP_BILL_ENTRY_SOURCE_CODE, PROVIDER_LOCATION_SEQ_NUM, CLAIM_ID, BILL_TYPE_CODE, PATIENT_REFERENCE_NUM, MAIL_ROOM_RECEIVED_DATE, SAIF_CLAIM_NUM, SAIF_CLAIM_CHK_VALUE, WORKER_FIRST_NAME, WORKER_MIDDLE_INITIAL, WORKER_LAST_NAME, WORKER_PHONE_NUM, WORKER_BIRTH_DATE, WORKER_ADDRESS_LINE1, WORKER_ADDRESS_LINE2, WORKER_ADDRESS_LINE3, WORKER_ADDRESS_LINE4, GENDER_CODE, PATIENT_ACCOUNT_NUM, PROVIDER_TAX_ID, PROVIDER_ADDRESS_LINE1, PROVIDER_ADDRESS_LINE2, PROVIDER_CITY_NAME, PROVIDER_STATE_CODE, PROVIDER_ZIP_CODE, PROVIDER_LICENSE_NUM, ADMISSION_DATE, DISCHARGE_DATE, STATEMENT_FROM_DATE, STATEMENT_THRU_DATE, WORKER_TAX_ID, TOWID, REBILL_FLAG, CURRENT_BILL_STATUS_ID, PRIORITY_NUM, UPDATE_USER, UPDATE_NUM, UPDATE_DATE, REFERRING_PROVIDER_NAME, BILL_TOTAL_AMT, DRG_CODE, BILL_PACKAGE_QUANTITY, WORKFLOW_BYPASS_CODE, CURRENT_BILL_STATUS_CODE, CURRENT_RESPONSIBLE_PARTY_ID, CURRENT_STATUS_EFF_DATE, CURRENT_UPDATE_USER, CURRENT_NEXT_REVIEW_DATE, UB_BILL_TYPE_CODE, CBP_ADMISSION_TYPE_CODE ) 
VALUES ( :BillID, :BillEntrySourceCode, :ProviderLocationID, :ClaimID, :BillTypeCode, :PatientReferenceNumber, :MailRoomReceivedDate, :ClaimNumber, :ClaimCheckValue, :WorkerFirstName, :WorkerMiddleInitial, :WorkerLastName, :WorkerPhoneNum, :WorkerBirthDate, :WorkerAddressLine1, :WorkerAddressLine2, :WorkerAddressLine3, :WorkerAddressLine4, :GenderCode, :PatientAccountNumber, :ProviderTaxID, :ProviderAddressLine1, :ProviderAddressLine2, :ProviderCityName, :ProviderStateCode, :ProviderZipCode, :ProviderLicenseNumber, :AdmissionDate, :DischargeDate, :StatementFromDate, :StatementThruDate, :WorkerTaxID, :Towid, :RebillFlag, :CurrentBillStatusID, :PriorityNumber, :UpdateUser, :UpdateNumber, :UpdateDate, :ReferringProviderName, :BillTotalAmount, :DRGCode, :BillPackageQuantity, :WorkflowBypassCode, :CurrentBillStatusCode, :CurrentResponsiblePartyID, :CurrentStatusEffectiveDate, :CurrentUpdateUser, :CurrentNextReviewDate, :UBBillTypeCode, :AdmitTypeCode)

Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Business\SAIF.Business.Claim.Bill\Core\clsBill.vb