Class: Operation¶
domain/Operation.Operation
Constructors¶
constructor¶
new Operation(operationID
, name
, sendTime
, createdTime
, endTime
, acceptedTime
, callCenterId
, caseFolderId
, transmitterCode
, alarmCategory
, alarmEventCode
, medicalCommander
, medicalIncidentOfficer
, attachedCustomerObject
, alarmEventText
, additionalInfo
, keyNumber
, electronicKey
, radioGroupMain
, radioGroupSecondary
, additionalCoordinationInformation
, availablePriorities
, patientName
, patientUID
, vehicleStatus
, destinationSiteLocation
, breakpointLocation
, availableHospitalLocations
, header1
, header2
, eventInfo
, caseInfo
, selectedHospital
, selectedPriority
, operationState
, leavePatientLocation
, assignedResourceMissionNo
, operationUnits
)
Parameters¶
Name |
Type |
Description |
---|---|---|
|
|
The operation ID |
|
|
The operation name |
|
|
The time at which the operation was sent |
|
|
The time at which the operation was created |
|
|
The time at which the operation ended, |
|
|
The time at which the operation was accepted (minimum Vehicle Services version: 5.0.2, otherwise always undefined) |
|
|
The Call Center ID |
|
|
The Case folder ID |
|
|
The transmitter code |
|
|
The alarm category |
|
|
The alarm event code |
|
|
The medical commander of this operation |
|
|
The medical incident office of this operation |
|
|
The attached customer Object |
|
|
The alarm event text |
|
|
The additional information attached to this operation |
|
|
The key number |
|
|
The electronic key |
|
|
The main radio group associated with this operation |
|
|
The secondary radio group associated with this operation |
|
|
Additional coordination information |
|
The list of available priorities to select from |
|
|
|
The name of the patient if any |
|
|
The personal number of the patient if any |
|
The current vehicle status in this operation |
|
|
The location of the destination |
|
|
The location of the breakpoint if any |
|
|
The list of available hospitals to select from |
|
|
|
The case index 2 |
|
|
The case index 3 |
|
|
The event description |
|
|
The case info comment |
|
|
The id of the selected hospital [inside available hospitals] |
|
|
The id of the selected priority [inside available priority] |
|
the current state of the operation (ACTIVE, AVAILABLE, COMPLETE) |
|
|
The location of the leave-patient (‘toCity’, etc) |
|
|
|
The Assigned Resource Mission No value from SOS (minimum Vehicle Services version: 5.2.2, otherwise always undefined) |
|
A list of the units that include the Assigned Resource values from SOS and the Units from the cloud (minimum Vehicle Services version: 5.2.2, otherwise always undefined) |
Properties¶
acceptedTime¶
acceptedTime: Date
The time at which the operation was accepted (minimum Vehicle Services version: 5.0.2, otherwise always undefined)
additionalCoordinationInformation¶
additionalCoordinationInformation: string
Additional coordination information
additionalInfo¶
additionalInfo: string
The additional information attached to this operation
alarmCategory¶
alarmCategory: string
The alarm category
alarmEventCode¶
alarmEventCode: string
The alarm event code
alarmEventText¶
alarmEventText: string
The alarm event text
assignedResourceMissionNo¶
assignedResourceMissionNo: string
The Assigned Resource Mission No value from SOS (minimum Vehicle Services version: 5.2.2, otherwise always undefined)
attachedCustomerObject¶
attachedCustomerObject: string
The attached customer Object
availableHospitalLocations¶
availableHospitalLocations: HospitalLocation
[]
The list of available hospitals to select from
availablePriorities¶
availablePriorities: OperationPriority
[]
The list of available priorities to select from
breakpointLocation¶
breakpointLocation: DestinationControlPointLocation
The location of the breakpoint if any
callCenterId¶
callCenterId: string
The Call Center ID
caseFolderId¶
caseFolderId: string
The Case folder ID
caseInfo¶
caseInfo: string
The case info comment
createdTime¶
createdTime: Date
The time at which the operation was created
destinationSiteLocation¶
destinationSiteLocation: DestinationSiteLocation
The location of the destination
electronicKey¶
electronicKey: string
The electronic key
endTime¶
endTime: Date
The time at which the operation ended, undefined
still ongoing
eventInfo¶
eventInfo: string
The event description
header1¶
header1: string
The case index 2
header2¶
header2: string
The case index 3
keyNumber¶
keyNumber: string
The key number
leavePatientLocation¶
leavePatientLocation: LeavePatientLocation
The location of the leave-patient (‘toCity’, etc)
medicalCommander¶
medicalCommander: string
The medical commander of this operation
medicalIncidentOfficer¶
medicalIncidentOfficer: string
The medical incident office of this operation
name¶
name: string
The operation name
operationID¶
operationID: string
The operation ID
operationState¶
operationState: OperationState
the current state of the operation (ACTIVE, AVAILABLE, COMPLETE)
operationUnits¶
operationUnits: OperationUnit
[]
A list of the units that include the Assigned Resource values from SOS and the Units from the cloud (minimum Vehicle Services version: 5.2.2, otherwise always undefined)
patientName¶
patientName: string
The name of the patient if any
patientUID¶
patientUID: string
The personal number of the patient if any
radioGroupMain¶
radioGroupMain: string
The main radio group associated with this operation
radioGroupSecondary¶
radioGroupSecondary: string
The secondary radio group associated with this operation
selectedHospital¶
selectedHospital: number
The id of the selected hospital [inside available hospitals]
selectedPriority¶
selectedPriority: number
The id of the selected priority [inside available priority]
sendTime¶
sendTime: Date
The time at which the operation was sent
transmitterCode¶
transmitterCode: string
The transmitter code
vehicleStatus¶
vehicleStatus: VehicleStatus
The current vehicle status in this operation
Methods¶
getFullId¶
getFullId(): string
Gets the full operation ID, e.g. ‘1:18:6546’, composed by ‘callCenterId:caseFolderId:operationID’.
Returns¶
string
id The full operation ID
fromJSON¶
Static
fromJSON(data
): Operation
Create from JSON
Parameters¶
Name |
Type |
Description |
---|---|---|
|
|
JSON object |