resqueserve-core 4.9.0-rc.8 → 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 +414 -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
@@ -744,6 +744,11 @@ export interface ResourceLookupDto {
744
744
  callsign: string;
745
745
  callsignShort: string;
746
746
  station: string;
747
+ /**
748
+ * The callsign the search matched best (callsign, short, GPS or verbal); null without search.
749
+ *
750
+ */
751
+ matchedCallsign: string;
747
752
  /**
748
753
  * Gets or sets the cache version associated with the lookup entity.
749
754
  *
@@ -797,6 +802,250 @@ export interface GeocodingResult {
797
802
  */
798
803
  commune: string;
799
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
+ }
800
1049
  export declare enum HospitalCapacitySlotColor {
801
1050
  Green = 0,
802
1051
  Yellow = 1,
@@ -858,15 +1107,15 @@ export interface HospitalCapacitySlot {
858
1107
  }
859
1108
  export interface HospitalBooking {
860
1109
  id: string;
861
- hospital: IPoiInfo;
862
- patient: IPatient;
1110
+ hospitalId: number;
1111
+ hospitalName: string;
863
1112
  /**
864
1113
  * The department this booking is assigned to.
865
1114
  *
866
1115
  */
867
1116
  department: PoiHospitalDepartment;
868
1117
  /**
869
- * Start of the patient's treatment (inclusive).
1118
+ * Start of the patient's treatment (inclusive): the arrival at the hospital.
870
1119
  *
871
1120
  */
872
1121
  start: string;
@@ -875,6 +1124,22 @@ export interface HospitalBooking {
875
1124
  *
876
1125
  */
877
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;
878
1143
  }
879
1144
  export interface HospitalCapacitySlotFactory {
880
1145
  }
@@ -882,15 +1147,52 @@ export interface HospitalOverview {
882
1147
  start: string;
883
1148
  end: string;
884
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;
885
1160
  hospitals: HospitalOverviewItem[] | null;
886
1161
  }
887
1162
  export interface HospitalOverviewItem {
888
1163
  id: number;
889
1164
  name: string;
890
1165
  isMaxCareHospital: boolean;
891
- 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;
892
1172
  capacitySlots: HospitalCapacitySlot[] | null;
893
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
+ }
894
1196
  /**
895
1197
  * Represents a base information object for informations about entities.
896
1198
  *
@@ -942,7 +1244,6 @@ export interface ResourceInformation {
942
1244
  station: string;
943
1245
  currentOperation: string;
944
1246
  destination: string;
945
- duty: string;
946
1247
  }
947
1248
  export interface Keyword {
948
1249
  id: number;
@@ -1102,6 +1403,11 @@ export interface OAuthTokenResponse {
1102
1403
  accessToken: string;
1103
1404
  tokenType: string;
1104
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;
1105
1411
  }
1106
1412
  export interface OperationAuditEntry {
1107
1413
  /**
@@ -1229,6 +1535,11 @@ export interface Poi {
1229
1535
  *
1230
1536
  */
1231
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;
1232
1543
  /**
1233
1544
  * Tags associated with the point of interest for search purposes. Separate multiple tags with a semicolon.
1234
1545
  *
@@ -1245,10 +1556,10 @@ export interface Poi {
1245
1556
  */
1246
1557
  germanGenus: string;
1247
1558
  /**
1248
- * 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.
1249
1560
  *
1250
1561
  */
1251
- hospitalDepartments: PoiHospitalDepartment[] | null;
1562
+ hospitalDepartments: HospitalDepartment[] | null;
1252
1563
  /**
1253
1564
  * Indicates whether units should be dispatched together when assigned to this POI. Should be true if non-volunteer department.
1254
1565
  *
@@ -3579,6 +3890,16 @@ export interface IPatient {
3579
3890
  *
3580
3891
  */
3581
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;
3582
3903
  /**
3583
3904
  * Gets or sets the pickup deadline if the transport is time-bound. Null if not applicable.
3584
3905
  *
@@ -3664,10 +3985,15 @@ export interface IPoi {
3664
3985
  */
3665
3986
  germanGenus: string;
3666
3987
  /**
3667
- * 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.
3668
3994
  *
3669
3995
  */
3670
- hospitalDepartments: PoiHospitalDepartment[] | null;
3996
+ hospitalDepartments: HospitalDepartment[] | null;
3671
3997
  /**
3672
3998
  * Indicates whether units should be dispatched together when assigned to this POI. Should be true if non-volunteer department.
3673
3999
  *
@@ -4802,7 +5128,22 @@ export declare enum DispatchCenterOption {
4802
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.
4803
5129
  *
4804
5130
  */
4805
- 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
4806
5147
  }
4807
5148
  export declare enum DispatchGroupAvailabilityState {
4808
5149
  /**
@@ -4860,6 +5201,33 @@ export declare enum GeoProvider {
4860
5201
  Valhalla = 6,
4861
5202
  InternalDirectAirwayCalculationFallback = 7
4862
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
+ }
4863
5231
  export declare enum HotkeyAction {
4864
5232
  None = 0,
4865
5233
  LayoutLoad1 = 201,
@@ -5134,6 +5502,11 @@ export declare enum PoiCategory {
5134
5502
  RehabilitationClinic = 56,
5135
5503
  RoadServices = 57,
5136
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,
5137
5510
  NotSet = -1
5138
5511
  }
5139
5512
  export declare enum PoiHospitalDepartment {
@@ -5343,7 +5716,37 @@ export declare enum ProblemInformation {
5343
5716
  DispatchCenterAreaIsNotSet = 175,
5344
5717
  OperationNotReadyForDispatch = 176,
5345
5718
  OperationTaskNotExecutable = 177,
5346
- 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
5347
5750
  }
5348
5751
  export declare enum SessionAccess {
5349
5752
  Private = 0,
@@ -6100,4 +6503,3 @@ export declare namespace UserInterfaceDefaults {
6100
6503
  const CommandcenterHeaderImageHeight: number;
6101
6504
  }
6102
6505
  }
6103
- //# sourceMappingURL=main.d.ts.map