@fhirforge/r4 0.1.0 → 0.2.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/dist/index.d.ts CHANGED
@@ -5,10 +5,11 @@ export type * from './generated/index.js';
5
5
  * Describes FHIR R4 to the store. Pass it to `createFhirStore({ fhir: r4 })`;
6
6
  * the store takes its resource types from `ResourceTypeMap`.
7
7
  *
8
- * It carries the compiled search parameters (runtime data). Frontend code
8
+ * It carries the compiled search parameters and validation rules (runtime data). Frontend code
9
9
  * that only needs the types should use `import type` so this data isn't bundled.
10
10
  */
11
11
  export declare const r4: FhirVersionPackage<ResourceTypeMap>;
12
12
  export { searchParameters, unsupportedSearchParameters } from './generated/search-parameters.js';
13
+ export { validation, unvalidatedBindings } from './generated/validation.js';
13
14
  export type R4 = typeof r4;
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAGnE,mBAAmB,sBAAsB,CAAC;AAE1C;;;;;;GAMG;AACH,eAAO,MAAM,EAAE,EAAE,kBAAkB,CAAC,eAAe,CAGlD,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEjG,MAAM,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAInE,mBAAmB,sBAAsB,CAAC;AAE1C;;;;;;GAMG;AACH,eAAO,MAAM,EAAE,EAAE,kBAAkB,CAAC,eAAe,CAIlD,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACjG,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAE5E,MAAM,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1,14 +1,17 @@
1
1
  import { searchParameters } from './generated/search-parameters.js';
2
+ import { validation } from './generated/validation.js';
2
3
  /**
3
4
  * Describes FHIR R4 to the store. Pass it to `createFhirStore({ fhir: r4 })`;
4
5
  * the store takes its resource types from `ResourceTypeMap`.
5
6
  *
6
- * It carries the compiled search parameters (runtime data). Frontend code
7
+ * It carries the compiled search parameters and validation rules (runtime data). Frontend code
7
8
  * that only needs the types should use `import type` so this data isn't bundled.
8
9
  */
9
10
  export const r4 = {
10
11
  fhirVersion: '4.0.1',
11
12
  searchParameters,
13
+ validation,
12
14
  };
13
15
  export { searchParameters, unsupportedSearchParameters } from './generated/search-parameters.js';
16
+ export { validation, unvalidatedBindings } from './generated/validation.js';
14
17
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAIpE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,EAAE,GAAwC;IACrD,WAAW,EAAE,OAAO;IACpB,gBAAgB;CACjB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAIvD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,EAAE,GAAwC;IACrD,WAAW,EAAE,OAAO;IACpB,gBAAgB;IAChB,UAAU;CACX,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACjG,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fhirforge/r4",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Strict TypeScript types for FHIR R4 (4.0.1), generated from the official definitions.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Scott Schlegel",
@@ -40,6 +40,6 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@fhirforge/core": "0.1.0"
43
+ "@fhirforge/core": "0.2.0"
44
44
  }
45
45
  }