@smile-cdr/fhirts 2.0.2 → 2.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.4
4
+
5
+ ### Updates (R4)
6
+
7
+ * `OperationOutcome` class now has `id` set to type `string`. `Resource` class should now support `id`.
8
+
9
+ ## 2.0.3
10
+
11
+ ### Updates (R4)
12
+
13
+ * `Bundle` class now has `id` set to type `string`.
14
+
3
15
  ## 2.0.2
4
16
 
5
17
  ### Updates (R4)
@@ -19,6 +19,10 @@ import { UnsignedInt } from './unsignedInt';
19
19
  * A container for a collection of resources.
20
20
  */
21
21
  export declare class Bundle {
22
+ /**
23
+ * The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
24
+ */
25
+ id?: string;
22
26
  /**
23
27
  * This is a Bundle resource
24
28
  */
@@ -18,6 +18,10 @@ export declare class OperationOutcome {
18
18
  * This is a OperationOutcome resource
19
19
  */
20
20
  resourceType: 'OperationOutcome';
21
+ /**
22
+ * The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
23
+ */
24
+ id?: string;
21
25
  /**
22
26
  * An error, warning, or information message that results from a system action.
23
27
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smile-cdr/fhirts",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Fhir ts/js library for frontend apps",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -21,6 +21,10 @@ import { UnsignedInt } from './unsignedInt';
21
21
  * A container for a collection of resources.
22
22
  */
23
23
  export class Bundle {
24
+ /**
25
+ * The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
26
+ */
27
+ id?: string;
24
28
  /**
25
29
  * This is a Bundle resource
26
30
  */
@@ -20,6 +20,10 @@ export class OperationOutcome {
20
20
  * This is a OperationOutcome resource
21
21
  */
22
22
  resourceType: 'OperationOutcome';
23
+ /**
24
+ * The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
25
+ */
26
+ id?: string;
23
27
  /**
24
28
  * An error, warning, or information message that results from a system action.
25
29
  */
@@ -1,4 +1,3 @@
1
- import { Patient } from "../../FHIR-R4/classes/patient";
2
1
  import { BundleUtilities } from "./BundleUtilities";
3
2
 
4
3
  const inputPayload = require("./../../test-resources/Bundle-R4.json");