@synanetics/profiles-pie 1.0.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.
@@ -37,7 +37,7 @@
37
37
  }
38
38
  ],
39
39
  "description": "Base StructureDefinition for RoutingRule resource",
40
- "purpose": "RoutingRule defines a routing between two Organizations where one is a sender, and the other a receiver for a given process, as well as the time period for which it is valid. The definition optionally includes the sender's local code(s) for the process, as well as a reference to a ConceptMap that instructs the consumer how to convert the sender's local codes to ones the receiver prefers.",
40
+ "purpose": "RoutingRule defines rules for routing ServiceRequest resources between two Organizations (the 'sender' and the 'receiver'). The definition includes the sender's local code for the process, the receiver's local code and selected snomed code, and the time period for which the rule is valid.",
41
41
  "fhirVersion": "4.3.0",
42
42
  "kind": "resource",
43
43
  "abstract": false,
@@ -294,19 +294,6 @@
294
294
  "valueSet": "https://pie.synanetics.com/fhir/r4/ValueSet/RoutingRule-status"
295
295
  }
296
296
  },
297
- {
298
- "id": "RoutingRule.default",
299
- "path": "RoutingRule.default",
300
- "short": "Is default RoutingRule",
301
- "definition": "A Boolean flag that determines whether or not this is the default routing rule for this sender.",
302
- "min": 1,
303
- "max": "1",
304
- "type": [
305
- {
306
- "code": "boolean"
307
- }
308
- ]
309
- },
310
297
  {
311
298
  "id": "RoutingRule.sender",
312
299
  "path": "RoutingRule.sender",
@@ -359,9 +346,9 @@
359
346
  "id": "RoutingRule.senderCode",
360
347
  "path": "RoutingRule.senderCode",
361
348
  "short": "The sender's code(s) for the process.",
362
- "definition": "A set of codes, chosen by the sender, that can be used to identify that this RoutingRule is to be used.",
363
- "min": 0,
364
- "max": "*",
349
+ "definition": "A code chosen by the sender, that can be used to identify that this RoutingRule is to be used.",
350
+ "min": 1,
351
+ "max": "1",
365
352
  "type": [
366
353
  {
367
354
  "code": "CodeableConcept"
@@ -370,18 +357,15 @@
370
357
  "isSummary": true
371
358
  },
372
359
  {
373
- "id": "RoutingRule.conceptMap",
374
- "path": "RoutingRule.conceptMap",
375
- "short": "ConceptMap Resource specific to this RoutingRule.",
376
- "definition": "A concept map to be applied to the `senderCode` in the context of this RoutingRule. An example might be that, when sending pathology test A to laboratory 1, ConceptMap/LAB.1 needs to be applied to convert the sender's local code to SNOMED CT.",
377
- "min": 0,
360
+ "id": "RoutingRule.receiverCode",
361
+ "path": "RoutingRule.receiverCode",
362
+ "short": "The receiver's code for the process.",
363
+ "definition": "A code defined by the receiver, and chosen by the sender, which informs the receiver which process to perform.",
364
+ "min": 1,
378
365
  "max": "1",
379
366
  "type": [
380
367
  {
381
- "code": "Reference",
382
- "targetProfile": [
383
- "http://hl7.org/fhir/StructureDefinition/ConceptMap"
384
- ]
368
+ "code": "CodeableConcept"
385
369
  }
386
370
  ],
387
371
  "isSummary": true
@@ -30,49 +30,6 @@
30
30
  "expression": "ConceptMap.extension.where(url='https://pie.synanetics.com/fhir/r4/StructureDefinition/used-by').valueReference | CodeSystem.extension.where(url='https://pie.synanetics.com/fhir/r4/StructureDefinition/used-by').valueReference"
31
31
  }
32
32
  },
33
- {
34
- "fullUrl": "https://pie.synanetics.com/fhir/r4/SearchParameter/RoutingRule-conceptMap",
35
- "resource": {
36
- "resourceType": "SearchParameter",
37
- "id": "RoutingRule-conceptMap",
38
- "url": "https://pie.synanetics.com/fhir/r4/SearchParameter/RoutingRule-conceptMap",
39
- "name": "conceptMap",
40
- "status": "draft",
41
- "experimental": false,
42
- "date": "2024-02-27T09:00:00.000Z",
43
- "publisher": "Synanetics Ltd",
44
- "code": "conceptMap",
45
- "base": [
46
- "RoutingRule"
47
- ],
48
- "type": "reference",
49
- "target": [
50
- "ConceptMap"
51
- ],
52
- "description": "",
53
- "expression": "RoutingRule.conceptMap"
54
- }
55
- },
56
- {
57
- "fullUrl": "https://pie.synanetics.com/fhir/r4/SearchParameter/RoutingRule-default",
58
- "resource": {
59
- "resourceType": "SearchParameter",
60
- "id": "RoutingRule-default",
61
- "url": "https://pie.synanetics.com/fhir/r4/SearchParameter/RoutingRule-default",
62
- "name": "default",
63
- "status": "draft",
64
- "experimental": false,
65
- "date": "2024-02-27T16:00:00.000Z",
66
- "publisher": "Synanetics Ltd",
67
- "code": "default",
68
- "base": [
69
- "RoutingRule"
70
- ],
71
- "type": "token",
72
- "description": "",
73
- "expression": "RoutingRule.default"
74
- }
75
- },
76
33
  {
77
34
  "fullUrl": "https://pie.synanetics.com/fhir/r4/SearchParameter/RoutingRule-period",
78
35
  "resource": {
@@ -227,7 +184,7 @@
227
184
  ],
228
185
  "type": "token",
229
186
  "description": "Search by filler group number",
230
- "expression": "RoutingRule.extension.where(url='https://pie.synanetics.com/fhir/r4/StructureDefinition/ServiceRequest-filler-group-number').value"
187
+ "expression": "ServiceRequest.extension.where(url='https://pie.synanetics.com/fhir/r4/StructureDefinition/ServiceRequest-filler-group-number').value"
231
188
  }
232
189
  },
