@healthcloudai/hc-sdk 3.26.0 → 3.28.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 (35) hide show
  1. package/dist/index.cjs +78 -3
  2. package/dist/index.d.cts +869 -338
  3. package/dist/index.d.ts +869 -338
  4. package/dist/index.js +78 -3
  5. package/docs/clients/PatientClient.md +1 -0
  6. package/docs/docs-manifest.json +9 -3
  7. package/docs/examples/index.md +1 -0
  8. package/docs/index.md +1 -0
  9. package/docs/models/CheckInEncounterResponse.md +1 -1
  10. package/docs/models/CheckInsuranceBenefitsRequest.md +19 -0
  11. package/docs/models/CheckInsuranceBenefitsResponse.md +28 -0
  12. package/docs/models/GetEncounterResponse.md +1 -1
  13. package/docs/models/InsuranceBenefit.md +27 -0
  14. package/docs/models/ProviderEncounterRecord.md +3 -1
  15. package/docs/models/ProviderIntakeContent.md +25 -0
  16. package/docs/models/ProviderIntakeSubmission.md +29 -0
  17. package/docs/models/ProviderPatientRecordResources.md +1 -1
  18. package/docs/models/ProviderQueueEncounter.md +1 -0
  19. package/docs/models/UpdateEncounterClinicalNoteRequest.md +2 -1
  20. package/docs/models/fieldagent.Encounter.md +1 -1
  21. package/docs/models/index.md +5 -0
  22. package/docs/models/patient.Encounter.md +1 -1
  23. package/docs/models/provider.Encounter.md +1 -1
  24. package/docs/operations/patient.checkPatientInsuranceBenefits.md +209 -0
  25. package/docs/operations/patient.listPatientInsuranceClaims.md +3 -1
  26. package/docs/operations/provider.claimEncounter.md +2 -0
  27. package/docs/operations/provider.getEncounter.md +2 -0
  28. package/docs/operations/provider.getEncounterQueue.md +1 -0
  29. package/docs/operations/provider.getPatientRecord.md +54 -0
  30. package/docs/operations/provider.listEncounters.md +2 -0
  31. package/docs/operations/provider.signEncounter.md +2 -0
  32. package/docs/operations/provider.updateEncounterClinicalNote.md +2 -0
  33. package/docs/operations/provider.updateEncounterDiagnoses.md +2 -0
  34. package/docs/operations/provider.updateEncounterStatus.md +2 -0
  35. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1328,6 +1328,68 @@ function StediClaimsResponseFromJSONTyped(json, ignoreDiscriminator) {
1328
1328
  };
1329
1329
  }
1330
1330
 
1331
+ // src/models/openapi-generated/patient/models/CheckInsuranceBenefitsRequest.ts
1332
+ function CheckInsuranceBenefitsRequestToJSON(json) {
1333
+ return CheckInsuranceBenefitsRequestToJSONTyped(json, false);
1334
+ }
1335
+ function CheckInsuranceBenefitsRequestToJSONTyped(value, ignoreDiscriminator = false) {
1336
+ if (value == null) {
1337
+ return value;
1338
+ }
1339
+ return {
1340
+ "request_id": value["request_id"],
1341
+ "service_date": value["service_date"] == null ? value["service_date"] : value["service_date"].toISOString().substring(0, 10),
1342
+ "service_type_code": value["service_type_code"]
1343
+ };
1344
+ }
1345
+
1346
+ // src/models/openapi-generated/patient/models/InsuranceBenefit.ts
1347
+ function InsuranceBenefitFromJSON(json) {
1348
+ return InsuranceBenefitFromJSONTyped(json, false);
1349
+ }
1350
+ function InsuranceBenefitFromJSONTyped(json, ignoreDiscriminator) {
1351
+ if (json == null) {
1352
+ return json;
1353
+ }
1354
+ return {
1355
+ "additional_conditions": json["additional_conditions"] == null ? void 0 : json["additional_conditions"],
1356
+ "amount": json["amount"] === void 0 ? void 0 : json["amount"] === null ? null : json["amount"],
1357
+ "benefit_end": json["benefit_end"] === void 0 ? void 0 : json["benefit_end"] === null ? null : new Date(json["benefit_end"]),
1358
+ "benefit_start": json["benefit_start"] === void 0 ? void 0 : json["benefit_start"] === null ? null : new Date(json["benefit_start"]),
1359
+ "benefit_type": json["benefit_type"],
1360
+ "coinsurance_fraction": json["coinsurance_fraction"] === void 0 ? void 0 : json["coinsurance_fraction"] === null ? null : json["coinsurance_fraction"],
1361
+ "coverage_level": json["coverage_level"] == null ? void 0 : json["coverage_level"],
1362
+ "network": json["network"] == null ? void 0 : json["network"],
1363
+ "plan_index": json["plan_index"],
1364
+ "service_type_code": json["service_type_code"],
1365
+ "time_period": json["time_period"] == null ? void 0 : json["time_period"]
1366
+ };
1367
+ }
1368
+
1369
+ // src/models/openapi-generated/patient/models/CheckInsuranceBenefitsResponse.ts
1370
+ function CheckInsuranceBenefitsResponseFromJSON(json) {
1371
+ return CheckInsuranceBenefitsResponseFromJSONTyped(json, false);
1372
+ }
1373
+ function CheckInsuranceBenefitsResponseFromJSONTyped(json, ignoreDiscriminator) {
1374
+ if (json == null) {
1375
+ return json;
1376
+ }
1377
+ return {
1378
+ "benefits": json["benefits"] == null ? void 0 : json["benefits"].map(InsuranceBenefitFromJSON),
1379
+ "check_id": json["check_id"],
1380
+ "checked_at": new Date(json["checked_at"]),
1381
+ "coverage_id": json["coverage_id"] === void 0 ? void 0 : json["coverage_id"] === null ? null : json["coverage_id"],
1382
+ "endpoint_version": json["endpoint_version"] == null ? void 0 : json["endpoint_version"],
1383
+ "interpretation": json["interpretation"] == null ? void 0 : json["interpretation"],
1384
+ "network_determination": json["network_determination"] == null ? void 0 : json["network_determination"],
1385
+ "reason": json["reason"],
1386
+ "service_date": json["service_date"] === void 0 ? void 0 : json["service_date"] === null ? null : new Date(json["service_date"]),
1387
+ "service_type_code": json["service_type_code"],
1388
+ "source": json["source"] == null ? void 0 : json["source"],
1389
+ "status": json["status"]
1390
+ };
1391
+ }
1392
+
1331
1393
  // src/models/openapi-generated/patient/models/CheckEligibilityResponse.ts
