@healthcloudai/hc-sdk 3.24.1 → 3.25.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 +43 -2
- package/dist/index.d.cts +840 -26
- package/dist/index.d.ts +840 -26
- package/dist/index.js +43 -2
- package/docs/clients/ProviderClient.md +7 -2
- package/docs/docs-manifest.json +18 -3
- package/docs/examples/index.md +7 -2
- package/docs/index.md +7 -2
- package/docs/models/CheckInEncounterResponse.md +2 -0
- package/docs/models/ClaimEncounterResponse.md +20 -0
- package/docs/models/DiagnosisInput.md +20 -0
- package/docs/models/GetEncounterResponse.md +2 -0
- package/docs/models/Icd10Code.md +18 -0
- package/docs/models/Icd10SearchResponse.md +19 -0
- package/docs/models/ProviderEncounterQueueResponse.md +19 -0
- package/docs/models/ProviderEncounterRecord.md +2 -0
- package/docs/models/ProviderQueueEncounter.md +28 -0
- package/docs/models/ProviderQueuePatient.md +21 -0
- package/docs/models/SignEncounterResponse.md +18 -0
- package/docs/models/UpdateEncounterDiagnosesRequest.md +17 -0
- package/docs/models/UpdateEncounterDiagnosesResponse.md +17 -0
- package/docs/models/fieldagent.Encounter.md +2 -0
- package/docs/models/index.md +10 -0
- package/docs/models/patient.Encounter.md +2 -0
- package/docs/models/provider.Encounter.md +2 -0
- package/docs/operations/fieldagent.listEncounters.md +2 -0
- package/docs/operations/patient.checkEncounter.md +64 -64
- package/docs/operations/patient.checkInEncounter.md +2 -0
- package/docs/operations/patient.createEncounter.md +2 -0
- package/docs/operations/patient.getCheckinCheckin.md +2 -0
- package/docs/operations/patient.getCurrentCareSessionCareSessionsCurrent.md +2 -0
- package/docs/operations/patient.getEncounter.md +2 -0
- package/docs/operations/patient.getLatestEncounter.md +2 -0
- package/docs/operations/patient.getPatientSidebarPatientSidebar.md +2 -0
- package/docs/operations/patient.listEncounters.md +2 -0
- package/docs/operations/provider.claimEncounter.md +235 -0
- package/docs/operations/provider.getEncounter.md +12 -1
- package/docs/operations/provider.getEncounterQueue.md +148 -0
- package/docs/operations/provider.getPatientRecord.md +11 -0
- package/docs/operations/provider.listEncounters.md +24 -3
- package/docs/operations/provider.searchIcd10.md +128 -0
- package/docs/operations/provider.signEncounter.md +233 -0
- package/docs/operations/provider.updateEncounterClinicalNote.md +20 -0
- package/docs/operations/provider.updateEncounterDiagnoses.md +267 -0
- package/docs/operations/provider.updateEncounterStatus.md +20 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3820,11 +3820,52 @@ var ProviderClient = class extends BaseServiceClient {
|
|
|
3820
3820
|
connect() {
|
|
3821
3821
|
return this.connectService();
|
|
3822
3822
|
}
|
|
3823
|
-
/**
|
|
3823
|
+
/**
|
|
3824
|
+
* List the caller's OWN encounters (never tenant-wide). Pass `open: true` for the provider's task list: encounters that
|
|
3825
|
+
* are not finished, cancelled or entered in error.
|
|
3826
|
+
*/
|
|
3824
3827
|
listEncounters(filters) {
|
|
3825
3828
|
return this.send("GET", "/encounters", { query: filters });
|
|
3826
3829
|
}
|
|
3827
|
-
/**
|
|
3830
|
+
/**
|
|
3831
|
+
* The queue (GET /encounters/queue): the newest 10 encounters in the tenant that no provider has taken, newest created
|
|
3832
|
+
* first, each with a minimal patient summary. Use the item's `fhir_id` with claimEncounter.
|
|
3833
|
+
*/
|
|
3834
|
+
getEncounterQueue() {
|
|
3835
|
+
return this.send("GET", "/encounters/queue", {});
|
|
3836
|
+
}
|
|
3837
|
+
/**
|
|
3838
|
+
* Take an encounter from the queue (POST /encounters/{id}/claim): assigns the caller, starts it (in-progress), adds the
|
|
3839
|
+
* patient to the caller's patient list and notifies the patient. Repeating the call as the same provider changes nothing
|
|
3840
|
+
* (`claimed: false`). Rejects with a 409 when another provider took it first, 403 when the caller's role or account may not
|
|
3841
|
+
* work the queue, and 404 when the encounter does not exist.
|
|
3842
|
+
*/
|
|
3843
|
+
claimEncounter(encounterId) {
|
|
3844
|
+
return this.send("POST", "/encounters/{encounter_id}/claim", { pathParams: { encounter_id: encounterId } });
|
|
3845
|
+
}
|
|
3846
|
+
/**
|
|
3847
|
+
* Replace an encounter's diagnoses (PUT /encounters/{id}/diagnoses): add, change or remove. Codes come from
|
|
3848
|
+
* searchIcd10; codes left out of the list are removed, and the display text always comes from the ICD-10 data. Only the
|
|
3849
|
+
* assigned provider (403 otherwise), and not once the encounter is signed (409).
|
|
3850
|
+
*/
|
|
3851
|
+
updateEncounterDiagnoses(encounterId, request) {
|
|
3852
|
+
return this.send("PUT", "/encounters/{encounter_id}/diagnoses", {
|
|
3853
|
+
pathParams: { encounter_id: encounterId },
|
|
3854
|
+
body: request
|
|
3855
|
+
});
|
|
3856
|
+
}
|
|
3857
|
+
/**
|
|
3858
|
+
* Sign and complete an encounter (POST /encounters/{id}/sign): finished, end time, signer and time recorded, patient
|
|
3859
|
+
* notified. The encounter is then locked (409 on later edits). Only the assigned provider.
|
|
3860
|
+
*/
|
|
3861
|
+
signEncounter(encounterId) {
|
|
3862
|
+
return this.send("POST", "/encounters/{encounter_id}/sign", { pathParams: { encounter_id: encounterId } });
|
|
3863
|
+
}
|
|
3864
|
+
/** Search the ICD-10-CM codes accepted on encounters (GET /icd10). `q` is a code prefix or description words. */
|
|
3865
|
+
searchIcd10(filters) {
|
|
3866
|
+
return this.send("GET", "/icd10", { query: filters });
|
|
3867
|
+
}
|
|
3868
|
+
/** Get one of the caller's own encounters with its patient demographic summary (404 until the caller holds it). */
|
|
3828
3869
|
getEncounter(encounterId) {
|
|
3829
3870
|
return this.send("GET", "/encounters/{encounter_id}", { pathParams: { encounter_id: encounterId } });
|
|
3830
3871
|
}
|