233
190
  {
@@ -247,7 +204,7 @@
247
204
  ],
248
205
  "type": "token",
249
206
  "description": "Search by placer group number",
250
- "expression": "RoutingRule.extension.where(url='https://pie.synanetics.com/fhir/r4/StructureDefinition/ServiceRequest-placer-group-number').value"
207
+ "expression": "ServiceRequest.extension.where(url='https://pie.synanetics.com/fhir/r4/StructureDefinition/ServiceRequest-placer-group-number').value"
251
208
  }
252
209
  },
253
210
  {
@@ -290,26 +247,6 @@
290
247
  "expression": "SupplierList.snomedCode"
291
248
  }
292
249
  },
293
- {
294
- "fullUrl": "https://pie.synanetics.com/fhir/r4/SearchParameter/RoutingRule-status",
295
- "resource": {
296
- "resourceType": "SearchParameter",
297
- "id": "RoutingRule-status",
298
- "url": "https://pie.synanetics.com/fhir/r4/SearchParameter/RoutingRule-status",
299
- "name": "status",
300
- "status": "draft",
301
- "experimental": false,
302
- "date": "2024-02-27T16:00:00.000Z",
303
- "publisher": "Synanetics Ltd",
304
- "code": "status",
305
- "base": [
306
- "RoutingRule"
307
- ],
308
- "type": "token",
309
- "description": "",
310
- "expression": "RoutingRule.status"
311
- }
312
- },
313
250
  {
314
251
  "fullUrl": "https://pie.synanetics.com/fhir/r4/SearchParameter/SupplierList-supplier",
315
252
  "resource": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synanetics/profiles-pie",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "FHIR Profiles for the Synanetics Pathology Integration Engine (PIE)",
5
5
  "author": "Lee Campbell <lee.campbell@synanetics.com>",
6
6
  "homepage": "https://bitbucket.org/synanetics/synanetics-common/packages/profiles-pie#readme",
@@ -9,8 +9,10 @@
9
9
  "files": [
10
10
  "dist"
11
11
  ],
12
+ "type": "module",
12
13
  "scripts": {
13
- "build": "NODE_OPTIONS='--loader ts-node/esm' npx ts-node src/build && tsc src/index.ts --outDir ./dist"
14
+ "build": "NODE_OPTIONS='--loader ts-node/esm' npx ts-node src/build && tsc src/index.ts --outDir ./dist",
15
+ "prepublishOnly": "npm run build"
14
16
  },
15
17
  "publishConfig": {
16
18
  "access": "public"
@@ -22,7 +24,6 @@
22
24
  "bugs": {
23
25
  "url": "https://bitbucket.org/synanetics/synanetics-common/issues"
24
26
  },
25
- "type": "module",
26
27
  "dependencies": {
27
28
  "@types/fhir": "^0.0.41"
28
29
  }