@healthcloudai/hc-sdk 3.12.0 → 3.12.2

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.
package/dist/index.cjs CHANGED
@@ -614,7 +614,14 @@ var DiagnosticsClient = class extends BaseServiceClient {
614
614
  * POST /patients/{patient_id}/diagnostics/rapid-tests
615
615
  */
616
616
  createRapidTest(patientId, request) {
617
- const body = "type" in request && "result" in request ? CreateRapidTestRequestToJSON(request) : request;
617
+ const body = { ...request };
618
+ for (const field of ["performed_date", "performed_datetime"]) {
619
+ const value = body[field];
620
+ if (value instanceof Date) {
621
+ const encoded = CreateRapidTestRequestToJSON({ [field]: value });
622
+ body[field] = encoded[field];
623
+ }
624
+ }
618
625
  return this.send("POST", "/patients/{patient_id}/diagnostics/rapid-tests", {
619
626
  pathParams: { patient_id: patientId },
620
627
  body
@@ -2924,50 +2931,6 @@ var PersonClient = class extends BaseServiceClient {
2924
2931
  }
2925
2932
  };
2926
2933
 
2927
- // src/models/openapi-generated/provider/models/StediEligibilityBatchItem.ts
2928
- function StediEligibilityBatchItemToJSON(json) {
2929
- return StediEligibilityBatchItemToJSONTyped(json, false);
2930
- }
2931
- function StediEligibilityBatchItemToJSONTyped(value, ignoreDiscriminator = false) {
2932
- if (value == null) {
2933
- return value;
2934
- }
2935
- return {
2936
- "dependent": value["dependent"],
2937
- "encounter": value["encounter"],
2938
- "provider": value["provider"],
2939
- "submitter_transaction_identifier": value["submitter_transaction_identifier"],
2940
- "subscriber": value["subscriber"],
2941
- "trading_partner_service_id": value["trading_partner_service_id"]
2942
- };
2943
- }
2944
-
2945
- // src/models/openapi-generated/provider/models/StediEligibilityBatchRequest.ts
2946
- function StediEligibilityBatchRequestToJSON(json) {
2947
- return StediEligibilityBatchRequestToJSONTyped(json, false);
2948
- }
2949
- function StediEligibilityBatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
2950
- if (value == null) {
2951
- return value;
2952
- }
2953
- return {
2954
- "items": value["items"].map(StediEligibilityBatchItemToJSON)
2955
- };
2956
- }
2957
-
2958
- // src/models/openapi-generated/provider/models/StediEligibilityBatchResponse.ts
2959
- function StediEligibilityBatchResponseFromJSON(json) {
2960
- return StediEligibilityBatchResponseFromJSONTyped(json, false);
2961
- }
2962
- function StediEligibilityBatchResponseFromJSONTyped(json, ignoreDiscriminator) {
2963
- if (json == null) {
2964
- return json;
2965
- }
2966
- return {
2967
- "batch_id": json["batchId"]
2968
- };
2969
- }
2970
-
2971
2934
  // src/clients/ProviderClient.ts
2972
2935
  var ProviderClient = class extends BaseServiceClient {
2973
2936
  constructor(http, getTenantId = () => void 0) {
@@ -3021,13 +2984,6 @@ var ProviderClient = class extends BaseServiceClient {
3021
2984
  listTelehealthAppointments(filters) {
3022
2985
  return this.listAppointments({ ...filters, visit_type: "telehealth" });
3023
2986
  }
3024
- /** Submit multiple insurance eligibility checks for asynchronous processing. */
3025
- async submitInsuranceEligibilityBatch(request) {
3026
- const response = await this.send("POST", "/insurance/eligibility/batch", {
3027
- body: StediEligibilityBatchRequestToJSON(request)
3028
- });
3029
- return StediEligibilityBatchResponseFromJSON(response);
3030
- }
3031
2987
  // ─── Auth (public, no Bearer) ──────────────────────────────────────
3032
2988
  register(request) {
3033
2989
  return this.send("POST", "/auth/register", { body: withTenantId(request, this.getTenantId()), auth: false });