Skip to main content

Emergency Mgmt Ingest Events

Kenkai SDK Emergency Mgmt module consists of events for Emergency Management and Response platforms.

List of Events

Event NameTypeDescription
IncidentincidentTrack event regarding details of an incident.
AmbulanceambulanceTrack event regarding a ambulance dispatch and denial.


Incident Event

To log events regarding details of an incident. Such as type, severity, location, etc.

Format

ParamUsabilityFormatEnum ValuesDescription
actionREQUIREDSTRINGview, add, update, remove, otheraction for the incident event
patient_idOPTIONALSTRING---Id of the Patient
incident_idREQUIREDSTRING---Id of the incident in the event
ageOPTIONALINTEGER---Age of the patient in the event.
blood_groupOPTIONALSTRING---Blood Group of the patient in the event.
genderOPTIONALSTRING---Gender of the patient in the event.
contact_idOPTIONALSTRING---Contact id linked to the incident event
typeREQUIREDSTRINGemergency, grievance, non_emergency, transfer, follow_up, service_offering, customer_support, otherType of the incident
sub_typeOPTIONALSTRING---Sub-type of the incident
categoryOPTIONALARRAY(STRING)---List of categories attached to the incident
languageOPTIONALSTRING---Language selected for the chief complaints questions
is_duplicate_incidentOPTIONALBOOLEAN---Is a duplicate incident? Already reported
is_sms_set_locationOPTIONALBOOLEAN---Is location confirmed via SMS
severityOPTIONALSTRING---Severity of the location
chief_complaints_listOPTIONALARRAY (STRING)---List of Chief Complaints and corresponding questions
site_idOPTIONALSTRING---Site Id for the address object
address_nameOPTIONALSTRING---name for the address object
countryOPTIONALSTRING---country for the address object
region_stateOPTIONALSTRING---region_state for the address object
districtOPTIONALSTRING---district for the address object
sub_districtOPTIONALSTRING---sub_district for the address object
city_townOPTIONALSTRING---city_town for the address object
street_addressOPTIONALSTRING---street_address for the address object
landmarkOPTIONALSTRING---landmark for the address object
coordinatesOPTIONALARRAY (DOUBLE)---coordinates for the address object
facility_idOPTIONALSTRING---Facility id for the incident event
ambulance_ids_listOPTIONALARRAY (STRING)---Ambulance list for the incident event
schedule_timeOPTIONALLONG---Schedule time for the incident event
statusOPTIONALSTRING---Status for the incident event
resolutionOPTIONALSTRING---Resolution for the incident event
summaryOPTIONALSTRING---Summary for the incident event
remarksOPTIONALSTRING---Remarks for the incident event
metaOPTIONALANY---Any additional value that is sent with the log.

Usage

    let incidentEvent = {
action: EmergencyMgmtItemAction.Add,
patient_id: "patientId",
age: 20,
blood_group: "A+",
site_id: "siteId",
facility_id: "facilityId",
incident_id: "incidentId",
contact_id: "contactId",
type: IncidentType.Emergency,
language: Language.English,
is_duplicate_incident: false,
severity: "some Value",
chief_complaints_list: ["Some Complaint"],
ambulance_id: ["ambulanceId"],
schedule_time: Date.now(),
status: "Some Status",
}
EmergencyMgmt.logIngestEvent(EmergencyMgmtEventType.Incident, incidentEvent)


Ambulance Event

To log events related to ambulance dispatch and denial.

Format

ParamUsabilityFormatEnum ValuesDescription
incident_idOPTIONALSTRING---Id for the incident for the ambulance event
contact_idOPTIONALSTRING---Id for the contact for the ambulance event
actionREQUIREDSTRINGview, dispatch, denial, otherAction performed on the ambulance event
ambulance_idREQUIREDSTRING---Id of the ambulance
driver_idREQUIREDSTRING---Driver id for the ambulance
emso_idOPTIONALSTRING---ESO id for the ambulance
typeREQUIREDSTRING---type for the ambulance
distance_from_incidentOPTIONALFLOAT---Ambulance distance from incident
statusREQUIREDSTRINGavailable, busy, maintenance, otherStatus of the ambulance
etaOPTIONALFLOAT---ETA for the ambulance to reach incident location
gps_datetimeOPTIONALSTRING---GPS datetime for the ambulance
locationOPTIONALSTRING---Location for the ambulance
destination_site_idOPTIONALSTRING---Site Id for the address object
destination_nameOPTIONALSTRING---name for the address object
destination_countryOPTIONALSTRING---country for the address object
destination_region_stateOPTIONALSTRING---region_state for the address object
destination_districtOPTIONALSTRING---district for the address object
destination_sub_districtOPTIONALSTRING---sub_district for the address object
destination_city_townOPTIONALSTRING---city_town for the address object
destination_street_addressOPTIONALSTRING---street_address for the address object
destination_landmarkOPTIONALSTRING---landmark for the address object
destination_coordinatesOPTIONALARRAY (DOUBLE)---coordinates for the address object
pickup_site_idOPTIONALSTRING---Site Id for the address object
pickup_nameOPTIONALSTRING---name for the address object
pickup_countryOPTIONALSTRING---country for the address object
pickup_region_stateOPTIONALSTRING---region_state for the address object
pickup_districtOPTIONALSTRING---district for the address object
pickup_sub_districtOPTIONALSTRING---sub_district for the address object
pickup_city_townOPTIONALSTRING---city_town for the address object
pickup_street_addressOPTIONALSTRING---street_address for the address object
pickup_landmarkOPTIONALSTRING---landmark for the address object
pickup_coordinatesOPTIONALARRAY (DOUBLE)---coordinates for the address object
denial_authorOPTIONALSTRING---author or denial object
denial_reasonREQUIREDSTRING---Reason for denial
denial_remarksOPTIONALSTRING---Remarks for denial
metaOPTIONALANY---Any additional value that is sent with the log

Usage

    let ambulanceEvent = {
action: EmergencyMgmtItemAction.Dispatch,
ambulance_id: "ambulanceId",
driver_id: "driverId",
emso_id: "emsoId",
type: "Some Type",
distance_from_incident: 10,
gps_datetime: "2025-01-01T12:00:27.87+02:00",
status: AmbulanceStatus.Available,
eta: 10,
pickup_country: "siteId",
destination_site_id: "siteId",
denial_reason: "Some reason"
}

EmergencyMgmt.logIngestEvent(EmergencyMgmtEventType.Ambulance, ambulanceEvent)