oro-sdk-apis 3.3.1 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,9 @@ export declare class TellerService {
4
4
  private api;
5
5
  private baseURL;
6
6
  constructor(api: APIService, baseURL: string);
7
- lockboxDataStore(lockboxUuid: Uuid, req: LockboxDataRequest, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid): Promise<DataCreateResponse>;
7
+ lockboxDataStore(lockboxUuid: Uuid, req: LockboxDataRequest, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, options?: {
8
+ updateMedicalStatus: boolean;
9
+ }): Promise<DataCreateResponse>;
8
10
  updateConsultByUUID(patientUuid: Uuid, uuidConsult: Uuid, statusMedical: MedicalStatus, closedReasonType?: ClosedReasonType, closedReasonDescription?: string, neverExpires?: boolean): Promise<Consult>;
9
11
  /**
10
12
  * This function notifies teller that the fax sent for a specific consult did not get through
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.3.1",
2
+ "version": "3.4.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -9,18 +9,22 @@ import {
9
9
  Uuid,
10
10
  } from '../models'
11
11
  export class TellerService {
12
- constructor(private api: APIService, private baseURL: string) {}
12
+ constructor(private api: APIService, private baseURL: string) { }
13
13
 
14
14
  public async lockboxDataStore(
15
15
  lockboxUuid: Uuid,
16
16
  req: LockboxDataRequest,
17
17
  lockboxOwnerUuid?: Uuid,
18
- previousDataUuid?: Uuid
18
+ previousDataUuid?: Uuid,
19
+ options: {
20
+ updateMedicalStatus: boolean
21
+ } = { updateMedicalStatus: true },
19
22
  ): Promise<DataCreateResponse> {
20
23
  return this.api.post<DataCreateResponse>(`${this.baseURL}/v1/lockboxes/${lockboxUuid}/data`, req, {
21
24
  params: {
22
25
  lockbox_owner_uuid: lockboxOwnerUuid,
23
26
  data_uuid: previousDataUuid,
27
+ update_medical_status: options.updateMedicalStatus,
24
28
  },
25
29
  })
26
30
  }