@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 CHANGED
@@ -1369,104 +1369,81 @@ function GynHistoryToJSONTyped(value, ignoreDiscriminator = false) {
1369
1369
  };
1370
1370
  }
1371
1371
 
1372
- // src/models/openapi-generated/patient/models/SubstanceStatus.ts
1373
- function SubstanceStatusToJSON(value) {
1374
- return value;
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 SubstanceUseToJSONTyped(value, ignoreDiscriminator = false) {
1376
+ function IntakeTobaccoUseToJSONTyped(value, ignoreDiscriminator = false) {
1382
1377
  if (value == null) {
1383
1378
  return value;
1384
1379
  }
1385
1380
  return {
1386
- "frequency": value["frequency"],
1387
- "notes": value["notes"],
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": SubstanceStatusToJSON(value["status"]),
1392
- "substance": value["substance"]
1387
+ "status": value["status"]
1393
1388
  };
1394
1389
  }
1395
1390
 
1396
- // src/models/openapi-generated/patient/models/DietCategory.ts
1397
- function DietCategoryToJSON(value) {
1398
- return value;
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
- // src/models/openapi-generated/patient/models/LivingSituation.ts
1407
- function LivingSituationToJSON(value) {
1408
- return value;
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/SmokingStatus.ts
1412
- function SmokingStatusToJSON(value) {
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/TobaccoUse.ts
1417
- function TobaccoUseToJSON(json) {
1418
- return TobaccoUseToJSONTyped(json, false);
1413
+ // src/models/openapi-generated/patient/models/IntakeSubstanceUse.ts
1414
+ function IntakeSubstanceUseToJSON(json) {
1415
+ return IntakeSubstanceUseToJSONTyped(json, false);
1419
1416
  }
1420
- function TobaccoUseToJSONTyped(value, ignoreDiscriminator = false) {
1417
+ function IntakeSubstanceUseToJSONTyped(value, ignoreDiscriminator = false) {
1421
1418
  if (value == null) {
1422
1419
  return value;
1423
1420
  }
1424
1421
  return {
1425
- "cessation_aids": value["cessation_aids"],
1426
- "cigarettes_per_day": value["cigarettes_per_day"],
1427
- "pack_years": value["pack_years"],
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": SmokingStatusToJSON(value["status"])
1428
+ "status": value["status"],
1429
+ "substance": value["substance"]
1431
1430
  };
1432
1431
  }
1433
1432
 
1434
- // src/models/openapi-generated/patient/models/AlcoholFrequency.ts
1435
- function AlcoholFrequencyToJSON(value) {
1436
- return value;
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 AlcoholUseToJSONTyped(value, ignoreDiscriminator = false) {
1437
+ function IntakeEhrAnswerToJSONTyped(value, ignoreDiscriminator = false) {
1444
1438
  if (value == null) {
1445
1439
  return value;
1446
1440
  }
1447
1441
  return {
1448
- "binge_drinking": value["binge_drinking"],
1449
- "drinks_per_week": value["drinks_per_week"],
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": AlcoholUseToJSON(value["alcohol"]),
1457
+ "alcohol": IntakeAlcoholUseToJSON(value["alcohol"]),
1481
1458
  "contraception": value["contraception"],
1482
- "diet_category": DietCategoryToJSON(value["diet_category"]),
1459
+ "diet_category": value["diet_category"],
1483
1460
  "diet_description": value["diet_description"],
1484
- "education": EducationLevelToJSON(value["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": ExerciseFrequencyToJSON(value["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": LivingSituationToJSON(value["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": SexualOrientationToJSON(value["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(SubstanceUseToJSON),
1497
- "tobacco": TobaccoUseToJSON(value["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 }