SQL-136: EbillQueryProvider.GetEdiPlaceOfServiceCode¶
This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by EbillQueryProvider.GetEdiPlaceOfServiceCode.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-136 |
| Operation type | Read |
| Execution method | ORM (NHibernate LINQ) |
| Database | Oracle* |
| Schema | [unqualified]** |
| Command type | N/A (ORM-generated) |
| Business object | EbillQueryProvider |
| Criteria property | N/A — ORM |
| Lifecycle method | GetEdiPlaceOfServiceCode |
Parameters¶
| Parameter | Direction | Type | Max length | Description |
|---|---|---|---|---|
ubBillTypeCode |
Input | string | N/A | Method argument of EbillQueryProvider.GetEdiPlaceOfServiceCode bound into the ORM expression; NHibernate generates the bind variable at runtime |
Tables¶
| Table | Access | Columns used |
|---|---|---|
| EDI_PLACE_OF_SERVICE_CODE | SELECT | CODE, UPDATE_NUM, CODE_DESCR, INPATIENT_FACILITY_FLAG, UPDATE_USER, UPDATE_DATE |
LINQ statement¶
Source: Data/SAIF.Data/Queries/Claims/Ebilling/EbillQueryProvider.cs:305.
// Data/SAIF.Data/Queries/Claims/Ebilling/EbillQueryProvider.cs:305
return Factory.GetRepository<EdiPlaceOfServiceCode>().Query().SingleOrDefault(x => x.Code == ubBillTypeCode);
Sample SQL¶
Inferred SQL: This SQL was inferred from the LINQ statement above and the NHibernate mappings. It is not concrete SQL from source code; NHibernate generates the executed statement at runtime, so aliases, column order, join syntax, and bind-parameter names may differ.
-- Inferred from LINQ (NHibernate mapping translation); not concrete SQL
SELECT
EPOSC.CODE,
EPOSC.UPDATE_NUM,
EPOSC.CODE_DESCR,
EPOSC.INPATIENT_FACILITY_FLAG,
EPOSC.UPDATE_USER,
EPOSC.UPDATE_DATE
FROM EDI_PLACE_OF_SERVICE_CODE EPOSC
WHERE EPOSC.CODE = :ubBillTypeCode
-- NHibernate expects at most one row
Translation notes:
- The repository is obtained inline (
Factory.GetRepository<EdiPlaceOfServiceCode>().Query()).
Operations and processes¶
Business rules¶
- SD-BR-050 E-bill status and assignment-rule code sets
- SD-BR-051 Bill included in clearinghouse response file by response-batch state
- SD-BR-052 Multiple prescription numbers mark all NDC lines as compound drug
Sources¶
Data/SAIF.Data/Queries/Claims/Ebilling/EbillQueryProvider.cs:305