@pulsecharterconnect/types 0.2.10 → 0.2.12

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.
@@ -76,8 +76,20 @@ export declare enum LiverEquipmentType {
76
76
  export declare enum KidneyEquipmentType {
77
77
  PARAGONIX_KIDNEY_VAULT = "Paragonix KidneyVault"
78
78
  }
79
- export type NoType = "";
80
- export type EquipmentType = HeartEquipmentType | LungEquipmentType | LiverEquipmentType | KidneyEquipmentType | NoType;
79
+ export declare enum EquipmentType {
80
+ TRANSMEDICS_OCS_HEART = "TransMedics OCS Heart",
81
+ PARAGONIX_SHERPA_PAK = "Paragonix SherpaPak",
82
+ TRANSMEDICS_OCS_LUNG = "TransMedics OCS Lung",
83
+ PARAGONIX_LUNGGUARD = "Paragonix LUNGguard",
84
+ PARAGONIX_BAROGUARD = "Paragonix BAROguard",
85
+ XVIVO = "XVIVO",
86
+ TRANSMEDICS_OCS_LIVER = "TransMedics OCS Liver",
87
+ ORGANOX_METRA = "OrganOx metra",
88
+ ORS_LIFEPORT_LIVER = "ORS LifePort Liver",
89
+ PARAGONIX_LIVERGUARD = "Paragonix LIVERguard",
90
+ PARAGONIX_KIDNEY_VAULT = "Paragonix KidneyVault"
91
+ }
92
+ export declare function getEquipmentForOrgan(organType: OrganType): EquipmentType[];
81
93
  export type OrganTransport = {
82
94
  organType: OrganType;
83
95
  equipmentType?: EquipmentType;
@@ -157,7 +169,7 @@ export declare class TransportationRequest implements ITransportationRequest {
157
169
  status: TransportationRequestStatus;
158
170
  createdAt?: number;
159
171
  updatedAt?: number;
160
- constructor(transportationRequest: TransportationRequest);
172
+ constructor(transportationRequest: ITransportationRequest);
161
173
  airTransportationRecommended(): boolean;
162
174
  }
163
175
  /**
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getProcedureTime = exports.TransportationRequest = exports.RECOVERY_TIME_DURATION = exports.RECOVERY_TIME = exports.RecoveryType = exports.SegmentLocationType = exports.KidneyEquipmentType = exports.LiverEquipmentType = exports.LungEquipmentType = exports.HeartEquipmentType = exports.OrganType = exports.TransportRequestType = exports.OrganRecoveryStatus = exports.TransportationRequestProposalStatus = exports.TransportationRequestStatus = exports.AVERAGE_AIR_SPEED = exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = void 0;
3
+ exports.getProcedureTime = exports.TransportationRequest = exports.RECOVERY_TIME_DURATION = exports.RECOVERY_TIME = exports.RecoveryType = exports.SegmentLocationType = exports.getEquipmentForOrgan = exports.EquipmentType = exports.KidneyEquipmentType = exports.LiverEquipmentType = exports.LungEquipmentType = exports.HeartEquipmentType = exports.OrganType = exports.TransportRequestType = exports.OrganRecoveryStatus = exports.TransportationRequestProposalStatus = exports.TransportationRequestStatus = exports.AVERAGE_AIR_SPEED = exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = void 0;
4
4
  const luxon_1 = require("luxon");
5
5
  exports.DISTANCE_THRESHOLD_MILES_AIR_VS_GROUND = 100;
6
6
  exports.AVERAGE_AIR_SPEED = 450;
@@ -87,6 +87,52 @@ var KidneyEquipmentType;
87
87
  (function (KidneyEquipmentType) {
88
88
  KidneyEquipmentType["PARAGONIX_KIDNEY_VAULT"] = "Paragonix KidneyVault";
89
89
  })(KidneyEquipmentType = exports.KidneyEquipmentType || (exports.KidneyEquipmentType = {}));
90
+ var EquipmentType;
91
+ (function (EquipmentType) {
92
+ // Heart Equipment Types
93
+ EquipmentType["TRANSMEDICS_OCS_HEART"] = "TransMedics OCS Heart";
94
+ EquipmentType["PARAGONIX_SHERPA_PAK"] = "Paragonix SherpaPak";
95
+ // Lung Equipment Types
96
+ EquipmentType["TRANSMEDICS_OCS_LUNG"] = "TransMedics OCS Lung";
97
+ EquipmentType["PARAGONIX_LUNGGUARD"] = "Paragonix LUNGguard";
98
+ EquipmentType["PARAGONIX_BAROGUARD"] = "Paragonix BAROguard";
99
+ EquipmentType["XVIVO"] = "XVIVO";
100
+ // Liver Equipment Types
101
+ EquipmentType["TRANSMEDICS_OCS_LIVER"] = "TransMedics OCS Liver";
102
+ EquipmentType["ORGANOX_METRA"] = "OrganOx metra";
103
+ EquipmentType["ORS_LIFEPORT_LIVER"] = "ORS LifePort Liver";
104
+ EquipmentType["PARAGONIX_LIVERGUARD"] = "Paragonix LIVERguard";
105
+ // Kidney Equipment Types
106
+ EquipmentType["PARAGONIX_KIDNEY_VAULT"] = "Paragonix KidneyVault";
107
+ })(EquipmentType = exports.EquipmentType || (exports.EquipmentType = {}));
108
+ function getEquipmentForOrgan(organType) {
109
+ switch (organType) {
110
+ case OrganType.HEART:
111
+ return [
112
+ EquipmentType.TRANSMEDICS_OCS_HEART,
113
+ EquipmentType.PARAGONIX_SHERPA_PAK,
114
+ ];
115
+ case OrganType.LUNG:
116
+ return [
117
+ EquipmentType.TRANSMEDICS_OCS_LUNG,
118
+ EquipmentType.PARAGONIX_LUNGGUARD,
119
+ EquipmentType.PARAGONIX_BAROGUARD,
120
+ EquipmentType.XVIVO,
121
+ ];
122
+ case OrganType.LIVER:
123
+ return [
124
+ EquipmentType.TRANSMEDICS_OCS_LIVER,
125
+ EquipmentType.ORGANOX_METRA,
126
+ EquipmentType.ORS_LIFEPORT_LIVER,
127
+ EquipmentType.PARAGONIX_LIVERGUARD,
128
+ ];
129
+ case OrganType.KIDNEY:
130
+ return [EquipmentType.PARAGONIX_KIDNEY_VAULT];
131
+ default:
132
+ return [];
133
+ }
134
+ }
135
+ exports.getEquipmentForOrgan = getEquipmentForOrgan;
90
136
  var SegmentLocationType;
91
137
  (function (SegmentLocationType) {
92
138
  SegmentLocationType["RECIPIENT_TRANSPLANT_CENTER"] = "Recipient Transplant Center";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",