@smile-cdr/fhirts 2.0.5 → 2.0.7
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 +16 -0
- package/dist/FHIR-R3.d.ts +2 -2
- package/dist/FHIR-R4/classes/bundle.d.ts +16 -1
- package/dist/FHIR-R4/classes/documentReference.d.ts +9 -2
- package/dist/FHIR-R4/classes/documentReference.js +6 -0
- package/package.json +1 -1
- package/src/FHIR-R3.ts +2 -2
- package/src/FHIR-R4/classes/bundle.ts +16 -1
- package/src/FHIR-R4/classes/documentReference.ts +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.7
|
|
4
|
+
|
|
5
|
+
### Updates (R4)
|
|
6
|
+
|
|
7
|
+
* Add missing properties to `Bundle`
|
|
8
|
+
|
|
9
|
+
## 2.0.6
|
|
10
|
+
|
|
11
|
+
### Updates (R3)
|
|
12
|
+
|
|
13
|
+
* `DocumentReference.docStatus` and `DocumentReference.status` properties have codes defined.
|
|
14
|
+
|
|
15
|
+
### Updates (R4)
|
|
16
|
+
|
|
17
|
+
* `DocumentReference.docStatus` has codes defined and `DocumentReference.status` is a required property (as per the spec).
|
|
18
|
+
|
|
3
19
|
## 2.0.5
|
|
4
20
|
|
|
5
21
|
### Updates (R3)
|
package/dist/FHIR-R3.d.ts
CHANGED
|
@@ -551,8 +551,8 @@ export declare class DocumentReference extends BaseResource {
|
|
|
551
551
|
resourceType: "DocumentReference";
|
|
552
552
|
masterIdentifier: Identifier;
|
|
553
553
|
identifier: Identifier[];
|
|
554
|
-
status:
|
|
555
|
-
docStatus:
|
|
554
|
+
status: 'current' | 'superseded' | 'entered-in-error';
|
|
555
|
+
docStatus: 'preliminary' | 'final' | 'amended' | 'entered-in-error';
|
|
556
556
|
type: CodeableConcept;
|
|
557
557
|
subject: Reference;
|
|
558
558
|
created: Date;
|
|
@@ -11,10 +11,13 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { BundleEntry } from './bundleEntry';
|
|
13
13
|
import { BundleLink } from './bundleLink';
|
|
14
|
+
import { Code } from './code';
|
|
14
15
|
import { Identifier } from './identifier';
|
|
15
16
|
import { Instant } from './instant';
|
|
17
|
+
import { Meta } from './meta';
|
|
16
18
|
import { Signature } from './signature';
|
|
17
19
|
import { UnsignedInt } from './unsignedInt';
|
|
20
|
+
import { Uri } from './uri';
|
|
18
21
|
/**
|
|
19
22
|
* A container for a collection of resources.
|
|
20
23
|
*/
|
|
@@ -23,6 +26,18 @@ export declare class Bundle {
|
|
|
23
26
|
* The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
|
|
24
27
|
*/
|
|
25
28
|
id?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
|
|
31
|
+
*/
|
|
32
|
+
meta?: Meta;
|
|
33
|
+
/**
|
|
34
|
+
* A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
|
|
35
|
+
*/
|
|
36
|
+
implicitRules?: Uri;
|
|
37
|
+
/**
|
|
38
|
+
* The base language in which the resource is written.
|
|
39
|
+
*/
|
|
40
|
+
language?: Code;
|
|
26
41
|
/**
|
|
27
42
|
* This is a Bundle resource
|
|
28
43
|
*/
|
|
@@ -34,7 +49,7 @@ export declare class Bundle {
|
|
|
34
49
|
/**
|
|
35
50
|
* Indicates the purpose of this bundle - how it is intended to be used.
|
|
36
51
|
*/
|
|
37
|
-
type
|
|
52
|
+
type: Bundle.TypeEnum;
|
|
38
53
|
/**
|
|
39
54
|
* The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle.
|
|
40
55
|
*/
|
|
@@ -68,11 +68,11 @@ export declare class DocumentReference {
|
|
|
68
68
|
/**
|
|
69
69
|
* The status of this document reference.
|
|
70
70
|
*/
|
|
71
|
-
status
|
|
71
|
+
status: DocumentReference.StatusEnum;
|
|
72
72
|
/**
|
|
73
73
|
* The status of the underlying document.
|
|
74
74
|
*/
|
|
75
|
-
docStatus?:
|
|
75
|
+
docStatus?: DocumentReference.DocStatusEnum;
|
|
76
76
|
/**
|
|
77
77
|
* Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced.
|
|
78
78
|
*/
|
|
@@ -129,4 +129,11 @@ export declare namespace DocumentReference {
|
|
|
129
129
|
Superseded: StatusEnum;
|
|
130
130
|
EnteredInError: StatusEnum;
|
|
131
131
|
};
|
|
132
|
+
type DocStatusEnum = 'preliminary' | 'final' | 'amended' | 'entered-in-error';
|
|
133
|
+
const DocStatusEnum: {
|
|
134
|
+
Preliminary: DocStatusEnum;
|
|
135
|
+
Final: DocStatusEnum;
|
|
136
|
+
Amended: DocStatusEnum;
|
|
137
|
+
EnteredInError: DocStatusEnum;
|
|
138
|
+
};
|
|
132
139
|
}
|
|
@@ -13,4 +13,10 @@ exports.DocumentReference = DocumentReference;
|
|
|
13
13
|
Superseded: 'superseded',
|
|
14
14
|
EnteredInError: 'entered-in-error'
|
|
15
15
|
};
|
|
16
|
+
DocumentReference.DocStatusEnum = {
|
|
17
|
+
Preliminary: 'preliminary',
|
|
18
|
+
Final: 'final',
|
|
19
|
+
Amended: 'amended',
|
|
20
|
+
EnteredInError: 'entered-in-error'
|
|
21
|
+
};
|
|
16
22
|
})(DocumentReference = exports.DocumentReference || (exports.DocumentReference = {}));
|
package/package.json
CHANGED
package/src/FHIR-R3.ts
CHANGED
|
@@ -696,8 +696,8 @@ export class DocumentReference extends BaseResource {
|
|
|
696
696
|
resourceType: "DocumentReference";
|
|
697
697
|
masterIdentifier: Identifier;
|
|
698
698
|
identifier: Identifier[];
|
|
699
|
-
status:
|
|
700
|
-
docStatus:
|
|
699
|
+
status: 'current' | 'superseded' | 'entered-in-error';
|
|
700
|
+
docStatus: 'preliminary' | 'final' | 'amended' | 'entered-in-error';
|
|
701
701
|
type: CodeableConcept;
|
|
702
702
|
subject: Reference;
|
|
703
703
|
created: Date;
|
|
@@ -11,10 +11,13 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { BundleEntry } from './bundleEntry';
|
|
13
13
|
import { BundleLink } from './bundleLink';
|
|
14
|
+
import { Code } from './code';
|
|
14
15
|
import { Identifier } from './identifier';
|
|
15
16
|
import { Instant } from './instant';
|
|
17
|
+
import { Meta } from './meta';
|
|
16
18
|
import { Signature } from './signature';
|
|
17
19
|
import { UnsignedInt } from './unsignedInt';
|
|
20
|
+
import { Uri } from './uri';
|
|
18
21
|
|
|
19
22
|
|
|
20
23
|
/**
|
|
@@ -25,6 +28,18 @@ export class Bundle {
|
|
|
25
28
|
* The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
|
|
26
29
|
*/
|
|
27
30
|
id?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
|
|
33
|
+
*/
|
|
34
|
+
meta?: Meta;
|
|
35
|
+
/**
|
|
36
|
+
* A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
|
|
37
|
+
*/
|
|
38
|
+
implicitRules?: Uri;
|
|
39
|
+
/**
|
|
40
|
+
* The base language in which the resource is written.
|
|
41
|
+
*/
|
|
42
|
+
language?: Code;
|
|
28
43
|
/**
|
|
29
44
|
* This is a Bundle resource
|
|
30
45
|
*/
|
|
@@ -36,7 +51,7 @@ export class Bundle {
|
|
|
36
51
|
/**
|
|
37
52
|
* Indicates the purpose of this bundle - how it is intended to be used.
|
|
38
53
|
*/
|
|
39
|
-
type
|
|
54
|
+
type: Bundle.TypeEnum;
|
|
40
55
|
/**
|
|
41
56
|
* The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle.
|
|
42
57
|
*/
|
|
@@ -71,11 +71,11 @@ export class DocumentReference {
|
|
|
71
71
|
/**
|
|
72
72
|
* The status of this document reference.
|
|
73
73
|
*/
|
|
74
|
-
status
|
|
74
|
+
status: DocumentReference.StatusEnum;
|
|
75
75
|
/**
|
|
76
76
|
* The status of the underlying document.
|
|
77
77
|
*/
|
|
78
|
-
docStatus?:
|
|
78
|
+
docStatus?: DocumentReference.DocStatusEnum;
|
|
79
79
|
/**
|
|
80
80
|
* Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced.
|
|
81
81
|
*/
|
|
@@ -132,4 +132,11 @@ export namespace DocumentReference {
|
|
|
132
132
|
Superseded: 'superseded' as StatusEnum,
|
|
133
133
|
EnteredInError: 'entered-in-error' as StatusEnum
|
|
134
134
|
};
|
|
135
|
+
export type DocStatusEnum = 'preliminary' | 'final' | 'amended' | 'entered-in-error';
|
|
136
|
+
export const DocStatusEnum = {
|
|
137
|
+
Preliminary: 'preliminary' as DocStatusEnum,
|
|
138
|
+
Final: 'final' as DocStatusEnum,
|
|
139
|
+
Amended: 'amended' as DocStatusEnum,
|
|
140
|
+
EnteredInError: 'entered-in-error' as DocStatusEnum
|
|
141
|
+
};
|
|
135
142
|
}
|