@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.cjs +8 -1
- package/dist/index.d.cts +202 -55
- package/dist/index.d.ts +202 -55
- package/dist/index.js +8 -1
- package/docs/docs-manifest.json +3 -2
- package/docs/models/AthenaSearchAllergensResponse.md +15 -0
- package/docs/models/index.md +1 -0
- package/docs/operations/connectors.athenaListSocialHistoryQuestions.md +1 -1
- package/docs/operations/connectors.athenaSearchAllergens.md +1 -1
- package/docs/operations/connectors.athenaUpdateDriversLicense.md +9 -2
- package/docs/operations/diagnostics.lookupTestByGs1.md +1 -1
- package/docs/operations/fieldagent.getAgentPhoto.md +1 -1
- package/docs/operations/provider.getPatientRecord.md +1 -1
- package/docs/operations/provider.refreshToken.md +1 -1
- package/package.json +9 -1
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 =
|
|
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
|
package/docs/docs-manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"docsDataContentDigest": "sha256:
|
|
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":
|
|
3115
|
+
"modelCount": 2029,
|
|
3115
3116
|
"operationCount": 1026,
|
|
3116
3117
|
"schemaVersion": 1
|
|
3117
3118
|
}
|
package/docs/models/index.md
CHANGED
|
@@ -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)
|
|
@@ -59,7 +59,7 @@ Request model: [`AthenaSearchAllergensRequest`](../models/AthenaSearchAllergensR
|
|
|
59
59
|
|
|
60
60
|
| Status | Shape | Content type | Description |
|
|
61
61
|
|---|---|---|---|
|
|
62
|
-
| `200` | [`
|
|
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` | [`
|
|
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
|
-
"
|
|
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
|
|
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
|
|
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 |
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@healthcloudai/hc-sdk",
|
|
3
|
-
"version": "3.12.
|
|
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
|
}
|