@healthcloudai/hc-sdk 3.16.0 → 3.18.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 (122) hide show
  1. package/dist/index.cjs +23 -0
  2. package/dist/index.d.cts +314 -2
  3. package/dist/index.d.ts +314 -2
  4. package/dist/index.js +23 -0
  5. package/docs/clients/PatientClient.md +2 -0
  6. package/docs/docs-manifest.json +78 -12
  7. package/docs/examples/index.md +2 -0
  8. package/docs/index.md +2 -0
  9. package/docs/models/AlcoholFrequency.md +15 -0
  10. package/docs/models/AlcoholUse.md +20 -0
  11. package/docs/models/BodyHeight.md +17 -0
  12. package/docs/models/BodyTemperature.md +18 -0
  13. package/docs/models/BodyWeight.md +18 -0
  14. package/docs/models/BookAppointmentRequest.md +2 -0
  15. package/docs/models/DietCategory.md +19 -0
  16. package/docs/models/EducationLevel.md +15 -0
  17. package/docs/models/ExerciseFrequency.md +15 -0
  18. package/docs/models/FunctionalLevel.md +15 -0
  19. package/docs/models/FunctionalStatus.md +40 -0
  20. package/docs/models/GetPractitionerResponse.md +8 -2
  21. package/docs/models/Insurance.md +2 -0
  22. package/docs/models/LicenseVerification.md +19 -0
  23. package/docs/models/ListAllergiesResponse.md +1 -1
  24. package/docs/models/ListConditionsResponse.md +1 -1
  25. package/docs/models/ListDirectivesResponse.md +1 -1
  26. package/docs/models/ListFamilyHistoryResponse.md +1 -1
  27. package/docs/models/ListImmunizationsResponse.md +1 -1
  28. package/docs/models/ListProceduresResponse.md +1 -1
  29. package/docs/models/ListQuestionnaireResponsesResponse.md +1 -1
  30. package/docs/models/LivingSituation.md +15 -0
  31. package/docs/models/NpiVerification.md +21 -0
  32. package/docs/models/OnboardingProgressRequest.md +18 -0
  33. package/docs/models/PortalRole.md +18 -0
  34. package/docs/models/Practitioner.md +9 -2
  35. package/docs/models/ProviderCredential.md +19 -0
  36. package/docs/models/ProviderEducationCredential.md +6 -2
  37. package/docs/models/ProviderEncounterListResponse.md +1 -1
  38. package/docs/models/ProviderEncounterRecord.md +49 -0
  39. package/docs/models/ProviderEncounterResponse.md +1 -1
  40. package/docs/models/ProviderLanguage.md +3 -2
  41. package/docs/models/ProviderOnboardingStatus.md +19 -0
  42. package/docs/models/ProviderPatientRecordResources.md +32 -0
  43. package/docs/models/ProviderPatientRecordResponse.md +1 -1
  44. package/docs/models/ProviderPostgraduateTraining.md +22 -0
  45. package/docs/models/ProviderProfessionalLiability.md +19 -0
  46. package/docs/models/ProviderSpecialty.md +1 -1
  47. package/docs/models/ProviderStateLicense.md +9 -2
  48. package/docs/models/ReplaceInsuranceRequest.md +25 -0
  49. package/docs/models/ReplaceInsuranceResponse.md +20 -0
  50. package/docs/models/RetireInsuranceRequest.md +17 -0
  51. package/docs/models/RetireInsuranceResponse.md +19 -0
  52. package/docs/models/SexualOrientation.md +15 -0
  53. package/docs/models/SmokingStatus.md +15 -0
  54. package/docs/models/SocialHistory.md +35 -0
  55. package/docs/models/SubstanceStatus.md +15 -0
  56. package/docs/models/SubstanceUse.md +23 -0
  57. package/docs/models/TobaccoUse.md +22 -0
  58. package/docs/models/UpdateEncounterClinicalNoteResponse.md +1 -1
  59. package/docs/models/UpdateEncounterStatusResponse.md +1 -1
  60. package/docs/models/UpdatePractitionerRequest.md +5 -0
  61. package/docs/models/UpdatePractitionerResponse.md +8 -2
  62. package/docs/models/VitalsRecord.md +41 -0
  63. package/docs/models/appointments.ErrorResponse.md +1 -0
  64. package/docs/models/diagnostics.Coding.md +19 -0
  65. package/docs/models/diagnostics.LabObservation.md +1 -1
  66. package/docs/models/{AdvanceDirective.md → ehr.AdvanceDirective.md} +1 -1
  67. package/docs/models/{Allergy.md → ehr.Allergy.md} +1 -1
  68. package/docs/models/ehr.Coding.md +19 -0
  69. package/docs/models/{FamilyHistoryEntry.md → ehr.FamilyHistoryEntry.md} +1 -1
  70. package/docs/models/{Immunization.md → ehr.Immunization.md} +1 -1
  71. package/docs/models/{Problem.md → ehr.Problem.md} +1 -1
  72. package/docs/models/{Procedure.md → ehr.Procedure.md} +1 -1
  73. package/docs/models/ehr.Quantity.md +20 -0
  74. package/docs/models/{QuestionnaireResponse.md → ehr.QuestionnaireResponse.md} +2 -2
  75. package/docs/models/{ResponseAnswer.md → ehr.ResponseAnswer.md} +4 -4
  76. package/docs/models/{ResponseItem.md → ehr.ResponseItem.md} +3 -3
  77. package/docs/models/index.md +73 -9
  78. package/docs/models/provider.AdvanceDirective.md +31 -0
  79. package/docs/models/provider.Allergy.md +31 -0
  80. package/docs/models/provider.AllergyReaction.md +21 -0
  81. package/docs/models/provider.BloodPressure.md +20 -0
  82. package/docs/models/provider.CodedConcept.md +19 -0
  83. package/docs/models/provider.Coding.md +19 -0
  84. package/docs/models/provider.Dosage.md +24 -0
  85. package/docs/models/provider.Encounter.md +48 -0
  86. package/docs/models/provider.EncounterDiagnosis.md +20 -0
  87. package/docs/models/provider.EncounterHospitalization.md +22 -0
  88. package/docs/models/provider.EncounterLocation.md +21 -0
  89. package/docs/models/provider.EncounterParticipant.md +21 -0
  90. package/docs/models/provider.FamilyCondition.md +22 -0
  91. package/docs/models/provider.FamilyHistoryEntry.md +30 -0
  92. package/docs/models/provider.GynHistory.md +25 -0
  93. package/docs/models/provider.HeartRate.md +18 -0
  94. package/docs/models/provider.Immunization.md +40 -0
  95. package/docs/models/provider.ImmunizationReaction.md +20 -0
  96. package/docs/models/provider.LabObservation.md +29 -0
  97. package/docs/models/provider.Medication.md +41 -0
  98. package/docs/models/provider.PerinatalHistory.md +25 -0
  99. package/docs/models/provider.Problem.md +37 -0
  100. package/docs/models/provider.Procedure.md +37 -0
  101. package/docs/models/provider.PulseOximetry.md +20 -0
  102. package/docs/models/provider.Quantity.md +20 -0
  103. package/docs/models/provider.QuestionnaireResponse.md +27 -0
  104. package/docs/models/provider.ReferenceRange.md +20 -0
  105. package/docs/models/provider.ResponseAnswer.md +27 -0
  106. package/docs/models/provider.ResponseItem.md +21 -0
  107. package/docs/operations/appointments.book.md +34 -1
  108. package/docs/operations/fieldagent.listPatients.md +2 -0
  109. package/docs/operations/patient.getInsurance.md +17 -15
  110. package/docs/operations/patient.getPatient.md +2 -0
  111. package/docs/operations/patient.getPatientSidebarPatientSidebar.md +2 -0
  112. package/docs/operations/patient.replaceInsurance.md +124 -0
  113. package/docs/operations/patient.retireInsurance.md +129 -0
  114. package/docs/operations/provider.getEncounter.md +84 -1
  115. package/docs/operations/provider.getPatientRecord.md +516 -1
  116. package/docs/operations/provider.getPractitioner.md +92 -53
  117. package/docs/operations/provider.listEncounters.md +84 -1
  118. package/docs/operations/provider.register.md +25 -3
  119. package/docs/operations/provider.updateEncounterClinicalNote.md +84 -1
  120. package/docs/operations/provider.updateEncounterStatus.md +84 -1
  121. package/docs/operations/provider.updatePractitioner.md +256 -150
  122. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -361,6 +361,9 @@ var AppointmentsClient = class extends BaseServiceClient {
361
361
  /**
362
362
  * Book an appointment for a specific slot.
363
363
  * POST /appointments/book
364
+ * Pass one caller-created idempotency_key per confirmed attempt and reuse
365
+ * it unchanged on retries. Completed results are remembered for at least
366
+ * 24 hours. This method never generates a replacement key.
364
367
  *
365
368
  * On an Athena-integrated tenant the booking is made in Athena only — no
366
369
  * local FHIR Appointment is written — and `athena_appointment_id` is
@@ -2852,6 +2855,26 @@ var PatientClient = class extends BaseServiceClient {
2852
2855
  listPatientInsurances() {
2853
2856
  return this.send("GET", "/patients/insurance", {});
2854
2857
  }
2858
+ /** Confirm a change to saved insurance. A pending response is not completion.
2859
+ * Reuse request_id/body for retries; never retry through createInsurance().
2860
+ */
2861
+ replaceInsurance(coverageId, request) {
2862
+ return this.send(
2863
+ "PUT",
2864
+ `/patients/insurance/${encodeURIComponent(coverageId)}`,
2865
+ { body: request }
2866
+ );
2867
+ }
2868
+ /** Retire the exact saved coverage after confirmation. History is retained.
2869
+ * Reuse request_id for retries; pending is not completed removal.
2870
+ */
2871
+ retireInsurance(coverageId, request) {
2872
+ return this.send(
2873
+ "POST",
2874
+ `/patients/insurance/${encodeURIComponent(coverageId)}/retire`,
2875
+ { body: request }
2876
+ );
2877
+ }
2855
2878
  importHealthRecord(payload) {
2856
2879
  return this.send("POST", "/patients/health-record/import", {
2857
2880
  body: payload