@healthcloudai/hc-sdk 3.5.1 → 3.6.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 +35 -0
- package/dist/index.d.cts +1030 -101
- package/dist/index.d.ts +1030 -101
- package/dist/index.js +35 -0
- package/docs/clients/PatientClient.md +1 -0
- package/docs/docs-manifest.json +18 -3
- package/docs/examples/index.md +1 -0
- package/docs/index.md +1 -0
- package/docs/models/AddPatientIntakeRequest.md +24 -0
- package/docs/models/AddPatientIntakeResponse.md +17 -0
- package/docs/models/AdvanceDirective.md +31 -0
- package/docs/models/AdvanceDirectiveType.md +15 -0
- package/docs/models/CarequalityRetrieveDocumentsRequest.md +1 -1
- package/docs/models/DirectiveScope.md +15 -0
- package/docs/models/DirectiveStatus.md +15 -0
- package/docs/models/GetHealthRecordResponse.md +2 -2
- package/docs/models/Immunization.md +40 -0
- package/docs/models/ImmunizationRoute.md +15 -0
- package/docs/models/ImmunizationStatus.md +15 -0
- package/docs/models/ListDirectivesResponse.md +1 -1
- package/docs/models/ListImmunizationsResponse.md +1 -1
- package/docs/models/ListProceduresResponse.md +1 -1
- package/docs/models/OpenAIEmbedRequest.md +1 -1
- package/docs/models/Procedure.md +37 -0
- package/docs/models/ProcedureLaterality.md +15 -0
- package/docs/models/ProcedureStatus.md +15 -0
- package/docs/models/SendGridSendEmailRequest.md +1 -1
- package/docs/models/VaccinationSite.md +15 -0
- package/docs/models/ehr.ImmunizationReaction.md +20 -0
- package/docs/models/ehr.ListMedicationsResponse.md +1 -1
- package/docs/models/index.md +14 -0
- package/docs/operations/connectors.carequalityRetrieveDocuments.md +11 -7
- package/docs/operations/connectors.openaiEmbed.md +3 -7
- package/docs/operations/connectors.sendgridSend.md +3 -7
- package/docs/operations/diagnostics.lookupTestByGs1.md +11 -3
- package/docs/operations/ehr.listMedications.md +2 -2
- package/docs/operations/patient.addPatientIntake.md +117 -0
- package/docs/operations/patient.listMedications.md +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2082,8 +2082,43 @@ function PatientIntakeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2082
2082
|
};
|
|
2083
2083
|
}
|
|
2084
2084
|
|
|
2085
|
+
// src/models/openapi-generated/patient/models/AddPatientIntakeRequest.ts
|
|
2086
|
+
function AddPatientIntakeRequestToJSON(json) {
|
|
2087
|
+
return AddPatientIntakeRequestToJSONTyped(json, false);
|
|
2088
|
+
}
|
|
2089
|
+
function AddPatientIntakeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2090
|
+
if (value == null) {
|
|
2091
|
+
return value;
|
|
2092
|
+
}
|
|
2093
|
+
return {
|
|
2094
|
+
"patient_id": value["patient_id"],
|
|
2095
|
+
"section": value["section"],
|
|
2096
|
+
"summary": value["summary"]
|
|
2097
|
+
};
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
// src/models/openapi-generated/patient/models/AddPatientIntakeResponse.ts
|
|
2101
|
+
function AddPatientIntakeResponseFromJSON(json) {
|
|
2102
|
+
return AddPatientIntakeResponseFromJSONTyped(json, false);
|
|
2103
|
+
}
|
|
2104
|
+
function AddPatientIntakeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2105
|
+
if (json == null) {
|
|
2106
|
+
return json;
|
|
2107
|
+
}
|
|
2108
|
+
return {
|
|
2109
|
+
"error_messages": json["error_messages"] == null ? void 0 : json["error_messages"]
|
|
2110
|
+
};
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2085
2113
|
// src/clients/PatientClient.ts
|
|
2086
2114
|
var PatientClient = class extends BaseServiceClient {
|
|
2115
|
+
/** Add one agent-collected intake section and return actionable validation errors. */
|
|
2116
|
+
async addToIntake(patientId, section, summary) {
|
|
2117
|
+
const response = await this.send("POST", "/healthrecords/intake/add", {
|
|
2118
|
+
body: AddPatientIntakeRequestToJSON({ patient_id: patientId, section, summary })
|
|
2119
|
+
});
|
|
2120
|
+
return AddPatientIntakeResponseFromJSON(response);
|
|
2121
|
+
}
|
|
2087
2122
|
/** Add patient-reported history; each call creates a new server-identified submission. */
|
|
2088
2123
|
async submitPatientIntake(request) {
|
|
2089
2124
|
const response = await this.send("POST", "/patients/health-record/intake", {
|