@healthcloudai/hc-sdk 3.12.0 → 3.12.1

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.js CHANGED
@@ -539,7 +539,14 @@ var DiagnosticsClient = class extends BaseServiceClient {
539
539
  * POST /patients/{patient_id}/diagnostics/rapid-tests
540
540
  */
541
541
  createRapidTest(patientId, request) {
542
- const body = "type" in request && "result" in request ? CreateRapidTestRequestToJSON(request) : request;
542
+ const body = { ...request };
543
+ for (const field of ["performed_date", "performed_datetime"]) {
544
+ const value = body[field];
545
+ if (value instanceof Date) {
546
+ const encoded = CreateRapidTestRequestToJSON({ [field]: value });
547
+ body[field] = encoded[field];
548
+ }
549
+ }
543
550
  return this.send("POST", "/patients/{patient_id}/diagnostics/rapid-tests", {
544
551
  pathParams: { patient_id: patientId },
545
552
  body
@@ -1,5 +1,5 @@
1
1
  {
2
- "docsDataContentDigest": "sha256:5475deccae12d7b690d5249fdec94ca286cbc8482df0fd5224b5e3e8d21c252b",
2
+ "docsDataContentDigest": "sha256:a39543e176259eadae94ef36878d74b241d69422dfda5f111dd02cedbf2b3862",
3
3
  "generatedFiles": [
4
4
  "authentication.md",
5
5
  "clients/AmsClient.md",
@@ -331,6 +331,7 @@
331
331
  "models/AthenaRetrieveAvailableAppointmentSlotsRequest.md",
332
332
  "models/AthenaReviewOfSystems.md",
333
333
  "models/AthenaSearchAllergensRequest.md",
334
+ "models/AthenaSearchAllergensResponse.md",
334
335
  "models/AthenaSearchClinicalProvidersRequest.md",
335
336
  "models/AthenaSearchMedicationsRequest.md",
336
337
  "models/AthenaSearchMedicationsResponse.md",
@@ -3111,7 +3112,7 @@
3111
3112
  "operations/vitals.recordVitals.md"
3112
3113
  ],
3113
3114
  "language": "nodejs",
3114
- "modelCount": 2028,
3115
+ "modelCount": 2029,
3115
3116
  "operationCount": 1026,
3116
3117
  "schemaVersion": 1
3117
3118
  }
@@ -0,0 +1,15 @@
1
+ # AthenaSearchAllergensResponse
2
+
3
+ Model ID: `AthenaSearchAllergensResponse`
4
+
5
+ No description.
6
+
7
+ Type: `array`
8
+
9
+ ## Fields
10
+
11
+ No fields.
12
+
13
+ ## Example
14
+
15
+ None declared in canonical OpenAPI.
@@ -282,6 +282,7 @@
282
282
  - [AthenaRetrieveAvailableAppointmentSlotsRequest](AthenaRetrieveAvailableAppointmentSlotsRequest.md)
283
283
  - [AthenaReviewOfSystems](AthenaReviewOfSystems.md)
284
284
  - [AthenaSearchAllergensRequest](AthenaSearchAllergensRequest.md)
285
+ - [AthenaSearchAllergensResponse](AthenaSearchAllergensResponse.md)
285
286
  - [AthenaSearchClinicalProvidersRequest](AthenaSearchClinicalProvidersRequest.md)
286
287
  - [AthenaSearchMedicationsRequest](AthenaSearchMedicationsRequest.md)
287
288
  - [AthenaSearchMedicationsResponse](AthenaSearchMedicationsResponse.md)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Operation ID: `connectors.athenaListSocialHistoryQuestions`
4
4
 
5
- List social history questions (athenahealth)
5
+ List social history questions via athenahealth. Relays the vendor response unchanged.
6
6
 
7
7
  ## Public method
8
8
 
@@ -59,7 +59,7 @@ Request model: [`AthenaSearchAllergensRequest`](../models/AthenaSearchAllergensR
59
59
 
60
60
  | Status | Shape | Content type | Description |
61
61
  |---|---|---|---|
62
- | `200` | [`connectors.JsonValue`](../models/connectors.JsonValue.md) | application/json | Successful response |
62
+ | `200` | [`AthenaSearchAllergensResponse`](../models/AthenaSearchAllergensResponse.md) | application/json | Successful response |
63
63
 
64
64
  ## Success response examples
65
65
 
@@ -63,7 +63,7 @@ Request model: [`AthenaUpdateDriversLicenseRequest`](../models/AthenaUpdateDrive
63
63
 
64
64
  | Status | Shape | Content type | Description |
65
65
  |---|---|---|---|
66
- | `200` | [`connectors.JsonValue`](../models/connectors.JsonValue.md) | application/json | Successful response |
66
+ | `200` | [`AthenaOperationResult`](../models/AthenaOperationResult.md) | application/json | Successful response |
67
67
 
68
68
  ## Success response examples
69
69
 
@@ -71,7 +71,14 @@ Request model: [`AthenaUpdateDriversLicenseRequest`](../models/AthenaUpdateDrive
71
71
 
72
72
  ```json
73
73
  {
74
- "vendorField": "vendor-defined value"
74
+ "error": "example-error",
75
+ "ids": {
76
+ "vendorField": "vendor-defined value"
77
+ },
78
+ "raw": {
79
+ "vendorField": "vendor-defined value"
80
+ },
81
+ "success": true
75
82
  }
76
83
  ```
77
84
 
@@ -87,7 +87,7 @@ None declared in canonical OpenAPI.
87
87
  | `400` | [`diagnostics.ErrorResponse`](../models/diagnostics.ErrorResponse.md) | application/json | The gs1 query parameter was missing or could not be parsed as a GS1 barcode |
88
88
  | `401` | [`diagnostics.ErrorResponse`](../models/diagnostics.ErrorResponse.md) | application/json | Authorization required — missing or invalid Bearer JWT |
89
89
  | `403` | [`diagnostics.ErrorResponse`](../models/diagnostics.ErrorResponse.md) | application/json | A PATIENT-pool caller attempted to access another patient's data |
90
- | `404` | [`diagnostics.ErrorResponse`](../models/diagnostics.ErrorResponse.md) | application/json | The GS1 barcode parsed cleanly but its GTIN has no configured test profile |
90
+ | `404` | [`diagnostics.ErrorResponse`](../models/diagnostics.ErrorResponse.md) | application/json | The PATIENT-pool caller's own FHIR Patient record could not be resolved |
91
91
  | `500` | [`diagnostics.ErrorResponse`](../models/diagnostics.ErrorResponse.md) | application/json | Internal server error |
92
92
 
93
93
  ## Error examples
@@ -73,7 +73,7 @@ None declared in canonical OpenAPI.
73
73
  | `400` | [`fieldagent.ErrorResponse`](../models/fieldagent.ErrorResponse.md) | application/json | No binary_id was supplied and none could be auto-resolved |
74
74
  | `401` | [`fieldagent.ErrorResponse`](../models/fieldagent.ErrorResponse.md) | application/json | Authorization required — missing or invalid Bearer JWT |
75
75
  | `403` | [`fieldagent.ErrorResponse`](../models/fieldagent.ErrorResponse.md) | application/json | The authenticated caller does not own this agent profile |
76
- | `404` | [`fieldagent.ErrorResponse`](../models/fieldagent.ErrorResponse.md) | application/json | No FHIR Binary exists for the resolved binary_id |
76
+ | `404` | [`fieldagent.ErrorResponse`](../models/fieldagent.ErrorResponse.md) | application/json | No agent profile exists for the given agent_id |
77
77
 
78
78
  ## Error examples
79
79
 
@@ -69,7 +69,7 @@ None declared in canonical OpenAPI.
69
69
  | Status | Shape | Content type | Description |
70
70
  |---|---|---|---|
71
71
  | `401` | [`provider.ErrorResponse`](../models/provider.ErrorResponse.md) | application/json | Provider Bearer authentication is required |
72
- | `404` | [`provider.ErrorResponse`](../models/provider.ErrorResponse.md) | application/json | Patient not found in this tenant |
72
+ | `404` | [`provider.ErrorResponse`](../models/provider.ErrorResponse.md) | application/json | No patient exists for the id in the caller's tenant |
73
73
 
74
74
  ## Error examples
75
75
 
@@ -14,7 +14,7 @@ Return type: `Promise<ProviderRefreshTokenResponse>`
14
14
 
15
15
  ## Authentication
16
16
 
17
- Classification: **UNSPECIFIED**
17
+ Classification: **PUBLIC**
18
18
 
19
19
  ## Prerequisites
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-sdk",
3
- "version": "3.12.0",
3
+ "version": "3.12.1",
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",
@@ -69,5 +69,13 @@
69
69
  },
70
70
  "overrides": {
71
71
  "source-map-js": "^1.2.2"
72
+ },
73
+ "bugs": {
74
+ "url": "https://github.com/healthcloudservices/healthcloud-services/issues"
75
+ },
76
+ "repository": {
77
+ "type": "git",
78
+ "url": "git+https://github.com/healthcloudservices/healthcloud-services.git",
79
+ "directory": "packages/npm"
72
80
  }
73
81
  }