---
title: "SQL-104: EbillHealthInformationQueryProvider.GetHealthInformation"
summary: Read operation for `EbillHealthInformationQueryProvider.GetHealthInformation`
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data
reference_type: package
---

# SQL-104: EbillHealthInformationQueryProvider.GetHealthInformation

This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by `EbillHealthInformationQueryProvider.GetHealthInformation`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-104 |
| **Operation type** | Read |
| **Execution method** | ORM (NHibernate LINQ) |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | N/A (ORM-generated) |
| **Business object** | `EbillHealthInformationQueryProvider` |
| **Criteria property** | N/A — ORM |
| **Lifecycle method** | `GetHealthInformation` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `healthInformationId` | Input | long | N/A | Method argument of `EbillHealthInformationQueryProvider.GetHealthInformation` bound into the ORM expression; NHibernate generates the bind variable at runtime |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [EBILL_HEALTH_INFORMATION](../database-tables.md#ebill_health_information) | SELECT | `EBILL_HEALTH_INFO_SEQ_NUM`, `UPDATE_NUM`, `EBILL_HEALTH_INFO_SUB_NUM`, `EBILL_HEALTH_INFO_CODE`, `CBP_HEALTH_INFO_SUB_NUM`, `PROCEDURE_DATE`, `UPDATE_USER`, `UPDATE_DATE`, `EBILL_SEQ_NUM`, `EBILL_HEALTH_INFO_TYPE_CODE` |

## LINQ statement

Source: `Data/SAIF.Data/Queries/Claims/Ebilling/EbillHealthInformationQueryProvider.cs:21`

The repository is a class field initialised from `Factory.GetRepository<EbillHealthInformation>()` at `Data/SAIF.Data/Queries/Claims/Ebilling/EbillHealthInformationQueryProvider.cs:15`.

```csharp
// Data/SAIF.Data/Queries/Claims/Ebilling/EbillHealthInformationQueryProvider.cs:15
repository = Factory.GetRepository<EbillHealthInformation>().Query();

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillHealthInformationQueryProvider.cs:21
return repository.Single(ad => ad.Id == healthInformationId);
```

## 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.

```sql
-- Inferred from LINQ (NHibernate mapping translation); not concrete SQL
SELECT
  EHI.EBILL_HEALTH_INFO_SEQ_NUM,
  EHI.UPDATE_NUM,
  EHI.EBILL_HEALTH_INFO_SUB_NUM,
  EHI.EBILL_HEALTH_INFO_CODE,
  EHI.CBP_HEALTH_INFO_SUB_NUM,
  EHI.PROCEDURE_DATE,
  EHI.UPDATE_USER,
  EHI.UPDATE_DATE,
  EHI.EBILL_SEQ_NUM,
  EHI.EBILL_HEALTH_INFO_TYPE_CODE
FROM EBILL_HEALTH_INFORMATION EHI
WHERE EHI.EBILL_HEALTH_INFO_SEQ_NUM = :healthInformationId
-- NHibernate expects at most one row
```

Translation notes:

- `Single()` throws when the row count is not exactly one.

## Operations and processes

- [E-bill processing queries](../operations/e-bill-processing-queries.md)

## Business rules

- [SD-BR-055 DRG code identified by health information type](../business-rules.md#sd-br-055-drg-code-identified-by-health-information-type)

## Sources
- `Data/SAIF.Data/Queries/Claims/Ebilling/EbillHealthInformationQueryProvider.cs:21`
