@cosyte/synth 0.1.0 → 0.1.1

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/README.md +19 -19
  3. package/dist/astm/index.cjs.map +1 -1
  4. package/dist/astm/index.d.cts +6 -6
  5. package/dist/astm/index.d.ts +6 -6
  6. package/dist/astm/index.mjs.map +1 -1
  7. package/dist/ccda/index.cjs.map +1 -1
  8. package/dist/ccda/index.d.cts +2 -2
  9. package/dist/ccda/index.d.ts +2 -2
  10. package/dist/ccda/index.mjs.map +1 -1
  11. package/dist/deid/index.cjs.map +1 -1
  12. package/dist/deid/index.d.cts +3 -3
  13. package/dist/deid/index.d.ts +3 -3
  14. package/dist/deid/index.mjs.map +1 -1
  15. package/dist/fhir/index.cjs.map +1 -1
  16. package/dist/fhir/index.d.cts +1 -1
  17. package/dist/fhir/index.d.ts +1 -1
  18. package/dist/fhir/index.mjs.map +1 -1
  19. package/dist/hl7/index.cjs.map +1 -1
  20. package/dist/hl7/index.d.cts +3 -3
  21. package/dist/hl7/index.d.ts +3 -3
  22. package/dist/hl7/index.mjs.map +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +5 -5
  26. package/dist/index.d.ts +5 -5
  27. package/dist/index.mjs +1 -1
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/ncpdp/index.cjs.map +1 -1
  30. package/dist/ncpdp/index.d.cts +2 -2
  31. package/dist/ncpdp/index.d.ts +2 -2
  32. package/dist/ncpdp/index.mjs.map +1 -1
  33. package/dist/{providers-BQtPk3PN.d.cts → providers-DcPrqmp5.d.cts} +2 -2
  34. package/dist/{providers-BQtPk3PN.d.ts → providers-DcPrqmp5.d.ts} +2 -2
  35. package/dist/{quirk-C_lZrspq.d.cts → quirk-CilFUhwX.d.cts} +1 -1
  36. package/dist/{quirk-Bzx9g8KG.d.ts → quirk-DmqYw3Vk.d.ts} +1 -1
  37. package/dist/x12/index.cjs.map +1 -1
  38. package/dist/x12/index.d.cts +3 -3
  39. package/dist/x12/index.d.ts +3 -3
  40. package/dist/x12/index.mjs.map +1 -1
  41. package/package.json +33 -43
@@ -1,5 +1,5 @@
1
- import { S as SyntheticName, R as Rng, C as Corpus } from '../providers-BQtPk3PN.cjs';
2
- import { Q as QuirkDescriptor, S as SynthProfile, a as QuirkArtifact, b as QuirkRoundTripResult } from '../quirk-C_lZrspq.cjs';
1
+ import { S as SyntheticName, R as Rng, C as Corpus } from '../providers-DcPrqmp5.cjs';
2
+ import { Q as QuirkDescriptor, S as SynthProfile, a as QuirkArtifact, b as QuirkRoundTripResult } from '../quirk-CilFUhwX.cjs';
3
3
 
4
4
  /**
5
5
  * Spec-clean ASTM (E1394 / CLSI LIS02) message generation: the `H`/`P`/`O`/`R`/`C`/`L` record report,
@@ -10,7 +10,7 @@ import { Q as QuirkDescriptor, S as SynthProfile, a as QuirkArtifact, b as Quirk
10
10
  *
11
11
  * A framed **E1381 / CLSI LIS01** variant is also offered ({@link generateAstmResultFramed}) via
12
12
  * `composeAstmFrames`, which frames each record into `<STX> FN text <ETB|ETX> CS <CR><LF>` with the
13
- * **modulo-256 checksum and the `0`–`7` frame number computed by the parser**, never faked. Both round
13
+ * **modulo-256 checksum and the `0` to `7` frame number computed by the parser**, never faked. Both round
14
14
  * trip through `@cosyte/astm` cleanly (`parseAstmRecords` / `parseFramedAstm`: see `./round-trip`).
15
15
  *
16
16
  * Every value at a PHI-bearing locus (the `P` record's name / DOB / practice+lab IDs) is
@@ -24,7 +24,7 @@ import { Q as QuirkDescriptor, S as SynthProfile, a as QuirkArtifact, b as Quirk
24
24
  interface GenerateAstmOptions {
25
25
  /** The seed (deterministic: same seed yields a byte-identical message). */
26
26
  readonly seed: number;
27
- /** How many `R` (result) records to emit. Defaults to a seeded 1–4. */
27
+ /** How many `R` (result) records to emit. Defaults to a seeded 1 to 4. */
28
28
  readonly resultCount?: number;
29
29
  /** Whether to append a `C` (comment) record after the results. Defaults to `true`. */
30
30
  readonly comment?: boolean;
