oro-sdk-apis 3.2.6 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  import { APIService } from './api';
2
- import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission, ClosedReasonType, TransmissionStatus } from '../models';
2
+ import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission, ClosedReasonType, TransmissionStatus, ConsultType } from '../models';
3
3
  export declare class ConsultService {
4
4
  private api;
5
5
  private baseURL;
@@ -22,7 +22,7 @@ export declare class ConsultService {
22
22
  * @param filterAssignee array of practitioner uuids with which you want to filter the consultations
23
23
  * @returns a number of consult
24
24
  */
25
- countConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[]): Promise<number>;
25
+ countConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[], typesConsult?: ConsultType[], uuidParent?: Uuid): Promise<number>;
26
26
  /**
27
27
  * This function get consults using parameters
28
28
  * @param uuidPractice the practice uuid
@@ -39,7 +39,7 @@ export declare class ConsultService {
39
39
  * @param filterIsoLocality the of isoLocality to filter with
40
40
  * @returns a list of consult
41
41
  */
42
- getConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[]): Promise<Consult[]>;
42
+ getConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[], uuidParent?: Uuid, typesConsult?: ConsultType[]): Promise<Consult[]>;
43
43
  getConsultByUUID(uuidConsult: Uuid, uuidPractice?: Uuid): Promise<Consult>;
44
44
  updateConsultByUUID(uuidConsult: Uuid, consult: {
45
45
  statusMedical?: MedicalStatus;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.2.6",
2
+ "version": "3.3.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -432,6 +432,10 @@ export type PracticeConfigPracticeDiagnosisAndTreatment = PracticeConfig<
432
432
  * If true, then sort alphabetically the diagnoses, treatments, and drugs shown in their respective select dropdown
433
433
  */
434
434
  sortNames?: boolean
435
+ /**
436
+ * If true, it enables the Prescription Refill feature
437
+ */
438
+ enableRefill?: boolean
435
439
  }
436
440
  >
437
441
 
@@ -8,10 +8,11 @@ import {
8
8
  ClosedReasonType,
9
9
  TransmissionKind,
10
10
  TransmissionStatus,
11
+ ConsultType,
11
12
  } from '../models'
12
13
 
13
14
  export class ConsultService {
14
- constructor(private api: APIService, private baseURL: string) {}
15
+ constructor(private api: APIService, private baseURL: string) { }
15
16
 
16
17
  public consultCreate(c: ConsultRequest): Promise<Consult> {
17
18
  return this.api.post<Consult>(`${this.baseURL}/v1/consults`, c)
@@ -47,7 +48,9 @@ export class ConsultService {
47
48
  filterAssignedDoctor?: string,
48
49
  filterCurrentPractitioner?: string,
49
50
  filterIsoLocality?: string[],
50
- filterAssignee?: string[]
51
+ filterAssignee?: string[],
52
+ typesConsult?: ConsultType[],
53
+ uuidParent?: Uuid
51
54
  ): Promise<number> {
52
55
  return this.api
53
56
  .head<any>(
@@ -67,6 +70,8 @@ export class ConsultService {
67
70
  filterCurrentPractitioner,
68
71
  filterIsoLocality,
69
72
  filterAssignee,
73
+ typesConsult,
74
+ uuidParent
70
75
  },
71
76
  },
72
77
  'Content-Range'
@@ -113,7 +118,9 @@ export class ConsultService {
113
118
  filterAssignedDoctor?: string,
114
119
  filterCurrentPractitioner?: string,
115
120
  filterIsoLocality?: string[],
116
- filterAssignee?: string[]
121
+ filterAssignee?: string[],
122
+ uuidParent?: Uuid,
123
+ typesConsult?: ConsultType[],
117
124
  ): Promise<Consult[]> {
118
125
  return this.api.get<Consult[]>(`${this.baseURL}/v1/consults`, {
119
126
  params: {
@@ -130,6 +137,8 @@ export class ConsultService {
130
137
  filterCurrentPractitioner,
131
138
  filterIsoLocality,
132
139
  filterAssignee,
140
+ typesConsult,
141
+ uuidParent,
133
142
  },
134
143
  })
135
144
  }