Skip to content

Commit

Permalink
Moved oml coding contanst to hapi helper
Browse files Browse the repository at this point in the history
  • Loading branch information
basiliskus committed May 9, 2024
1 parent 69a8e7d commit 1a27000
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import gov.hhs.cdc.trustedintermediary.etor.ruleengine.FhirResource;
import gov.hhs.cdc.trustedintermediary.etor.ruleengine.transformation.CustomFhirTransformation;
import gov.hhs.cdc.trustedintermediary.external.hapi.HapiHelper;
import gov.hhs.cdc.trustedintermediary.hl7fhir.FhirValuesHelper;
import gov.hhs.cdc.trustedintermediary.wrappers.MetricMetadata;
import java.util.Map;
import org.hl7.fhir.r4.model.Bundle;
Expand All @@ -19,7 +18,7 @@ public class convertToOmlOrder implements CustomFhirTransformation {
@Override
public void transform(FhirResource<?> resource, Map<String, String> args) {
Bundle bundle = (Bundle) resource.getUnderlyingResource();
HapiHelper.setMessageTypeCoding(bundle, FhirValuesHelper.OML_CODING);
HapiHelper.setMessageTypeCoding(bundle, HapiHelper.OML_CODING);
metadata.put(bundle.getId(), EtorMetadataStep.ORDER_CONVERTED_TO_OML);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ public class HapiHelper {

private HapiHelper() {}

public static final Coding OML_CODING =
new Coding(
"http://terminology.hl7.org/CodeSystem/v2-0003",
"O21",
"OML - Laboratory order");

/**
* Returns a {@link Stream} of FHIR resources inside the provided {@link Bundle} that match the
* given resource type.
Expand Down

0 comments on commit 1a27000

Please sign in to comment.