@healthcloudai/hc-sdk 3.12.1 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/index.cjs +16 -67
  2. package/dist/index.d.cts +280 -217
  3. package/dist/index.d.ts +280 -217
  4. package/dist/index.js +16 -67
  5. package/docs/clients/ProviderClient.md +0 -1
  6. package/docs/clients/QuestClient.md +1 -1
  7. package/docs/docs-manifest.json +5 -9
  8. package/docs/examples/index.md +1 -2
  9. package/docs/index.md +1 -2
  10. package/docs/models/CheckEligibilityRequest.md +15 -0
  11. package/docs/models/CheckEligibilityResponse.md +23 -0
  12. package/docs/models/ConnectureSessionRequest.md +0 -2
  13. package/docs/models/PaymentOperationResult.md +0 -2
  14. package/docs/models/QuestBuildResultsAckRequest.md +1 -0
  15. package/docs/models/SalesforceEvent.md +0 -2
  16. package/docs/models/ScrapflyResult.md +0 -2
  17. package/docs/models/index.md +2 -5
  18. package/docs/operations/appointments.listPatientAppointments.md +10 -1
  19. package/docs/operations/appointments.listSlots.md +10 -1
  20. package/docs/operations/connectors.questBuildResultsAck.md +3 -1
  21. package/docs/operations/connectors.questGetOrderDocuments.md +2 -2
  22. package/docs/operations/connectors.stediEligibility.md +2 -2
  23. package/docs/operations/patient.checkPatientInsuranceEligibility.md +43 -36
  24. package/docs/operations/patient.listPatientInsuranceClaims.md +7 -4
  25. package/package.json +1 -1
  26. package/docs/models/StediEligibilityBatchItem.md +0 -22
  27. package/docs/models/StediEligibilityBatchRequest.md +0 -17
  28. package/docs/models/StediEligibilityBatchResponse.md +0 -17
  29. package/docs/models/StediEligibilityCheckRequest.md +0 -21
  30. package/docs/models/StediEligibilityCheckResponse.md +0 -33
  31. package/docs/operations/provider.submitInsuranceEligibilityBatch.md +0 -164
package/dist/index.js CHANGED
@@ -947,20 +947,22 @@ function StediClaimsResponseFromJSONTyped(json, ignoreDiscriminator) {
947
947
  };
948
948
  }
949
949
 
