@healthcloudai/hc-sdk 3.14.0 → 3.15.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 +63 -72
- package/dist/index.d.cts +344 -260
- package/dist/index.d.ts +344 -260
- package/dist/index.js +63 -72
- package/docs/clients/AthenaHealthClient.md +1 -1
- package/docs/clients/PatientClient.md +3 -0
- package/docs/docs-manifest.json +10 -3
- package/docs/examples/index.md +4 -1
- package/docs/index.md +4 -1
- package/docs/models/AssignImpiloDeviceRequest.md +17 -0
- package/docs/models/AssignImpiloDeviceResponse.md +20 -0
- package/docs/models/AthenaLabResult.md +2 -0
- package/docs/models/GetDefaultProviderResponse.md +2 -0
- package/docs/models/ImpiloDeviceItem.md +23 -0
- package/docs/models/ListImpiloDevicesResponse.md +18 -0
- package/docs/models/_InsuranceOcrResult.md +1 -0
- package/docs/models/index.md +4 -0
- package/docs/operations/connectors.athenaAddLabResultDocument.md +2 -2
- package/docs/operations/connectors.athenaGetLabResult.md +2 -0
- package/docs/operations/connectors.athenaListLabResults.md +2 -0
- package/docs/operations/patient.addInsurance.md +48 -16
- package/docs/operations/patient.assignImpiloDevice.md +112 -0
- package/docs/operations/patient.assistantOcrInsurance.md +64 -13
- package/docs/operations/patient.checkPatientInsuranceEligibility.md +133 -38
- package/docs/operations/patient.getDefaultProvider.md +2 -0
- package/docs/operations/patient.importImpiloVitals.md +129 -0
- package/docs/operations/patient.listImpiloDevices.md +100 -0
- package/docs/operations/patient.submitPatientIntake.md +13 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1369,104 +1369,81 @@ function GynHistoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1369
1369
|
};
|
|
1370
1370
|
}
|
|
1371
1371
|
|
|
1372
|
-
// src/models/openapi-generated/patient/models/
|
|
1373
|
-
function
|
|
1374
|
-
return
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
// src/models/openapi-generated/patient/models/SubstanceUse.ts
|
|
1378
|
-
function SubstanceUseToJSON(json) {
|
|
1379
|
-
return SubstanceUseToJSONTyped(json, false);
|
|
1372
|
+
// src/models/openapi-generated/patient/models/IntakeTobaccoUse.ts
|
|
1373
|
+
function IntakeTobaccoUseToJSON(json) {
|
|
1374
|
+
return IntakeTobaccoUseToJSONTyped(json, false);
|
|
1380
1375
|
}
|
|
1381
|
-
function
|
|
1376
|
+
function IntakeTobaccoUseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1382
1377
|
if (value == null) {
|
|
1383
1378
|
return value;
|
|
1384
1379
|
}
|
|
1385
1380
|
return {
|
|
1386
|
-
|
|
1387
|
-
"
|
|
1381
|
+
...value,
|
|
1382
|
+
"cessation_aids": value["cessation_aids"],
|
|
1383
|
+
"cigarettes_per_day": value["cigarettes_per_day"],
|
|
1384
|
+
"pack_years": value["pack_years"],
|
|
1388
1385
|
"quit_year": value["quit_year"],
|
|
1389
|
-
"route": value["route"],
|
|
1390
1386
|
"start_year": value["start_year"],
|
|
1391
|
-
"status":
|
|
1392
|
-
"substance": value["substance"]
|
|
1387
|
+
"status": value["status"]
|
|
1393
1388
|
};
|
|
1394
1389
|
}
|
|
1395
1390
|
|
|
1396
|
-
// src/models/openapi-generated/patient/models/
|
|
1397
|
-
function
|
|
1398
|
-
return
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
// src/models/openapi-generated/patient/models/ExerciseFrequency.ts
|
|
1402
|
-
function ExerciseFrequencyToJSON(value) {
|
|
1403
|
-
return value;
|
|
1391
|
+
// src/models/openapi-generated/patient/models/IntakeAlcoholUse.ts
|
|
1392
|
+
function IntakeAlcoholUseToJSON(json) {
|
|
1393
|
+
return IntakeAlcoholUseToJSONTyped(json, false);
|
|
1404
1394
|
}
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1395
|
+
function IntakeAlcoholUseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1396
|
+
if (value == null) {
|
|
1397
|
+
return value;
|
|
1398
|
+
}
|
|
1399
|
+
return {
|
|
1400
|
+
...value,
|
|
1401
|
+
"binge_drinking": value["binge_drinking"],
|
|
1402
|
+
"drinks_per_week": value["drinks_per_week"],
|
|
1403
|
+
"frequency": value["frequency"],
|
|
1404
|
+
"notes": value["notes"]
|
|
1405
|
+
};
|
|
1409
1406
|
}
|
|
1410
1407
|
|
|
1411
|
-
// src/models/openapi-generated/patient/models/
|
|
1412
|
-
function
|
|
1408
|
+
// src/models/openapi-generated/patient/models/GenderIdentity.ts
|
|
1409
|
+
function GenderIdentityToJSON(value) {
|
|
1413
1410
|
return value;
|
|
1414
1411
|
}
|
|
1415
1412
|
|
|
1416
|
-
// src/models/openapi-generated/patient/models/
|
|
1417
|
-
function
|
|
1418
|
-
return
|
|
1413
|
+
// src/models/openapi-generated/patient/models/IntakeSubstanceUse.ts
|
|
1414
|
+
function IntakeSubstanceUseToJSON(json) {
|
|
1415
|
+
return IntakeSubstanceUseToJSONTyped(json, false);
|
|
1419
1416
|
}
|
|
1420
|
-
function
|
|
1417
|
+
function IntakeSubstanceUseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1421
1418
|
if (value == null) {
|
|
1422
1419
|
return value;
|
|
1423
1420
|
}
|
|
1424
1421
|
return {
|
|
1425
|
-
|
|
1426
|
-
"
|
|
1427
|
-
"
|
|
1422
|
+
...value,
|
|
1423
|
+
"frequency": value["frequency"],
|
|
1424
|
+
"notes": value["notes"],
|
|
1428
1425
|
"quit_year": value["quit_year"],
|
|
1426
|
+
"route": value["route"],
|
|
1429
1427
|
"start_year": value["start_year"],
|
|
1430
|
-
"status":
|
|
1428
|
+
"status": value["status"],
|
|
1429
|
+
"substance": value["substance"]
|
|
1431
1430
|
};
|
|
1432
1431
|
}
|
|
1433
1432
|
|
|
1434
|
-
// src/models/openapi-generated/patient/models/
|
|
1435
|
-
function
|
|
1436
|
-
return
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
// src/models/openapi-generated/patient/models/AlcoholUse.ts
|
|
1440
|
-
function AlcoholUseToJSON(json) {
|
|
1441
|
-
return AlcoholUseToJSONTyped(json, false);
|
|
1433
|
+
// src/models/openapi-generated/patient/models/IntakeEhrAnswer.ts
|
|
1434
|
+
function IntakeEhrAnswerToJSON(json) {
|
|
1435
|
+
return IntakeEhrAnswerToJSONTyped(json, false);
|
|
1442
1436
|
}
|
|
1443
|
-
function
|
|
1437
|
+
function IntakeEhrAnswerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1444
1438
|
if (value == null) {
|
|
1445
1439
|
return value;
|
|
1446
1440
|
}
|
|
1447
1441
|
return {
|
|
1448
|
-
"
|
|
1449
|
-
"
|
|
1450
|
-
"frequency": AlcoholFrequencyToJSON(value["frequency"]),
|
|
1451
|
-
"notes": value["notes"]
|
|
1442
|
+
"question_key": value["question_key"],
|
|
1443
|
+
"value": value["value"]
|
|
1452
1444
|
};
|
|
1453
1445
|
}
|
|
1454
1446
|
|
|
1455
|
-
// src/models/openapi-generated/patient/models/GenderIdentity.ts
|
|
1456
|
-
function GenderIdentityToJSON(value) {
|
|
1457
|
-
return value;
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
// src/models/openapi-generated/patient/models/EducationLevel.ts
|
|
1461
|
-
function EducationLevelToJSON(value) {
|
|
1462
|
-
return value;
|
|
1463
|
-
}
|
|
1464
|
-
|
|
1465
|
-
// src/models/openapi-generated/patient/models/SexualOrientation.ts
|
|
1466
|
-
function SexualOrientationToJSON(value) {
|
|
1467
|
-
return value;
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
1447
|
// src/models/openapi-generated/patient/models/IntakeSocialHistory.ts
|
|
1471
1448
|
function IntakeSocialHistoryToJSON(json) {
|
|
1472
1449
|
return IntakeSocialHistoryToJSONTyped(json, false);
|
|
@@ -1477,24 +1454,25 @@ function IntakeSocialHistoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1477
1454
|
}
|
|
1478
1455
|
return {
|
|
1479
1456
|
...value,
|
|
1480
|
-
"alcohol":
|
|
1457
|
+
"alcohol": IntakeAlcoholUseToJSON(value["alcohol"]),
|
|
1481
1458
|
"contraception": value["contraception"],
|
|
1482
|
-
"diet_category":
|
|
1459
|
+
"diet_category": value["diet_category"],
|
|
1483
1460
|
"diet_description": value["diet_description"],
|
|
1484
|
-
"education":
|
|
1461
|
+
"education": value["education"],
|
|
1462
|
+
"ehr_answers": value["ehr_answers"] == null ? void 0 : value["ehr_answers"].map(IntakeEhrAnswerToJSON),
|
|
1485
1463
|
"employer": value["employer"],
|
|
1486
|
-
"exercise_frequency":
|
|
1464
|
+
"exercise_frequency": value["exercise_frequency"],
|
|
1487
1465
|
"exercise_minutes_per_week": value["exercise_minutes_per_week"],
|
|
1488
1466
|
"gender_identity": GenderIdentityToJSON(value["gender_identity"]),
|
|
1489
|
-
"living_situation":
|
|
1467
|
+
"living_situation": value["living_situation"],
|
|
1490
1468
|
"notes": value["notes"],
|
|
1491
1469
|
"number_of_dependents": value["number_of_dependents"],
|
|
1492
1470
|
"occupation": value["occupation"],
|
|
1493
1471
|
"occupational_exposures": value["occupational_exposures"],
|
|
1494
|
-
"sexual_orientation":
|
|
1472
|
+
"sexual_orientation": value["sexual_orientation"],
|
|
1495
1473
|
"sexually_active": value["sexually_active"],
|
|
1496
|
-
"substances": value["substances"] == null ? void 0 : value["substances"].map(
|
|
1497
|
-
"tobacco":
|
|
1474
|
+
"substances": value["substances"] == null ? void 0 : value["substances"].map(IntakeSubstanceUseToJSON),
|
|
1475
|
+
"tobacco": IntakeTobaccoUseToJSON(value["tobacco"]),
|
|
1498
1476
|
"travel_history": value["travel_history"]
|
|
1499
1477
|
};
|
|
1500
1478
|
}
|
|
@@ -2188,6 +2166,8 @@ function GetDefaultProviderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2188
2166
|
return json;
|
|
2189
2167
|
}
|
|
2190
2168
|
return {
|
|
2169
|
+
"first_name": json["first_name"] === void 0 ? void 0 : json["first_name"] === null ? null : json["first_name"],
|
|
2170
|
+
"last_name": json["last_name"] === void 0 ? void 0 : json["last_name"] === null ? null : json["last_name"],
|
|
2191
2171
|
"name": json["name"],
|
|
2192
2172
|
"npi": json["npi"]
|
|
2193
2173
|
};
|
|
@@ -2842,6 +2822,17 @@ var PatientClient = class extends BaseServiceClient {
|
|
|
2842
2822
|
body: { source, payload }
|
|
2843
2823
|
});
|
|
2844
2824
|
}
|
|
2825
|
+
listImpiloDevices() {
|
|
2826
|
+
return this.send("GET", "/patients/vitals/devices/impilo");
|
|
2827
|
+
}
|
|
2828
|
+
assignImpiloDevice(itemId) {
|
|
2829
|
+
return this.send("POST", "/patients/vitals/deviceassign/impilo", {
|
|
2830
|
+
body: { item_id: itemId }
|
|
2831
|
+
});
|
|
2832
|
+
}
|
|
2833
|
+
importImpiloVitals() {
|
|
2834
|
+
return this.send("POST", "/patients/vitals/import/impilo");
|
|
2835
|
+
}
|
|
2845
2836
|
importActivity(source, payload) {
|
|
2846
2837
|
return this.send("POST", "/patients/activity/import", {
|
|
2847
2838
|
body: { source, payload }
|