Class FHIRNotificationUtil


  • public class FHIRNotificationUtil
    extends java.lang.Object
    FHIRNotificationUtil supports serializing and deserializing the FHIRNotificationEvent based on conditions.
    • 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 serialized
        includeResource - 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