Package com.ibm.fhir.server.notification
Class FHIRNotificationUtil
- java.lang.Object
 - 
- com.ibm.fhir.server.notification.FHIRNotificationUtil
 
 
- 
public class FHIRNotificationUtil extends java.lang.ObjectFHIRNotificationUtil supports serializing and deserializing the FHIRNotificationEvent based on conditions. 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringtoJsonString(FHIRNotificationEvent event, boolean includeResource)Serializes the notification event into a JSON string.static FHIRNotificationEventtoNotificationEvent(java.lang.String jsonString)serialize the FHIRNotificationEvent 
 - 
 
- 
- 
Method Detail
- 
toNotificationEvent
public static FHIRNotificationEvent toNotificationEvent(java.lang.String jsonString)
serialize the FHIRNotificationEvent- Parameters:
 jsonString- the input string- Returns:
 - FHIRNotificationEvent without the Resource
 
 
- 
toJsonString
public static java.lang.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
 
 - 
 
 -