@smile-cdr/fhirts 1.5.0 → 2.0.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/.github/workflows/npm-publish.yml +4 -0
- package/.github/workflows/pr-build.yml +31 -0
- package/.nycrc +7 -0
- package/CHANGELOG.md +5 -0
- package/GETTINGSTARTED.md +40 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +5 -1
- package/dist/library/BundleUtilities/BundleUtilities.d.ts +10 -0
- package/dist/library/BundleUtilities/BundleUtilities.js +16 -0
- package/dist/library/BundleUtilities/BundleUtilities.spec.d.ts +1 -0
- package/dist/library/BundleUtilities/BundleUtilities.spec.js +26 -0
- package/dist/library/ResourceUtilities/ResourceUtilities.d.ts +35 -0
- package/dist/library/ResourceUtilities/ResourceUtilities.js +51 -0
- package/dist/library/ResourceUtilities/ResourceUtilities.spec.d.ts +1 -0
- package/dist/library/ResourceUtilities/ResourceUtilities.spec.js +180 -0
- package/package.json +13 -2
- package/spec/support/jasmine.json +10 -0
- package/src/index.ts +3 -1
- package/src/library/BundleUtilities/BundleUtilities.spec.ts +29 -0
- package/src/library/BundleUtilities/BundleUtilities.ts +16 -0
- package/src/library/ResourceUtilities/ResourceUtilities.spec.ts +230 -0
- package/src/library/ResourceUtilities/ResourceUtilities.ts +52 -0
- package/src/test-resources/Bundle-R4.json +27472 -0
- package/src/test-resources/Patient-R4.json +125 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType": "Patient",
|
|
3
|
+
"id": "f001",
|
|
4
|
+
"text": {
|
|
5
|
+
"status": "generated",
|
|
6
|
+
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Pieter van de Heuvel </b> male, DoB: 1944-11-17 ( id: 738472983 (USUAL))</p></div>"
|
|
7
|
+
},
|
|
8
|
+
"identifier": [
|
|
9
|
+
{
|
|
10
|
+
"use": "usual",
|
|
11
|
+
"system": "urn:oid:2.16.840.1.113883.2.4.6.3",
|
|
12
|
+
"value": "738472983"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"use": "usual",
|
|
16
|
+
"system": "urn:oid:2.16.840.1.113883.2.4.6.3"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"active": true,
|
|
20
|
+
"name": [
|
|
21
|
+
{
|
|
22
|
+
"use": "usual",
|
|
23
|
+
"family": "van de Heuvel",
|
|
24
|
+
"given": [
|
|
25
|
+
"Pieter"
|
|
26
|
+
],
|
|
27
|
+
"suffix": [
|
|
28
|
+
"MSc"
|
|
29
|
+
]
|
|
30
|
+
},{
|
|
31
|
+
"use": "usual",
|
|
32
|
+
"family": "van de Heuvel",
|
|
33
|
+
"given": [
|
|
34
|
+
"Pieter"
|
|
35
|
+
],
|
|
36
|
+
"suffix": [
|
|
37
|
+
"MSc"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"telecom": [
|
|
42
|
+
{
|
|
43
|
+
"system": "phone",
|
|
44
|
+
"value": "0648352638",
|
|
45
|
+
"use": "mobile"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"system": "email",
|
|
49
|
+
"value": "p.heuvel@gmail.com",
|
|
50
|
+
"use": "home"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"gender": "male",
|
|
54
|
+
"birthDate": "1944-11-17",
|
|
55
|
+
"deceasedBoolean": false,
|
|
56
|
+
"address": [
|
|
57
|
+
{
|
|
58
|
+
"use": "home",
|
|
59
|
+
"line": [
|
|
60
|
+
"Van Egmondkade 23"
|
|
61
|
+
],
|
|
62
|
+
"city": "Amsterdam",
|
|
63
|
+
"postalCode": "1024 RJ",
|
|
64
|
+
"country": "NLD"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"maritalStatus": {
|
|
68
|
+
"coding": [
|
|
69
|
+
{
|
|
70
|
+
"system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus",
|
|
71
|
+
"code": "M",
|
|
72
|
+
"display": "Married"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"text": "Getrouwd"
|
|
76
|
+
},
|
|
77
|
+
"multipleBirthBoolean": true,
|
|
78
|
+
"contact": [
|
|
79
|
+
{
|
|
80
|
+
"relationship": [
|
|
81
|
+
{
|
|
82
|
+
"coding": [
|
|
83
|
+
{
|
|
84
|
+
"system": "http://terminology.hl7.org/CodeSystem/v2-0131",
|
|
85
|
+
"code": "C"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"name": {
|
|
91
|
+
"use": "usual",
|
|
92
|
+
"family": "Abels",
|
|
93
|
+
"given": [
|
|
94
|
+
"Sarah"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"telecom": [
|
|
98
|
+
{
|
|
99
|
+
"system": "phone",
|
|
100
|
+
"value": "0690383372",
|
|
101
|
+
"use": "mobile"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"communication": [
|
|
107
|
+
{
|
|
108
|
+
"language": {
|
|
109
|
+
"coding": [
|
|
110
|
+
{
|
|
111
|
+
"system": "urn:ietf:bcp:47",
|
|
112
|
+
"code": "nl",
|
|
113
|
+
"display": "Dutch"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"text": "Nederlands"
|
|
117
|
+
},
|
|
118
|
+
"preferred": true
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"managingOrganization": {
|
|
122
|
+
"reference": "Organization/f001",
|
|
123
|
+
"display": "Burgers University Medical Centre"
|
|
124
|
+
}
|
|
125
|
+
}
|