@healthcloudai/hc-sdk 3.11.0 → 3.12.1

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 CHANGED
@@ -614,7 +614,14 @@ var DiagnosticsClient = class extends BaseServiceClient {
614
614
  * POST /patients/{patient_id}/diagnostics/rapid-tests
615
615
  */
616
616
  createRapidTest(patientId, request) {
617
- const body = "type" in request && "result" in request ? CreateRapidTestRequestToJSON(request) : request;
617
+ const body = { ...request };
618
+ for (const field of ["performed_date", "performed_datetime"]) {
619
+ const value = body[field];
620
+ if (value instanceof Date) {
621
+ const encoded = CreateRapidTestRequestToJSON({ [field]: value });
622
+ body[field] = encoded[field];
623
+ }
624
+ }
618
625
  return this.send("POST", "/patients/{patient_id}/diagnostics/rapid-tests", {
619
626
  pathParams: { patient_id: patientId },
620
627
  body
@@ -2171,6 +2178,20 @@ function AddPatientIntakeResponseFromJSONTyped(json, ignoreDiscriminator) {
2171
2178
  };
2172
2179
  }
2173
2180
 
2181
+ // src/models/openapi-generated/patient/models/GetDefaultProviderResponse.ts
2182
+ function GetDefaultProviderResponseFromJSON(json) {
2183
+ return GetDefaultProviderResponseFromJSONTyped(json, false);
2184
+ }
2185
+ function GetDefaultProviderResponseFromJSONTyped(json, ignoreDiscriminator) {
2186
+ if (json == null) {
2187
+ return json;
2188
+ }
2189
+ return {
2190
+ "name": json["name"],
2191
+ "npi": json["npi"]
2192
+ };
2193
+ }
2194
+
2174
2195
  // src/clients/PatientClient.ts
2175
2196
  var PatientClient = class extends BaseServiceClient {
2176
2197
  /** Add one agent-collected intake section and return actionable validation errors. */
@@ -2263,6 +2284,11 @@ var PatientClient = class extends BaseServiceClient {
2263
2284
  getDashboard() {
2264
2285
  return this.send("GET", "/patients/dashboard", {});
2265
2286
  }
2287
+ /** GET /patients/defaultprovider — return the authenticated patient's tenant default provider. */
2288
+ async getDefaultProvider() {
2289
+ const response = await this.send("GET", "/patients/defaultprovider", {});
2290
+ return GetDefaultProviderResponseFromJSON(response);
2291
+ }
2266
2292
  getAgentConfiguration() {
2267
2293
  return this.send("GET", "/agentconfiguration", {});
2268
2294
  }