Class FHIROperationUtil


  • public final class FHIROperationUtil
    extends Object
    • Method Detail

      • init

        public static void init()
        Initializes the FHIR Operation Utility so disallowedOperations are loaded one time. First, the code checks the environment operations. Second, the code checks the configuration. This is initialized one time for the system.
      • getOutputParameters

        public static Parameters getOutputParameters​(Resource resource)
        Generates an output Parameter resource
        Parameters:
        resource -
        Returns:
      • getOutputParameters

        public static Parameters getOutputParameters​(String name,
                                                     Resource resource)
        generates an output parameter with a specific name.
        Parameters:
        name -
        resource -
        Returns:
      • hasSingleResourceOutputParameter

        public static boolean hasSingleResourceOutputParameter​(Parameters parameters)
      • buildExceptionWithIssue

        public static FHIROperationException buildExceptionWithIssue​(String msg,
                                                                     IssueType issueType)
        Helper method to generate a FHIROperationException with a fixed IssueType
        Parameters:
        msg - the message to be packed in the exception
        issueType - the type of the issue
        Returns:
      • buildExceptionWithIssue

        public static FHIROperationException buildExceptionWithIssue​(String msg,
                                                                     IssueType issueType,
                                                                     Throwable cause)
        Helper method to generate a FHIROperationException with a fixed IssueType
        Parameters:
        msg - the message to be packed in the exception
        issueType - the type of the issue
        cause - the throwable that causes this OperationOutcome/Exception
        Returns: