@cosyte/synth 0.0.9 → 0.1.0

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 (55) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +21 -12
  3. package/dist/astm/index.cjs +18 -6
  4. package/dist/astm/index.cjs.map +1 -1
  5. package/dist/astm/index.d.cts +2 -2
  6. package/dist/astm/index.d.ts +2 -2
  7. package/dist/astm/index.mjs +18 -6
  8. package/dist/astm/index.mjs.map +1 -1
  9. package/dist/ccda/index.cjs +23 -7
  10. package/dist/ccda/index.cjs.map +1 -1
  11. package/dist/ccda/index.d.cts +2 -2
  12. package/dist/ccda/index.d.ts +2 -2
  13. package/dist/ccda/index.mjs +23 -7
  14. package/dist/ccda/index.mjs.map +1 -1
  15. package/dist/deid/index.cjs +26 -8
  16. package/dist/deid/index.cjs.map +1 -1
  17. package/dist/deid/index.d.cts +2 -2
  18. package/dist/deid/index.d.ts +2 -2
  19. package/dist/deid/index.mjs +26 -8
  20. package/dist/deid/index.mjs.map +1 -1
  21. package/dist/fhir/index.cjs +174 -7
  22. package/dist/fhir/index.cjs.map +1 -1
  23. package/dist/fhir/index.d.cts +163 -2
  24. package/dist/fhir/index.d.ts +163 -2
  25. package/dist/fhir/index.mjs +171 -9
  26. package/dist/fhir/index.mjs.map +1 -1
  27. package/dist/hl7/index.cjs +18 -6
  28. package/dist/hl7/index.cjs.map +1 -1
  29. package/dist/hl7/index.d.cts +2 -2
  30. package/dist/hl7/index.d.ts +2 -2
  31. package/dist/hl7/index.mjs +18 -6
  32. package/dist/hl7/index.mjs.map +1 -1
  33. package/dist/index.cjs +37 -6
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +172 -38
  36. package/dist/index.d.ts +172 -38
  37. package/dist/index.mjs +36 -7
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/ncpdp/index.cjs +18 -6
  40. package/dist/ncpdp/index.cjs.map +1 -1
  41. package/dist/ncpdp/index.d.cts +1 -1
  42. package/dist/ncpdp/index.d.ts +1 -1
  43. package/dist/ncpdp/index.mjs +18 -6
  44. package/dist/ncpdp/index.mjs.map +1 -1
  45. package/dist/{providers-B9uVinAe.d.cts → providers-BQtPk3PN.d.cts} +18 -4
  46. package/dist/{providers-B9uVinAe.d.ts → providers-BQtPk3PN.d.ts} +18 -4
  47. package/dist/{quirk-HZdznAkM.d.ts → quirk-Bzx9g8KG.d.ts} +1 -1
  48. package/dist/{quirk-IaHp4z7N.d.cts → quirk-C_lZrspq.d.cts} +1 -1
  49. package/dist/x12/index.cjs +18 -6
  50. package/dist/x12/index.cjs.map +1 -1
  51. package/dist/x12/index.d.cts +1 -1
  52. package/dist/x12/index.d.ts +1 -1
  53. package/dist/x12/index.mjs +18 -6
  54. package/dist/x12/index.mjs.map +1 -1
  55. package/package.json +54 -30
package/package.json CHANGED
@@ -1,17 +1,24 @@
1
1
  {
2
2
  "name": "@cosyte/synth",
3
- "version": "0.0.9",
4
- "description": "Deterministic, seedable synthetic healthcare-fixture generator for Node.js and TypeScript, spec-clean by construction, never real PHI.",
3
+ "version": "0.1.0",
4
+ "description": "Deterministic, seedable synthetic healthcare test fixtures for Node.js and TypeScript: HL7 v2, FHIR R4 and US Core, C-CDA, X12, NCPDP and ASTM, spec-clean by construction and never real PHI.",
5
5
  "keywords": [
6
6
  "synth",
7
7
  "synthetic-data",
8
8
  "test-fixtures",
9
+ "fixtures",
9
10
  "healthcare",
10
11
  "interoperability",
11
- "typescript",
12
- "hl7"
12
+ "hl7",
13
+ "fhir",
14
+ "us-core",
15
+ "ccda",
16
+ "x12",
17
+ "ncpdp",
18
+ "astm",
19
+ "typescript"
13
20
  ],
14
- "homepage": "https://github.com/cosyte/synth#readme",
21
+ "homepage": "https://docs.cosyte.com/synth",
15
22
  "bugs": {
16
23
  "url": "https://github.com/cosyte/synth/issues"
17
24
  },
@@ -25,6 +32,7 @@
25
32
  "engines": {
26
33
  "node": ">=22.0.0"
27
34
  },
35
+ "packageManager": "pnpm@10.0.0",
28
36
  "main": "./dist/index.cjs",
29
37
  "module": "./dist/index.mjs",
30
38
  "types": "./dist/index.d.ts",
@@ -123,6 +131,13 @@
123
131
  "provenance": true
124
132
  },
