babelfhir-ts 1.3.2 → 1.3.3
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/README.md
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
- **Random data builders** for testing and development (when class generation is enabled)
|
|
48
48
|
- **Zero manual mapping**—consume any FHIR package or Implementation Guide directly from registries
|
|
49
49
|
- **Fast and lightweight**—minimal runtime deps; only `fhirpath` is required for validators
|
|
50
|
-
- **Type-safe FHIR client** — generated client extends [`@babelfhir-ts/client-r4`](https://www.npmjs.com/package/@babelfhir-ts/client-r4) with profile-specific methods (e.g., `.usCorePatient()`, `.pASClaim()`) on top of base
|
|
50
|
+
- **Type-safe FHIR client** — generated client extends [`@babelfhir-ts/client-r4`](https://www.npmjs.com/package/@babelfhir-ts/client-r4) / [`client-r4b`](https://www.npmjs.com/package/@babelfhir-ts/client-r4b) / [`client-r5`](https://www.npmjs.com/package/@babelfhir-ts/client-r5) with profile-specific methods (e.g., `.usCorePatient()`, `.pASClaim()`) on top of base resource accessors
|
|
51
51
|
- **Install any FHIR profile as a node module**—use `babelfhir-ts install` to add Implementation Guides directly to your project
|
|
52
52
|
|
|
53
53
|
<!-- PARITY-BADGES:START - Do not remove or modify this section -->
|
|
@@ -260,7 +260,7 @@ Full documentation is available at **[max-health-inc.github.io/BabelFHIR-TS/docs
|
|
|
260
260
|
- [Generated Code Guide](https://max-health-inc.github.io/BabelFHIR-TS/docs/generated-code) — understanding the output, module resolution, FHIR type imports
|
|
261
261
|
- [FHIR Client](https://max-health-inc.github.io/BabelFHIR-TS/docs/fhir-client) — type-safe server interactions
|
|
262
262
|
- [Validation](https://max-health-inc.github.io/BabelFHIR-TS/docs/validation) — what validators check, CI pipelines, known Firely SDK issues
|
|
263
|
-
- [Limitations](https://max-health-inc.github.io/BabelFHIR-TS/docs/limitations) —
|
|
263
|
+
- [Limitations](https://max-health-inc.github.io/BabelFHIR-TS/docs/limitations) — edge cases, random() caveats
|
|
264
264
|
- [Contributing](https://max-health-inc.github.io/BabelFHIR-TS/docs/contributing) — dev setup, scripts, project structure
|
|
265
265
|
|
|
266
266
|
## License
|
|
@@ -283,7 +283,8 @@ For security issues, please see [SECURITY.md](SECURITY.md) for our security poli
|
|
|
283
283
|
## Links
|
|
284
284
|
|
|
285
285
|
- [npm package — babelfhir-ts](https://www.npmjs.com/package/babelfhir-ts)
|
|
286
|
-
- [npm package — @babelfhir-ts/client-r4](https://www.npmjs.com/package/@babelfhir-ts/client-r4)
|
|
286
|
+
- [npm package — @babelfhir-ts/client-r4](https://www.npmjs.com/package/@babelfhir-ts/client-r4) / [client-r4b](https://www.npmjs.com/package/@babelfhir-ts/client-r4b) / [client-r5](https://www.npmjs.com/package/@babelfhir-ts/client-r5)
|
|
287
|
+
- [npm package — @babelfhir-ts/zod](https://www.npmjs.com/package/@babelfhir-ts/zod)
|
|
287
288
|
- [GitHub repository](https://github.com/Max-Health-Inc/BabelFHIR-TS)
|
|
288
289
|
- [Validation report](https://max-health-inc.github.io/BabelFHIR-TS/)
|
|
289
290
|
- [Issue tracker](https://github.com/Max-Health-Inc/BabelFHIR-TS/issues)
|
|
@@ -39,8 +39,8 @@ export function installBaseZodTypes(outputDir) {
|
|
|
39
39
|
if (fs.existsSync(srcPkgJson)) {
|
|
40
40
|
fs.copyFileSync(srcPkgJson, path.join(pkgDir, 'package.json'));
|
|
41
41
|
}
|
|
42
|
-
// Copy all runtime dist files into
|
|
43
|
-
const distSlugDir = path.join(pkgDir, slug);
|
|
42
|
+
// Copy all runtime dist files into dist/<slug>/ to match package.json exports
|
|
43
|
+
const distSlugDir = path.join(pkgDir, 'dist', slug);
|
|
44
44
|
fs.mkdirSync(distSlugDir, { recursive: true });
|
|
45
45
|
for (const file of fs.readdirSync(runtimeDist)) {
|
|
46
46
|
fs.copyFileSync(path.join(runtimeDist, file), path.join(distSlugDir, file));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babelfhir-ts",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "BabelFHIR-TS: generate TypeScript interfaces, validators, and helper classes from FHIR R4/R4B/R5 StructureDefinitions (profiles) directly inside package archives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/src/main.js",
|