Class EraseRestImpl

  • All Implemented Interfaces:
    EraseRest

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

      • EraseRestImpl

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

      • processLogicalId

        public void processLogicalId​(EraseDTO dto,
                                     FHIRPathEvaluator evaluator,
                                     FHIRPathEvaluator.EvaluationContext evaluationContext,
                                     List<OperationOutcome.Issue> issues,
                                     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,
                                   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,
                                  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,
                                   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.