@medplum/definitions 3.0.10 → 3.0.12

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.
@@ -0,0 +1,350 @@
1
+ {
2
+ "resourceType": "Bundle",
3
+ "id": "usCoreSearchParams",
4
+ "type": "collection",
5
+ "entry": [
6
+ {
7
+ "fullUrl": "http://hl7.org/fhir/us/core/SearchParameter/us-core-careteam-role",
8
+ "resource": {
9
+ "resourceType": "SearchParameter",
10
+ "id": "us-core-careteam-role",
11
+ "url": "http://hl7.org/fhir/us/core/SearchParameter/us-core-careteam-role",
12
+ "version": "5.0.1",
13
+ "name": "USCoreCareTeamRole",
14
+ "status": "active",
15
+ "date": "2022-04-14",
16
+ "publisher": "HL7 International - Cross-Group Projects",
17
+ "contact": [
18
+ {
19
+ "name": "HL7 International - Cross-Group Projects",
20
+ "telecom": [
21
+ { "system": "url", "value": "http://www.hl7.org/Special/committees/cgp" },
22
+ { "system": "email", "value": "cgp@lists.HL7.org" }
23
+ ]
24
+ }
25
+ ],
26
+ "description": "Returns CareTeam resources with a participant role matching the specified code.",
27
+ "jurisdiction": [{ "coding": [{ "system": "urn:iso:std:iso:3166", "code": "US" }] }],
28
+ "code": "role",
29
+ "base": ["CareTeam"],
30
+ "type": "token",
31
+ "expression": "CareTeam.participant.role",
32
+ "xpath": "f:CareTeam/f:participant/f:role/@value",
33
+ "xpathUsage": "normal",
34
+ "multipleOr": true,
35
+ "_multipleOr": {
36
+ "extension": [
37
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
38
+ ]
39
+ },
40
+ "multipleAnd": true,
41
+ "_multipleAnd": {
42
+ "extension": [
43
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
44
+ ]
45
+ }
46
+ }
47
+ },
48
+ {
49
+ "fullUrl": "http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-asserted-date",
50
+ "resource": {
51
+ "resourceType": "SearchParameter",
52
+ "id": "us-core-condition-asserted-date",
53
+ "url": "http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-asserted-date",
54
+ "version": "5.0.1",
55
+ "name": "USCoreConditionAssertedDate",
56
+ "status": "active",
57
+ "date": "2022-04-14",
58
+ "publisher": "HL7 International - Cross-Group Projects",
59
+ "contact": [
60
+ {
61
+ "name": "HL7 International - Cross-Group Projects",
62
+ "telecom": [
63
+ { "system": "url", "value": "http://www.hl7.org/Special/committees/cgp" },
64
+ { "system": "email", "value": "cgp@lists.HL7.org" }
65
+ ]
66
+ }
67
+ ],
68
+ "description": "Returns conditions with an [assertedDate extension](http://hl7.org/fhir/StructureDefinition/condition-assertedDate) matching the specified date (dateTime).",
69
+ "jurisdiction": [{ "coding": [{ "system": "urn:iso:std:iso:3166", "code": "US" }] }],
70
+ "code": "asserted-date",
71
+ "base": ["Condition"],
72
+ "type": "date",
73
+ "expression": "Condition.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/condition-assertedDate').valueDateTime",
74
+ "xpath": "f:Condition/f:extension[@url='http://hl7.org/fhir/StructureDefinition/condition-assertedDate']/f:valueDateTime/@value",
75
+ "xpathUsage": "normal",
76
+ "multipleOr": true,
77
+ "_multipleOr": {
78
+ "extension": [
79
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
80
+ ]
81
+ },
82
+ "multipleAnd": true,
83
+ "_multipleAnd": {
84
+ "extension": [
85
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "SHOULD" }
86
+ ]
87
+ },
88
+ "comparator": ["eq", "ne", "gt", "ge", "lt", "le", "sa", "eb", "ap"],
89
+ "_comparator": [
90
+ {
91
+ "extension": [
92
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
93
+ ]
94
+ },
95
+ {
96
+ "extension": [
97
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
98
+ ]
99
+ },
100
+ {
101
+ "extension": [
102
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "SHALL" }
103
+ ]
104
+ },
105
+ {
106
+ "extension": [
107
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "SHALL" }
108
+ ]
109
+ },
110
+ {
111
+ "extension": [
112
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "SHALL" }
113
+ ]
114
+ },
115
+ {
116
+ "extension": [
117
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "SHALL" }
118
+ ]
119
+ },
120
+ {
121
+ "extension": [
122
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
123
+ ]
124
+ },
125
+ {
126
+ "extension": [
127
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
128
+ ]
129
+ },
130
+ {
131
+ "extension": [
132
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
133
+ ]
134
+ }
135
+ ]
136
+ }
137
+ },
138
+ {
139
+ "fullUrl": "http://hl7.org/fhir/us/core/SearchParameter/us-core-encounter-discharge-disposition",
140
+ "resource": {
141
+ "resourceType": "SearchParameter",
142
+ "id": "us-core-encounter-discharge-disposition",
143
+ "url": "http://hl7.org/fhir/us/core/SearchParameter/us-core-encounter-discharge-disposition",
144
+ "version": "5.0.1",
145
+ "name": "USCoreEncounterDischargeDisposition",
146
+ "status": "active",
147
+ "date": "2022-04-14",
148
+ "publisher": "HL7 International - Cross-Group Projects",
149
+ "contact": [
150
+ {
151
+ "name": "HL7 International - Cross-Group Projects",
152
+ "telecom": [
153
+ { "system": "url", "value": "http://www.hl7.org/Special/committees/cgp" },
154
+ { "system": "email", "value": "cgp@lists.HL7.org" }
155
+ ]
156
+ }
157
+ ],
158
+ "description": "Returns encounters with an discharge-disposition matching the specified code.",
159
+ "jurisdiction": [{ "coding": [{ "system": "urn:iso:std:iso:3166", "code": "US" }] }],
160
+ "code": "discharge-disposition",
161
+ "base": ["Encounter"],
162
+ "type": "token",
163
+ "expression": "Encounter.hospitalization.dischargeDisposition",
164
+ "xpath": "f:Encounter/f:hospitalization/f:dischargeDisposition/@value",
165
+ "xpathUsage": "normal",
166
+ "multipleOr": true,
167
+ "_multipleOr": {
168
+ "extension": [
169
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
170
+ ]
171
+ },
172
+ "multipleAnd": true,
173
+ "_multipleAnd": {
174
+ "extension": [
175
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
176
+ ]
177
+ }
178
+ }
179
+ },
180
+ {
181
+ "fullUrl": "http://hl7.org/fhir/us/core/SearchParameter/us-core-ethnicity",
182
+ "resource": {
183
+ "resourceType": "SearchParameter",
184
+ "id": "us-core-ethnicity",
185
+ "url": "http://hl7.org/fhir/us/core/SearchParameter/us-core-ethnicity",
186
+ "version": "5.0.1",
187
+ "name": "USCoreEthnicity",
188
+ "status": "active",
189
+ "date": "2022-04-14",
190
+ "publisher": "HL7 International - Cross-Group Projects",
191
+ "contact": [
192
+ {
193
+ "name": "HL7 International - Cross-Group Projects",
194
+ "telecom": [
195
+ { "system": "url", "value": "http://www.hl7.org/Special/committees/cgp" },
196
+ { "system": "email", "value": "cgp@lists.HL7.org" }
197
+ ]
198
+ }
199
+ ],
200
+ "description": "Returns patients with an ethnicity extension matching the specified code.",
201
+ "jurisdiction": [{ "coding": [{ "system": "urn:iso:std:iso:3166", "code": "US" }] }],
202
+ "code": "ethnicity",
203
+ "base": ["Patient"],
204
+ "type": "token",
205
+ "expression": "Patient.extension.where(url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity').extension.value.code",
206
+ "xpath": "f:Patient/f:extension[@url='http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity']/f:extension/f:valueCoding/f:code/@value",
207
+ "xpathUsage": "normal",
208
+ "multipleOr": true,
209
+ "_multipleOr": {
210
+ "extension": [
211
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
212
+ ]
213
+ },
214
+ "multipleAnd": true,
215
+ "_multipleAnd": {
216
+ "extension": [
217
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
218
+ ]
219
+ }
220
+ }
221
+ },
222
+ {
223
+ "fullUrl": "http://hl7.org/fhir/us/core/SearchParameter/us-core-goal-description",
224
+ "resource": {
225
+ "resourceType": "SearchParameter",
226
+ "id": "us-core-goal-description",
227
+ "url": "http://hl7.org/fhir/us/core/SearchParameter/us-core-goal-description",
228
+ "version": "5.0.1",
229
+ "name": "USCoreGoalDescription",
230
+ "status": "active",
231
+ "experimental": false,
232
+ "date": "2022-04-14",
233
+ "publisher": "HL7 International - Cross-Group Projects",
234
+ "contact": [
235
+ {
236
+ "name": "HL7 International - Cross-Group Projects",
237
+ "telecom": [
238
+ { "system": "url", "value": "http://www.hl7.org/Special/committees/cgp" },
239
+ { "system": "email", "value": "cgp@lists.HL7.org" }
240
+ ]
241
+ }
242
+ ],
243
+ "description": "**The code or text describing the goal**\n**NOTE**: This US Core SearchParameter definition extends the usage context of the\n[Conformance expectation extension](http://hl7.org/fhir/R4/extension-capabilitystatement-expectation.html)\n - multipleAnd\n - multipleOr\n - comparator\n - modifier\n - chain",
244
+ "jurisdiction": [{ "coding": [{ "system": "urn:iso:std:iso:3166", "code": "US" }] }],
245
+ "code": "description",
246
+ "base": ["Goal"],
247
+ "type": "token",
248
+ "expression": "Goal.description",
249
+ "xpath": "f:Goal/f:description",
250
+ "xpathUsage": "normal",
251
+ "multipleOr": true,
252
+ "_multipleOr": {
253
+ "extension": [
254
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
255
+ ]
256
+ },
257
+ "multipleAnd": true,
258
+ "_multipleAnd": {
259
+ "extension": [
260
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
261
+ ]
262
+ }
263
+ }
264
+ },
265
+ {
266
+ "fullUrl": "http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-gender-identity",
267
+ "resource": {
268
+ "resourceType": "SearchParameter",
269
+ "id": "us-core-patient-gender-identity",
270
+ "url": "http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-gender-identity",
271
+ "version": "5.0.1",
272
+ "name": "USCorePatientGenderIdentity",
273
+ "status": "active",
274
+ "date": "2022-04-14",
275
+ "publisher": "HL7 International - Cross-Group Projects",
276
+ "contact": [
277
+ {
278
+ "name": "HL7 International - Cross-Group Projects",
279
+ "telecom": [
280
+ { "system": "url", "value": "http://www.hl7.org/Special/committees/cgp" },
281
+ { "system": "email", "value": "cgp@lists.HL7.org" }
282
+ ]
283
+ }
284
+ ],
285
+ "description": "Returns patients with an gender-identity extension matching the specified code.",
286
+ "jurisdiction": [{ "coding": [{ "system": "urn:iso:std:iso:3166", "code": "US" }] }],
287
+ "code": "gender-identity",
288
+ "base": ["Patient"],
289
+ "type": "token",
290
+ "expression": "Patient.extension.where(url='http://hl7.org/fhir/us/core/StructureDefinition/us-core-genderIdentity').value.coding.code",
291
+ "xpath": "f:Patient/f:extension[@url='http://hl7.org/fhir/StructureDefinition/patient-genderIdentity']/f:extension/f:valueCoding/f:code/@value xpathUsage: normal",
292
+ "xpathUsage": "normal",
293
+ "multipleOr": true,
294
+ "_multipleOr": {
295
+ "extension": [
296
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
297
+ ]
298
+ },
299
+ "multipleAnd": true,
300
+ "_multipleAnd": {
301
+ "extension": [
302
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
303
+ ]
304
+ }
305
+ }
306
+ },
307
+ {
308
+ "fullUrl": "http://hl7.org/fhir/us/core/SearchParameter/us-core-race",
309
+ "resource": {
310
+ "resourceType": "SearchParameter",
311
+ "id": "us-core-race",
312
+ "url": "http://hl7.org/fhir/us/core/SearchParameter/us-core-race",
313
+ "version": "5.0.1",
314
+ "name": "USCoreRace",
315
+ "status": "active",
316
+ "date": "2022-04-14",
317
+ "publisher": "HL7 International - Cross-Group Projects",
318
+ "contact": [
319
+ {
320
+ "name": "HL7 International - Cross-Group Projects",
321
+ "telecom": [
322
+ { "system": "url", "value": "http://www.hl7.org/Special/committees/cgp" },
323
+ { "system": "email", "value": "cgp@lists.HL7.org" }
324
+ ]
325
+ }
326
+ ],
327
+ "description": "Returns patients with a race extension matching the specified code.",
328
+ "jurisdiction": [{ "coding": [{ "system": "urn:iso:std:iso:3166", "code": "US" }] }],
329
+ "code": "race",
330
+ "base": ["Patient"],
331
+ "type": "token",
332
+ "expression": "Patient.extension.where(url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race').extension.value.code",
333
+ "xpath": "f:Patient/f:extension[@url='http://hl7.org/fhir/us/core/StructureDefinition/us-core-race']/f:extension/f:valueCoding/f:code/@value",
334
+ "xpathUsage": "normal",
335
+ "multipleOr": true,
336
+ "_multipleOr": {
337
+ "extension": [
338
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
339
+ ]
340
+ },
341
+ "multipleAnd": true,
342
+ "_multipleAnd": {
343
+ "extension": [
344
+ { "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", "valueCode": "MAY" }
345
+ ]
346
+ }
347
+ }
348
+ }
349
+ ]
350
+ }
package/dist/index.d.ts CHANGED
@@ -1,2 +1,7 @@
1
1
  export declare function readJson(filename: string): any;