125
133
  "prettier": "@cosyte/prettier-config",
134
+ "pnpm": {
135
+ "overrides": {
136
+ "esbuild@>=0.27.3 <0.28.1": "0.28.1",
137
+ "js-yaml@>=4.0.0 <4.3.1": "4.3.1",
138
+ "js-yaml@>=3.0.0 <3.15.1": "3.15.1"
139
+ }
140
+ },
126
141
  "peerDependencies": {
127
142
  "@cosyte/astm": ">=0.0.0",
128
143
  "@cosyte/ccda": ">=0.0.0",
@@ -155,6 +170,39 @@
155
170
  "optional": true
156
171
  }
157
172
  },
173
+ "scripts": {
174
+ "build": "tsup",
175
+ "changeset": "changeset",
176
+ "typecheck": "tsc --noEmit && tsc --noEmit -p examples",
177
+ "phi-scan": "tsx scripts/phi-scan.ts",
178
+ "check": "pnpm run check:test-selection",
179
+ "check:test-selection": "tsx scripts/check-test-selection.ts",
180
+ "check:install": "node scripts/check-install.mjs",
181
+ "check:determinism-window": "tsx scripts/determinism/check-window.ts",
182
+ "determinism:digest": "tsx scripts/determinism/digest.ts",
183
+ "determinism:verify": "tsx scripts/determinism/verify.ts",
184
+ "oracle": "tsx scripts/oracle/run.ts",
185
+ "acquire:oracle": "tsx scripts/oracle/acquire.ts",
186
+ "check:no-emdash": "bash scripts/check-no-emdash.sh",
187
+ "check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
188
+ "lint": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" \"examples/**/*.ts\" --max-warnings=0 --no-error-on-unmatched-pattern",
189
+ "lint:fix": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" \"examples/**/*.ts\" --fix --no-error-on-unmatched-pattern",
190
+ "format": "prettier --write \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"examples/**/*.{ts,json,md}\" \"*.{json,md,yml}\"",
191
+ "format:check": "prettier --check \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"examples/**/*.{ts,json,md}\" \"*.{json,md,yml}\"",
192
+ "test": "vitest run",
193
+ "test:watch": "vitest",
194
+ "test:coverage": "vitest run --coverage",
195
+ "test:fuzz": "vitest run test/property/seed-sweep.fuzz.property.test.ts",
196
+ "examples": "tsx scripts/run-examples.ts",
197
+ "smoke": "node scripts/smoke.mjs",
198
+ "clean": "rm -rf dist coverage",
199
+ "pack:docs": "bash scripts/build-docs-artifacts.sh",
200
+ "attw": "node scripts/attw.mjs --profile node16",
201
+ "version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json CHANGELOG.md src/index.ts",
202
+ "release": "changeset publish",
203
+ "prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm test && pnpm build && pnpm attw",
204
+ "prepare": "command -v simple-git-hooks >/dev/null 2>&1 && simple-git-hooks || true"
205
+ },
158
206
  "simple-git-hooks": {
159
207
  "pre-commit": "pnpm phi-scan --staged"
160
208
  },
@@ -185,29 +233,5 @@
185
233
  "typescript": "5.9.3",
186
234
  "vite": "7.3.6",
187
235
  "vitest": "4.1.4"
188
- },
189
- "scripts": {
190
- "build": "tsup",
191
- "changeset": "changeset",
192
- "typecheck": "tsc --noEmit",
193
- "phi-scan": "tsx scripts/phi-scan.ts",
194
- "check": "pnpm run check:test-selection",
195
- "check:test-selection": "tsx scripts/check-test-selection.ts",
196
- "check:no-emdash": "bash scripts/check-no-emdash.sh",
197
- "check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
198
- "lint": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --max-warnings=0 --no-error-on-unmatched-pattern",
199
- "lint:fix": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --fix --no-error-on-unmatched-pattern",
200
- "format": "prettier --write \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"*.{json,md,yml}\"",
201
- "format:check": "prettier --check \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"*.{json,md,yml}\"",
202
- "test": "vitest run",
203
- "test:watch": "vitest",
204
- "test:coverage": "vitest run --coverage",
205
- "test:fuzz": "vitest run test/property/seed-sweep.fuzz.property.test.ts",
206
- "smoke": "node scripts/smoke.mjs",
207
- "clean": "rm -rf dist coverage",
208
- "pack:docs": "bash scripts/build-docs-artifacts.sh",
209
- "attw": "node scripts/attw.mjs --profile node16",
210
- "version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json CHANGELOG.md src/index.ts",
211
- "release": "changeset publish"
212
236
  }
213
- }
237
+ }