1332
1394
  function CheckEligibilityResponseFromJSON(json) {
1333
1395
  return CheckEligibilityResponseFromJSONTyped(json, false);
@@ -3496,6 +3558,12 @@ var PatientClient = class extends BaseServiceClient {
3496
3558
  body: StediRawX12EligibilityRequestToJSON(request)
3497
3559
  });
3498
3560
  }
3561
+ /** Check reported benefits. Persist this exact request ID/body for retries, including HTTP 202. */
3562
+ async checkInsuranceBenefits(request) {
3563
+ return CheckInsuranceBenefitsResponseFromJSON(await this.send("POST", "/insurance/benefits/check", {
3564
+ body: CheckInsuranceBenefitsRequestToJSON(request)
3565
+ }));
3566
+ }
3499
3567
  /** List Stedi claims linked to the authenticated patient's FHIR Claim records. */
3500
3568
  async listInsuranceClaims(query) {
3501
3569
  const response = await this.send("GET", "/insurance/claims", { query });
@@ -3829,7 +3897,8 @@ var ProviderClient = class extends BaseServiceClient {
3829
3897
  }
3830
3898
  /**
3831
3899
  * The queue (GET /encounters/queue): the newest 10 encounters in the tenant that no provider has taken, newest created
3832
- * first, each with a minimal patient summary. Use the item's `fhir_id` with claimEncounter.
3900
+ * first, each with a minimal patient summary and `reported_symptoms` (what the patient reported, cut to 300 characters).
3901
+ * Use the item's `fhir_id` with claimEncounter.
3833
3902
  */
3834
3903
  getEncounterQueue() {
3835
3904
  return this.send("GET", "/encounters/queue", {});
@@ -3869,7 +3938,10 @@ var ProviderClient = class extends BaseServiceClient {
3869
3938
  getEncounter(encounterId) {
3870
3939
  return this.send("GET", "/encounters/{encounter_id}", { pathParams: { encounter_id: encounterId } });
3871
3940
  }
3872
- /** Update the clinical note and assessment for one encounter. */
3941
+ /**
3942
+ * Update the clinical note and assessment for one encounter. This saves the provider's own note (`provider_notes` on the
3943
+ * encounter) and mirrors it to a linked EHR; the patient's `reported_symptoms` / `notes` are never changed.
3944
+ */
3873
3945
  updateEncounterClinicalNote(encounterId, request) {
3874
3946
  return this.send("PATCH", "/encounters/{encounter_id}/clinical-note", {
3875
3947
  pathParams: { encounter_id: encounterId },
@@ -3976,7 +4048,10 @@ var ProviderClient = class extends BaseServiceClient {
3976
4048
  body: request != null ? request : {}
3977
4049
  });
3978
4050
  }
3979
- /** Get a patient's consolidated health record (provider tenant scope). */
4051
+ /**
4052
+ * Get a patient's consolidated health record (provider tenant scope). Each of `intake_submissions` carries what the patient
4053
+ * submitted: `sections` and `content` (the records it created, grouped like the record's own sections).
4054
+ */
3980
4055
  getPatientRecord(patientId) {
3981
4056
  return this.send("GET", "/patients/{patient_id}/record", { pathParams: { patient_id: patientId } });
3982
4057
  }