@medplum/fhirtypes 0.9.1 → 0.9.2
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 +9 -3
- package/dist/AccessPolicy.d.ts +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ This library contains [TypeScript](https://www.typescriptlang.org/) type definit
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
Add as a dependency:
|
|
8
|
+
|
|
7
9
|
```bash
|
|
8
10
|
npm install --save-dev @medplum/fhirtypes
|
|
9
11
|
```
|
|
@@ -12,7 +14,7 @@ npm install --save-dev @medplum/fhirtypes
|
|
|
12
14
|
|
|
13
15
|
Consider the following untyped code:
|
|
14
16
|
|
|
15
|
-
```
|
|
17
|
+
```ts
|
|
16
18
|
const myPatient = {
|
|
17
19
|
resourceType: 'Patient',
|
|
18
20
|
name: 'George Washington',
|
|
@@ -23,7 +25,7 @@ Keen observers will note that `Patient.name` should not be a string. Instead, it
|
|
|
23
25
|
|
|
24
26
|
Let's add the type definition and see what happens:
|
|
25
27
|
|
|
26
|
-
```
|
|
28
|
+
```ts
|
|
27
29
|
import { Patient } from '@medplum/fhirtypes';
|
|
28
30
|
|
|
29
31
|
const myPatient: Patient = {
|
|
@@ -42,7 +44,7 @@ And now you will receive typeahead support:
|
|
|
42
44
|
|
|
43
45
|
So we can build a well-formed example:
|
|
44
46
|
|
|
45
|
-
```
|
|
47
|
+
```ts
|
|
46
48
|
import { Patient } from '@medplum/fhirtypes';
|
|
47
49
|
|
|
48
50
|
const myPatient: Patient = {
|
|
@@ -56,6 +58,10 @@ const myPatient: Patient = {
|
|
|
56
58
|
};
|
|
57
59
|
```
|
|
58
60
|
|
|
61
|
+
## About Medplum
|
|
62
|
+
|
|
63
|
+
Medplum is a healthcare platform that helps you quickly develop high-quality compliant applications. Medplum includes a FHIR server, React component library, and developer app.
|
|
64
|
+
|
|
59
65
|
## License
|
|
60
66
|
|
|
61
67
|
Apache 2.0. Copyright © Medplum 2022
|
package/dist/AccessPolicy.d.ts
CHANGED
|
@@ -72,10 +72,16 @@ export interface AccessPolicyResource {
|
|
|
72
72
|
resourceType?: string;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Optional compartment restriction for the resource type.
|
|
75
|
+
* DEPRECATED Optional compartment restriction for the resource type.
|
|
76
76
|
*/
|
|
77
77
|
compartment?: Reference;
|
|
78
78
|
|
|
79
|
+
/**
|
|
80
|
+
* The rules that the server should use to determine which resources to
|
|
81
|
+
* allow.
|
|
82
|
+
*/
|
|
83
|
+
criteria?: string;
|
|
84
|
+
|
|
79
85
|
/**
|
|
80
86
|
* Optional flag to indicate that the resource type is read-only.
|
|
81
87
|
*/
|