grapp-common-se 0.6.76 → 0.6.79

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.
@@ -4,7 +4,7 @@ import { Patient, User } from '../users';
4
4
  import { CIE10 } from '../clinics/CIE10';
5
5
  import { InnerFile } from '../fileSystem';
6
6
  import { Users } from '..';
7
- import { Contract, RequestReduced } from './request';
7
+ import { Contract, RequestReduced, Speciality } from './request';
8
8
  export interface Order extends Resource {
9
9
  _id?: string;
10
10
  file?: string[] | (File | InnerFile)[];
@@ -46,9 +46,9 @@ export interface Order extends Resource {
46
46
  transferDate?: Number;
47
47
  orderContract?: Contract;
48
48
  justifyTransfer?: string;
49
- paymentByCustomer?: boolean;
50
- offered?: Boolean;
51
- originNit?: any;
49
+ prescribingDoctor?: PrescribingDoctor;
50
+ speciality?: Speciality;
51
+ servicesRequested?: string;
52
52
  }
53
53
  export interface SendTo {
54
54
  transferStatus?: TransferStatus;
@@ -61,6 +61,11 @@ interface DataReceiver {
61
61
  url?: string;
62
62
  name?: string;
63
63
  }
64
+ interface PrescribingDoctor {
65
+ id?: string;
66
+ name?: string;
67
+ speciality?: Speciality;
68
+ }
64
69
  interface DataCreatedBy {
65
70
  id?: string;
66
71
  name?: string;
@@ -69,14 +74,6 @@ interface DataCreatedBy {
69
74
  idType?: string;
70
75
  userType?: Users.UserType;
71
76
  }
72
- export interface OrderOffered extends Order {
73
- offered: boolean;
74
- offeredDate: number;
75
- nameOrg?: string;
76
- patient?: Patient;
77
- request?: RequestReduced;
78
- organizationalGroup?: [];
79
- }
80
77
  export interface OrderComplete extends Order {
81
78
  patient?: Patient;
82
79
  request?: RequestReduced;
@@ -116,8 +113,7 @@ export declare enum TransferStatus {
116
113
  TRANSFERRED = 0,
117
114
  CANCELED = 1,
118
115
  OFFERED = 2,
119
- RETURN = 3,
120
- RETURNED_OFFERED = 4
116
+ RETURN = 3
121
117
  }
122
118
  export declare enum OrderStatus {
123
119
  APROOVED = 0,
@@ -155,7 +151,6 @@ export interface OrderComment {
155
151
  auditComment?: boolean;
156
152
  agenda?: AgendaEvent[];
157
153
  notifyPatient?: boolean;
158
- commentOrderTrans?: string;
159
154
  }
160
155
  export interface orderTraceabilityStatus {
161
156
  direction?: boolean;
@@ -18,7 +18,6 @@ var TransferStatus;
18
18
  TransferStatus[TransferStatus["CANCELED"] = 1] = "CANCELED";
19
19
  TransferStatus[TransferStatus["OFFERED"] = 2] = "OFFERED";
20
20
  TransferStatus[TransferStatus["RETURN"] = 3] = "RETURN";
21
- TransferStatus[TransferStatus["RETURNED_OFFERED"] = 4] = "RETURNED_OFFERED";
22
21
  })(TransferStatus = exports.TransferStatus || (exports.TransferStatus = {}));
23
22
  var OrderStatus;
24
23
  (function (OrderStatus) {
@@ -9,17 +9,14 @@ export interface Request extends Resource {
9
9
  _id?: string;
10
10
  origin?: string;
11
11
  requestType?: RequestType;
12
- servicesRequested?: string[];
13
12
  completeSupports?: boolean;
14
13
  patient?: Patient;
15
14
  resolvedAt?: Timestamp;
16
15
  authorizationId?: string;
17
16
  order: Order;
18
- speciality?: Speciality;
19
17
  specialty?: Speciality;
20
18
  status: RequestStatus;
21
19
  specialty2?: Speciality;
22
- prescribingDoctor?: PrescribingDoctor;
23
20
  observations?: string;
24
21
  suborders?: Order[];
25
22
  verifierDoctor?: PrescribingDoctor;
@@ -307,14 +304,6 @@ export interface Eps {
307
304
  createdAt?: number;
308
305
  lastModified?: number;
309
306
  activeContract?: boolean;
310
- comments?: EpsComments[];
311
- }
312
- export interface EpsComments {
313
- name?: string;
314
- date?: number;
315
- oldValue?: string;
316
- newValue?: string;
317
- justify?: string;
318
307
  }
319
308
  export interface Contract {
320
309
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grapp-common-se",
3
- "version": "0.6.76",
3
+ "version": "0.6.79",
4
4
  "description": "Interfaces for GRAPP project",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {