Class MedicalTechnologyUsagePayload
java.lang.Object
application.presenter.event.model.medicaltechnology.payload.MedicalTechnologyUsagePayload
MedicalTechnologyEvent
event payload.-
Field Summary
-
Constructor Summary
ConstructorDescriptionMedicalTechnologyUsagePayload
(String medicalTechnologyID, MedicalTechnologyTypePayload medicalTechnologyType, boolean inUse) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the medical technology id involved in the event.Get the medical technology type involved in the event.boolean
isInUse()
State if the medical technology is being used.
-
Field Details
-
MEDICAL_TECHNOLOGY_USAGE_EVENT_KEY
Medical Technology Usage event key.- See Also:
-
-
Constructor Details
-
MedicalTechnologyUsagePayload
public MedicalTechnologyUsagePayload(String medicalTechnologyID, MedicalTechnologyTypePayload medicalTechnologyType, boolean inUse) Default constructor.- Parameters:
medicalTechnologyID
- the medical technology id.medicalTechnologyType
- the type of the medical technology.inUse
- if the medical technology is in use.
-
-
Method Details
-
getMedicalTechnologyID
Get the medical technology id involved in the event.- Returns:
- the medical technology id.
-
getMedicalTechnologyType
Get the medical technology type involved in the event.- Returns:
- the medical technology type.
-
isInUse
public boolean isInUse()State if the medical technology is being used.- Returns:
- true if the involved medical technology is in use, false otherwise.
-