@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.
@@ -1954,12 +1954,12 @@ var PROCEDURE_MODIFIERS = Object.freeze(["25", "59", "76", "GT"]);
1954
1954
  var PLACES_OF_SERVICE = Object.freeze(["11", "22", "21", "12", "49"]);
1955
1955
  var DIAGNOSES = Object.freeze(
1956
1956
  [
1957
- { code: "J20.9", label: "acute bronchitis, unspecified" },
1958
- { code: "E11.9", label: "type 2 diabetes mellitus without complications" },
1957
+ { code: "J209", label: "acute bronchitis, unspecified" },
1958
+ { code: "E119", label: "type 2 diabetes mellitus without complications" },
1959
1959
  { code: "I10", label: "essential (primary) hypertension" },
1960
- { code: "M54.5", label: "low back pain" },
1961
- { code: "R07.9", label: "chest pain, unspecified" },
1962
- { code: "Z00.00", label: "general adult medical exam without abnormal findings" }
1960
+ { code: "M545", label: "low back pain" },
1961
+ { code: "R079", label: "chest pain, unspecified" },
1962
+ { code: "Z0000", label: "general adult medical exam without abnormal findings" }
1963
1963
  ].map((entry) => Object.freeze(entry))
1964
1964
  );
1965
1965
  var REVENUE_CODES = Object.freeze(
@@ -2367,7 +2367,8 @@ function generate271(options) {
2367
2367
  serviceTypeCodes: serviceTypes,
2368
2368
  inPlanNetwork: "Y",
2369
2369
  monetaryAmount: dec2(money(rng.int(500, 5e3))),
2370
- percent: dec2(String(rng.pick([80, 90, 100])))
2370
+ percent: dec2(rng.pick([".8", ".9", "1"]))
2371
+ // EB-08 is a decimal fraction
2371
2372
  }
2372
2373
  ]
2373
2374
  }
@@ -2518,7 +2519,8 @@ function claimSegment(rng, minimal) {
2518
2519
  field("E1", "03"),
2519
2520
  // 03 = NDC
2520
2521
  field("D7", drug.ndc),
2521
- field("E7", String(rng.int(30, 90))),
2522
+ field("E7", String(rng.int(30, 90) * 1e3)),
2523
+ // 442-E7 carries three implied decimals
2522
2524
  field("D5", String(rng.pick([30, 60, 90]))),
2523
2525
  field("D8", rng.pick(DAW_CODES))
2524
2526
  ]