Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Made changes based on PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
basiliskus committed Mar 25, 2024
1 parent 2f52948 commit 54bb2e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package gov.hhs.cdc.trustedintermediary.etor.ruleengine;

/**
* This interface represents a FHIR resource. It's used as a wrapper to decouple dependency on third
* party libraries.
*
* @param <T> the type of the underlying resource
*/
public interface FhirResource<T> {
T getUnderlyingResource();
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package gov.hhs.cdc.trustedintermediary.etor.ruleengine;

import gov.hhs.cdc.trustedintermediary.wrappers.Logger;
import gov.hhs.cdc.trustedintermediary.wrappers.formatter.Formatter;
import gov.hhs.cdc.trustedintermediary.wrappers.formatter.FormatterProcessingException;
import gov.hhs.cdc.trustedintermediary.wrappers.formatter.TypeReference;
Expand All @@ -13,7 +12,6 @@
public class RuleLoader {
private static final RuleLoader INSTANCE = new RuleLoader();
@Inject Formatter formatter;
@Inject Logger logger;

private RuleLoader() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public class ValidationRule implements Rule {
private List<String> conditions;
private List<String> validations;

/**
* Do not delete this constructor! It is used for JSON deserialization when loading rules from a
* file.
*/
public ValidationRule() {}

public ValidationRule(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import gov.hhs.cdc.trustedintermediary.etor.ruleengine.FhirResource;
import org.hl7.fhir.instance.model.api.IBaseResource;

/** An implementation of {@link FhirResource} to use as a wrapper around HAPI FHIR IBaseResource */
public class HapiFhirResource implements FhirResource<IBaseResource> {

private final IBaseResource innerResource;
Expand Down

0 comments on commit 54bb2e9

Please sign in to comment.