@cosyte/fhir 0.0.10 → 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.
package/package.json CHANGED
@@ -1,18 +1,25 @@
1
1
  {
2
2
  "name": "@cosyte/fhir",
3
- "version": "0.0.10",
4
- "description": "Developer-focused FHIR toolkit for Node.js and TypeScript, R4-first resource model, JSON and XML codec, and layered validation. Pre-alpha.",
3
+ "version": "0.1.0",
4
+ "description": "FHIR R4 for Node.js and TypeScript: a resource model that keeps every value exactly as written, JSON and XML codecs, layered validation, and a safety readout for status and negation.",
5
5
  "keywords": [
6
6
  "fhir",
7
+ "fhir-r4",
7
8
  "r4",
8
9
  "hl7",
9
10
  "healthcare",
10
11
  "interoperability",
11
12
  "typescript",
12
13
  "us-core",
13
- "toolkit"
14
+ "validation",
15
+ "json",
16
+ "xml",
17
+ "ndjson",
18
+ "bundle",
19
+ "fhirpath",
20
+ "ucum"
14
21
  ],
15
- "homepage": "https://github.com/cosyte/fhir#readme",
22
+ "homepage": "https://docs.cosyte.com/fhir",
16
23
  "bugs": {
17
24
  "url": "https://github.com/cosyte/fhir/issues"
18
25
  },
@@ -26,6 +33,13 @@
26
33
  "engines": {
27
34
  "node": ">=22.0.0"
28
35
  },
36
+ "packageManager": "pnpm@10.0.0+sha512.b8fef5494bd3fe4cbd4edabd0745df2ee5be3e4b0b8b08fa643aa3e4c6702ccc0f00d68fa8a8c9858a735a0032485a44990ed2810526c875e416f001b17df12b",
37
+ "pnpm": {
38
+ "overrides": {
39
+ "esbuild@>=0.27.3 <0.28.1": "0.28.1",
40
+ "js-yaml@>=4.0.0 <4.3.0": "4.3.0"
41
+ }
42
+ },
29
43
  "main": "./dist/index.cjs",
30
44
  "module": "./dist/index.mjs",
31
45
  "types": "./dist/index.d.ts",
@@ -55,6 +69,41 @@
55
69
  "provenance": true
56
70
  },
57
71
  "prettier": "@cosyte/prettier-config",
72
+ "scripts": {
73
+ "build": "tsup",
74
+ "changeset": "changeset",
75
+ "typecheck": "tsc --noEmit",
76
+ "lint": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --max-warnings=0 --no-error-on-unmatched-pattern",
77
+ "lint:fix": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --fix --no-error-on-unmatched-pattern",
78
+ "format": "prettier --write \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"examples/**/*.{ts,js,json,md}\" \"*.{json,md,yml}\"",
79
+ "format:check": "prettier --check \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"examples/**/*.{ts,js,json,md}\" \"*.{json,md,yml}\"",
80
+ "test": "vitest run",
81
+ "test:watch": "vitest",
82
+ "test:coverage": "vitest run --coverage",
83
+ "clean": "rm -rf dist coverage",
84
+ "pack:docs": "bash scripts/build-docs-artifacts.sh",
85
+ "attw": "node scripts/attw.mjs",
86
+ "examples": "tsx scripts/run-examples.ts",
87
+ "typecheck:examples": "tsc -p examples/tsconfig.json",
88
+ "lint:examples": "eslint examples --max-warnings=0",
89
+ "phi-scan:examples": "tsx scripts/phi-scan.ts examples/*.ts",
90
+ "phi-scan": "tsx scripts/phi-scan.ts",
91
+ "corpus:fetch": "node scripts/corpus-fetch.mjs",
92
+ "differential": "node scripts/differential.mjs",
93
+ "differential:determinism": "node scripts/differential-determinism.mjs",
94
+ "differential:read": "tsx scripts/read-differential.ts",
95
+ "capture:base-readouts": "tsx scripts/capture-base-readouts.ts",
96
+ "capture:xml-wellformed": "tsx scripts/capture-xml-wellformed.ts",
97
+ "uscore:projection": "tsx scripts/uscore-projection.ts",
98
+ "uscore:constraints": "tsx scripts/uscore-constraints.ts",
99
+ "check:no-emdash": "bash scripts/check-no-emdash.sh",
100
+ "check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
101
+ "check:docs-set": "tsx scripts/docs-set-check.ts",
102
+ "version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json src/index.ts",
103
+ "release": "changeset publish",
104
+ "prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm test && pnpm build && pnpm attw",
105
+ "prepare": "command -v simple-git-hooks >/dev/null 2>&1 && simple-git-hooks || true"
106
+ },
58
107
  "simple-git-hooks": {
59
108
  "pre-commit": "pnpm phi-scan --staged"
60
109
  },
@@ -66,7 +115,7 @@
66
115
  "@cosyte/test-utils": "^0.0.2",
67
116
  "@cosyte/tsconfig": "^0.0.2",
68
117
  "@cosyte/tsup-config": "^0.0.1",
69
- "@cosyte/vitest-config": "^0.0.1",
118
+ "@cosyte/vitest-config": "^0.0.2",
70
119
  "@types/node": "^22.0.0",
71
120
  "@vitest/coverage-v8": "4.1.4",
72
121
  "eslint": "10.5.0",
@@ -78,27 +127,5 @@
78
127
  "typescript": "5.9.3",
79
128
  "vite": "7.3.6",
80
129
  "vitest": "4.1.4"
81
- },
82
- "scripts": {
83
- "build": "tsup",
84
- "changeset": "changeset",
85
- "typecheck": "tsc --noEmit",
86
- "lint": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --max-warnings=0 --no-error-on-unmatched-pattern",
87
- "lint:fix": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" --fix --no-error-on-unmatched-pattern",
88
- "format": "prettier --write \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"*.{json,md,yml}\"",
89
- "format:check": "prettier --check \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"*.{json,md,yml}\"",
90
- "test": "vitest run",
91
- "test:watch": "vitest",
92
- "test:coverage": "vitest run --coverage",
93
- "clean": "rm -rf dist coverage",
94
- "pack:docs": "bash scripts/build-docs-artifacts.sh",
95
- "attw": "node scripts/attw.mjs",
96
- "phi-scan": "tsx scripts/phi-scan.ts",
97
- "differential:read": "tsx scripts/read-differential.ts",
98
- "capture:base-readouts": "tsx scripts/capture-base-readouts.ts",
99
- "check:no-emdash": "bash scripts/check-no-emdash.sh",
100
- "check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
101
- "version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json src/index.ts",
102
- "release": "changeset publish"
103
130
  }
104
- }
131
+ }