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

operationID

string

The operation ID

name

string

The operation name

sendTime

Date

The time at which the operation was sent

createdTime

Date

The time at which the operation was created

endTime

Date

The time at which the operation ended, undefined still ongoing

acceptedTime

Date

The time at which the operation was accepted (minimum Vehicle Services version: 5.0.2, otherwise always undefined)

callCenterId

string

The Call Center ID

caseFolderId

string

The Case folder ID

transmitterCode

string

The transmitter code

alarmCategory

string

The alarm category

alarmEventCode

string

The alarm event code

medicalCommander

string

The medical commander of this operation

medicalIncidentOfficer

string

The medical incident office of this operation

attachedCustomerObject

string

The attached customer Object

alarmEventText

string

The alarm event text

additionalInfo

string

The additional information attached to this operation

keyNumber

string

The key number

electronicKey

string

The electronic key

radioGroupMain

string

The main radio group associated with this operation

radioGroupSecondary

string

The secondary radio group associated with this operation

additionalCoordinationInformation

string

Additional coordination information

availablePriorities

OperationPriority[]

The list of available priorities to select from

patientName

string

The name of the patient if any

patientUID

string

The personal number of the patient if any

vehicleStatus

VehicleStatus

The current vehicle status in this operation

destinationSiteLocation

DestinationSiteLocation

The location of the destination

breakpointLocation

DestinationControlPointLocation

The location of the breakpoint if any

availableHospitalLocations

HospitalLocation[]

The list of available hospitals to select from

header1

string

The case index 2

header2

string

The case index 3

eventInfo

string

The event description

caseInfo

string

The case info comment

selectedHospital

number

The id of the selected hospital [inside available hospitals]

selectedPriority

number

The id of the selected priority [inside available priority]

operationState

OperationState

the current state of the operation (ACTIVE, AVAILABLE, COMPLETE)

leavePatientLocation

LeavePatientLocation

The location of the leave-patient (‘toCity’, etc)

assignedResourceMissionNo

string

The Assigned Resource Mission No value from SOS (minimum Vehicle Services version: 5.2.2, otherwise always undefined)

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)

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

data

any

JSON object

Returns

Operation