@pulsecharterconnect/types 0.0.48 → 0.1.0
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.
|
@@ -84,8 +84,9 @@ export declare enum SafetyRequirements {
|
|
|
84
84
|
}
|
|
85
85
|
export type SafetyCertifications = {
|
|
86
86
|
certification: SafetyRequirements;
|
|
87
|
-
expirationDate
|
|
88
|
-
|
|
87
|
+
expirationDate?: number;
|
|
88
|
+
effectiveDate?: number;
|
|
89
|
+
certificationDocumentUrl?: string;
|
|
89
90
|
};
|
|
90
91
|
export type Facility = {
|
|
91
92
|
id: string;
|
|
@@ -97,19 +97,21 @@ class Organization {
|
|
|
97
97
|
this.name = organization.name;
|
|
98
98
|
this.type = organization.type;
|
|
99
99
|
switch (organization.type) {
|
|
100
|
-
case
|
|
101
|
-
this.systemAdminOrganizationDetails =
|
|
100
|
+
case "System Admin":
|
|
101
|
+
this.systemAdminOrganizationDetails =
|
|
102
|
+
organization.systemAdminOrganizationDetails;
|
|
102
103
|
break;
|
|
103
|
-
case
|
|
104
|
-
this.transplantCenterOrganizationDetails =
|
|
104
|
+
case "Transplant Center":
|
|
105
|
+
this.transplantCenterOrganizationDetails =
|
|
106
|
+
organization.transplantCenterOrganizationDetails;
|
|
105
107
|
break;
|
|
106
|
-
case
|
|
107
|
-
this.transportationOperatorOrganizationDetails =
|
|
108
|
+
case "Transportation Operator":
|
|
109
|
+
this.transportationOperatorOrganizationDetails =
|
|
110
|
+
organization.transportationOperatorOrganizationDetails;
|
|
108
111
|
break;
|
|
109
112
|
default:
|
|
110
|
-
throw new Error(
|
|
113
|
+
throw new Error("Organization type not recognized");
|
|
111
114
|
}
|
|
112
|
-
;
|
|
113
115
|
this.createdAt = organization.createdAt;
|
|
114
116
|
this.updatedAt = organization.updatedAt;
|
|
115
117
|
}
|
|
@@ -5,7 +5,8 @@ export declare enum TransportationRequestStatus {
|
|
|
5
5
|
AWAITING_AIR_TRANSPORTATION_SERVICES_APPROVAL = "awaiting-air-transportation-services-approval",
|
|
6
6
|
AWAITING_GROUND_TRANSPORTATION_SERVICES_APPROVAL = "awaiting-ground-transportation-services-approval",
|
|
7
7
|
APPROVED = "approved",
|
|
8
|
-
CANCELLED = "cancelled"
|
|
8
|
+
CANCELLED = "cancelled",
|
|
9
|
+
COMPLETED = "completed"
|
|
9
10
|
}
|
|
10
11
|
export declare enum TransportationRequestProposalStatus {
|
|
11
12
|
CREATED = "created",
|
|
@@ -63,7 +64,7 @@ export declare enum LungEquipmentType {
|
|
|
63
64
|
PARAGONIX_BAROGUARD = "Paragonix BAROguard",
|
|
64
65
|
XVIVO = "XVIVO"
|
|
65
66
|
}
|
|
66
|
-
export type NoType =
|
|
67
|
+
export type NoType = "";
|
|
67
68
|
export type OrganTransport = {
|
|
68
69
|
organType: OrganType;
|
|
69
70
|
equipmentType?: HeartEquipmentType | LungEquipmentType | NoType;
|
|
@@ -9,6 +9,7 @@ var TransportationRequestStatus;
|
|
|
9
9
|
TransportationRequestStatus["AWAITING_GROUND_TRANSPORTATION_SERVICES_APPROVAL"] = "awaiting-ground-transportation-services-approval";
|
|
10
10
|
TransportationRequestStatus["APPROVED"] = "approved";
|
|
11
11
|
TransportationRequestStatus["CANCELLED"] = "cancelled";
|
|
12
|
+
TransportationRequestStatus["COMPLETED"] = "completed";
|
|
12
13
|
})(TransportationRequestStatus = exports.TransportationRequestStatus || (exports.TransportationRequestStatus = {}));
|
|
13
14
|
var TransportationRequestProposalStatus;
|
|
14
15
|
(function (TransportationRequestProposalStatus) {
|
|
@@ -89,8 +90,10 @@ class TransportationRequest {
|
|
|
89
90
|
this.id = transportationRequest.id;
|
|
90
91
|
this.unosId = transportationRequest.unosId;
|
|
91
92
|
this.organizationId = transportationRequest.organizationId;
|
|
92
|
-
this.transportationRequestType =
|
|
93
|
-
|
|
93
|
+
this.transportationRequestType =
|
|
94
|
+
transportationRequest.transportationRequestType;
|
|
95
|
+
this.transportationRequestSegments =
|
|
96
|
+
transportationRequest.transportationRequestSegments;
|
|
94
97
|
this.recipientFacility = transportationRequest.recipientFacility;
|
|
95
98
|
this.recoveryLocation = transportationRequest.recoveryLocation;
|
|
96
99
|
this.orDateTimeGMT = transportationRequest.orDateTimeGMT;
|
|
@@ -99,7 +102,8 @@ class TransportationRequest {
|
|
|
99
102
|
this.organTransportList = transportationRequest.organTransportList;
|
|
100
103
|
this.numberOfTravelers = transportationRequest.numberOfTravelers;
|
|
101
104
|
this.specialInstructions = transportationRequest.specialInstructions;
|
|
102
|
-
this.surgicalServicesRequested =
|
|
105
|
+
this.surgicalServicesRequested =
|
|
106
|
+
transportationRequest.surgicalServicesRequested;
|
|
103
107
|
this.transportationOptions = transportationRequest.transportationOptions;
|
|
104
108
|
this.status = transportationRequest.status;
|
|
105
109
|
this.createdAt = transportationRequest.createdAt;
|