@openfn/language-fhir-ndr-et 0.1.6 → 0.1.8
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 +3 -0
- package/dist/index.cjs +0 -3
- package/dist/index.js +0 -2
- package/package.json +4 -4
- package/types/Adaptor.d.ts +0 -1
- package/types/builders.d.ts +25942 -0
- package/types/globals.d.ts +76 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// TODO use v4
|
|
2
|
+
// import { HumanName } from 'fhir/r5';
|
|
3
|
+
|
|
4
|
+
// Global fhir types
|
|
5
|
+
// maybe we should use types/fhir for this
|
|
6
|
+
// But that has its own problems and I think this is fairly simple
|
|
7
|
+
|
|
8
|
+
type Identifier = {
|
|
9
|
+
system: string;
|
|
10
|
+
value: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// TODO this probably isn't complete
|
|
14
|
+
type Meta = {
|
|
15
|
+
profile: string[];
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type Coding = {
|
|
19
|
+
system: string;
|
|
20
|
+
code: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
type CodeableConcept = {
|
|
24
|
+
coding: Coding[];
|
|
25
|
+
text?: string;
|
|
26
|
+
extension?: Extension[];
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
type Narrative = {
|
|
30
|
+
status: string;
|
|
31
|
+
div: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type BackboneElement = {
|
|
35
|
+
extension?: Extension[];
|
|
36
|
+
id?: string;
|
|
37
|
+
modifierExtension?: Extension[];
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
type Extension = {
|
|
41
|
+
// TODO this supports lods of value types...
|
|
42
|
+
url: string;
|
|
43
|
+
valueCodeableConcept: CodeableConcept;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
type Reference = {
|
|
47
|
+
display?: string;
|
|
48
|
+
identifier?: Identifier;
|
|
49
|
+
reference?: string;
|
|
50
|
+
type?: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
type Period = {
|
|
54
|
+
start: 'string';
|
|
55
|
+
end: 'string';
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
type Resource = {
|
|
59
|
+
resourceType: string;
|
|
60
|
+
id?: string;
|
|
61
|
+
implicitRules?: string;
|
|
62
|
+
language?: string;
|
|
63
|
+
meta?: Meta;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// TODO humanname is a bit more complex.. maybe I should be exporting from fhir after all
|
|
67
|
+
// interface HumanName extends HN {}
|
|
68
|
+
// type HumanName = HN;
|
|
69
|
+
|
|
70
|
+
// these are stubbed exports
|
|
71
|
+
type Duration = {};
|
|
72
|
+
type HumanName = {};
|
|
73
|
+
type ContactPoint = {};
|
|
74
|
+
type Address = {};
|
|
75
|
+
type Annotation = {};
|
|
76
|
+
type Attachment = {};
|