@healthcloudai/hc-sdk 3.0.0 → 3.2.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 (39) hide show
  1. package/dist/index.cjs +43 -1
  2. package/dist/index.d.cts +1017 -12
  3. package/dist/index.d.ts +1017 -12
  4. package/dist/index.js +42 -1
  5. package/docs/clients/AmsClient.md +3 -0
  6. package/docs/clients/GrokClient.md +2 -2
  7. package/docs/clients/index.md +1 -0
  8. package/docs/docs-manifest.json +7 -4
  9. package/docs/examples/index.md +3 -2
  10. package/docs/index.md +3 -2
  11. package/docs/models/Appointment.md +1 -0
  12. package/docs/models/AthenaCreatePatientRequest.md +1 -0
  13. package/docs/models/AthenaVitalFailedReading.md +25 -0
  14. package/docs/models/AthenaVitalsMirrorResult.md +1 -0
  15. package/docs/models/CarequalityRetrieveDocumentsRequest.md +1 -1
  16. package/docs/models/GetPreferredPharmacyResponse.md +15 -0
  17. package/docs/models/NearestLocationsResponse.md +1 -1
  18. package/docs/models/OpenAIEmbedRequest.md +1 -1
  19. package/docs/models/PatientIntakeResponse.md +2 -0
  20. package/docs/models/SendGridSendEmailRequest.md +1 -1
  21. package/docs/models/index.md +2 -1
  22. package/docs/operations/appointments.book.md +1 -0
  23. package/docs/operations/appointments.cancel.md +1 -0
  24. package/docs/operations/appointments.listPatientAppointments.md +1 -0
  25. package/docs/operations/appointments.reschedule.md +1 -0
  26. package/docs/operations/connectors.athenaListSocialHistoryQuestions.md +1 -1
  27. package/docs/operations/connectors.carequalityRetrieveDocuments.md +7 -11
  28. package/docs/operations/connectors.grokCreateHpiSummary.md +2 -2
  29. package/docs/operations/connectors.grokCreateScreeningSummary.md +2 -2
  30. package/docs/operations/connectors.openaiEmbed.md +7 -3
  31. package/docs/operations/connectors.sendgridSend.md +7 -3
  32. package/docs/operations/list_public_and_orchestrator_agent_ids_api_ams_application_agents__tenant_id__get.md +94 -0
  33. package/docs/operations/patient.getPatientIntake.md +8 -35
  34. package/docs/operations/patient.getPreferredPharmacy.md +2 -4
  35. package/docs/operations/patient.importVitals.md +9 -0
  36. package/docs/operations/patient.submitPatientIntake.md +8 -35
  37. package/docs/operations/vitals.recordVitals.md +9 -0
  38. package/package.json +4 -4
  39. package/docs/models/FhirResource.md +0 -19
@@ -58,41 +58,14 @@ None declared in canonical OpenAPI.
58
58
 
59
59
  ```json
60
60
  {
61
- "created_at": "2026-09-08T00:00:00Z",
62
- "storage_status": "saved",
63
- "submission_id": "9c9aa3d0-fc18-4bc8-9bbf-2f465f310e5e",
64
- "vendors": {
65
- "athena": {
66
- "mode": "unsupported",
67
- "reason": "Vendor is not enabled for this tenant",
68
- "reference": null,
69
- "section_results": {},
70
- "sections": [
71
- "allergies"
72
- ],
73
- "status": "not_configured"
74
- },
75
- "openloop": {
76
- "mode": "unsupported",
77
- "reason": "Vendor is not enabled for this tenant",
78
- "reference": null,
79
- "section_results": {},
80
- "sections": [
81
- "allergies"
82
- ],
83
- "status": "not_configured"
84
- },
85
- "steadymd": {
86
- "mode": "unsupported",
87
- "reason": "Vendor is not enabled for this tenant",
88
- "reference": null,
89
- "section_results": {},
90
- "sections": [
91
- "allergies"
92
- ],
93
- "status": "not_configured"
94
- }
95
- }
61
+ "created_at": "2026-01-01T09:00:00Z",
62
+ "invalid_entries": {},
63
+ "storage_status": "pending",
64
+ "submission_id": "00000000-0000-0000-0000-000000000000",
65
+ "unknown_fields": [
66
+ "string"
67
+ ],
68
+ "vendors": {}
96
69
  }
97
70
  ```
98
71
 
@@ -48,7 +48,7 @@ None declared in canonical OpenAPI.
48
48
 
49
49
  | Status | Shape | Content type | Description |
50
50
  |---|---|---|---|
51
- | `200` | [`FhirResource`](../models/FhirResource.md) | application/json | The preferred-pharmacy FHIR Organization resource |
51
+ | `200` | [`GetPreferredPharmacyResponse`](../models/GetPreferredPharmacyResponse.md) | application/json | The preferred-pharmacy FHIR Organization resource, or null when none is set |
52
52
 
