@pulsecharterconnect/types 0.2.48 → 0.2.49
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/types/Trip.d.ts +24 -0
- package/dist/types/Trip.js +19 -1
- package/package.json +1 -1
package/dist/types/Trip.d.ts
CHANGED
|
@@ -33,6 +33,22 @@ export declare enum SegmentType {
|
|
|
33
33
|
GROUND_TRANSPORTATION = "ground-transportation",
|
|
34
34
|
ORGAN_RECOVERY = "organ-recovery"
|
|
35
35
|
}
|
|
36
|
+
export declare enum TripSmartCommsActionIds {
|
|
37
|
+
ARRIVED_AT_HOSPITAL = "arrived-hospital",
|
|
38
|
+
DEPARTING_HOSPITAL = "departing-hospital",
|
|
39
|
+
DONOR_IN_ROOM = "donor-in-room",
|
|
40
|
+
INCISION_MADE = "incision-made",
|
|
41
|
+
CROSS_CLAMP = "cross-clamp",
|
|
42
|
+
ORGAN_OUT = "organ-out",
|
|
43
|
+
ORGAN_ACCEPTED = "organ-accepted",
|
|
44
|
+
ORGAN_DECLINED = "organ-declined",
|
|
45
|
+
HEPARIN_ADMINISTERED = "heparin-administered",
|
|
46
|
+
EXTUBAION = "extubation",
|
|
47
|
+
NO_PROGRESSION = "no-progression",
|
|
48
|
+
AGONAL_BEGINS = "agonal-begins",
|
|
49
|
+
ASYSOLE_PEA = "asystole-pea",
|
|
50
|
+
CTOD = "ctod"
|
|
51
|
+
}
|
|
36
52
|
export declare enum TripActions {
|
|
37
53
|
START_TRIP = "startTrip",
|
|
38
54
|
START_SEGMENT = "startSegment",
|
|
@@ -183,6 +199,12 @@ export interface ITripOrganRecoverySegment extends ITripSegment {
|
|
|
183
199
|
actualOrganRecoveryTimeTimezone?: string;
|
|
184
200
|
surgicalTeam: ITripParticipant[];
|
|
185
201
|
}
|
|
202
|
+
export interface ITripActionItem {
|
|
203
|
+
actionId: TripSmartCommsActionIds;
|
|
204
|
+
participantId: string;
|
|
205
|
+
completedDate: number;
|
|
206
|
+
completedDateTimezone: string;
|
|
207
|
+
}
|
|
186
208
|
export interface ITrip {
|
|
187
209
|
id: string;
|
|
188
210
|
status: TripStatus;
|
|
@@ -207,6 +229,7 @@ export interface ITrip {
|
|
|
207
229
|
actualCompletionTime?: number;
|
|
208
230
|
actualCompletionTimeTimezone?: string;
|
|
209
231
|
tripCommunicationsChannels?: ICommunicationsChannel[];
|
|
232
|
+
tripActionHistory?: ITripActionItem[];
|
|
210
233
|
createdAt?: number;
|
|
211
234
|
updatedAt?: number;
|
|
212
235
|
}
|
|
@@ -234,6 +257,7 @@ export declare class Trip implements ITrip {
|
|
|
234
257
|
actualCompletionTime?: number;
|
|
235
258
|
actualCompletionTimeTimezone?: string;
|
|
236
259
|
tripCommunicationsChannels?: ICommunicationsChannel[];
|
|
260
|
+
tripActionHistory?: ITripActionItem[] | undefined;
|
|
237
261
|
createdAt?: number;
|
|
238
262
|
updatedAt?: number;
|
|
239
263
|
constructor(trip: ITrip);
|
package/dist/types/Trip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sortTripSegments = exports.Trip = exports.Participant = exports.Gender = exports.TripParticipantRole = exports.TripActions = exports.SegmentType = exports.OrganRecoveryInProcessStatus = exports.SegmentStatus = exports.getOrganRecoveryInProcessStatusLabel = exports.getSegmentStatusLabel = exports.getTripStatusLabel = exports.TripStatus = void 0;
|
|
3
|
+
exports.sortTripSegments = exports.Trip = exports.Participant = exports.Gender = exports.TripParticipantRole = exports.TripActions = exports.TripSmartCommsActionIds = exports.SegmentType = exports.OrganRecoveryInProcessStatus = exports.SegmentStatus = exports.getOrganRecoveryInProcessStatusLabel = exports.getSegmentStatusLabel = exports.getTripStatusLabel = exports.TripStatus = void 0;
|
|
4
4
|
var TripStatus;
|
|
5
5
|
(function (TripStatus) {
|
|
6
6
|
TripStatus["PREPARATION"] = "preparation";
|
|
@@ -83,6 +83,23 @@ var SegmentType;
|
|
|
83
83
|
SegmentType["GROUND_TRANSPORTATION"] = "ground-transportation";
|
|
84
84
|
SegmentType["ORGAN_RECOVERY"] = "organ-recovery";
|
|
85
85
|
})(SegmentType = exports.SegmentType || (exports.SegmentType = {}));
|
|
86
|
+
var TripSmartCommsActionIds;
|
|
87
|
+
(function (TripSmartCommsActionIds) {
|
|
88
|
+
TripSmartCommsActionIds["ARRIVED_AT_HOSPITAL"] = "arrived-hospital";
|
|
89
|
+
TripSmartCommsActionIds["DEPARTING_HOSPITAL"] = "departing-hospital";
|
|
90
|
+
TripSmartCommsActionIds["DONOR_IN_ROOM"] = "donor-in-room";
|
|
91
|
+
TripSmartCommsActionIds["INCISION_MADE"] = "incision-made";
|
|
92
|
+
TripSmartCommsActionIds["CROSS_CLAMP"] = "cross-clamp";
|
|
93
|
+
TripSmartCommsActionIds["ORGAN_OUT"] = "organ-out";
|
|
94
|
+
TripSmartCommsActionIds["ORGAN_ACCEPTED"] = "organ-accepted";
|
|
95
|
+
TripSmartCommsActionIds["ORGAN_DECLINED"] = "organ-declined";
|
|
96
|
+
TripSmartCommsActionIds["HEPARIN_ADMINISTERED"] = "heparin-administered";
|
|
97
|
+
TripSmartCommsActionIds["EXTUBAION"] = "extubation";
|
|
98
|
+
TripSmartCommsActionIds["NO_PROGRESSION"] = "no-progression";
|
|
99
|
+
TripSmartCommsActionIds["AGONAL_BEGINS"] = "agonal-begins";
|
|
100
|
+
TripSmartCommsActionIds["ASYSOLE_PEA"] = "asystole-pea";
|
|
101
|
+
TripSmartCommsActionIds["CTOD"] = "ctod";
|
|
102
|
+
})(TripSmartCommsActionIds = exports.TripSmartCommsActionIds || (exports.TripSmartCommsActionIds = {}));
|
|
86
103
|
var TripActions;
|
|
87
104
|
(function (TripActions) {
|
|
88
105
|
TripActions["START_TRIP"] = "startTrip";
|
|
@@ -164,6 +181,7 @@ class Trip {
|
|
|
164
181
|
trip.actualCompletionTimeTimezone || undefined;
|
|
165
182
|
this.tripCommunicationsChannels =
|
|
166
183
|
trip.tripCommunicationsChannels || undefined;
|
|
184
|
+
this.tripActionHistory = trip.tripActionHistory || undefined;
|
|
167
185
|
this.createdAt = trip.createdAt;
|
|
168
186
|
this.updatedAt = trip.updatedAt;
|
|
169
187
|
}
|