Package com.ibm.fhir.server.notification
Class FHIRNotificationUtil
- java.lang.Object
-
- com.ibm.fhir.server.notification.FHIRNotificationUtil
-
public class FHIRNotificationUtil extends Object
FHIRNotificationUtil supports serializing and deserializing the FHIRNotificationEvent based on conditions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toJsonString(FHIRNotificationEvent event, boolean includeResource)
Serializes the notification event into a JSON string.static FHIRNotificationEvent
toNotificationEvent(String jsonString)
serialize the FHIRNotificationEvent
-
-
-
Method Detail
-
toNotificationEvent
public static FHIRNotificationEvent toNotificationEvent(String jsonString)
serialize the FHIRNotificationEvent- Parameters:
jsonString
- the input string- Returns:
- FHIRNotificationEvent without the Resource
-
toJsonString
public static String toJsonString(FHIRNotificationEvent event, boolean includeResource) throws FHIRException
Serializes the notification event into a JSON string.- Parameters:
event
- the FHIRNotificationEvent structure to be serializedincludeResource
- a flag that controls whether or not the resource object within the event structure should be included in the serialized message.- Returns:
- the serialized message as a String
- Throws:
FHIRException
-
-