@moxi.gmbh/moxi-typescriptmodels 0.19.31 → 0.21.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.
@@ -522,6 +522,24 @@ export namespace com.moxi.api.authentication.onetimepassword {
522
522
 
523
523
  }
524
524
 
525
+ export namespace com.moxi.api.billing {
526
+
527
+ export interface BillingCodeGenerator {
528
+ }
529
+
530
+ }
531
+
532
+ export namespace com.moxi.api.billing.common {
533
+
534
+ /**
535
+ * 6-digit position number for medical transport billing
536
+ */
537
+ export interface BillingCode {
538
+ code?: string;
539
+ }
540
+
541
+ }
542
+
525
543
  export namespace com.moxi.api.common {
526
544
 
527
545
  export interface DateRange {
@@ -800,9 +818,36 @@ export namespace com.moxi.api.geojson.common.GeoJson {
800
818
 
801
819
  export namespace com.moxi.api.grpc {
802
820
 
803
- export interface RegisterEinsatz {
804
- einsatzNumber?: string;
805
- rideId?: string;
821
+ export interface CeliosStreamPulse {
822
+ target?: string;
823
+ type?: com.moxi.api.grpc.common.GrpcStreamType;
824
+ }
825
+
826
+ }
827
+
828
+ export namespace com.moxi.api.grpc {
829
+
830
+ export interface StartCeliosStream {
831
+ target?: string;
832
+ type?: com.moxi.api.grpc.common.GrpcStreamType;
833
+ }
834
+
835
+ }
836
+
837
+ export namespace com.moxi.api.grpc {
838
+
839
+ export interface StopCeliosStream {
840
+ target?: string;
841
+ type?: com.moxi.api.grpc.common.GrpcStreamType;
842
+ }
843
+
844
+ }
845
+
846
+ export namespace com.moxi.api.grpc.common {
847
+
848
+ export interface GrpcStreamId {
849
+ target?: string;
850
+ type?: com.moxi.api.grpc.common.GrpcStreamType;
806
851
  }
807
852
 
808
853
  }
@@ -1163,7 +1208,7 @@ export namespace com.moxi.api.permissions.drive.common {
1163
1208
  export namespace com.moxi.api.permissions.drive.common {
1164
1209
 
1165
1210
  export interface DrivePermissionFilter {
1166
- type: "ambulance" | "taxi";
1211
+ type: "ambulance" | "emergencyAmbulance" | "intensiveCareAmbulance" | "intensiveCareHelicopter" | "taxi";
1167
1212
  }
1168
1213
 
1169
1214
  }
@@ -1187,6 +1232,30 @@ export namespace com.moxi.api.permissions.drive.common.DrivePermissionInfo {
1187
1232
 
1188
1233
  }
1189
1234
 
1235
+ export namespace com.moxi.api.permissions.drive.common {
1236
+
1237
+ export interface EmergencyAmbulanceFilter extends com.moxi.api.permissions.drive.common.DrivePermissionFilter {
1238
+ type: "emergencyAmbulance";
1239
+ }
1240
+
1241
+ }
1242
+
1243
+ export namespace com.moxi.api.permissions.drive.common {
1244
+
1245
+ export interface IntensiveCareAmbulanceFilter extends com.moxi.api.permissions.drive.common.DrivePermissionFilter {
1246
+ type: "intensiveCareAmbulance";
1247
+ }
1248
+
1249
+ }
1250
+
1251
+ export namespace com.moxi.api.permissions.drive.common {
1252
+
1253
+ export interface IntensiveCareHelicopterFilter extends com.moxi.api.permissions.drive.common.DrivePermissionFilter {
1254
+ type: "intensiveCareHelicopter";
1255
+ }
1256
+
1257
+ }
1258
+
1190
1259
  export namespace com.moxi.api.permissions.drive.common {
1191
1260
 
1192
1261
  export interface Region {
@@ -1478,14 +1547,14 @@ export namespace com.moxi.api.ride {
1478
1547
  export namespace com.moxi.api.ride {
1479
1548
 
1480
1549
  export interface BookRide extends com.moxi.api.ride.CreateRideCommand {
1481
- info?: com.moxi.api.ride.common.RideInfo;
1550
+ info?: com.moxi.api.ride.common.RideInfoUnion;
1482
1551
  }
1483
1552
 
1484
1553
  }
1485
1554
 
1486
1555
  export namespace com.moxi.api.ride {
1487
1556
 
1488
- export interface CancelRide extends com.moxi.api.ride.RideBookerCommand {
1557
+ export interface CancelRide extends com.moxi.api.ride.RideCommand {
1489
1558
  reason?: string;
1490
1559
  }
1491
1560
 
@@ -1691,7 +1760,7 @@ export namespace com.moxi.api.ride {
1691
1760
  * Save a new ride or update a previously saved ride. Not allowed to saveRide after the ride has been booked.
1692
1761
  */
1693
1762
  export interface SaveRide extends com.moxi.api.ride.CreateRideCommand {
1694
- info?: com.moxi.api.ride.common.RideInfo;
1763
+ info?: com.moxi.api.ride.common.RideInfoUnion;
1695
1764
  }
1696
1765
 
1697
1766
  }
@@ -1700,7 +1769,7 @@ export namespace com.moxi.api.ride {
1700
1769
 
1701
1770
  export interface UpdateRide extends com.moxi.api.ride.RideBookerCommand {
1702
1771
  booker?: com.moxi.api.permissions.common.AccountOrTeamRef;
1703
- info?: com.moxi.api.ride.common.RideInfo;
1772
+ info?: com.moxi.api.ride.common.RideInfoUnion;
1704
1773
  }
1705
1774
 
1706
1775
  }
@@ -1800,6 +1869,17 @@ export namespace com.moxi.api.ride.common {
1800
1869
 
1801
1870
  }
1802
1871
 
1872
+ export namespace com.moxi.api.ride.common {
1873
+
1874
+ /**
1875
+ * Ride information specific for regular taxi or ambulance rides.
1876
+ */
1877
+ export interface RegularRideInfo extends com.moxi.api.ride.common.RideInfo {
1878
+ vehicleType: "taxi";
1879
+ }
1880
+
1881
+ }
1882
+
1803
1883
  export namespace com.moxi.api.ride.common {
1804
1884
 
1805
1885
  export interface Review {
@@ -1855,7 +1935,7 @@ export namespace com.moxi.api.ride.common {
1855
1935
  * The driver determines the expectedEndTime when indicating delays. It means the expected time of arrival at the 'from' or 'pick-up' location.
1856
1936
  */
1857
1937
  expectedStartTime?: string;
1858
- info?: com.moxi.api.ride.common.RideInfo;
1938
+ info?: com.moxi.api.ride.common.RideInfoUnion;
1859
1939
  /**
1860
1940
  * 'planned' is true if the driver has reported a planned time for the ride.
1861
1941
  */
@@ -1953,16 +2033,15 @@ export namespace com.moxi.api.ride.common {
1953
2033
 
1954
2034
  export namespace com.moxi.api.ride.common {
1955
2035
 
1956
- export interface RideInfo extends com.moxi.api.rideseries.common.GenericRideInfo<com.moxi.api.ride.common.RideInfo> {
2036
+ export interface RideInfo extends com.moxi.api.rideseries.common.GenericRideInfo<com.moxi.api.ride.common.RideInfoUnion> {
1957
2037
  appointment?: com.moxi.api.ride.common.Appointment;
2038
+ /**
2039
+ * Returns custom billing code if provided, otherwise auto-generates from ride details
2040
+ */
2041
+ billingCode?: com.moxi.api.billing.common.BillingCode;
2042
+ customBillingCode?: com.moxi.api.billing.common.BillingCode;
1958
2043
  purpose?: com.moxi.api.ride.common.RidePurpose;
1959
- }
1960
-
1961
- }
1962
-
1963
- export namespace com.moxi.api.ride.common.RideInfo {
1964
-
1965
- export interface AnonymizedRideInfo extends com.moxi.api.ride.common.RideInfo {
2044
+ vehicleType: "taxi" | "intensiveCareAmbulance";
1966
2045
  }
1967
2046
 
1968
2047
  }
@@ -2002,6 +2081,252 @@ export namespace com.moxi.api.ride.common {
2002
2081
 
2003
2082
  }
2004
2083
 
2084
+ export namespace com.moxi.api.ride.intensivecare {
2085
+
2086
+ export interface Breathing {
2087
+ breathingDelivery?: com.moxi.api.ride.intensivecare.BreathingDeliveryUnion;
2088
+ spontaneous?: boolean;
2089
+ }
2090
+
2091
+ }
2092
+
2093
+ export namespace com.moxi.api.ride.intensivecare {
2094
+
2095
+ export interface BreathingDelivery {
2096
+ oxygenLiterPerMin?: number;
2097
+ type: "intubated" | "mask" | "tracheotomized";
2098
+ }
2099
+
2100
+ }
2101
+
2102
+ export namespace com.moxi.api.ride.intensivecare {
2103
+
2104
+ export interface Circulation {
2105
+ catecholamines?: string[];
2106
+ type?: com.moxi.api.ride.intensivecare.CirculationType;
2107
+ }
2108
+
2109
+ }
2110
+
2111
+ export namespace com.moxi.api.ride.intensivecare {
2112
+
2113
+ export interface Consciousness {
2114
+ gcs?: number;
2115
+ type?: com.moxi.api.ride.intensivecare.ConsciousnessType;
2116
+ }
2117
+
2118
+ }
2119
+
2120
+ export namespace com.moxi.api.ride.intensivecare {
2121
+
2122
+ export interface Equipment {
2123
+ cprDevice?: boolean;
2124
+ ecmo?: boolean;
2125
+ /**
2126
+ * Derived from infusionTherapy != blank
2127
+ */
2128
+ hasInfusionTherapy?: boolean;
2129
+ /**
2130
+ * Derived from perfusorDescription != blank
2131
+ */
2132
+ hasPerfusor?: boolean;
2133
+ /**
2134
+ * Derived from secondPerfusorDescription != blank
2135
+ */
2136
+ hasSecondPerfusor?: boolean;
2137
+ /**
2138
+ * Derived from thoraxDrainageLeft != null or thoraxDrainageRight != null
2139
+ */
2140
+ hasThoraxDrainage?: boolean;
2141
+ iabp?: boolean;
2142
+ infusionTherapy?: string;
2143
+ pacemaker?: boolean;
2144
+ perfusorDescription?: string;
2145
+ powerSupply?: boolean;
2146
+ secondPerfusorDescription?: string;
2147
+ thoraxDrainageLeft?: number;
2148
+ thoraxDrainageRight?: number;
2149
+ vacuumMattress?: boolean;
2150
+ }
2151
+
2152
+ }
2153
+
2154
+ export namespace com.moxi.api.ride.intensivecare {
2155
+
2156
+ export interface Infection {
2157
+ esbl?: boolean;
2158
+ furtherActions?: string;
2159
+ /**
2160
+ * Derived from furtherActions != blank
2161
+ */
2162
+ hasFurtherActions?: boolean;
2163
+ /**
2164
+ * Derived from infectionDescription != blank
2165
+ */
2166
+ hasInfection?: boolean;
2167
+ /**
2168
+ * Derived from otherGerms != blank
2169
+ */
2170
+ hasOtherGerms?: boolean;
2171
+ infectionDescription?: string;
2172
+ isolationNecessary?: boolean;
2173
+ mrgn?: boolean;
2174
+ mrsa?: boolean;
2175
+ otherGerms?: string;
2176
+ reverseIsolation?: boolean;
2177
+ vre_cre?: boolean;
2178
+ }
2179
+
2180
+ }
2181
+
2182
+ export namespace com.moxi.api.ride.intensivecare {
2183
+
2184
+ export interface IntensiveCareInfo {
2185
+ ageCategory?: com.moxi.api.ride.intensivecare.AgeCategory;
2186
+ babyPod?: boolean;
2187
+ babyWeighs3to8kg?: boolean;
2188
+ breathing?: com.moxi.api.ride.intensivecare.Breathing;
2189
+ circulation?: com.moxi.api.ride.intensivecare.Circulation;
2190
+ consciousness?: com.moxi.api.ride.intensivecare.Consciousness;
2191
+ diagnosis?: string;
2192
+ equipment?: com.moxi.api.ride.intensivecare.Equipment;
2193
+ infection?: com.moxi.api.ride.intensivecare.Infection;
2194
+ monitoring?: com.moxi.api.ride.intensivecare.Monitoring;
2195
+ otherRemarks?: string;
2196
+ overweightCategory?: com.moxi.api.ride.intensivecare.OverweightCategory;
2197
+ ventilation?: com.moxi.api.ride.intensivecare.Ventilation;
2198
+ }
2199
+
2200
+ }
2201
+
2202
+ export namespace com.moxi.api.ride.intensivecare {
2203
+
2204
+ /**
2205
+ * Ride information specific for intensive care rides.
2206
+ */
2207
+ export interface IntensiveCareRideInfo extends com.moxi.api.ride.common.RideInfo {
2208
+ costCenter?: string;
2209
+ /**
2210
+ * Derived from costCenter != blank
2211
+ */
2212
+ hasInternalBilling?: boolean;
2213
+ intensiveCareInfo?: com.moxi.api.ride.intensivecare.IntensiveCareInfo;
2214
+ requestingDoctorName?: string;
2215
+ requestingDoctorPhoneNr?: com.moxi.api.common.PhoneNumber;
2216
+ requestingStationName?: string;
2217
+ requestingStationPhoneNr?: com.moxi.api.common.PhoneNumber;
2218
+ respondingDoctorName?: string;
2219
+ respondingDoctorPhoneNr?: com.moxi.api.common.PhoneNumber;
2220
+ respondingStationName?: string;
2221
+ respondingStationPhoneNr?: com.moxi.api.common.PhoneNumber;
2222
+ urgency?: com.moxi.api.ride.intensivecare.Urgency;
2223
+ vehicleType: "intensiveCareAmbulance";
2224
+ }
2225
+
2226
+ }
2227
+
2228
+ export namespace com.moxi.api.ride.intensivecare {
2229
+
2230
+ /**
2231
+ * Intubated means a tube in the nose or mouth
2232
+ */
2233
+ export interface Intubated extends com.moxi.api.ride.intensivecare.BreathingDelivery {
2234
+ fixationInCm?: number;
2235
+ oralOrNasal?: com.moxi.api.ride.intensivecare.OralOrNasal;
2236
+ tubeDiameterInMm?: number;
2237
+ type: "intubated";
2238
+ }
2239
+
2240
+ }
2241
+
2242
+ export namespace com.moxi.api.ride.intensivecare {
2243
+
2244
+ export interface Mask extends com.moxi.api.ride.intensivecare.BreathingDelivery {
2245
+ highflowLiterPerMin?: number;
2246
+ niv?: com.moxi.api.ride.intensivecare.NIV;
2247
+ type: "mask";
2248
+ }
2249
+
2250
+ }
2251
+
2252
+ export namespace com.moxi.api.ride.intensivecare {
2253
+
2254
+ export interface Monitoring {
2255
+ ap?: boolean;
2256
+ arteryCatheterDescription?: string;
2257
+ capnometry?: boolean;
2258
+ cvlDescription?: string;
2259
+ cvp?: boolean;
2260
+ eeg?: boolean;
2261
+ /**
2262
+ * Derived from arteryCatheterDescription != blank
2263
+ */
2264
+ hasArteryCatheter?: boolean;
2265
+ /**
2266
+ * Derived from cvlDescription != blank
2267
+ */
2268
+ hasCvl?: boolean;
2269
+ /**
2270
+ * Derived from otherMonitoring != blank
2271
+ */
2272
+ hasOtherMonitoring?: boolean;
2273
+ /**
2274
+ * Derived from numberOfVenusLines != null
2275
+ */
2276
+ hasVenusLines?: boolean;
2277
+ icp?: boolean;
2278
+ numberOfVenusLines?: number;
2279
+ otherMonitoring?: string;
2280
+ pap?: boolean;
2281
+ standardMonitoring?: boolean;
2282
+ venusLinesDescription?: string;
2283
+ }
2284
+
2285
+ }
2286
+
2287
+ export namespace com.moxi.api.ride.intensivecare {
2288
+
2289
+ /**
2290
+ * NIV stands for Non Invasive Ventilation.
2291
+ */
2292
+ export interface NIV {
2293
+ fiO2?: number;
2294
+ peep?: number;
2295
+ }
2296
+
2297
+ }
2298
+
2299
+ export namespace com.moxi.api.ride.intensivecare {
2300
+
2301
+ /**
2302
+ * Tracheotomized means a tube through the skin.
2303
+ */
2304
+ export interface Tracheotomized extends com.moxi.api.ride.intensivecare.BreathingDelivery {
2305
+ fixationInCm?: number;
2306
+ tubeDiameterInMm?: number;
2307
+ type: "tracheotomized";
2308
+ }
2309
+
2310
+ }
2311
+
2312
+ export namespace com.moxi.api.ride.intensivecare {
2313
+
2314
+ export interface Ventilation {
2315
+ asb?: number;
2316
+ bf?: number;
2317
+ expiration?: number;
2318
+ fiO2?: number;
2319
+ inspiration?: number;
2320
+ mv?: number;
2321
+ other?: string;
2322
+ peep?: number;
2323
+ pmax?: number;
2324
+ td?: number;
2325
+ type?: com.moxi.api.ride.intensivecare.VentilationType;
2326
+ }
2327
+
2328
+ }
2329
+
2005
2330
  export namespace com.moxi.api.rideseries {
2006
2331
 
2007
2332
  export interface AcceptRideSeries extends com.moxi.api.rideseries.SeriesDriverCommand {
@@ -2916,6 +3241,12 @@ export namespace com.moxi.api.geojson.common.GeoJson {
2916
3241
 
2917
3242
  }
2918
3243
 
3244
+ export namespace com.moxi.api.grpc.common {
3245
+
3246
+ export type GrpcStreamType = "get_einsatz_events";
3247
+
3248
+ }
3249
+
2919
3250
  export namespace com.moxi.api.integrations.common {
2920
3251
 
2921
3252
  export type IntegrationType = "dispolive" | "celios";
@@ -2942,7 +3273,7 @@ export namespace com.moxi.api.permissions.common {
2942
3273
 
2943
3274
  export namespace com.moxi.api.permissions.drive.common {
2944
3275
 
2945
- export type DrivePermissionFilterUnion = com.moxi.api.permissions.drive.common.AmbulanceFilter | com.moxi.api.permissions.drive.common.TaxiFilter;
3276
+ export type DrivePermissionFilterUnion = com.moxi.api.permissions.drive.common.AmbulanceFilter | com.moxi.api.permissions.drive.common.TaxiFilter | com.moxi.api.permissions.drive.common.IntensiveCareAmbulanceFilter | com.moxi.api.permissions.drive.common.IntensiveCareHelicopterFilter | com.moxi.api.permissions.drive.common.EmergencyAmbulanceFilter;
2946
3277
 
2947
3278
  }
2948
3279
 
@@ -2954,7 +3285,7 @@ export namespace com.moxi.api.permissions.subscription.common {
2954
3285
 
2955
3286
  export namespace com.moxi.api.permissions.subscription.common {
2956
3287
 
2957
- export type Service = "pro_medical" | "pro_fleet" | "pro_operator" | "celios_integration" | "dispolive_integration" | "moxi_operations";
3288
+ export type Service = "pro_medical" | "pro_fleet" | "pro_operator" | "celios_integration" | "dispolive_integration" | "moxi_operations" | "intensive_care";
2958
3289
 
2959
3290
  }
2960
3291
 
@@ -2988,6 +3319,12 @@ export namespace com.moxi.api.ride.common {
2988
3319
 
2989
3320
  }
2990
3321
 
3322
+ export namespace com.moxi.api.ride.common {
3323
+
3324
+ export type RideInfoUnion = com.moxi.api.ride.common.RegularRideInfo | com.moxi.api.ride.intensivecare.IntensiveCareRideInfo;
3325
+
3326
+ }
3327
+
2991
3328
  export namespace com.moxi.api.ride.common {
2992
3329
 
2993
3330
  export type RidePurpose = "admission" | "relocation" | "discharge" | "consultation";
@@ -3002,7 +3339,61 @@ export namespace com.moxi.api.ride.common {
3002
3339
 
3003
3340
  export namespace com.moxi.api.ride.common {
3004
3341
 
3005
- export type VehicleType = "taxi" | "ambulance";
3342
+ export type VehicleType = "taxi" | "ambulance" | "intensiveCareAmbulance" | "intensiveCareHelicopter" | "emergencyAmbulance";
3343
+
3344
+ }
3345
+
3346
+ export namespace com.moxi.api.ride.intensivecare {
3347
+
3348
+ export type AgeCategory = "adult" | "child" | "toddler" | "baby";
3349
+
3350
+ }
3351
+
3352
+ export namespace com.moxi.api.ride.intensivecare {
3353
+
3354
+ export type BreathingDeliveryType = "mask" | "intubated" | "tracheotomized";
3355
+
3356
+ }
3357
+
3358
+ export namespace com.moxi.api.ride.intensivecare {
3359
+
3360
+ export type BreathingDeliveryUnion = com.moxi.api.ride.intensivecare.Mask | com.moxi.api.ride.intensivecare.Intubated | com.moxi.api.ride.intensivecare.Tracheotomized;
3361
+
3362
+ }
3363
+
3364
+ export namespace com.moxi.api.ride.intensivecare {
3365
+
3366
+ export type CirculationType = "stable" | "stable_with_catecholamines" | "unstable_with_catecholamines";
3367
+
3368
+ }
3369
+
3370
+ export namespace com.moxi.api.ride.intensivecare {
3371
+
3372
+ export type ConsciousnessType = "oriented" | "sleepy" | "unconscious" | "analgo_sedated";
3373
+
3374
+ }
3375
+
3376
+ export namespace com.moxi.api.ride.intensivecare {
3377
+
3378
+ export type OralOrNasal = "oral" | "nasal";
3379
+
3380
+ }
3381
+
3382
+ export namespace com.moxi.api.ride.intensivecare {
3383
+
3384
+ export type OverweightCategory = "under_100" | "under_120" | "under_130" | "under_150" | "over_150";
3385
+
3386
+ }
3387
+
3388
+ export namespace com.moxi.api.ride.intensivecare {
3389
+
3390
+ export type Urgency = "immediate" | "urgent" | "plannable";
3391
+
3392
+ }
3393
+
3394
+ export namespace com.moxi.api.ride.intensivecare {
3395
+
3396
+ export type VentilationType = "pc_cmv" | "vc_cmv" | "bipap_duopap" | "ippv_cppv" | "simv" | "cpap";
3006
3397
 
3007
3398
  }
3008
3399
 
package/common.d.ts CHANGED
@@ -186,9 +186,6 @@ export interface AmbulanceInfo {
186
186
  requiresSuctionAspirator?: boolean;
187
187
  }
188
188
 
189
- export interface AnonymizedRideInfo extends RideInfo {
190
- }
191
-
192
189
  export interface AnonymizedSeriesRideInfo extends SeriesRideInfo {
193
190
  }
194
191
 
@@ -231,15 +228,35 @@ export interface AuthenticationResponseFactory {
231
228
  export interface AuthenticationService {
232
229
  }
233
230
 
231
+ /**
232
+ * 6-digit position number for medical transport billing
233
+ */
234
+ export interface BillingCode {
235
+ code?: string;
236
+ }
237
+
238
+ export interface BillingCodeGenerator {
239
+ }
240
+
234
241
  export interface BookRide extends CreateRideCommand {
235
- info?: RideInfo;
242
+ info?: RideInfoUnion;
236
243
  }
237
244
 
238
245
  export interface BookRideSeries extends CreateSeriesCommand {
239
246
  rideSummaries?: RideSummary[];
240
247
  }
241
248
 
242
- export interface CancelRide extends RideBookerCommand {
249
+ export interface Breathing {
250
+ breathingDelivery?: BreathingDeliveryUnion;
251
+ spontaneous?: boolean;
252
+ }
253
+
254
+ export interface BreathingDelivery {
255
+ oxygenLiterPerMin?: number;
256
+ type: "intubated" | "mask" | "tracheotomized";
257
+ }
258
+
259
+ export interface CancelRide extends RideCommand {
243
260
  reason?: string;
244
261
  }
245
262
 
@@ -261,6 +278,11 @@ export interface CeliosSettings {
261
278
  user?: string;
262
279
  }
263
280
 
281
+ export interface CeliosStreamPulse {
282
+ target?: string;
283
+ type?: GrpcStreamType;
284
+ }
285
+
264
286
  export interface ChangeUserPassword {
265
287
  newPassword?: string;
266
288
  oldPassword?: string;
@@ -275,6 +297,11 @@ export interface CheckSession {
275
297
  userId?: string;
276
298
  }
277
299
 
300
+ export interface Circulation {
301
+ catecholamines?: string[];
302
+ type?: CirculationType;
303
+ }
304
+
278
305
  /**
279
306
  * You can send in custom values. For every value you don't send in, we lookup the default setting you set up in your account.
280
307
  */
@@ -318,6 +345,11 @@ export interface ConfirmablePermission {
318
345
  revoked?: boolean;
319
346
  }
320
347
 
348
+ export interface Consciousness {
349
+ gcs?: number;
350
+ type?: ConsciousnessType;
351
+ }
352
+
321
353
  export interface CreateAccount extends AccountCommand {
322
354
  autoConfirm?: boolean;
323
355
  criticalInfo?: CriticalAccountInfo;
@@ -422,7 +454,7 @@ export interface DrivePermission {
422
454
  }
423
455
 
424
456
  export interface DrivePermissionFilter {
425
- type: "ambulance" | "taxi";
457
+ type: "ambulance" | "emergencyAmbulance" | "intensiveCareAmbulance" | "intensiveCareHelicopter" | "taxi";
426
458
  }
427
459
 
428
460
  export interface DrivePermissionInfo {
@@ -448,6 +480,40 @@ export interface EmailMessage {
448
480
  tos?: string[];
449
481
  }
450
482
 
483
+ export interface EmergencyAmbulanceFilter extends DrivePermissionFilter {
484
+ type: "emergencyAmbulance";
485
+ }
486
+
487
+ export interface Equipment {
488
+ cprDevice?: boolean;
489
+ ecmo?: boolean;
490
+ /**
491
+ * Derived from infusionTherapy != blank
492
+ */
493
+ hasInfusionTherapy?: boolean;
494
+ /**
495
+ * Derived from perfusorDescription != blank
496
+ */
497
+ hasPerfusor?: boolean;
498
+ /**
499
+ * Derived from secondPerfusorDescription != blank
500
+ */
501
+ hasSecondPerfusor?: boolean;
502
+ /**
503
+ * Derived from thoraxDrainageLeft != null or thoraxDrainageRight != null
504
+ */
505
+ hasThoraxDrainage?: boolean;
506
+ iabp?: boolean;
507
+ infusionTherapy?: string;
508
+ pacemaker?: boolean;
509
+ perfusorDescription?: string;
510
+ powerSupply?: boolean;
511
+ secondPerfusorDescription?: string;
512
+ thoraxDrainageLeft?: number;
513
+ thoraxDrainageRight?: number;
514
+ vacuumMattress?: boolean;
515
+ }
516
+
451
517
  export interface EuropeanHealthInsurance {
452
518
  acronym?: string;
453
519
  email?: string;
@@ -799,6 +865,11 @@ export interface GiveTeamPermission extends AccountPermissionCommand {
799
865
  teamPermission?: TeamPermission;
800
866
  }
801
867
 
868
+ export interface GrpcStreamId {
869
+ target?: string;
870
+ type?: GrpcStreamType;
871
+ }
872
+
802
873
  export interface HalfHourBeforeStart {
803
874
  rideId?: string;
804
875
  }
@@ -820,6 +891,30 @@ export interface ImpersonateUser {
820
891
  userId?: string;
821
892
  }
822
893
 
894
+ export interface Infection {
895
+ esbl?: boolean;
896
+ furtherActions?: string;
897
+ /**
898
+ * Derived from furtherActions != blank
899
+ */
900
+ hasFurtherActions?: boolean;
901
+ /**
902
+ * Derived from infectionDescription != blank
903
+ */
904
+ hasInfection?: boolean;
905
+ /**
906
+ * Derived from otherGerms != blank
907
+ */
908
+ hasOtherGerms?: boolean;
909
+ infectionDescription?: string;
910
+ isolationNecessary?: boolean;
911
+ mrgn?: boolean;
912
+ mrsa?: boolean;
913
+ otherGerms?: string;
914
+ reverseIsolation?: boolean;
915
+ vre_cre?: boolean;
916
+ }
917
+
823
918
  export interface InstantRange {
824
919
  end?: string;
825
920
  start?: string;
@@ -830,6 +925,62 @@ export interface Insurer {
830
925
  name?: string;
831
926
  }
832
927
 
928
+ export interface IntensiveCareAmbulanceFilter extends DrivePermissionFilter {
929
+ type: "intensiveCareAmbulance";
930
+ }
931
+
932
+ export interface IntensiveCareHelicopterFilter extends DrivePermissionFilter {
933
+ type: "intensiveCareHelicopter";
934
+ }
935
+
936
+ export interface IntensiveCareInfo {
937
+ ageCategory?: AgeCategory;
938
+ babyPod?: boolean;
939
+ babyWeighs3to8kg?: boolean;
940
+ breathing?: Breathing;
941
+ circulation?: Circulation;
942
+ consciousness?: Consciousness;
943
+ diagnosis?: string;
944
+ equipment?: Equipment;
945
+ infection?: Infection;
946
+ monitoring?: Monitoring;
947
+ otherRemarks?: string;
948
+ overweightCategory?: OverweightCategory;
949
+ ventilation?: Ventilation;
950
+ }
951
+
952
+ /**
953
+ * Ride information specific for intensive care rides.
954
+ */
955
+ export interface IntensiveCareRideInfo extends RideInfo {
956
+ costCenter?: string;
957
+ /**
958
+ * Derived from costCenter != blank
959
+ */
960
+ hasInternalBilling?: boolean;
961
+ intensiveCareInfo?: IntensiveCareInfo;
962
+ requestingDoctorName?: string;
963
+ requestingDoctorPhoneNr?: PhoneNumber;
964
+ requestingStationName?: string;
965
+ requestingStationPhoneNr?: PhoneNumber;
966
+ respondingDoctorName?: string;
967
+ respondingDoctorPhoneNr?: PhoneNumber;
968
+ respondingStationName?: string;
969
+ respondingStationPhoneNr?: PhoneNumber;
970
+ urgency?: Urgency;
971
+ vehicleType: "intensiveCareAmbulance" | "emergencyAmbulance" | "intensiveCareHelicopter";
972
+ }
973
+
974
+ /**
975
+ * Intubated means a tube in the nose or mouth
976
+ */
977
+ export interface Intubated extends BreathingDelivery {
978
+ fixationInCm?: number;
979
+ oralOrNasal?: OralOrNasal;
980
+ tubeDiameterInMm?: number;
981
+ type: "intubated";
982
+ }
983
+
833
984
  export interface Invite {
834
985
  accountId?: string;
835
986
  invitedBy?: string;
@@ -861,6 +1012,12 @@ export interface MarketplaceOverviewFilter extends WebsocketFilter {
861
1012
  screen: "marketplace";
862
1013
  }
863
1014
 
1015
+ export interface Mask extends BreathingDelivery {
1016
+ highflowLiterPerMin?: number;
1017
+ niv?: NIV;
1018
+ type: "mask";
1019
+ }
1020
+
864
1021
  export interface Metric {
865
1022
  clientId?: string;
866
1023
  clientSegment?: number[];
@@ -878,6 +1035,45 @@ export interface MinimizedRideSeries extends RideSeries, RideOrMinimizedSeries {
878
1035
  info?: SeriesRideInfo;
879
1036
  }
880
1037
 
1038
+ export interface Monitoring {
1039
+ ap?: boolean;
1040
+ arteryCatheterDescription?: string;
1041
+ capnometry?: boolean;
1042
+ cvlDescription?: string;
1043
+ cvp?: boolean;
1044
+ eeg?: boolean;
1045
+ /**
1046
+ * Derived from arteryCatheterDescription != blank
1047
+ */
1048
+ hasArteryCatheter?: boolean;
1049
+ /**
1050
+ * Derived from cvlDescription != blank
1051
+ */
1052
+ hasCvl?: boolean;
1053
+ /**
1054
+ * Derived from otherMonitoring != blank
1055
+ */
1056
+ hasOtherMonitoring?: boolean;
1057
+ /**
1058
+ * Derived from numberOfVenusLines != null
1059
+ */
1060
+ hasVenusLines?: boolean;
1061
+ icp?: boolean;
1062
+ numberOfVenusLines?: number;
1063
+ otherMonitoring?: string;
1064
+ pap?: boolean;
1065
+ standardMonitoring?: boolean;
1066
+ venusLinesDescription?: string;
1067
+ }
1068
+
1069
+ /**
1070
+ * NIV stands for Non Invasive Ventilation.
1071
+ */
1072
+ export interface NIV {
1073
+ fiO2?: number;
1074
+ peep?: number;
1075
+ }
1076
+
881
1077
  export interface Notification {
882
1078
  body?: string;
883
1079
  title?: string;
@@ -997,16 +1193,18 @@ export interface RegisterDriveStatus extends RideDriverModifyCommand {
997
1193
  export interface RegisterDriverSynced extends RideDriverModifyCommand {
998
1194
  }
999
1195
 
1000
- export interface RegisterEinsatz {
1001
- einsatzNumber?: string;
1002
- rideId?: string;
1003
- }
1004
-
1005
1196
  export interface RegisterOneTimePassword {
1006
1197
  oneTimePassword?: string;
1007
1198
  userId?: string;
1008
1199
  }
1009
1200
 
1201
+ /**
1202
+ * Ride information specific for regular taxi or ambulance rides.
1203
+ */
1204
+ export interface RegularRideInfo extends RideInfo {
1205
+ vehicleType: "taxi" | "ambulance";
1206
+ }
1207
+
1010
1208
  export interface RemoveAccount extends AccountUpdate {
1011
1209
  }
1012
1210
 
@@ -1148,7 +1346,7 @@ export interface Ride extends RideOrSeries, RideOrMinimizedSeries {
1148
1346
  * The driver determines the expectedEndTime when indicating delays. It means the expected time of arrival at the 'from' or 'pick-up' location.
1149
1347
  */
1150
1348
  expectedStartTime?: string;
1151
- info?: RideInfo;
1349
+ info?: RideInfoUnion;
1152
1350
  /**
1153
1351
  * 'planned' is true if the driver has reported a planned time for the ride.
1154
1352
  */
@@ -1241,6 +1439,11 @@ export interface RideIdResult {
1241
1439
 
1242
1440
  export interface RideInfo extends GenericRideInfo {
1243
1441
  appointment?: Appointment;
1442
+ /**
1443
+ * Returns custom billing code if provided, otherwise auto-generates from ride details
1444
+ */
1445
+ billingCode?: BillingCode;
1446
+ customBillingCode?: BillingCode;
1244
1447
  purpose?: RidePurpose;
1245
1448
  }
1246
1449
 
@@ -1370,7 +1573,7 @@ export interface Role {
1370
1573
  * Save a new ride or update a previously saved ride. Not allowed to saveRide after the ride has been booked.
1371
1574
  */
1372
1575
  export interface SaveRide extends CreateRideCommand {
1373
- info?: RideInfo;
1576
+ info?: RideInfoUnion;
1374
1577
  }
1375
1578
 
1376
1579
  export interface SaveRideSeries extends CreateSeriesCommand {
@@ -1495,6 +1698,16 @@ export interface SignedInUser {
1495
1698
  userId?: string;
1496
1699
  }
1497
1700
 
1701
+ export interface StartCeliosStream {
1702
+ target?: string;
1703
+ type?: GrpcStreamType;
1704
+ }
1705
+
1706
+ export interface StopCeliosStream {
1707
+ target?: string;
1708
+ type?: GrpcStreamType;
1709
+ }
1710
+
1498
1711
  export interface StopImpersonatingUser {
1499
1712
  }
1500
1713
 
@@ -1566,6 +1779,15 @@ export interface TokenInfo {
1566
1779
  export interface TokenUpdate extends TokenCommand {
1567
1780
  }
1568
1781
 
1782
+ /**
1783
+ * Tracheotomized means a tube through the skin.
1784
+ */
1785
+ export interface Tracheotomized extends BreathingDelivery {
1786
+ fixationInCm?: number;
1787
+ tubeDiameterInMm?: number;
1788
+ type: "tracheotomized";
1789
+ }
1790
+
1569
1791
  export interface UpdateAccountInfo extends AccountUpdate {
1570
1792
  autoConfirm?: boolean;
1571
1793
  criticalInfo?: CriticalAccountInfo;
@@ -1584,7 +1806,7 @@ export interface UpdatePosition {
1584
1806
 
1585
1807
  export interface UpdateRide extends RideBookerCommand {
1586
1808
  booker?: AccountOrTeamRef;
1587
- info?: RideInfo;
1809
+ info?: RideInfoUnion;
1588
1810
  }
1589
1811
 
1590
1812
  export interface UpdateRidePlan extends RideDriverModifyCommand {
@@ -1657,6 +1879,20 @@ export interface UserUpdate extends UserCommand {
1657
1879
  export interface UserUpdateAfterSignup extends UserUpdate {
1658
1880
  }
1659
1881
 
1882
+ export interface Ventilation {
1883
+ asb?: number;
1884
+ bf?: number;
1885
+ expiration?: number;
1886
+ fiO2?: number;
1887
+ inspiration?: number;
1888
+ mv?: number;
1889
+ other?: string;
1890
+ peep?: number;
1891
+ pmax?: number;
1892
+ td?: number;
1893
+ type?: VentilationType;
1894
+ }
1895
+
1660
1896
  export interface WebsocketFilter extends WebsocketMessage {
1661
1897
  screen: "ride_details" | "fleet_overview" | "hospital_overview" | "marketplace" | "operations_overview";
1662
1898
  }
@@ -1692,13 +1928,23 @@ export interface ZonedTimeRange {
1692
1928
 
1693
1929
  export type AccountRole = "ridebooker" | "dispatcher" | "operator" | "admin" | "owner";
1694
1930
 
1931
+ export type AgeCategory = "adult" | "child" | "toddler" | "baby";
1932
+
1695
1933
  export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED" | "ONE_TIME_PASSWORD_NEEDED";
1696
1934
 
1697
1935
  export type BookingStatus = "saved" | "booked" | "accepted" | "planned" | "started" | "completed" | "cancelled";
1698
1936
 
1937
+ export type BreathingDeliveryType = "mask" | "intubated" | "tracheotomized";
1938
+
1939
+ export type BreathingDeliveryUnion = Mask | Intubated | Tracheotomized;
1940
+
1941
+ export type CirculationType = "stable" | "stable_with_catecholamines" | "unstable_with_catecholamines";
1942
+
1943
+ export type ConsciousnessType = "oriented" | "sleepy" | "unconscious" | "analgo_sedated";
1944
+
1699
1945
  export type DocumentType = "businessLicense" | "publicLiabilityPolicy";
1700
1946
 
1701
- export type DrivePermissionFilterUnion = AmbulanceFilter | TaxiFilter;
1947
+ export type DrivePermissionFilterUnion = AmbulanceFilter | TaxiFilter | IntensiveCareAmbulanceFilter | IntensiveCareHelicopterFilter | EmergencyAmbulanceFilter;
1702
1948
 
1703
1949
  export type DriveStatus = "driving_to_origin" | "arrived_at_origin" | "driving_to_destination" | "arrived_at_destination" | "completed";
1704
1950
 
@@ -1706,21 +1952,29 @@ export type EntityType = "ride" | "rideseries";
1706
1952
 
1707
1953
  export type GeometryUnion = GeoPolygon | GeoMultiPolygon;
1708
1954
 
1955
+ export type GrpcStreamType = "get_einsatz_events";
1956
+
1709
1957
  export type InsuranceType = "public_insurance" | "private_insurance" | "german_accident_insurance" | "no_or_unknown_insurance";
1710
1958
 
1711
1959
  export type IntegrationType = "dispolive" | "celios";
1712
1960
 
1713
1961
  export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "stretcher";
1714
1962
 
1963
+ export type OralOrNasal = "oral" | "nasal";
1964
+
1715
1965
  export type OrganisationType = "medical" | "fleet" | "operator";
1716
1966
 
1967
+ export type OverweightCategory = "under_100" | "under_120" | "under_130" | "under_150" | "over_150";
1968
+
1969
+ export type RideInfoUnion = RegularRideInfo | IntensiveCareRideInfo;
1970
+
1717
1971
  export type RidePurpose = "admission" | "relocation" | "discharge" | "consultation";
1718
1972
 
1719
1973
  export type Screen = "ping" | "marketplace" | "operations_overview" | "hospital_overview" | "fleet_overview" | "ride_details";
1720
1974
 
1721
1975
  export type SeriesPurpose = "consultation";
1722
1976
 
1723
- export type Service = "pro_medical" | "pro_fleet" | "pro_operator" | "celios_integration" | "dispolive_integration" | "moxi_operations";
1977
+ export type Service = "pro_medical" | "pro_fleet" | "pro_operator" | "celios_integration" | "dispolive_integration" | "moxi_operations" | "intensive_care";
1724
1978
 
1725
1979
  export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
1726
1980
 
@@ -1730,9 +1984,13 @@ export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
1730
1984
 
1731
1985
  export type TeamRole = "dispatcher" | "ridebooker";
1732
1986
 
1987
+ export type Urgency = "immediate" | "urgent" | "plannable";
1988
+
1733
1989
  export type UserRole = "superadmin";
1734
1990
 
1735
- export type VehicleType = "taxi" | "ambulance";
1991
+ export type VehicleType = "taxi" | "ambulance" | "intensiveCareAmbulance" | "intensiveCareHelicopter" | "emergencyAmbulance";
1992
+
1993
+ export type VentilationType = "pc_cmv" | "vc_cmv" | "bipap_duopap" | "ippv_cppv" | "simv" | "cpap";
1736
1994
 
1737
1995
  export type WebsocketMessageUnion = MarketplaceOverviewFilter | HospitalOverviewFilter | FleetOverviewFilter | OperationsOverviewFilter | DetailsFilter | WebsocketPing;
1738
1996
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.19.31",
3
+ "version": "0.21.0",
4
4
  "types": "common.d.ts"
5
5
  }