@healthcloudai/hc-sdk 2.13.0 → 2.16.0

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.
Files changed (45) hide show
  1. package/dist/index.cjs +984 -7
  2. package/dist/index.d.cts +8792 -4337
  3. package/dist/index.d.ts +8792 -4337
  4. package/dist/index.js +984 -7
  5. package/docs/clients/AthenaHealthClient.md +1 -1
  6. package/docs/clients/DiagnosticsClient.md +1 -0
  7. package/docs/clients/PatientClient.md +2 -0
  8. package/docs/docs-manifest.json +12 -6
  9. package/docs/examples/index.md +4 -1
  10. package/docs/index.md +4 -1
  11. package/docs/models/Allergy.md +2 -2
  12. package/docs/models/AthenaCreateAllergyRequest.md +3 -0
  13. package/docs/models/AthenaCreateMedicationRequest.md +2 -0
  14. package/docs/models/AthenaCreatePatientRequest.md +3 -0
  15. package/docs/models/AthenaCreateProblemRequest.md +3 -0
  16. package/docs/models/AthenaCreateProcedureRequest.md +1 -0
  17. package/docs/models/AthenaListAllergiesRequest.md +1 -0
  18. package/docs/models/AthenaPatient.md +1 -0
  19. package/docs/models/AthenaVitalsMirrorResult.md +2 -2
  20. package/docs/models/CapturedTestImageResponse.md +26 -0
  21. package/docs/models/FamilyHistoryEntry.md +1 -1
  22. package/docs/models/GetHealthRecordResponse.md +1 -1
  23. package/docs/models/PatientIntakeRequest.md +26 -0
  24. package/docs/models/PatientIntakeResponse.md +20 -0
  25. package/docs/models/UpdateDemographicsResponse.md +4 -0
  26. package/docs/models/VitalsRecordRequest.md +6 -6
  27. package/docs/models/{AllergyReaction.md → ehr.AllergyReaction.md} +2 -2
  28. package/docs/models/{CodedConcept.md → ehr.CodedConcept.md} +1 -1
  29. package/docs/models/{FamilyCondition.md → ehr.FamilyCondition.md} +2 -1
  30. package/docs/models/index.md +6 -3
  31. package/docs/models/patient.RegisterRequest.md +3 -0
  32. package/docs/operations/connectors.athenaCreateAllergy.md +2 -2
  33. package/docs/operations/connectors.athenaCreateMedication.md +3 -3
  34. package/docs/operations/connectors.athenaListAllergies.md +5 -3
  35. package/docs/operations/connectors.athenaListMedications.md +3 -0
  36. package/docs/operations/diagnostics.createRapidTest.md +0 -1
  37. package/docs/operations/diagnostics.getScanUploadUrl.md +0 -1
  38. package/docs/operations/diagnostics.getTestImage.md +118 -0
  39. package/docs/operations/ehr.listFamilyHistory.md +18 -17
  40. package/docs/operations/patient.getPatientIntake.md +137 -0
  41. package/docs/operations/patient.register.md +7 -1
  42. package/docs/operations/patient.submitPatientIntake.md +703 -0
  43. package/docs/operations/patient.updateDemographics.md +4 -0
  44. package/docs/operations/vitals.recordVitals.md +33 -31
  45. package/package.json +1 -1
@@ -74,6 +74,10 @@ Request model: [`UpdateDemographicsRequest`](../models/UpdateDemographicsRequest
74
74
 
75
75
  ```json
76
76
  {
77
+ "athena_status": "string",
78
+ "athena_status_detail": "string",
79
+ "openloop_status": "string",
80
+ "steadymd_status": "string",
77
81
  "updated": true
78
82
  }
79
83
  ```
@@ -48,21 +48,22 @@ Request model: [`VitalsRecordRequest`](../models/VitalsRecordRequest.md)
48
48
 
49
49
  ```json
50
50
  {
51
- "blood_glucose": 90,
52
- "diastolic": 76,
53
- "diastolic_bp": 76,
54
- "encounter_id": "encounter-example-001",
55
- "heart_rate": 72,
56
- "height": 170,
57
- "height_cm": 170,
58
- "oxygen_saturation": 98,
59
- "respiratory_rate": 16,
60
- "spo2": 98,
61
- "systolic": 118,
62
- "systolic_bp": 118,
63
- "temperature": 37,
64
- "weight": 70,
65
- "weight_kg": 70
51
+ "blood_glucose": 0,
52
+ "diastolic": 0,
53
+ "diastolic_bp": 0,
54
+ "encounter_id": "string",
55
+ "heart_rate": 0,
56
+ "height": 0,
57
+ "height_cm": 0,
58
+ "oxygen_saturation": 0,
59
+ "pain_score": 0,
60
+ "respiratory_rate": 0,
61
+ "spo2": 0,
62
+ "systolic": 0,
63
+ "systolic_bp": 0,
64
+ "temperature": 0,
65
+ "weight": 0,
66
+ "weight_kg": 0
66
67
  }
67
68
  ```
68
69
 
@@ -125,21 +126,22 @@ import type { VitalsRecordRequest } from "@healthcloudai/hc-sdk";
125
126
  const patientId = "<PATIENT_ID>";
126
127
 
127
128
  const request = {
128
- "blood_glucose": 90,
129
- "diastolic": 76,
130
- "diastolic_bp": 76,
131
- "encounter_id": "encounter-example-001",
132
- "heart_rate": 72,
133
- "height": 170,
134
- "height_cm": 170,
135
- "oxygen_saturation": 98,
136
- "respiratory_rate": 16,
137
- "spo2": 98,
138
- "systolic": 118,
139
- "systolic_bp": 118,
140
- "temperature": 37,
141
- "weight": 70,
142
- "weight_kg": 70
129
+ "blood_glucose": 0,
130
+ "diastolic": 0,
131
+ "diastolic_bp": 0,
132
+ "encounter_id": "string",
133
+ "heart_rate": 0,
134
+ "height": 0,
135
+ "height_cm": 0,
136
+ "oxygen_saturation": 0,
137
+ "pain_score": 0,
138
+ "respiratory_rate": 0,
139
+ "spo2": 0,
140
+ "systolic": 0,
141
+ "systolic_bp": 0,
142
+ "temperature": 0,
143
+ "weight": 0,
144
+ "weight_kg": 0
143
145
  };
144
146
 
145
147
  const result = await vitals.record(patientId, request);
@@ -151,7 +153,7 @@ const result = await vitals.record(patientId, request);
151
153
  curl -X POST \
152
154
  -H 'Authorization: Bearer <ACCESS_TOKEN>' \
153
155
  -H 'Content-Type: application/json' \
154
- -d '{"blood_glucose":90,"diastolic":76,"diastolic_bp":76,"encounter_id":"encounter-example-001","heart_rate":72,"height":170,"height_cm":170,"oxygen_saturation":98,"respiratory_rate":16,"spo2":98,"systolic":118,"systolic_bp":118,"temperature":37,"weight":70,"weight_kg":70}' \
156
+ -d '{"blood_glucose":0,"diastolic":0,"diastolic_bp":0,"encounter_id":"string","heart_rate":0,"height":0,"height_cm":0,"oxygen_saturation":0,"pain_score":0,"respiratory_rate":0,"spo2":0,"systolic":0,"systolic_bp":0,"temperature":0,"weight":0,"weight_kg":0}' \
155
157
  'https://dev-api-vitals.health.cloud/patients/%3CPATIENT_ID%3E/vitals'
156
158
  ```
157
159
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-sdk",
3
- "version": "2.13.0",
3
+ "version": "2.16.0",
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",