@cosyte/synth 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1951,12 +1951,12 @@ var PROCEDURE_MODIFIERS = Object.freeze(["25", "59", "76", "GT"]);
1951
1951
  var PLACES_OF_SERVICE = Object.freeze(["11", "22", "21", "12", "49"]);
1952
1952
  var DIAGNOSES = Object.freeze(
1953
1953
  [
1954
- { code: "J20.9", label: "acute bronchitis, unspecified" },
1955
- { code: "E11.9", label: "type 2 diabetes mellitus without complications" },
1954
+ { code: "J209", label: "acute bronchitis, unspecified" },
1955
+ { code: "E119", label: "type 2 diabetes mellitus without complications" },
1956
1956
  { code: "I10", label: "essential (primary) hypertension" },
1957
- { code: "M54.5", label: "low back pain" },
1958
- { code: "R07.9", label: "chest pain, unspecified" },
1959
- { code: "Z00.00", label: "general adult medical exam without abnormal findings" }
1957
+ { code: "M545", label: "low back pain" },
1958
+ { code: "R079", label: "chest pain, unspecified" },
1959
+ { code: "Z0000", label: "general adult medical exam without abnormal findings" }
1960
1960
  ].map((entry) => Object.freeze(entry))
1961
1961
  );
1962
1962
  var REVENUE_CODES = Object.freeze(
@@ -2364,7 +2364,8 @@ function generate271(options) {
2364
2364
  serviceTypeCodes: serviceTypes,
2365
2365
  inPlanNetwork: "Y",
2366
2366
  monetaryAmount: dec2(money(rng.int(500, 5e3))),
2367
- percent: dec2(String(rng.pick([80, 90, 100])))
2367
+ percent: dec2(rng.pick([".8", ".9", "1"]))
2368
+ // EB-08 is a decimal fraction
2368
2369
  }
2369
2370
  ]
2370
2371
  }
@@ -2515,7 +2516,8 @@ function claimSegment(rng, minimal) {
2515
2516
  field("E1", "03"),
2516
2517
  // 03 = NDC
2517
2518
  field("D7", drug.ndc),
2518
- field("E7", String(rng.int(30, 90))),
2519
+ field("E7", String(rng.int(30, 90) * 1e3)),
2520
+ // 442-E7 carries three implied decimals
2519
2521
  field("D5", String(rng.pick([30, 60, 90]))),
2520
2522
  field("D8", rng.pick(DAW_CODES))
2521
2523
  ]