Class EraseRestImpl

  • All Implemented Interfaces:
    EraseRest

    public class EraseRestImpl
    extends java.lang.Object
    implements EraseRest
    Erase Rest Implementation implements the parameters processing, authorization and the turning on/off of the feature.
    • Constructor Detail

      • EraseRestImpl

        public EraseRestImpl​(java.lang.String method,
                             javax.ws.rs.core.SecurityContext ctx,
                             Parameters parameters,
                             java.lang.Class<? extends Resource> rt,
                             java.lang.String logicalId,
                             CompartmentHelper compartmentHelper)
        create the Erase Rest instance.
        Parameters:
        method -
        ctx -
        parameters -
        rt -
        logicalId -
    • Method Detail

      • processLogicalId

        public void processLogicalId​(EraseDTO dto,
                                     FHIRPathEvaluator evaluator,
                                     FHIRPathEvaluator.EvaluationContext evaluationContext,
                                     java.util.List<OperationOutcome.Issue> issues,
                                     java.lang.String logicalId)
        processes the 'id' from the parameters object in the evaluation context.
        Parameters:
        dto - the data transfer object that is to be sent to the DAO
        evaluator - the FHIRPath Evaluator that is used to evaluate the value
        evaluationContext - the context which includes the input Parameters object
        issues - the aggregate issues list.
        logicalId - the id that identifies the current resource.
      • processVersion

        public void processVersion​(EraseDTO dto,
                                   FHIRPathEvaluator evaluator,
                                   FHIRPathEvaluator.EvaluationContext evaluationContext,
                                   java.util.List<OperationOutcome.Issue> issues)
        processes the 'version' from the parameters object in the evaluation context.
        Parameters:
        dto - the data transfer object that is to be sent to the DAO
        evaluator - the FHIRPath Evaluator that is used to evaluate the value
        evaluationContext - the context which includes the input Parameters object
        issues - the aggregate issues list.
      • processReason

        public void processReason​(EraseDTO dto,
                                  FHIRPathEvaluator evaluator,
                                  FHIRPathEvaluator.EvaluationContext evaluationContext,
                                  java.util.List<OperationOutcome.Issue> issues)
        processes the 'reason' from the parameters object in the evaluation context.
        Parameters:
        dto - the data transfer object that is to be sent to the DAO
        evaluator - the FHIRPath Evaluator that is used to evaluate the value
        evaluationContext - the context which includes the input Parameters object
        issues - the aggregate issues list.
      • processPatient

        public void processPatient​(EraseDTO dto,
                                   FHIRPathEvaluator evaluator,
                                   FHIRPathEvaluator.EvaluationContext evaluationContext,
                                   java.util.List<OperationOutcome.Issue> issues)
        processes the 'patient' from the parameters object in the evaluation context.
        Parameters:
        dto - the data transfer object that is to be sent to the DAO
        evaluator - the FHIRPath Evaluator that is used to evaluate the value
        evaluationContext - the context which includes the input Parameters object
        issues - the aggregate issues list.
      • logException

        public void logException​(java.util.List<OperationOutcome.Issue> issues,
                                 java.lang.Exception e)
        encapsulating repeated logic
        Parameters:
        issues -
        e -