@healthcloudai/hc-sdk 2.6.1 → 2.7.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.
- package/dist/index.cjs +103 -0
- package/dist/index.d.cts +5837 -5797
- package/dist/index.d.ts +5837 -5797
- package/dist/index.js +103 -0
- package/docs/clients/EhrClient.md +15 -0
- package/docs/docs-manifest.json +55 -3
- package/docs/examples/index.md +15 -0
- package/docs/index.md +15 -0
- package/docs/models/Allergy.md +31 -0
- package/docs/models/AllergyCategory.md +15 -0
- package/docs/models/AllergyCriticality.md +15 -0
- package/docs/models/AllergyReaction.md +21 -0
- package/docs/models/AllergyStatus.md +15 -0
- package/docs/models/AllergyVerificationStatus.md +15 -0
- package/docs/models/CodedConcept.md +19 -0
- package/docs/models/FamilyCondition.md +21 -0
- package/docs/models/FamilyHistoryEntry.md +30 -0
- package/docs/models/FamilyHistoryStatus.md +15 -0
- package/docs/models/FamilyRelationship.md +15 -0
- package/docs/models/GetHealthRecordResponse.md +19 -0
- package/docs/models/InitHealthRecordImportResponse.md +2 -0
- package/docs/models/IntoleranceType.md +15 -0
- package/docs/models/ListAllergiesResponse.md +19 -0
- package/docs/models/ListConditionsResponse.md +19 -0
- package/docs/models/ListDirectivesResponse.md +19 -0
- package/docs/models/ListFamilyHistoryResponse.md +19 -0
- package/docs/models/ListFunctionalStatusResponse.md +19 -0
- package/docs/models/ListImmunizationsResponse.md +19 -0
- package/docs/models/ListObservationsResponse.md +19 -0
- package/docs/models/ListProceduresResponse.md +19 -0
- package/docs/models/ListQuestionnaireResponsesResponse.md +19 -0
- package/docs/models/ListSocialHistoryResponse.md +19 -0
- package/docs/models/ListVitalsResponse.md +19 -0
- package/docs/models/Problem.md +37 -0
- package/docs/models/ProblemCategory.md +15 -0
- package/docs/models/ProblemClinicalStatus.md +15 -0
- package/docs/models/ProblemSeverity.md +15 -0
- package/docs/models/ProblemVerificationStatus.md +15 -0
- package/docs/models/QuestionnaireResponse.md +27 -0
- package/docs/models/QuestionnaireResponseStatus.md +15 -0
- package/docs/models/ReactionSeverity.md +15 -0
- package/docs/models/ResponseAnswer.md +27 -0
- package/docs/models/ResponseItem.md +21 -0
- package/docs/models/ehr.ListDiagnosticsResponse.md +19 -0
- package/docs/models/ehr.ListEncountersResponse.md +19 -0
- package/docs/models/ehr.ListMedicationsResponse.md +19 -0
- package/docs/models/fieldagent.ResetPasswordRequest.md +1 -1
- package/docs/models/index.md +37 -0
- package/docs/models/person.ResetPasswordRequest.md +1 -1
- package/docs/models/provider.ResetPasswordRequest.md +1 -1
- package/docs/operations/diagnostics.getTestResult.md +1 -1
- package/docs/operations/diagnostics.lookupTestByGs1.md +1 -1
- package/docs/operations/ehr.getHealthRecord.md +122 -0
- package/docs/operations/ehr.listAllergies.md +156 -0
- package/docs/operations/ehr.listConditions.md +152 -0
- package/docs/operations/ehr.listDiagnostics.md +147 -0
- package/docs/operations/ehr.listDirectives.md +122 -0
- package/docs/operations/ehr.listEncounters.md +178 -0
- package/docs/operations/ehr.listFamilyHistory.md +147 -0
- package/docs/operations/ehr.listFunctionalStatus.md +122 -0
- package/docs/operations/ehr.listImmunizations.md +122 -0
- package/docs/operations/ehr.listMedications.md +163 -0
- package/docs/operations/ehr.listObservations.md +126 -0
- package/docs/operations/ehr.listProcedures.md +122 -0
- package/docs/operations/ehr.listQuestionnaireResponses.md +162 -0
- package/docs/operations/ehr.listSocialHistory.md +122 -0
- package/docs/operations/ehr.listVitals.md +132 -0
- package/docs/operations/fieldagent.resetPassword.md +1 -1
- package/docs/operations/patient.initHealthRecordImport.md +3 -1
- package/docs/operations/patient.resetPassword.md +1 -1
- package/docs/operations/person.resetPassword.md +1 -1
- package/docs/operations/provider.resetPassword.md +1 -1
- package/package.json +1 -1
- /package/docs/models/{GoogleAiEmbedRequest.md → GoogleAIEmbedRequest.md} +0 -0
- /package/docs/models/{GoogleAiGenerateRequest.md → GoogleAIGenerateRequest.md} +0 -0
- /package/docs/models/{GoogleAiInvokeA1cVisionCaptureRequest.md → GoogleAIInvokeA1cVisionCaptureRequest.md} +0 -0
- /package/docs/models/{OpenaiBuildResponseCreatePayloadRequest.md → OpenAIBuildResponseCreatePayloadRequest.md} +0 -0
- /package/docs/models/{OpenaiChatJsonRequest.md → OpenAIChatJsonRequest.md} +0 -0
- /package/docs/models/{OpenaiChatRequest.md → OpenAIChatRequest.md} +0 -0
- /package/docs/models/{OpenaiCreateAssistantRequest.md → OpenAICreateAssistantRequest.md} +0 -0
- /package/docs/models/{OpenaiDeleteAssistantRequest.md → OpenAIDeleteAssistantRequest.md} +0 -0
- /package/docs/models/{OpenaiEmbedRequest.md → OpenAIEmbedRequest.md} +0 -0
- /package/docs/models/{OpenaiGetAssistantRequest.md → OpenAIGetAssistantRequest.md} +0 -0
- /package/docs/models/{OpenaiModerateRequest.md → OpenAIModerateRequest.md} +0 -0
- /package/docs/models/{OpenaiUpdateAssistantRequest.md → OpenAIUpdateAssistantRequest.md} +0 -0
- /package/docs/models/{SendgridListTemplatesRequest.md → SendGridListTemplatesRequest.md} +0 -0
- /package/docs/models/{SteadymdAddAllergyIntoleranceRequest.md → SteadyMDAddAllergyIntoleranceRequest.md} +0 -0
- /package/docs/models/{SteadymdClaimIdentityVerificationRequest.md → SteadyMDClaimIdentityVerificationRequest.md} +0 -0
- /package/docs/models/{SteadymdCreateConsultIssueRequest.md → SteadyMDCreateConsultIssueRequest.md} +0 -0
- /package/docs/models/{SteadymdCreateConsultRequest.md → SteadyMDCreateConsultRequest.md} +0 -0
- /package/docs/models/{SteadymdCreateEpisodeLabRequisitionRequest.md → SteadyMDCreateEpisodeLabRequisitionRequest.md} +0 -0
- /package/docs/models/{SteadymdCreateEpisodeRequest.md → SteadyMDCreateEpisodeRequest.md} +0 -0
- /package/docs/models/{SteadymdCreateIntakeRequest.md → SteadyMDCreateIntakeRequest.md} +0 -0
- /package/docs/models/{SteadymdCreateLabOrderRequest.md → SteadyMDCreateLabOrderRequest.md} +0 -0
- /package/docs/models/{SteadymdCreateLabOrderResultRequest.md → SteadyMDCreateLabOrderResultRequest.md} +0 -0
- /package/docs/models/{SteadymdCreateMessageRequest.md → SteadyMDCreateMessageRequest.md} +0 -0
- /package/docs/models/{SteadymdCreatePatientRequest.md → SteadyMDCreatePatientRequest.md} +0 -0
- /package/docs/models/{SteadymdGetClinicianRequest.md → SteadyMDGetClinicianRequest.md} +0 -0
- /package/docs/models/{SteadymdGetConsultAvailabilityRequest.md → SteadyMDGetConsultAvailabilityRequest.md} +0 -0
- /package/docs/models/{SteadymdGetConsultPatientUiRequest.md → SteadyMDGetConsultPatientUiRequest.md} +0 -0
- /package/docs/models/{SteadymdGetConsultRequest.md → SteadyMDGetConsultRequest.md} +0 -0
- /package/docs/models/{SteadymdGetEpisodeLabRequisitionRequest.md → SteadyMDGetEpisodeLabRequisitionRequest.md} +0 -0
- /package/docs/models/{SteadymdGetEpisodeRequest.md → SteadyMDGetEpisodeRequest.md} +0 -0
- /package/docs/models/{SteadymdGetEpisodeSignedDocumentsRequest.md → SteadyMDGetEpisodeSignedDocumentsRequest.md} +0 -0
- /package/docs/models/{SteadymdGetIntakeRequest.md → SteadyMDGetIntakeRequest.md} +0 -0
- /package/docs/models/{SteadymdGetLabOrderPdfRequest.md → SteadyMDGetLabOrderPdfRequest.md} +0 -0
- /package/docs/models/{SteadymdGetLabOrderRequest.md → SteadyMDGetLabOrderRequest.md} +0 -0
- /package/docs/models/{SteadymdGetLabOrderResultRequest.md → SteadyMDGetLabOrderResultRequest.md} +0 -0
- /package/docs/models/{SteadymdGetLabResultPdfRequest.md → SteadyMDGetLabResultPdfRequest.md} +0 -0
- /package/docs/models/{SteadymdGetMessageRequest.md → SteadyMDGetMessageRequest.md} +0 -0
- /package/docs/models/{SteadymdGetPatientRequest.md → SteadyMDGetPatientRequest.md} +0 -0
- /package/docs/models/{SteadymdGetProgramAppointmentsRequest.md → SteadyMDGetProgramAppointmentsRequest.md} +0 -0
- /package/docs/models/{SteadymdGetProgramConsultOptionsRequest.md → SteadyMDGetProgramConsultOptionsRequest.md} +0 -0
- /package/docs/models/{SteadymdGetProgramLabsRequest.md → SteadyMDGetProgramLabsRequest.md} +0 -0
- /package/docs/models/{SteadymdGetProgramRequest.md → SteadyMDGetProgramRequest.md} +0 -0
- /package/docs/models/{SteadymdListConsultsRequest.md → SteadyMDListConsultsRequest.md} +0 -0
- /package/docs/models/{SteadymdListIntakesRequest.md → SteadyMDListIntakesRequest.md} +0 -0
- /package/docs/models/{SteadymdListLabOrderResultsRequest.md → SteadyMDListLabOrderResultsRequest.md} +0 -0
- /package/docs/models/{SteadymdListLabOrdersRequest.md → SteadyMDListLabOrdersRequest.md} +0 -0
- /package/docs/models/{SteadymdListMessagesRequest.md → SteadyMDListMessagesRequest.md} +0 -0
- /package/docs/models/{SteadymdListPharmaciesRequest.md → SteadyMDListPharmaciesRequest.md} +0 -0
- /package/docs/models/{SteadymdListProgramCliniciansRequest.md → SteadyMDListProgramCliniciansRequest.md} +0 -0
- /package/docs/models/{SteadymdListProgramsRequest.md → SteadyMDListProgramsRequest.md} +0 -0
- /package/docs/models/{SteadymdPatchEpisodeRequest.md → SteadyMDPatchEpisodeRequest.md} +0 -0
- /package/docs/models/{SteadymdScheduleConsultAppointmentRequest.md → SteadyMDScheduleConsultAppointmentRequest.md} +0 -0
- /package/docs/models/{SteadymdSendConsultMessageRequest.md → SteadyMDSendConsultMessageRequest.md} +0 -0
- /package/docs/models/{SteadymdUpdateConsultStatusRequest.md → SteadyMDUpdateConsultStatusRequest.md} +0 -0
- /package/docs/models/{SteadymdUpdateEpisodeRequest.md → SteadyMDUpdateEpisodeRequest.md} +0 -0
- /package/docs/models/{SteadymdUpdateIntakeRequest.md → SteadyMDUpdateIntakeRequest.md} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -502,6 +502,109 @@ var EhrClient = class extends BaseServiceClient {
|
|
|
502
502
|
connect() {
|
|
503
503
|
return this.connectService();
|
|
504
504
|
}
|
|
505
|
+
// ─── Clinical Record ─────────────────────────────────────────────────
|
|
506
|
+
/** List a patient's allergies. */
|
|
507
|
+
listAllergies(patientId) {
|
|
508
|
+
return this.send("GET", "/patients/{patient_id}/allergies", {
|
|
509
|
+
pathParams: { patient_id: patientId }
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
/** List a patient's conditions. */
|
|
513
|
+
listConditions(patientId, clinicalStatus) {
|
|
514
|
+
return this.send("GET", "/patients/{patient_id}/conditions", {
|
|
515
|
+
pathParams: { patient_id: patientId },
|
|
516
|
+
query: clinicalStatus ? { clinical_status: clinicalStatus } : void 0
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
/** List a patient's diagnostic/lab observations. */
|
|
520
|
+
listDiagnostics(patientId, code) {
|
|
521
|
+
return this.send("GET", "/patients/{patient_id}/diagnostics", {
|
|
522
|
+
pathParams: { patient_id: patientId },
|
|
523
|
+
query: code ? { code } : void 0
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
/** List a patient's advance directives. */
|
|
527
|
+
listDirectives(patientId) {
|
|
528
|
+
return this.send("GET", "/patients/{patient_id}/directives", {
|
|
529
|
+
pathParams: { patient_id: patientId }
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
/** List a patient's encounters. */
|
|
533
|
+
listEncounters(patientId, status) {
|
|
534
|
+
return this.send("GET", "/patients/{patient_id}/encounters", {
|
|
535
|
+
pathParams: { patient_id: patientId },
|
|
536
|
+
query: status ? { status } : void 0
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
/** List a patient's family history. */
|
|
540
|
+
listFamilyHistory(patientId) {
|
|
541
|
+
return this.send("GET", "/patients/{patient_id}/family-history", {
|
|
542
|
+
pathParams: { patient_id: patientId }
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
/** List a patient's functional-status observations. */
|
|
546
|
+
listFunctionalStatus(patientId) {
|
|
547
|
+
return this.send("GET", "/patients/{patient_id}/functional-status", {
|
|
548
|
+
pathParams: { patient_id: patientId }
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
/** List a patient's immunizations. */
|
|
552
|
+
listImmunizations(patientId) {
|
|
553
|
+
return this.send("GET", "/patients/{patient_id}/immunizations", {
|
|
554
|
+
pathParams: { patient_id: patientId }
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
/** List a patient's medications. */
|
|
558
|
+
listMedications(patientId, resourceType) {
|
|
559
|
+
return this.send("GET", "/patients/{patient_id}/medications", {
|
|
560
|
+
pathParams: { patient_id: patientId },
|
|
561
|
+
query: resourceType ? { resource_type: resourceType } : void 0
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
/** List a patient's observations. */
|
|
565
|
+
listObservations(patientId, category) {
|
|
566
|
+
return this.send("GET", "/patients/{patient_id}/observations", {
|
|
567
|
+
pathParams: { patient_id: patientId },
|
|
568
|
+
query: category ? { category } : void 0
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
/** List a patient's procedures. */
|
|
572
|
+
listProcedures(patientId) {
|
|
573
|
+
return this.send("GET", "/patients/{patient_id}/procedures", {
|
|
574
|
+
pathParams: { patient_id: patientId }
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
/** List a patient's questionnaire responses. */
|
|
578
|
+
listQuestionnaireResponses(patientId, questionnaireUrl) {
|
|
579
|
+
return this.send("GET", "/patients/{patient_id}/questionnaire-responses", {
|
|
580
|
+
pathParams: { patient_id: patientId },
|
|
581
|
+
query: questionnaireUrl ? { questionnaire_url: questionnaireUrl } : void 0
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
/** Get a patient's consolidated health record. */
|
|
585
|
+
getHealthRecord(patientId) {
|
|
586
|
+
return this.send("GET", "/patients/{patient_id}/record", {
|
|
587
|
+
pathParams: { patient_id: patientId }
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
/** List a patient's social history. */
|
|
591
|
+
listSocialHistory(patientId) {
|
|
592
|
+
return this.send("GET", "/patients/{patient_id}/social-history", {
|
|
593
|
+
pathParams: { patient_id: patientId }
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
/** List a patient's vitals. */
|
|
597
|
+
listVitals(patientId, dateFrom, dateTo, type) {
|
|
598
|
+
const query = dateFrom || dateTo || type ? {
|
|
599
|
+
...dateFrom ? { date_from: dateFrom } : {},
|
|
600
|
+
...dateTo ? { date_to: dateTo } : {},
|
|
601
|
+
...type ? { type } : {}
|
|
602
|
+
} : void 0;
|
|
603
|
+
return this.send("GET", "/patients/{patient_id}/vitals", {
|
|
604
|
+
pathParams: { patient_id: patientId },
|
|
605
|
+
query
|
|
606
|
+
});
|
|
607
|
+
}
|
|
505
608
|
};
|
|
506
609
|
|
|
507
610
|
// src/clients/FieldAgentClient.ts
|