From 1fabe0ac94f93c55bca9ea7620e22696465d347b Mon Sep 17 00:00:00 2001 From: Marc Hadley Date: Tue, 29 Aug 2023 18:05:09 -0400 Subject: [PATCH] Make a few RIF things public so the X12 exporter can re-use them --- .../org/mitre/synthea/export/rif/BeneficiaryExporter.java | 2 +- src/main/java/org/mitre/synthea/export/rif/RIFExporter.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/mitre/synthea/export/rif/BeneficiaryExporter.java b/src/main/java/org/mitre/synthea/export/rif/BeneficiaryExporter.java index 71af5d2a43..fe00b0ea90 100644 --- a/src/main/java/org/mitre/synthea/export/rif/BeneficiaryExporter.java +++ b/src/main/java/org/mitre/synthea/export/rif/BeneficiaryExporter.java @@ -29,7 +29,7 @@ public class BeneficiaryExporter extends RIFExporter { Config.getAsLong("exporter.bfd.bene_id_start", -1)); public static final AtomicReference nextHicn = new AtomicReference<>( HICN.parse(Config.get("exporter.bfd.hicn_start", "T00000000A"))); - protected static final AtomicReference nextMbi = new AtomicReference<>( + public static final AtomicReference nextMbi = new AtomicReference<>( MBI.parse(Config.get("exporter.bfd.mbi_start", "1S00-A00-AA00"))); // https://aspe.hhs.gov/sites/default/files/documents/f81aafbba0b331c71c6e8bc66512e25d/medicare-beneficiary-enrollment-ib.pdf private static final double PART_B_ENROLLEE_PERCENT = 92.5; diff --git a/src/main/java/org/mitre/synthea/export/rif/RIFExporter.java b/src/main/java/org/mitre/synthea/export/rif/RIFExporter.java index 536e7ceb01..61a557d781 100644 --- a/src/main/java/org/mitre/synthea/export/rif/RIFExporter.java +++ b/src/main/java/org/mitre/synthea/export/rif/RIFExporter.java @@ -36,7 +36,7 @@ public abstract class RIFExporter { Config.getAsLong("exporter.bfd.clm_grp_id_start", -1)); protected static final String BB2_BENE_ID = "BB2_BENE_ID"; protected static final String BB2_HIC_ID = "BB2_HIC_ID"; - protected static final String BB2_MBI = "BB2_MBI"; + public static final String BB2_MBI = "BB2_MBI"; protected static final String COVERAGE_START_DATE = "BB2_COVERAGE_START_DATE"; protected static final CLIA[] cliaLabNumbers = initCliaLabNumbers(); protected static final long CLAIM_CUTOFF = parseSimpleDate( @@ -66,7 +66,7 @@ static String bb2DateFromTimestamp(long time) { return dateFormat.format(new Date(time)); } - enum ClaimType { + public enum ClaimType { CARRIER, OUTPATIENT, INPATIENT, @@ -85,7 +85,7 @@ static boolean isVAorIHS(HealthRecord.Encounter encounter) { return isVA || isIHSCenter; } - static Set getClaimTypes(HealthRecord.Encounter encounter) { + public static Set getClaimTypes(HealthRecord.Encounter encounter) { Set types = new HashSet<>(); boolean isSNF = encounter.type.equals(HealthRecord.EncounterType.SNF.toString()); boolean isHome = encounter.type.equals(HealthRecord.EncounterType.HOME.toString());