Package com.ibm.fhir.notification.util
Class FHIRNotificationUtil
- java.lang.Object
-
- com.ibm.fhir.notification.util.FHIRNotificationUtil
-
public class FHIRNotificationUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description FHIRNotificationUtil()
-
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)
-
-
-
Method Detail
-
toNotificationEvent
public static FHIRNotificationEvent toNotificationEvent(String jsonString)
-
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
-
-