resqueserve-core 4.9.0-rc.9 → 4.9.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.
Files changed (4) hide show
  1. package/main.d.ts +409 -12
  2. package/main.js +1064 -2
  3. package/package.json +2 -3
  4. package/main.d.ts.map +0 -1
package/main.d.ts CHANGED
@@ -802,6 +802,250 @@ export interface GeocodingResult {
802
802
  */
803
803
  commune: string;
804
804
  }
805
+ export declare enum HospitalAllocationAirway {
806
+ /**
807
+ * A-Frei
808
+ *
809
+ */
810
+ Free = 1,
811
+ /**
812
+ * A-Risiko
813
+ *
814
+ */
815
+ AtRisk = 2,
816
+ /**
817
+ * A-Intubiert
818
+ *
819
+ */
820
+ Intubated = 3
821
+ }
822
+ export declare enum HospitalAllocationBreathing {
823
+ /**
824
+ * B-Spontan
825
+ *
826
+ */
827
+ Spontaneous = 1,
828
+ /**
829
+ * B-Nicht invasiv
830
+ *
831
+ */
832
+ NonInvasive = 2,
833
+ /**
834
+ * B-Invasiv
835
+ *
836
+ */
837
+ Invasive = 3
838
+ }
839
+ export declare enum HospitalAllocationCirculation {
840
+ /**
841
+ * C-Stabil
842
+ *
843
+ */
844
+ Stable = 1,
845
+ /**
846
+ * C-Medikamentös
847
+ *
848
+ */
849
+ Medicated = 2,
850
+ /**
851
+ * C-Instabil
852
+ *
853
+ */
854
+ Unstable = 3,
855
+ /**
856
+ * C-Reanimiert
857
+ *
858
+ */
859
+ Resuscitated = 4
860
+ }
861
+ export declare enum HospitalAllocationDisability {
862
+ /**
863
+ * D-Wachzustand
864
+ *
865
+ */
866
+ Awake = 1,
867
+ /**
868
+ * D-Getrübt
869
+ *
870
+ */
871
+ Clouded = 2,
872
+ /**
873
+ * D-Koma
874
+ *
875
+ */
876
+ Coma = 3,
877
+ /**
878
+ * D-Sediert
879
+ *
880
+ */
881
+ Sedated = 4,
882
+ /**
883
+ * D-Narkotisiert
884
+ *
885
+ */
886
+ Anesthetized = 5
887
+ }
888
+ export declare enum HospitalAllocationOccasion {
889
+ NotSpecified = 0,
890
+ DomesticOperation = 1,
891
+ OtherOperation = 2,
892
+ RailAccident = 3,
893
+ Hanging = 4,
894
+ AircraftAccident = 5,
895
+ HouseholdAccident = 6,
896
+ BoatAccident = 7,
897
+ GunshotWound = 8,
898
+ SportsAccident = 9,
899
+ StabOrCutWound = 10,
900
+ FallBelowThreeMeters = 11,
901
+ FallAboveThreeMeters = 12,
902
+ AccidentTwoToFourInjured = 13,
903
+ AccidentMoreThanFourInjured = 14,
904
+ AccidentTrappedPerson = 15,
905
+ TrafficAccidentPedestrian = 16,
906
+ TrafficAccidentTwoWheeler = 17,
907
+ TrafficAccidentInjuredPerson = 18
908
+ }
909
+ export declare enum HospitalAllocationInfection {
910
+ No = 1,
911
+ Mrsa = 2,
912
+ Noro = 3,
913
+ Other = 4,
914
+ SpecialSituation = 5
915
+ }
916
+ export declare enum HospitalAllocationReason {
917
+ /**
918
+ * Leitstelle
919
+ *
920
+ */
921
+ DispatchCenter = 1,
922
+ /**
923
+ * Rettungsdienst
924
+ *
925
+ */
926
+ EmergencyService = 2,
927
+ /**
928
+ * Patientenwunsch
929
+ *
930
+ */
931
+ PatientRequest = 3,
932
+ /**
933
+ * Einweisung
934
+ *
935
+ */
936
+ Referral = 4,
937
+ /**
938
+ * NOTZUWEISUNG: the hospital has to take the patient
939
+ *
940
+ */
941
+ EmergencyAllocation = 5
942
+ }
943
+ export declare enum HospitalAllocationTransport {
944
+ KTW = 1,
945
+ RTW = 2,
946
+ MZF = 3,
947
+ RTH = 4,
948
+ ITH = 5,
949
+ ITW = 6,
950
+ NAW = 7,
951
+ GTW = 8
952
+ }
953
+ export interface HospitalAllocationForm {
954
+ /**
955
+ * The PZC as its 6-digit value (incident code, age, urgency level), e.g. 232183.
956
+ *
957
+ */
958
+ pzc: number;
959
+ /**
960
+ * Minutes until the patient arrives ("Eintreffzeit"); null if unknown (arrives now).
961
+ *
962
+ */
963
+ arrivalMinutes: number | null;
964
+ shockRoomAlarm: boolean | null;
965
+ airway: HospitalAllocationAirway | null;
966
+ breathing: HospitalAllocationBreathing | null;
967
+ circulation: HospitalAllocationCirculation | null;
968
+ disability: HospitalAllocationDisability | null;
969
+ cardiacCatheterAlarm: boolean | null;
970
+ occasion: HospitalAllocationOccasion;
971
+ /**
972
+ * Work, commuting or school accident ("Arbeits-/Wege-/Schulunfall").
973
+ *
974
+ */
975
+ workAccident: boolean | null;
976
+ gender: Gender | null;
977
+ /**
978
+ * The patient's age in years.
979
+ *
980
+ */
981
+ age: number | null;
982
+ resuscitation: boolean | null;
983
+ ventilated: boolean | null;
984
+ infection: HospitalAllocationInfection | null;
985
+ pregnant: boolean | null;
986
+ doctorAccompanied: boolean | null;
987
+ /**
988
+ * The phone number the hospital calls back.
989
+ *
990
+ */
991
+ phone: string;
992
+ reason: HospitalAllocationReason | null;
993
+ operationNumber: string;
994
+ /**
995
+ * Free text for the hospital, at most characters.
996
+ *
997
+ */
998
+ remark: string;
999
+ transport: HospitalAllocationTransport | null;
1000
+ callsign: string;
1001
+ }
1002
+ export interface HospitalAllocationPatientReference {
1003
+ operationId: string;
1004
+ patientId: string;
1005
+ unitId: number | null;
1006
+ }
1007
+ export interface HospitalAllocationRequest {
1008
+ form: HospitalAllocationForm;
1009
+ patient: HospitalAllocationPatientReference;
1010
+ }
1011
+ export interface HospitalPzcTransmission {
1012
+ notificationId: string;
1013
+ receivedOn: string;
1014
+ operationId: string;
1015
+ operationNumber: string;
1016
+ patientId: string;
1017
+ patientName: string;
1018
+ unitId: number;
1019
+ callsign: string;
1020
+ /**
1021
+ * The patient's PZC on the operation desk as its 6-digit value.
1022
+ *
1023
+ */
1024
+ pzc: number;
1025
+ /**
1026
+ * The hospital the unit preselected; null if none.
1027
+ *
1028
+ */
1029
+ preselectionPoiId: number | null;
1030
+ /**
1031
+ * The hospital the patient has been allocated to with the form; null if not allocated yet.
1032
+ *
1033
+ */
1034
+ allocatedHospitalId: number | null;
1035
+ }
1036
+ export interface HospitalAllocationPrefill {
1037
+ form: HospitalAllocationForm;
1038
+ /**
1039
+ * The department of the hospital that takes the PZC; null if the hospital doesn't accept it.
1040
+ *
1041
+ */
1042
+ department: PoiHospitalDepartment | null;
1043
+ /**
1044
+ * The phone numbers the hospital can call back (the office number of the dispatch center).
1045
+ *
1046
+ */
1047
+ phoneOptions: string[] | null;
1048
+ }
805
1049
  export declare enum HospitalCapacitySlotColor {
806
1050
  Green = 0,
807
1051
  Yellow = 1,
@@ -863,15 +1107,15 @@ export interface HospitalCapacitySlot {
863
1107
  }
864
1108
  export interface HospitalBooking {
865
1109
  id: string;
866
- hospital: IPoiInfo;
867
- patient: IPatient;
1110
+ hospitalId: number;
1111
+ hospitalName: string;
868
1112
  /**
869
1113
  * The department this booking is assigned to.
870
1114
  *
871
1115
  */
872
1116
  department: PoiHospitalDepartment;
873
1117
  /**
874
- * Start of the patient's treatment (inclusive).
1118
+ * Start of the patient's treatment (inclusive): the arrival at the hospital.
875
1119
  *
876
1120
  */
877
1121
  start: string;
@@ -880,6 +1124,22 @@ export interface HospitalBooking {
880
1124
  *
881
1125
  */
882
1126
  end: string;
1127
+ /**
1128
+ * When the form was sent: the arrival time counts from here.
1129
+ *
1130
+ */
1131
+ createdOn: string;
1132
+ createdBy: IUserInfo;
1133
+ /**
1134
+ * The form sent to the hospital.
1135
+ *
1136
+ */
1137
+ form: HospitalAllocationForm;
1138
+ /**
1139
+ * The patient of the operation desk whose destination the allocation set; null if none.
1140
+ *
1141
+ */
1142
+ patient: HospitalAllocationPatientReference;
883
1143
  }
884
1144
  export interface HospitalCapacitySlotFactory {
885
1145
  }
@@ -887,15 +1147,52 @@ export interface HospitalOverview {
887
1147
  start: string;
888
1148
  end: string;
889
1149
  slotSize: string;
1150
+ /**
1151
+ * The PZC the hospitals are filtered by (6-digit value): only those accepting its incident code and urgency level; null if not filtered.
1152
+ *
1153
+ */
1154
+ pzc: number | null;
1155
+ /**
1156
+ * The next moment a department's free places change by time alone (the end of a treatment or the discharge of a patient the hospital had at the start of the simulation), so the client reloads then; null if nothing changes. Allocations that are made, changed or deleted are pushed.
1157
+ *
1158
+ */
1159
+ nextChangeOn: string | null;
890
1160
  hospitals: HospitalOverviewItem[] | null;
891
1161
  }
892
1162
  export interface HospitalOverviewItem {
893
1163
  id: number;
894
1164
  name: string;
895
1165
  isMaxCareHospital: boolean;
896
- departments: PoiHospitalDepartment[] | null;
1166
+ /**
1167
+ * The department that takes the PZC of the overview; null if not filtered by a PZC.
1168
+ *
1169
+ */
1170
+ acceptingDepartment: PoiHospitalDepartment | null;
1171
+ departments: HospitalOverviewDepartment[] | null;
897
1172
  capacitySlots: HospitalCapacitySlot[] | null;
898
1173
  }
1174
+ export interface HospitalOverviewDepartment {
1175
+ department: PoiHospitalDepartment;
1176
+ /**
1177
+ * The name of the ward or station; null if not set.
1178
+ *
1179
+ */
1180
+ name: string;
1181
+ /**
1182
+ * The patients the department treats at the same time (configured or default).
1183
+ *
1184
+ */
1185
+ capacity: number;
1186
+ /**
1187
+ * The places taken right now: the patients announced with the allocation form (from when the form was sent, before they arrive), the patients in treatment and the hospital's own patients (from the start of the simulation).
1188
+ *
1189
+ */
1190
+ occupied: number;
1191
+ }
1192
+ export interface HospitalDepartmentCapacity {
1193
+ }
1194
+ export interface HospitalTreatmentDuration {
1195
+ }
899
1196
  /**
900
1197
  * Represents a base information object for informations about entities.
901
1198
  *
@@ -947,7 +1244,6 @@ export interface ResourceInformation {
947
1244
  station: string;
948
1245
  currentOperation: string;
949
1246
  destination: string;
950
- duty: string;
951
1247
  }
952
1248
  export interface Keyword {
953
1249
  id: number;
@@ -1107,6 +1403,11 @@ export interface OAuthTokenResponse {
1107
1403
  accessToken: string;
1108
1404
  tokenType: string;
1109
1405
  expiresIn: number;
1406
+ /**
1407
+ * Gets a new access token (and a new refresh token) at the token endpoint with grant_type=refresh_token; each refresh token is valid once. Only for the authorization_code and refresh_token grants.
1408
+ *
1409
+ */
1410
+ refreshToken: string;
1110
1411
  }
1111
1412
  export interface OperationAuditEntry {
1112
1413
  /**
@@ -1234,6 +1535,11 @@ export interface Poi {
1234
1535
  *
1235
1536
  */
1236
1537
  coordinates: Coordinates;
1538
+ /**
1539
+ * The POI where helicopters land for this POI (category HelicopterLandingZone, e.g. the helipad of a hospital or a landing site at an airfield); null if helicopters land on the coordinates.
1540
+ *
1541
+ */
1542
+ helicopterLandingZone: IPoi;
1237
1543
  /**
1238
1544
  * Tags associated with the point of interest for search purposes. Separate multiple tags with a semicolon.
1239
1545
  *
@@ -1250,10 +1556,10 @@ export interface Poi {
1250
1556
  */
1251
1557
  germanGenus: string;
1252
1558
  /**
1253
- * The hospital departments associated with the hospital POI if is hospital. Has no effect if is true.
1559
+ * The departments of the hospital POI with their settings (name, entrance, landing zone, capacity), at most one per department. If IsMaxCareHospital is true, the hospital has all departments and the list only holds the settings of some of them.
1254
1560
  *
1255
1561
  */
1256
- hospitalDepartments: PoiHospitalDepartment[] | null;
1562
+ hospitalDepartments: HospitalDepartment[] | null;
1257
1563
  /**
1258
1564
  * Indicates whether units should be dispatched together when assigned to this POI. Should be true if non-volunteer department.
1259
1565
  *
@@ -3584,6 +3890,16 @@ export interface IPatient {
3584
3890
  *
3585
3891
  */
3586
3892
  destination: IGeoReferenced;
3893
+ /**
3894
+ * Gets or sets the department of the destination hospital that takes the patient; null if not set.
3895
+ *
3896
+ */
3897
+ destinationDepartment: PoiHospitalDepartment | null;
3898
+ /**
3899
+ * Gets or sets the hospital the transporting unit prefers ("Vorauswahl"), reported with the PZC; null if the unit preselected none. Only a wish: the unit drives to the destination once it is set.
3900
+ *
3901
+ */
3902
+ preselection: IGeoReferenced;
3587
3903
  /**
3588
3904
  * Gets or sets the pickup deadline if the transport is time-bound. Null if not applicable.
3589
3905
  *
@@ -3669,10 +3985,15 @@ export interface IPoi {
3669
3985
  */
3670
3986
  germanGenus: string;
3671
3987
  /**
3672
- * The hospital departments associated with the hospital POI if is hospital. Has no effect if is true.
3988
+ * The POI where helicopters land for this POI (category HelicopterLandingZone, e.g. the helipad of a hospital or a landing site at an airfield); null if helicopters land on the coordinates.
3989
+ *
3990
+ */
3991
+ helicopterLandingZone: IPoi;
3992
+ /**
3993
+ * The departments of the hospital POI with their settings (name, entrance, landing zone, capacity), at most one per department. If IsMaxCareHospital is true, the hospital has all departments and the list only holds the settings of some of them.
3673
3994
  *
3674
3995
  */
3675
- hospitalDepartments: PoiHospitalDepartment[] | null;
3996
+ hospitalDepartments: HospitalDepartment[] | null;
3676
3997
  /**
3677
3998
  * Indicates whether units should be dispatched together when assigned to this POI. Should be true if non-volunteer department.
3678
3999
  *
@@ -4807,7 +5128,22 @@ export declare enum DispatchCenterOption {
4807
5128
  * Specifies whether the equipment suggester accounts for equipment already provided by units from previous suggesters (e.g., TagsSuggester). Note: This calculation is only relevant if is enabled; otherwise, the equipment suggester is skipped when tag-based units are present.
4808
5129
  *
4809
5130
  */
4810
- EquipmentSuggesterIncludesPreviousSuggesterResults = 22
5131
+ EquipmentSuggesterIncludesPreviousSuggesterResults = 22,
5132
+ /**
5133
+ * Patients are transported to the nearest hospital that accepts their PZC, as assigned per hospital. Without such a hospital, or when disabled, to the nearest hospital with the departments the PZC requires at least.
5134
+ *
5135
+ */
5136
+ HospitalDestinationByPzcAssignment = 23,
5137
+ /**
5138
+ * Units are suggested automatically once for a new operation, as soon as location and keyword are set. When disabled, units are only suggested on request.
5139
+ *
5140
+ */
5141
+ AutoSuggestUnitsWhenReadyForDispatch = 24,
5142
+ /**
5143
+ * The simulation starts with empty hospitals: only the allocations of the dispatch center occupy them. When not disabled, the hospitals are occupied at the start by their own patients (walk-ins, inpatients, elective patients) by the time of day, the weekday and the season, who are discharged one by one afterwards.
5144
+ *
5145
+ */
5146
+ DisableSimulatedHospitalOccupancy = 25
4811
5147
  }
4812
5148
  export declare enum DispatchGroupAvailabilityState {
4813
5149
  /**
@@ -4865,6 +5201,33 @@ export declare enum GeoProvider {
4865
5201
  Valhalla = 6,
4866
5202
  InternalDirectAirwayCalculationFallback = 7
4867
5203
  }
5204
+ export interface HospitalDepartment {
5205
+ /**
5206
+ * The kind of department.
5207
+ *
5208
+ */
5209
+ department: PoiHospitalDepartment;
5210
+ /**
5211
+ * The name of the department or ward (e.g. "Station 3B"); null if not set.
5212
+ *
5213
+ */
5214
+ name: string;
5215
+ /**
5216
+ * The entrance units drive or walk to for this department if it differs from the coordinates of the hospital; null if the hospital coordinates apply.
5217
+ *
5218
+ */
5219
+ entrance: Coordinates | null;
5220
+ /**
5221
+ * The POI where helicopters land for this department (category HelicopterLandingZone, e.g. a helipad on the roof of the building); null if the landing zone of the hospital applies.
5222
+ *
5223
+ */
5224
+ helicopterLandingZone: IPoi;
5225
+ /**
5226
+ * The number of patients the department can take at the same time; null if the default capacity of the department applies.
5227
+ *
5228
+ */
5229
+ capacity: number | null;
5230
+ }
4868
5231
  export declare enum HotkeyAction {
4869
5232
  None = 0,
4870
5233
  LayoutLoad1 = 201,
@@ -5139,6 +5502,11 @@ export declare enum PoiCategory {
5139
5502
  RehabilitationClinic = 56,
5140
5503
  RoadServices = 57,
5141
5504
  EnergyServices = 58,
5505
+ /**
5506
+ * A helicopter landing zone (HLZ), e.g. the helipad of a hospital or a landing site at an airfield. Hospitals, their departments and stations refer to it as the place where helicopters land.
5507
+ *
5508
+ */
5509
+ HelicopterLandingZone = 59,
5142
5510
  NotSet = -1
5143
5511
  }
5144
5512
  export declare enum PoiHospitalDepartment {
@@ -5348,7 +5716,37 @@ export declare enum ProblemInformation {
5348
5716
  DispatchCenterAreaIsNotSet = 175,
5349
5717
  OperationNotReadyForDispatch = 176,
5350
5718
  OperationTaskNotExecutable = 177,
5351
- OperationLocationRequired = 178
5719
+ OperationLocationRequired = 178,
5720
+ PoiHospitalDepartmentNotFound = 179,
5721
+ PoiHospitalDepartmentNameFormatInvalid = 180,
5722
+ PoiHospitalDepartmentEntranceInvalid = 181,
5723
+ PoiHospitalDepartmentCapacityInvalid = 182,
5724
+ PzcUrgencyLevelsInvalid = 183,
5725
+ HospitalAllocationNotAccepted = 184,
5726
+ HospitalAllocationDepartmentFull = 185,
5727
+ HospitalAllocationNotFound = 186,
5728
+ HospitalAllocationArrivalInvalid = 187,
5729
+ HospitalAllocationRequiredMissing = 188,
5730
+ HospitalAllocationValueInvalid = 189,
5731
+ HospitalAllocationTextTooLong = 190,
5732
+ HospitalAllocationAgeInvalid = 191,
5733
+ RequestInvalid = 192,
5734
+ AuthenticationRequired = 193,
5735
+ LicenseRequired = 194,
5736
+ AccessForbidden = 195,
5737
+ ResourceNotFound = 196,
5738
+ RequestConflict = 197,
5739
+ TooManyRequests = 198,
5740
+ ServiceUnavailable = 199,
5741
+ HospitalOverviewSlotSizeInvalid = 200,
5742
+ HospitalOverviewTimeframeInvalid = 201,
5743
+ HospitalOverviewTooManySlots = 202,
5744
+ SimulationNotRunning = 203,
5745
+ DemoDataAlreadyRunning = 204,
5746
+ SupporterActionNotSupported = 205,
5747
+ PoiHelicopterLandingZoneInvalid = 206,
5748
+ PoiHospitalDepartmentHelicopterLandingZoneInvalid = 207,
5749
+ PatientDestinationNotAssigned = 208
5352
5750
  }
5353
5751
  export declare enum SessionAccess {
5354
5752
  Private = 0,
@@ -6105,4 +6503,3 @@ export declare namespace UserInterfaceDefaults {
6105
6503
  const CommandcenterHeaderImageHeight: number;
6106
6504
  }
6107
6505
  }
6108
- //# sourceMappingURL=main.d.ts.map