Class PayloadPersistenceHelper


  • public class PayloadPersistenceHelper
    extends Object
    Collection of helper methods related to the persistence of FHIR resource payload data
    • Constructor Detail

      • PayloadPersistenceHelper

        public PayloadPersistenceHelper()
    • Method Detail

      • parse

        public static <T extends Resource> T parse​(Class<T> resourceType,
                                                   InputStream in,
                                                   List<String> elements)
        Parse the given stream, using elements if needed
        Type Parameters:
        T -
        Parameters:
        resourceType -
        in -
        elements -
        Returns:
      • getCurrentInstant

        public static Instant getCurrentInstant()
        Get the current time which can be used for the lastUpdated field
        Returns:
        current time in UTC