@fhirforge/r4 0.1.0 → 0.3.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/README.md +2 -2
- package/dist/generated/validation.d.ts +6 -0
- package/dist/generated/validation.d.ts.map +1 -0
- package/dist/generated/validation.js +912 -0
- package/dist/generated/validation.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @fhirforge/r4
|
|
2
2
|
|
|
3
|
-
Strict TypeScript types for FHIR R4 (4.0.1), generated from the official definitions, plus R4's compiled search parameters for `@fhirforge/core`.
|
|
3
|
+
Strict TypeScript types for FHIR R4 (4.0.1), generated from the official definitions, plus R4's compiled search parameters and validation rules for `@fhirforge/core`.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import type { Patient, Observation } from '@fhirforge/r4'; // types only: nothing bundled
|
|
7
|
-
import { r4 } from '@fhirforge/r4'; // the version descriptor for createFhirStore (includes search data)
|
|
7
|
+
import { r4 } from '@fhirforge/r4'; // the version descriptor for createFhirStore (includes search and validation data)
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
Required codes are literal unions (`gender: 'M'` doesn't compile), choice types allow one variant, and `Reference<Patient | Group>` checks the reference string and `type`.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ValidationTable } from '@fhirforge/core';
|
|
2
|
+
/** Compiled validation rules: primitive kinds, element rules per type, and required value sets. */
|
|
3
|
+
export declare const validation: ValidationTable;
|
|
4
|
+
/** Required bindings the validator doesn't check, with the reason. */
|
|
5
|
+
export declare const unvalidatedBindings: readonly string[];
|
|
6
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/generated/validation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,mGAAmG;AACnG,eAAO,MAAM,UAAU,EAAE,eA82BxB,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EA4BhD,CAAC"}
|