@@ -61,7 +61,7 @@ declare function generateAstmOrder(options: GenerateAstmOptions): string;
61
61
  /**
62
62
  * Generate a spec-clean **framed** ASTM result message: the same `H`/`P`/`O`/`R`…/`C`/`L` records,
63
63
  * wrapped in the **E1381 / CLSI LIS01** frame envelope (`<STX> FN text <ETB|ETX> CS <CR><LF>`) via
64
- * `@cosyte/astm`'s `composeAstmFrames`. The **modulo-256 checksum and the `0`–`7` frame number are
64
+ * `@cosyte/astm`'s `composeAstmFrames`. The **modulo-256 checksum and the `0` to `7` frame number are
65
65
  * computed by the parser** (never hand-written), and a record over 240 bytes is split across frames,
66
66
  * so the bytes round-trip through `parseFramedAstm` with zero frame **and** record warnings (see
67
67
  * `./round-trip`). Each record is framed independently (one `ETX`-closed run per record), mirroring what
@@ -382,7 +382,7 @@ declare const astmQuirkProfile: SynthProfile;
382
382
  * synthetic-by-construction. The practice- and laboratory-assigned patient IDs are
383
383
  * minted independently, so they stay **distinct**.
384
384
  * - **Framing (E1381):** `generateAstmResultFramed` via `composeAstmFrames`, the modulo-256 checksum
385
- * and the `0`–`7` frame number are **computed by the parser, never faked**, and the bytes round-trip
385
+ * and the `0` to `7` frame number are **computed by the parser, never faked**, and the bytes round-trip
386
386
  * through `parseFramedAstm` with zero frame **and** record warnings.
387
387
  *
388
388
  * @module
@@ -1,5 +1,5 @@
1
- import { S as SyntheticName, R as Rng, C as Corpus } from '../providers-BQtPk3PN.js';
2
- import { Q as QuirkDescriptor, S as SynthProfile, a as QuirkArtifact, b as QuirkRoundTripResult } from '../quirk-Bzx9g8KG.js';
1
+ import { S as SyntheticName, R as Rng, C as Corpus } from '../providers-DcPrqmp5.js';
2
+ import { Q as QuirkDescriptor, S as SynthProfile, a as QuirkArtifact, b as QuirkRoundTripResult } from '../quirk-DmqYw3Vk.js';
3
3
 
4
4
  /**
5
5
  * Spec-clean ASTM (E1394 / CLSI LIS02) message generation: the `H`/`P`/`O`/`R`/`C`/`L` record report,
@@ -10,7 +10,7 @@ import { Q as QuirkDescriptor, S as SynthProfile, a as QuirkArtifact, b as Quirk
10
10
  *
11
11
  * A framed **E1381 / CLSI LIS01** variant is also offered ({@link generateAstmResultFramed}) via
12
12
  * `composeAstmFrames`, which frames each record into `<STX> FN text <ETB|ETX> CS <CR><LF>` with the
13
- * **modulo-256 checksum and the `0`–`7` frame number computed by the parser**, never faked. Both round
13
+ * **modulo-256 checksum and the `0` to `7` frame number computed by the parser**, never faked. Both round
14
14
  * trip through `@cosyte/astm` cleanly (`parseAstmRecords` / `parseFramedAstm`: see `./round-trip`).
15
15
  *
16
16
  * Every value at a PHI-bearing locus (the `P` record's name / DOB / practice+lab IDs) is
@@ -24,7 +24,7 @@ import { Q as QuirkDescriptor, S as SynthProfile, a as QuirkArtifact, b as Quirk
24
24
  interface GenerateAstmOptions {
25
25
  /** The seed (deterministic: same seed yields a byte-identical message). */
26
26
  readonly seed: number;
27
- /** How many `R` (result) records to emit. Defaults to a seeded 1–4. */
27
+ /** How many `R` (result) records to emit. Defaults to a seeded 1 to 4. */
28
28
  readonly resultCount?: number;
29
29
  /** Whether to append a `C` (comment) record after the results. Defaults to `true`. */
30
30
  readonly comment?: boolean;
@@ -61,7 +61,7 @@ declare function generateAstmOrder(options: GenerateAstmOptions): string;
61
61
  /**
62
62
  * Generate a spec-clean **framed** ASTM result message: the same `H`/`P`/`O`/`R`…/`C`/`L` records,
63
63
  * wrapped in the **E1381 / CLSI LIS01** frame envelope (`<STX> FN text <ETB|ETX> CS <CR><LF>`) via
64
- * `@cosyte/astm`'s `composeAstmFrames`. The **modulo-256 checksum and the `0`–`7` frame number are
64
+ * `@cosyte/astm`'s `composeAstmFrames`. The **modulo-256 checksum and the `0` to `7` frame number are
65
65
  * computed by the parser** (never hand-written), and a record over 240 bytes is split across frames,
66
66
  * so the bytes round-trip through `parseFramedAstm` with zero frame **and** record warnings (see
67
67
  * `./round-trip`). Each record is framed independently (one `ETX`-closed run per record), mirroring what
@@ -382,7 +382,7 @@ declare const astmQuirkProfile: SynthProfile;
382
382
  * synthetic-by-construction. The practice- and laboratory-assigned patient IDs are
383
383
  * minted independently, so they stay **distinct**.
384
384
  * - **Framing (E1381):** `generateAstmResultFramed` via `composeAstmFrames`, the modulo-256 checksum
385
- * and the `0`–`7` frame number are **computed by the parser, never faked**, and the bytes round-trip
385
+ * and the `0` to `7` frame number are **computed by the parser, never faked**, and the bytes round-trip
386
386
  * through `parseFramedAstm` with zero frame **and** record warnings.
387
387
  *
388
388
  * @module