@healthcloudai/hc-sdk 0.7.3 → 0.7.4
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 +2 -2
- package/dist/index.d.cts +19 -17
- package/dist/index.d.ts +19 -17
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -436,9 +436,9 @@ var DiagnosticsClient = class extends BaseServiceClient {
|
|
|
436
436
|
pathParams: { patient_id: patientId, test_id: testId }
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
|
-
// ─── Rapid Test (legacy)
|
|
439
|
+
// ─── Rapid Test (legacy) ────────────────────────────────────────────
|
|
440
440
|
/**
|
|
441
|
-
* Create
|
|
441
|
+
* Create a rapid test result (legacy).
|
|
442
442
|
* POST /patients/{patient_id}/diagnostics/rapid-tests
|
|
443
443
|
*/
|
|
444
444
|
createRapidTest(patientId, request) {
|
package/dist/index.d.cts
CHANGED
|
@@ -415,22 +415,6 @@ interface RtcTokenUnavailableResponse {
|
|
|
415
415
|
}
|
|
416
416
|
type RtcTokenResponse = RtcTokenSuccessResponse | RtcTokenUnavailableResponse;
|
|
417
417
|
|
|
418
|
-
type RapidTestType = "covid19" | "influenza_a" | "influenza_b" | "rsv" | "strep" | "hiv" | "pregnancy" | "mono" | "uti_dipstick" | "blood_glucose" | "other";
|
|
419
|
-
type RapidTestResult = "positive" | "negative" | "invalid" | "inconclusive" | "not_detected" | "detected";
|
|
420
|
-
interface RapidTestRequest {
|
|
421
|
-
type: RapidTestType;
|
|
422
|
-
result: RapidTestResult;
|
|
423
|
-
encounter_id?: string;
|
|
424
|
-
}
|
|
425
|
-
interface RapidTestResponse {
|
|
426
|
-
test_id: string;
|
|
427
|
-
fhir_id: string;
|
|
428
|
-
type: RapidTestType;
|
|
429
|
-
result: RapidTestResult;
|
|
430
|
-
status: string;
|
|
431
|
-
specimen_type: string;
|
|
432
|
-
encounter_id: string;
|
|
433
|
-
}
|
|
434
418
|
interface DiagnosticObservation {
|
|
435
419
|
observation_id: string;
|
|
436
420
|
loinc_code: string;
|
|
@@ -471,6 +455,24 @@ interface TestResult {
|
|
|
471
455
|
updated_at?: string;
|
|
472
456
|
[key: string]: unknown;
|
|
473
457
|
}
|
|
458
|
+
type RapidTestType = "covid19" | "influenza_a" | "influenza_b" | "rsv" | "strep" | "hiv" | "pregnancy" | "mono" | "uti_dipstick" | "blood_glucose" | "other";
|
|
459
|
+
type RapidTestResult = "positive" | "negative" | "invalid" | "inconclusive" | "not_detected" | "detected";
|
|
460
|
+
interface RapidTestRequest {
|
|
461
|
+
type: RapidTestType;
|
|
462
|
+
result: RapidTestResult;
|
|
463
|
+
/** Optional — FHIR encounter reference */
|
|
464
|
+
encounter_id?: string;
|
|
465
|
+
}
|
|
466
|
+
interface RapidTestResponse {
|
|
467
|
+
test_id: string;
|
|
468
|
+
fhir_id?: string;
|
|
469
|
+
type?: RapidTestType;
|
|
470
|
+
result?: RapidTestResult;
|
|
471
|
+
status?: string;
|
|
472
|
+
specimen_type?: string;
|
|
473
|
+
encounter_id?: string;
|
|
474
|
+
[key: string]: unknown;
|
|
475
|
+
}
|
|
474
476
|
|
|
475
477
|
interface VitalsRecordRequest {
|
|
476
478
|
temperature?: number;
|
|
@@ -11794,7 +11796,7 @@ declare class DiagnosticsClient extends BaseServiceClient {
|
|
|
11794
11796
|
*/
|
|
11795
11797
|
getTestResult<TResponse = TestResult>(patientId: string, testId: string): Promise<TResponse>;
|
|
11796
11798
|
/**
|
|
11797
|
-
* Create
|
|
11799
|
+
* Create a rapid test result (legacy).
|
|
11798
11800
|
* POST /patients/{patient_id}/diagnostics/rapid-tests
|
|
11799
11801
|
*/
|
|
11800
11802
|
createRapidTest<TResponse = RapidTestResponse>(patientId: string, request: RapidTestRequest): Promise<TResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -415,22 +415,6 @@ interface RtcTokenUnavailableResponse {
|
|
|
415
415
|
}
|
|
416
416
|
type RtcTokenResponse = RtcTokenSuccessResponse | RtcTokenUnavailableResponse;
|
|
417
417
|
|
|
418
|
-
type RapidTestType = "covid19" | "influenza_a" | "influenza_b" | "rsv" | "strep" | "hiv" | "pregnancy" | "mono" | "uti_dipstick" | "blood_glucose" | "other";
|
|
419
|
-
type RapidTestResult = "positive" | "negative" | "invalid" | "inconclusive" | "not_detected" | "detected";
|
|
420
|
-
interface RapidTestRequest {
|
|
421
|
-
type: RapidTestType;
|
|
422
|
-
result: RapidTestResult;
|
|
423
|
-
encounter_id?: string;
|
|
424
|
-
}
|
|
425
|
-
interface RapidTestResponse {
|
|
426
|
-
test_id: string;
|
|
427
|
-
fhir_id: string;
|
|
428
|
-
type: RapidTestType;
|
|
429
|
-
result: RapidTestResult;
|
|
430
|
-
status: string;
|
|
431
|
-
specimen_type: string;
|
|
432
|
-
encounter_id: string;
|
|
433
|
-
}
|
|
434
418
|
interface DiagnosticObservation {
|
|
435
419
|
observation_id: string;
|
|
436
420
|
loinc_code: string;
|
|
@@ -471,6 +455,24 @@ interface TestResult {
|
|
|
471
455
|
updated_at?: string;
|
|
472
456
|
[key: string]: unknown;
|
|
473
457
|
}
|
|
458
|
+
type RapidTestType = "covid19" | "influenza_a" | "influenza_b" | "rsv" | "strep" | "hiv" | "pregnancy" | "mono" | "uti_dipstick" | "blood_glucose" | "other";
|
|
459
|
+
type RapidTestResult = "positive" | "negative" | "invalid" | "inconclusive" | "not_detected" | "detected";
|
|
460
|
+
interface RapidTestRequest {
|
|
461
|
+
type: RapidTestType;
|
|
462
|
+
result: RapidTestResult;
|
|
463
|
+
/** Optional — FHIR encounter reference */
|
|
464
|
+
encounter_id?: string;
|
|
465
|
+
}
|
|
466
|
+
interface RapidTestResponse {
|
|
467
|
+
test_id: string;
|
|
468
|
+
fhir_id?: string;
|
|
469
|
+
type?: RapidTestType;
|
|
470
|
+
result?: RapidTestResult;
|
|
471
|
+
status?: string;
|
|
472
|
+
specimen_type?: string;
|
|
473
|
+
encounter_id?: string;
|
|
474
|
+
[key: string]: unknown;
|
|
475
|
+
}
|
|
474
476
|
|
|
475
477
|
interface VitalsRecordRequest {
|
|
476
478
|
temperature?: number;
|
|
@@ -11794,7 +11796,7 @@ declare class DiagnosticsClient extends BaseServiceClient {
|
|
|
11794
11796
|
*/
|
|
11795
11797
|
getTestResult<TResponse = TestResult>(patientId: string, testId: string): Promise<TResponse>;
|
|
11796
11798
|
/**
|
|
11797
|
-
* Create
|
|
11799
|
+
* Create a rapid test result (legacy).
|
|
11798
11800
|
* POST /patients/{patient_id}/diagnostics/rapid-tests
|
|
11799
11801
|
*/
|
|
11800
11802
|
createRapidTest<TResponse = RapidTestResponse>(patientId: string, request: RapidTestRequest): Promise<TResponse>;
|
package/dist/index.js
CHANGED
|
@@ -365,9 +365,9 @@ var DiagnosticsClient = class extends BaseServiceClient {
|
|
|
365
365
|
pathParams: { patient_id: patientId, test_id: testId }
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
|
-
// ─── Rapid Test (legacy)
|
|
368
|
+
// ─── Rapid Test (legacy) ────────────────────────────────────────────
|
|
369
369
|
/**
|
|
370
|
-
* Create
|
|
370
|
+
* Create a rapid test result (legacy).
|
|
371
371
|
* POST /patients/{patient_id}/diagnostics/rapid-tests
|
|
372
372
|
*/
|
|
373
373
|
createRapidTest(patientId, request) {
|
package/package.json
CHANGED