2
+ /**
3
+ * The list of all known search parameter definition bundle file paths relative to the
4
+ * `@medplum/definitions` package. Typically used in conjunction with `readJson`.
5
+ */
6
+ export declare const SEARCH_PARAMETER_BUNDLE_FILES: string[];
2
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAE9C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAE9C;AAED;;;GAGG;AACH,eAAO,MAAM,6BAA6B,UAIzC,CAAC"}
package/dist/index.js CHANGED
@@ -1,9 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readJson = void 0;
3
+ exports.SEARCH_PARAMETER_BUNDLE_FILES = exports.readJson = void 0;
4
4
  const fs_1 = require("fs");
5
5
  const path_1 = require("path");
6
6
  function readJson(filename) {
7
7
  return JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, filename), 'utf8'));
8
8
  }
9
9
  exports.readJson = readJson;
10
+ /**
11
+ * The list of all known search parameter definition bundle file paths relative to the
12
+ * `@medplum/definitions` package. Typically used in conjunction with `readJson`.
13
+ */
14
+ exports.SEARCH_PARAMETER_BUNDLE_FILES = [
15
+ 'fhir/r4/search-parameters.json',
16
+ 'fhir/r4/search-parameters-medplum.json',
17
+ 'fhir/r4/search-parameters-uscore.json',
18
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/definitions",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
4
4
  "description": "Medplum Data Definitions",
5
5
  "keywords": [
6
6
  "medplum",