Skip to content

Commit

Permalink
Make a few RIF things public so the X12 exporter can re-use them
Browse files Browse the repository at this point in the history
  • Loading branch information
hadleynet committed Aug 29, 2023
1 parent 78d7d8d commit 1fabe0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class BeneficiaryExporter extends RIFExporter {
Config.getAsLong("exporter.bfd.bene_id_start", -1));
public static final AtomicReference<HICN> nextHicn = new AtomicReference<>(
HICN.parse(Config.get("exporter.bfd.hicn_start", "T00000000A")));
protected static final AtomicReference<MBI> nextMbi = new AtomicReference<>(
public static final AtomicReference<MBI> 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;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/mitre/synthea/export/rif/RIFExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -66,7 +66,7 @@ static String bb2DateFromTimestamp(long time) {
return dateFormat.format(new Date(time));
}

enum ClaimType {
public enum ClaimType {
CARRIER,
OUTPATIENT,
INPATIENT,
Expand All @@ -85,7 +85,7 @@ static boolean isVAorIHS(HealthRecord.Encounter encounter) {
return isVA || isIHSCenter;
}

static Set<ClaimType> getClaimTypes(HealthRecord.Encounter encounter) {
public static Set<ClaimType> getClaimTypes(HealthRecord.Encounter encounter) {
Set<ClaimType> types = new HashSet<>();
boolean isSNF = encounter.type.equals(HealthRecord.EncounterType.SNF.toString());
boolean isHome = encounter.type.equals(HealthRecord.EncounterType.HOME.toString());
Expand Down

0 comments on commit 1fabe0a

Please sign in to comment.