950
- // src/models/openapi-generated/patient/models/StediEligibilityCheckRequest.ts
951
- function StediEligibilityCheckRequestToJSON(json) {
952
- return StediEligibilityCheckRequestToJSONTyped(json, false);
950
+ // src/models/openapi-generated/patient/models/CheckEligibilityResponse.ts
951
+ function CheckEligibilityResponseFromJSON(json) {
952
+ return CheckEligibilityResponseFromJSONTyped(json, false);
953
953
  }
954
- function StediEligibilityCheckRequestToJSONTyped(value, ignoreDiscriminator = false) {
955
- if (value == null) {
956
- return value;
954
+ function CheckEligibilityResponseFromJSONTyped(json, ignoreDiscriminator) {
955
+ if (json == null) {
956
+ return json;
957
957
  }
958
958
  return {
959
- "dependent": value["dependent"],
960
- "encounter": value["encounter"],
961
- "payer_id": value["payer_id"],
962
- "provider": value["provider"],
963
- "subscriber": value["subscriber"]
959
+ "checked_at": new Date(json["checked_at"]),
960
+ "endpoint_version": json["endpoint_version"] == null ? void 0 : json["endpoint_version"],
961
+ "reason": json["reason"],
962
+ "reference_id": json["reference_id"] === void 0 ? void 0 : json["reference_id"] === null ? null : json["reference_id"],
963
+ "service_type_code": json["service_type_code"] == null ? void 0 : json["service_type_code"],
964
+ "source": json["source"] == null ? void 0 : json["source"],
965
+ "status": json["status"]
964
966
  };
965
967
  }
966
968
 
@@ -2529,11 +2531,9 @@ var PatientClient = class extends BaseServiceClient {
2529
2531
  body: request
2530
2532
  });
2531
2533
  }
2532
- /** Check the authenticated patient's payer eligibility and benefits. */
2533
- checkInsuranceEligibility(request) {
2534
- return this.send("POST", "/insurance/eligibility", {
2535
- body: StediEligibilityCheckRequestToJSON(request)
2536
- });
2534
+ /** Check the token patient's saved primary self Coverage for service 30. */
2535
+ checkInsuranceEligibility(request = {}) {
2536
+ return this.send("POST", "/insurance/eligibility", { body: request }).then(CheckEligibilityResponseFromJSON);
2537
2537
  }
2538
2538
  /** Submit a raw X12 270 eligibility request for the authenticated patient. */
2539
2539
  submitRawX12InsuranceEligibility(request) {
@@ -2856,50 +2856,6 @@ var PersonClient = class extends BaseServiceClient {
2856
2856
  }
2857
2857
  };
2858
2858
 
2859
- // src/models/openapi-generated/provider/models/StediEligibilityBatchItem.ts
2860
- function StediEligibilityBatchItemToJSON(json) {
2861
- return StediEligibilityBatchItemToJSONTyped(json, false);
2862
- }
2863
- function StediEligibilityBatchItemToJSONTyped(value, ignoreDiscriminator = false) {
2864
- if (value == null) {
2865
- return value;
2866
- }
2867
- return {
2868
- "dependent": value["dependent"],
2869
- "encounter": value["encounter"],
2870
- "provider": value["provider"],
2871
- "submitter_transaction_identifier": value["submitter_transaction_identifier"],
2872
- "subscriber": value["subscriber"],
2873
- "trading_partner_service_id": value["trading_partner_service_id"]
2874
- };
2875
- }
2876
-
2877
- // src/models/openapi-generated/provider/models/StediEligibilityBatchRequest.ts
2878
- function StediEligibilityBatchRequestToJSON(json) {
2879
- return StediEligibilityBatchRequestToJSONTyped(json, false);
2880
- }
2881
- function StediEligibilityBatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
2882
- if (value == null) {
2883
- return value;
2884
- }
2885
- return {
2886
- "items": value["items"].map(StediEligibilityBatchItemToJSON)
2887
- };
2888
- }
2889
-
2890
- // src/models/openapi-generated/provider/models/StediEligibilityBatchResponse.ts
2891
- function StediEligibilityBatchResponseFromJSON(json) {
2892
- return StediEligibilityBatchResponseFromJSONTyped(json, false);
2893
- }
2894
- function StediEligibilityBatchResponseFromJSONTyped(json, ignoreDiscriminator) {
2895
- if (json == null) {
2896
- return json;
2897
- }
2898
- return {
2899
- "batch_id": json["batchId"]
2900
- };
2901
- }
2902
-
2903
2859
  // src/clients/ProviderClient.ts
2904
2860
  var ProviderClient = class extends BaseServiceClient {
2905
2861
  constructor(http, getTenantId = () => void 0) {
@@ -2953,13 +2909,6 @@ var ProviderClient = class extends BaseServiceClient {
2953
2909
  listTelehealthAppointments(filters) {
2954
2910
  return this.listAppointments({ ...filters, visit_type: "telehealth" });
2955
2911
  }
2956
- /** Submit multiple insurance eligibility checks for asynchronous processing. */
2957
- async submitInsuranceEligibilityBatch(request) {
2958
- const response = await this.send("POST", "/insurance/eligibility/batch", {
2959
- body: StediEligibilityBatchRequestToJSON(request)
2960
- });
2961
- return StediEligibilityBatchResponseFromJSON(response);
2962
- }
2963
2912
  // ─── Auth (public, no Bearer) ──────────────────────────────────────
2964
2913
  register(request) {
2965
2914
  return this.send("POST", "/auth/register", { body: withTenantId(request, this.getTenantId()), auth: false });
@@ -14,7 +14,6 @@
14
14
  - [`refreshToken`](../operations/provider.refreshToken.md) — Refresh practitioner access tokens
15
15
  - [`register`](../operations/provider.register.md) — Register a practitioner
16
16
  - [`resetPassword`](../operations/provider.resetPassword.md) — Start a password reset
17
- - [`submitInsuranceEligibilityBatch`](../operations/provider.submitInsuranceEligibilityBatch.md) — Submit multiple insurance eligibility checks
18
17
  - [`updateEncounterClinicalNote`](../operations/provider.updateEncounterClinicalNote.md) — Update encounter notes and assessment
19
18
  - [`updateEncounterStatus`](../operations/provider.updateEncounterStatus.md) — Update encounter status
20
19
  - [`updatePhone`](../operations/provider.updatePhone.md) — Update a practitioner's phone number
@@ -12,7 +12,7 @@
12
12
  - [`getAccessToken`](../operations/connectors.questGetAccessToken.md) — Get access token (Quest)
13
13
  - [`getHl7Results`](../operations/connectors.questGetHl7Results.md) — Get hl7 results (Quest)
14
14
  - [`getObservationResults`](../operations/connectors.questGetObservationResults.md) — Get observation results (Quest)
15
- - [`getOrderDocuments`](../operations/connectors.questGetOrderDocuments.md) — Get order documents (Quest)
15
+ - [`getOrderDocuments`](../operations/connectors.questGetOrderDocuments.md) — Legacy SOAP operation
16
16
  - [`getPrintableResults`](../operations/connectors.questGetPrintableResults.md) — Get printable results (Quest)
17
17
  - [`getRequisition`](../operations/connectors.questGetRequisition.md) — Get requisition (Quest)
18
18
  - [`getResults`](../operations/connectors.questGetResults.md) — Get results (Quest)
@@ -1,5 +1,5 @@
1
1
  {
2
- "docsDataContentDigest": "sha256:a39543e176259eadae94ef36878d74b241d69422dfda5f111dd02cedbf2b3862",
2
+ "docsDataContentDigest": "sha256:d1ab97111c0447932623d51f72872499e5c0f9910479bd2bbb09e273c28ef6a5",
3
3
  "generatedFiles": [
4
4
  "authentication.md",
5
5
  "clients/AmsClient.md",
@@ -440,6 +440,8 @@
440
440
  "models/CarequalityRetrieveDocumentsRequest.md",
441
441
  "models/CarequalityRetrieveDocumentsResponse.md",
442
442
  "models/ChatMessageRecord.md",
443
+ "models/CheckEligibilityRequest.md",
444
+ "models/CheckEligibilityResponse.md",
443
445
  "models/CheckEncounterRequest.md",
444
446
  "models/CheckEncounterResponse.md",
445
447
  "models/CheckInEncounterRequest.md",
@@ -1726,11 +1728,6 @@
1726
1728
  "models/StediCheckEligibilityRequest.md",
1727
1729
  "models/StediClaimsResponse.md",
1728
1730
  "models/StediDiscoverInsuranceRequest.md",
1729
- "models/StediEligibilityBatchItem.md",
1730
- "models/StediEligibilityBatchRequest.md",
1731
- "models/StediEligibilityBatchResponse.md",
1732
- "models/StediEligibilityCheckRequest.md",
1733
- "models/StediEligibilityCheckResponse.md",
1734
1731
  "models/StediGet835EraReportRequest.md",
1735
1732
  "models/StediGetInsuranceDiscoveryResultsRequest.md",
1736
1733
  "models/StediRawX12EligibilityRequest.md",
@@ -3093,7 +3090,6 @@
3093
3090
  "operations/provider.refreshToken.md",
3094
3091
  "operations/provider.register.md",
3095
3092
  "operations/provider.resetPassword.md",
3096
- "operations/provider.submitInsuranceEligibilityBatch.md",
3097
3093
  "operations/provider.updateEncounterClinicalNote.md",
3098
3094
  "operations/provider.updateEncounterStatus.md",
3099
3095
  "operations/provider.updatePhone.md",
@@ -3112,7 +3108,7 @@
3112
3108
  "operations/vitals.recordVitals.md"
3113
3109
  ],
3114
3110
  "language": "nodejs",
3115
- "modelCount": 2029,
3116
- "operationCount": 1026,
3111
+ "modelCount": 2026,
3112
+ "operationCount": 1025,
3117
3113
  "schemaVersion": 1
3118
3114
  }
@@ -584,7 +584,7 @@ Generated call examples use exact public surface signatures. Workflow examples r
584
584
  - [Get access token (Quest)](../operations/connectors.questGetAccessToken.md)
585
585
  - [Get hl7 results (Quest)](../operations/connectors.questGetHl7Results.md)
586
586
  - [Get observation results (Quest)](../operations/connectors.questGetObservationResults.md)
587
- - [Get order documents (Quest)](../operations/connectors.questGetOrderDocuments.md)
587
+ - [Legacy SOAP operation](../operations/connectors.questGetOrderDocuments.md)
588
588
  - [Get printable results (Quest)](../operations/connectors.questGetPrintableResults.md)
589
589
  - [Get requisition (Quest)](../operations/connectors.questGetRequisition.md)
590
590
  - [Get results (Quest)](../operations/connectors.questGetResults.md)
@@ -1011,7 +1011,6 @@ Generated call examples use exact public surface signatures. Workflow examples r
1011
1011
  - [Refresh practitioner access tokens](../operations/provider.refreshToken.md)
1012
1012
  - [Register a practitioner](../operations/provider.register.md)
1013
1013
  - [Start a password reset](../operations/provider.resetPassword.md)
1014
- - [Submit multiple insurance eligibility checks](../operations/provider.submitInsuranceEligibilityBatch.md)
1015
1014
  - [Update encounter notes and assessment](../operations/provider.updateEncounterClinicalNote.md)
1016
1015
  - [Update encounter status](../operations/provider.updateEncounterStatus.md)
1017
1016
  - [Update a practitioner's phone number](../operations/provider.updatePhone.md)
package/docs/index.md CHANGED
@@ -592,7 +592,7 @@ This directory is generated from the shared structured docs data. Do not edit ge
592
592
  - [Get access token (Quest)](operations/connectors.questGetAccessToken.md) (`connectors.questGetAccessToken`)
593
593
  - [Get hl7 results (Quest)](operations/connectors.questGetHl7Results.md) (`connectors.questGetHl7Results`)
594
594
  - [Get observation results (Quest)](operations/connectors.questGetObservationResults.md) (`connectors.questGetObservationResults`)
595
- - [Get order documents (Quest)](operations/connectors.questGetOrderDocuments.md) (`connectors.questGetOrderDocuments`)
595
+ - [Legacy SOAP operation](operations/connectors.questGetOrderDocuments.md) (`connectors.questGetOrderDocuments`)
596
596
  - [Get printable results (Quest)](operations/connectors.questGetPrintableResults.md) (`connectors.questGetPrintableResults`)
597
597
  - [Get requisition (Quest)](operations/connectors.questGetRequisition.md) (`connectors.questGetRequisition`)
598
598
  - [Get results (Quest)](operations/connectors.questGetResults.md) (`connectors.questGetResults`)
@@ -1019,7 +1019,6 @@ This directory is generated from the shared structured docs data. Do not edit ge
1019
1019
  - [Refresh practitioner access tokens](operations/provider.refreshToken.md) (`provider.refreshToken`)
1020
1020
  - [Register a practitioner](operations/provider.register.md) (`provider.register`)
1021
1021
  - [Start a password reset](operations/provider.resetPassword.md) (`provider.resetPassword`)
1022
- - [Submit multiple insurance eligibility checks](operations/provider.submitInsuranceEligibilityBatch.md) (`provider.submitInsuranceEligibilityBatch`)
1023
1022
  - [Update encounter notes and assessment](operations/provider.updateEncounterClinicalNote.md) (`provider.updateEncounterClinicalNote`)
1024
1023
  - [Update encounter status](operations/provider.updateEncounterStatus.md) (`provider.updateEncounterStatus`)
1025
1024
  - [Update a practitioner's phone number](operations/provider.updatePhone.md) (`provider.updatePhone`)
@@ -0,0 +1,15 @@
1
+ # CheckEligibilityRequest
2
+
3
+ Model ID: `CheckEligibilityRequest`
4
+
5
+ Empty request: identity, insurance, provider and service are server-owned.
6
+
7
+ Type: `object`
8
+
9
+ ## Fields
10
+
11
+ No fields.
12
+
13
+ ## Example
14
+
15
+ None declared in canonical OpenAPI.
@@ -0,0 +1,23 @@
1
+ # CheckEligibilityResponse
2
+
3
+ Model ID: `CheckEligibilityResponse`
4
+
5
+ Minimal service-30 eligibility result without subscriber or payer data.
6
+
7
+ Type: `object`
8
+
9
+ ## Fields
10
+
11
+ | Field | Type | Required | Format | Allowed values | Default | Nullable | Description |
12
+ |---|---|---:|---|---|---|---:|---|
13
+ | `checked_at` | `string` | Yes | date-time | | | No | |
14
+ | `endpoint_version` | `string` | No | | | `"2026-06-01"` | No | |
15
+ | `reason` | `string` | Yes | | active_coverage, inactive_coverage, conflicting_or_missing_status, missing_profile, missing_coverage, ambiguous_coverage, missing_configuration, storage_unavailable, timeout, transport_error, http_error, invalid_response | | No | |
16
+ | `reference_id` | `string|null` | No | | | | Yes | |
17
+ | `service_type_code` | `string` | No | | | `"30"` | No | |
18
+ | `source` | `string` | No | | | `"stedi"` | No | |
19
+ | `status` | `string` | Yes | | eligible, ineligible, unknown, unavailable | | No | |
20
+
21
+ ## Example
22
+
23
+ None declared in canonical OpenAPI.
@@ -4,8 +4,6 @@ Model ID: `ConnectureSessionRequest`
4
4
 
5
5
  A session create/update body.
6
6
 
7
-
8
-
9
7
  Type: `object`
10
8
 
11
9
  ## Fields
@@ -4,8 +4,6 @@ Model ID: `PaymentOperationResult`
4
4
 
5
5
  Envelope around a payment operation: either success data or a mapped error.
6
6
 
7
-
8
-
9
7
  Type: `object`
10
8
 
11
9
  ## Fields
@@ -13,6 +13,7 @@ Type: `object`
13
13
  | `ack_code` | `string` | No | | | `"AA"` | No | |
14
14
  | `client_id` | `string` | Yes | | | | No | |
15
15
  | `client_secret` | `string` | Yes | | | | No | Vendor credential. Sent with the request and never returned. |
16
+ | `hl7_version` | `string` | No | | | `"2.5.1"` | No | |
16
17
  | `mode` | `string` | No | | sandbox, live | `"sandbox"` | No | Which vendor environment the call is routed to. Defaults to sandbox, so an omitted mode never reaches a production vendor account. |
17
18
  | `original_message_control_id` | `string` | Yes | | | | No | |
18
19
  | `receiving_facility` | `string` | Yes | | | | No | |
@@ -4,8 +4,6 @@ Model ID: `SalesforceEvent`
4
4
 
5
5
  An appointment-slot Event record.
6
6
 
7
-
8
-
9
7
  Type: `object`
10
8
 
11
9
  ## Fields
@@ -4,8 +4,6 @@ Model ID: `ScrapflyResult`
4
4
 
5
5
  The ``result`` block on a Scrapfly scrape response.
6
6
 
7
-
8
-
9
7
  Type: `object`
10
8
 
11
9
  ## Fields
@@ -390,6 +390,8 @@
390
390
  - [CarequalityRetrieveDocumentsResponse](CarequalityRetrieveDocumentsResponse.md)
391
391
  - [CareSession](CareSession.md)
392
392
  - [ChatMessageRecord](ChatMessageRecord.md)
393
+ - [CheckEligibilityRequest](CheckEligibilityRequest.md)
394
+ - [CheckEligibilityResponse](CheckEligibilityResponse.md)
393
395
  - [CheckEncounterRequest](CheckEncounterRequest.md)
394
396
  - [CheckEncounterResponse](CheckEncounterResponse.md)
395
397
  - [CheckInEncounterRequest](CheckInEncounterRequest.md)
@@ -1796,11 +1798,6 @@
1796
1798
  - [StediCheckEligibilityRequest](StediCheckEligibilityRequest.md)
1797
1799
  - [StediClaimsResponse](StediClaimsResponse.md)
1798
1800
  - [StediDiscoverInsuranceRequest](StediDiscoverInsuranceRequest.md)
1799
- - [StediEligibilityBatchItem](StediEligibilityBatchItem.md)
1800
- - [StediEligibilityBatchRequest](StediEligibilityBatchRequest.md)
1801
- - [StediEligibilityBatchResponse](StediEligibilityBatchResponse.md)
1802
- - [StediEligibilityCheckRequest](StediEligibilityCheckRequest.md)
1803
- - [StediEligibilityCheckResponse](StediEligibilityCheckResponse.md)
1804
1801
  - [StediGet835EraReportRequest](StediGet835EraReportRequest.md)
1805
1802
  - [StediGetInsuranceDiscoveryResultsRequest](StediGetInsuranceDiscoveryResultsRequest.md)
1806
1803
  - [StediRawX12EligibilityRequest](StediRawX12EligibilityRequest.md)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Operation ID: `appointments.listPatientAppointments`
4
4
 
5
- Return appointments for one patient, optionally filtered by FHIR appointment status. Use each returned `appointment_id` with the cancel or reschedule operations.
5
+ Return appointments for one patient, optionally filtered by FHIR appointment status. Use each returned `appointment_id` with the cancel or reschedule operations. An Athena upstream rate limit returns a sanitized 503 and, when valid upstream guidance exists, a Retry-After header in seconds. No FHIR or cross-vendor fallback is performed.
6
6
 
7
7
  ## Public method
8
8
 
@@ -94,6 +94,7 @@ None declared in canonical OpenAPI.
94
94
  | `401` | [`appointments.ErrorResponse`](../models/appointments.ErrorResponse.md) | application/json | Authorization required — missing or invalid Bearer JWT |
95
95
  | `404` | [`appointments.ErrorResponse`](../models/appointments.ErrorResponse.md) | application/json | The patient was not found |
96
96
  | `500` | [`appointments.ErrorResponse`](../models/appointments.ErrorResponse.md) | application/json | Internal server error |
97
+ | `503` | [`appointments.ErrorResponse`](../models/appointments.ErrorResponse.md) | application/json | Athena rate limited the upstream request; Retry-After is forwarded when valid |
97
98
 
98
99
  ## Error examples
99
100
 
@@ -146,6 +147,14 @@ None declared in canonical OpenAPI.
146
147
  }
147
148
  ```
148
149
 
150
+ ### 503 — Athena temporarily rate limited this read
151
+
152
+ ```json
153
+ {
154
+ "error": "Appointments are temporarily unavailable because the upstream service is rate limited"
155
+ }
156
+ ```
157
+
149
158
  ## NodeJS / TypeScript implementation
150
159
 
151
160
  ```ts
@@ -2,7 +2,7 @@
2
2
 
3
3
  Operation ID: `appointments.listSlots`
4
4
 
5
- Return bookable slots, optionally restricted to a provider, specialty, or inclusive date range. Use a returned `slot_id` as input to `appointments.book` or `appointments.reschedule`.
5
+ Return bookable slots, optionally restricted to a provider, specialty, or inclusive date range. Use a returned `slot_id` as input to `appointments.book` or `appointments.reschedule`. On Athena-integrated tenants, an upstream rate limit returns a sanitized 503; respect the optional Retry-After header (seconds). There is no fallback to a different calendar.
6
6
 
7
7
  ## Public method
8
8
 
@@ -87,6 +87,7 @@ None declared in canonical OpenAPI.
87
87
  | `400` | [`appointments.ErrorResponse`](../models/appointments.ErrorResponse.md) | application/json | The downstream FHIR service rejected one or more filters |
88
88
  | `401` | [`appointments.ErrorResponse`](../models/appointments.ErrorResponse.md) | application/json | Authorization required — missing or invalid Bearer JWT |
89
89
  | `500` | [`appointments.ErrorResponse`](../models/appointments.ErrorResponse.md) | application/json | Internal server error |
90
+ | `503` | [`appointments.ErrorResponse`](../models/appointments.ErrorResponse.md) | application/json | Athena rate limited the upstream request; Retry-After is forwarded when valid |
90
91
 
91
92
  ## Error examples
92
93
 
@@ -123,6 +124,14 @@ None declared in canonical OpenAPI.
123
124
  }
124
125
  ```
125
126
 
127
+ ### 503 — Athena temporarily rate limited this read
128
+
129
+ ```json
130
+ {
131
+ "error": "Appointments are temporarily unavailable because the upstream service is rate limited"
132
+ }
133
+ ```
134
+
126
135
  ## NodeJS / TypeScript implementation
127
136
 
128
137
  ```ts
@@ -49,6 +49,7 @@ Request model: [`QuestBuildResultsAckRequest`](../models/QuestBuildResultsAckReq
49
49
  "ack_code": "AA",
50
50
  "client_id": "12345",
51
51
  "client_secret": "example-client-secret",
52
+ "hl7_version": "2.5.1",
52
53
  "mode": "sandbox",
53
54
  "original_message_control_id": "CTRL001",
54
55
  "receiving_facility": "DAL",
@@ -138,6 +139,7 @@ const body = {
138
139
  "ack_code": "AA",
139
140
  "client_id": "12345",
140
141
  "client_secret": "example-client-secret",
142
+ "hl7_version": "2.5.1",
141
143
  "mode": "sandbox",
142
144
  "original_message_control_id": "CTRL001",
143
145
  "receiving_facility": "DAL",
@@ -154,7 +156,7 @@ const result = await connectors.quest.createClient(config).buildResultsAck(body)
154
156
  curl -X POST \
155
157
  -H 'Authorization: Bearer <ACCESS_TOKEN>' \
156
158
  -H 'Content-Type: application/json' \
157
- -d '{"ack_code":"AA","client_id":"12345","client_secret":"example-client-secret","mode":"sandbox","original_message_control_id":"CTRL001","receiving_facility":"DAL","sending_facility":"TEST","text_message":"Test error"}' \
159
+ -d '{"ack_code":"AA","client_id":"12345","client_secret":"example-client-secret","hl7_version":"2.5.1","mode":"sandbox","original_message_control_id":"CTRL001","receiving_facility":"DAL","sending_facility":"TEST","text_message":"Test error"}' \
158
160
  'https://dev-api-connectors.health.cloud/connectors/quest/build-results-ack'
159
161
  ```
160
162
 
@@ -1,8 +1,8 @@
1
- # Get order documents (Quest)
1
+ # Legacy SOAP operation
2
2
 
3
3
  Operation ID: `connectors.questGetOrderDocuments`
4
4
 
5
- Get order documents via Quest. Returns a QuestOrderDocumentsResponse record.
5
+ Legacy SOAP operation. HUB REST lives in QuestHubService instead.
6
6
 
7
7
  ## Public method
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Operation ID: `connectors.stediEligibility`
4
4
 
5
- POST /change/medicalnetwork/eligibility/v3. Returns the eligibility response shaped by :class:`StediEligibilityCheckResponse` (snake_case; large sections stay loose JSON). ``x_forwarded_for`` is routed to a header.
5
+ POST /2026-06-01/eligibility-check, matching the patient API. Accepts the current Stedi schema (payer_id, nested names, ISO dates, encounter.services) in snake_case or camelCase. Returns the complete response in snake_case. x_forwarded_for is routed to a header.
6
6
 
7
7
  ## Public method
8
8
 
@@ -72,7 +72,7 @@ Request model: [`StediCheckEligibilityRequest`](../models/StediCheckEligibilityR
72
72
 
73
73
  | Status | Shape | Content type | Description |
74
74
  |---|---|---|---|
75
- | `200` | [`StediEligibilityCheckResponse`](../models/StediEligibilityCheckResponse.md) | application/json | Successful response |
75
+ | `200` | [`connectors.JsonValue`](../models/connectors.JsonValue.md) | application/json | Successful response |
76
76
 
77
77
  ## Success response examples
78
78
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Operation ID: `patient.checkPatientInsuranceEligibility`
4
4
 
5
- Check the authenticated patient's active insurance coverage and benefits for requested services. The patient is resolved only from the Bearer JWT.
5
+ Post exactly {} with a PATIENT-pool Bearer JWT. Identity and tenant come only from that token; name/DOB and primary self Coverage come from saved records. The configured provider requests only STC 30 using Stedi 2026-06-01, once with a 12-second timeout. Returns only the typed normalized result. Missing data/configuration and upstream failures return unavailable with an allowlisted reason. No member, provider or raw payer data is returned.
6
6
 
7
7
  ## Public method
8
8
 
@@ -10,7 +10,7 @@ Check the authenticated patient's active insurance coverage and benefits for req
10
10
 
11
11
  Signature: `patient.checkInsuranceEligibility(request)`
12
12
 
13
- Return type: `Promise<JsonValue>`
13
+ Return type: `Promise<CheckEligibilityResponse>`
14
14
 
15
15
  ## Authentication
16
16
 
@@ -38,34 +38,35 @@ None.
38
38
 
39
39
  | Name | Type | Required | Format | Allowed values | Default | Nullable | Description |
40
40
  |---|---|---:|---|---|---|---:|---|
41
- | `body` | [`StediEligibilityCheckRequest`](../models/StediEligibilityCheckRequest.md) | Yes | | | | No | |
41
+ | `body` | [`CheckEligibilityRequest`](../models/CheckEligibilityRequest.md) | Yes | | | | No | |
42
42
 
43
- Request model: [`StediEligibilityCheckRequest`](../models/StediEligibilityCheckRequest.md)
43
+ Request model: [`CheckEligibilityRequest`](../models/CheckEligibilityRequest.md)
44
44
 
45
45
  ## Request example
46
46
 
47
47
  ```json
48
- {
49
- "dependent": {},
50
- "encounter": {},
51
- "payer_id": "string",
52
- "provider": {},
53
- "subscriber": {}
54
- }
48
+ {}
55
49
  ```
56
50
 
57
51
  ## Success responses
58
52
 
59
53
  | Status | Shape | Content type | Description |
60
54
  |---|---|---|---|
61
- | `200` | [`patient.JsonValue`](../models/patient.JsonValue.md) | application/json | Eligibility payload is relayed from Stedi and its fields vary by payer and benefit configuration. |
55
+ | `200` | [`CheckEligibilityResponse`](../models/CheckEligibilityResponse.md) | application/json | Safe normalized service-30 result derived from the authenticated patient's saved records. |
62
56
 
63
57
  ## Success response examples
64
58
 
65
59
  ### 200
66
60
 
67
61
  ```json
68
- {}
62
+ {
63
+ "checked_at": "2026-01-01T09:00:00Z",
64
+ "endpoint_version": "2026-06-01",
65
+ "reason": "active_coverage",
66
+ "service_type_code": "30",
67
+ "source": "stedi",
68
+ "status": "eligible"
69
+ }
69
70
  ```
70
71
 
71
72
  ## Common errors
@@ -73,11 +74,11 @@ Request model: [`StediEligibilityCheckRequest`](../models/StediEligibilityCheckR
73
74
  | Status | Shape | Content type | Description |
74
75
  |---|---|---|---|
75
76
  | `401` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | Authorization required — missing, invalid, expired, or non-patient Bearer JWT |
76
- | `404` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | The authenticated patient has no FHIR Patient record |
77
- | `422` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | The payer rejected the supplied eligibility request |
78
- | `502` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | The insurance service could not be reached or returned an invalid response |
79
- | `503` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | Insurance operations are not configured for this deployment |
80
- | `504` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | The insurance service did not respond before the request timeout |
77
+ | `404` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | |
78
+ | `422` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | Body must be exactly an empty JSON object |
79
+ | `502` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | |
80
+ | `503` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | |
81
+ | `504` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | |
81
82
 
82
83
  ## Error examples
83
84
 
@@ -89,43 +90,55 @@ Request model: [`StediEligibilityCheckRequest`](../models/StediEligibilityCheckR
89
90
  }
90
91
  ```
91
92
 
92
- ### 404 — Patient not found
93
+ ### 404
93
94
 
94
95
  ```json
95
96
  {
96
- "error": "Patient not found"
97
+ "details": [
98
+ {}
99
+ ],
100
+ "error": "string"
97
101
  }
98
102
  ```
99
103
 
100
- ### 422 — The payer rejected invalid subscriber or provider data
104
+ ### 422 — Caller-supplied parameters are forbidden
101
105
 
102
106
  ```json
103
107
  {
104
- "error": "Insurance request was rejected: invalid request data"
108
+ "error": "Invalid insurance eligibility request"
105
109
  }
106
110
  ```
107
111
 
108
- ### 502 — Upstream insurance service is unavailable
112
+ ### 502
109
113
 
110
114
  ```json
111
115
  {
112
- "error": "Insurance service is unavailable"
116
+ "details": [
117
+ {}
118
+ ],
119
+ "error": "string"
113
120
  }
114
121
  ```
115
122
 
116
- ### 503 — No Stedi API key is configured
123
+ ### 503
117
124
 
118
125
  ```json
119
126
  {
120
- "error": "Insurance eligibility is not configured"
127
+ "details": [
128
+ {}
129
+ ],
130
+ "error": "string"
121
131
  }
122
132
  ```
123
133
 
124
- ### 504 — Eligibility request timed out
134
+ ### 504
125
135
 
126
136
  ```json
127
137
  {
128
- "error": "Insurance service timed out; retry the request"
138
+ "details": [
139
+ {}
140
+ ],
141
+ "error": "string"
129
142
  }
130
143
  ```
131
144
 
@@ -136,13 +149,7 @@ import { HCSDK } from "@healthcloudai/hc-sdk";
136
149
  ```
137
150
 
138
151
  ```ts
139
- const request = {
140
- "dependent": {},
141
- "encounter": {},
142
- "payer_id": "string",
143
- "provider": {},
144
- "subscriber": {}
145
- };
152
+ const request = {};
146
153
 
147
154
  const result = await patient.checkInsuranceEligibility(request);
148
155
  ```
@@ -153,7 +160,7 @@ const result = await patient.checkInsuranceEligibility(request);
153
160
  curl -X POST \
154
161
  -H 'Authorization: Bearer <ACCESS_TOKEN>' \
155
162
  -H 'Content-Type: application/json' \
156
- -d '{"dependent":{},"encounter":{},"payer_id":"string","provider":{},"subscriber":{}}' \
163
+ -d '{}' \
157
164
  'https://dev-api-patient.health.cloud/insurance/eligibility'
158
165
  ```
159
166