53
53
  ## Success response examples
54
54
 
@@ -56,9 +56,7 @@ None declared in canonical OpenAPI.
56
56
 
57
57
  ```json
58
58
  {
59
- "id": "6fb47dc2-e877-4a03-9661-934085434983",
60
- "meta": {},
61
- "resourceType": "Organization"
59
+ "preferred_pharmacy": null
62
60
  }
63
61
  ```
64
62
 
@@ -68,6 +68,15 @@ Request model: [`patient.ImportVitalsRequest`](../models/patient.ImportVitalsReq
68
68
  "athena_vitals": {
69
69
  "created": 0,
70
70
  "error": "string",
71
+ "failed_readings": [
72
+ {
73
+ "clinicalelementid": "string",
74
+ "error": "string",
75
+ "loinc": "",
76
+ "readingtaken": "string",
77
+ "value": "string"
78
+ }
79
+ ],
71
80
  "skipped": 0,
72
81
  "status": "synced"
73
82
  },
@@ -341,41 +341,14 @@ Request model: [`PatientIntakeRequest`](../models/PatientIntakeRequest.md)
341
341
 
342
342
  ```json
343
343
  {
344
- "created_at": "2026-09-08T00:00:00Z",
345
- "storage_status": "saved",
346
- "submission_id": "9c9aa3d0-fc18-4bc8-9bbf-2f465f310e5e",
347
- "vendors": {
348
- "athena": {
349
- "mode": "unsupported",
350
- "reason": "Vendor is not enabled for this tenant",
351
- "reference": null,
352
- "section_results": {},
353
- "sections": [
354
- "allergies"
355
- ],
356
- "status": "not_configured"
357
- },
358
- "openloop": {
359
- "mode": "unsupported",
360
- "reason": "Vendor is not enabled for this tenant",
361
- "reference": null,
362
- "section_results": {},
363
- "sections": [
364
- "allergies"
365
- ],
366
- "status": "not_configured"
367
- },
368
- "steadymd": {
369
- "mode": "unsupported",
370
- "reason": "Vendor is not enabled for this tenant",
371
- "reference": null,
372
- "section_results": {},
373
- "sections": [
374
- "allergies"
375
- ],
376
- "status": "not_configured"
377
- }
378
- }
344
+ "created_at": "2026-01-01T09:00:00Z",
345
+ "invalid_entries": {},
346
+ "storage_status": "pending",
347
+ "submission_id": "00000000-0000-0000-0000-000000000000",
348
+ "unknown_fields": [
349
+ "string"
350
+ ],
351
+ "vendors": {}
379
352
  }
380
353
  ```
381
354
 
@@ -82,6 +82,15 @@ Request model: [`VitalsRecordRequest`](../models/VitalsRecordRequest.md)
82
82
  "athena_vitals": {
83
83
  "created": 0,
84
84
  "error": "string",
85
+ "failed_readings": [
86
+ {
87
+ "clinicalelementid": "string",
88
+ "error": "string",
89
+ "loinc": "",
90
+ "readingtaken": "string",
91
+ "value": "string"
92
+ }
93
+ ],
85
94
  "skipped": 0,
86
95
  "status": "synced"
87
96
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-sdk",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "All-in-one HealthCloud SDK with typed platform APIs and secure connector clients.",
5
5
  "author": "Healthcheck Systems Inc",
6
6
  "license": "MIT",
@@ -54,9 +54,9 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/node": "^24.0.0",
57
- "@typescript-eslint/eslint-plugin": "^7.18.0",
58
- "@typescript-eslint/parser": "^7.18.0",
59
- "eslint": "^8.56.0",
57
+ "@typescript-eslint/eslint-plugin": "^8.70.0",
58
+ "@typescript-eslint/parser": "^8.70.0",
59
+ "eslint": "^8.57.1",
60
60
  "playwright": "^1.63.0",
61
61
  "tsup": "^8.0.0",
62
62
  "tsx": "^4.23.13",
@@ -1,19 +0,0 @@
1
- # FhirResource
2
-
3
- Model ID: `FhirResource`
4
-
5
- A FHIR R4 resource exactly as the FHIR server returned it. HealthCloud stores and echoes the resource without reshaping it, so the remaining fields are those the FHIR specification defines for this resource type.
6
-
7
- Type: `object`
8
-
9
- ## Fields
10
-
11
- | Field | Type | Required | Format | Allowed values | Default | Nullable | Description |
12
- |---|---|---:|---|---|---|---:|---|
13
- | `id` | `string` | No | | | | No | Server-assigned logical id. |
14
- | `meta` | `object` | No | | | | No | FHIR resource metadata (versionId, lastUpdated). |
15
- | `resourceType` | `string` | Yes | | | | No | FHIR resource type name. |
16
-
17
- ## Example
18
-
19
- None declared in canonical OpenAPI.