@synanetics/profiles-pie 1.0.1 → 2.1.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.
@@ -12,7 +12,7 @@
12
12
  "resourceType": "StructureDefinition",
13
13
  "id": "RoutingRule",
14
14
  "meta": {
15
- "lastUpdated": "2024-02-21T17:00:00.000Z"
15
+ "lastUpdated": "2025-09-18T12:00:00.000Z"
16
16
  },
17
17
  "extension": [
18
18
  {
@@ -24,7 +24,7 @@
24
24
  "name": "RoutingRule",
25
25
  "status": "draft",
26
26
  "experimental": true,
27
- "date": "2024-02-21T17:00:00.000Z",
27
+ "date": "2025-09-18T12:00:00.000Z",
28
28
  "publisher": "Synanetics Ltd",
29
29
  "contact": [
30
30
  {
@@ -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/Endpoints (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,30 +294,18 @@
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",
313
- "short": "The sending organization",
314
- "definition": "The organization that is routing to a receiver",
300
+ "short": "The sending organization/endpoint",
301
+ "definition": "The organization/endpoint that is routing to a receiver",
315
302
  "min": 1,
316
303
  "max": "1",
317
304
  "type": [
318
305
  {
319
306
  "code": "Reference",
320
307
  "targetProfile": [
308
+ "http://hl7.org/fhir/StructureDefinition/Endpoint",
321
309
  "http://hl7.org/fhir/StructureDefinition/Organization"
322
310
  ]
323
311
  }
@@ -327,14 +315,15 @@
327
315
  {
328
316
  "id": "RoutingRule.receiver",
329
317
  "path": "RoutingRule.receiver",
330
- "short": "The receiving organization",
331
- "definition": "The organization that is routed to by a sender",
318
+ "short": "The receiving organization/endpoint",
319
+ "definition": "The organization/endpoint that is routed to by a sender",
332
320
  "min": 1,
333
321
  "max": "1",
334
322
  "type": [
335
323
  {
336
324
  "code": "Reference",
337
325
  "targetProfile": [
326
+ "http://hl7.org/fhir/StructureDefinition/Endpoint",
338
327
  "http://hl7.org/fhir/StructureDefinition/Organization"
339
328
  ]
340
329
  }
@@ -359,9 +348,9 @@
359
348
  "id": "RoutingRule.senderCode",
360
349
  "path": "RoutingRule.senderCode",
361
350
  "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": "*",
351
+ "definition": "A code chosen by the sender, that can be used to identify that this RoutingRule is to be used.",
352
+ "min": 1,
353
+ "max": "1",
365
354
  "type": [
366
355
  {
367
356
  "code": "CodeableConcept"
@@ -370,18 +359,15 @@
370
359
  "isSummary": true
371
360
  },
372
361
  {
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,
362
+ "id": "RoutingRule.receiverCode",
363
+ "path": "RoutingRule.receiverCode",
364
+ "short": "The receiver's code for the process.",
365
+ "definition": "A code defined by the receiver, and chosen by the sender, which informs the receiver which process to perform.",
366
+ "min": 1,
378
367
  "max": "1",
379
368
  "type": [
380
369
  {
381
- "code": "Reference",
382
- "targetProfile": [
383
- "http://hl7.org/fhir/StructureDefinition/ConceptMap"
384
- ]
370
+ "code": "CodeableConcept"
385
371
  }
386
372
  ],
387
373
  "isSummary": true
@@ -623,7 +609,7 @@
623
609
  "resourceType": "StructureDefinition",
624
610
  "id": "SupplierList",
625
611
  "meta": {
626
- "lastUpdated": "2024-02-21T17:00:00.000Z"
612
+ "lastUpdated": "2025-09-18T12:00:00.000Z"
627
613
  },
628
614
  "extension": [
629
615
  {
@@ -635,7 +621,7 @@
635
621
  "name": "SupplierList",
636
622
  "status": "draft",
637
623
  "experimental": true,
638
- "date": "2024-02-21T17:00:00.000Z",
624
+ "date": "2025-09-18T12:00:00.000Z",
639
625
  "publisher": "Synanetics Ltd",
640
626
  "contact": [
641
627
  {
@@ -648,7 +634,7 @@
648
634
  }
649
635
  ],
650
636
  "description": "Base StructureDefinition for SupplierList resource",
651
- "purpose": "Defines a list of suppliers for a given provision, e.g. the Organizations (supplier) that supply pathology services for a certain procedure (the provision)",
637
+ "purpose": "Defines a list of suppliers for a given provision, e.g. the Organizations/Endpoints (supplier) that supply pathology services for a certain procedure (the provision)",
652
638
  "fhirVersion": "4.3.0",
653
639
  "kind": "resource",
654
640
  "abstract": false,
@@ -920,13 +906,14 @@
920
906
  "id": "SupplierList.supplier",
921
907
  "path": "SupplierList.supplier",
922
908
  "short": "suppliers who provide the provision",
923
- "definition": "suppliers who provide the provision, e.g an array of Organization references, where each of the Organizations is a laboratory can provide the pathology procedure defined in the provision.",
909
+ "definition": "suppliers who provide the provision, e.g an array of Organization/Endpoint references, where each of the Organizations/Endpoints is a laboratory can provide the pathology procedure defined in the provision.",
924
910
  "min": 0,
925
911
  "max": "*",
926
912
  "type": [
927
913
  {
928
914
  "code": "Reference",
929
915
  "targetProfile": [
916
+ "http://hl7.org/fhir/StructureDefinition/Endpoint",
930
917
  "http://hl7.org/fhir/StructureDefinition/Organization"
931
918
  ]
932
919
  }
@@ -15,62 +15,22 @@
15
15
  "name": "used-by",
16
16
  "status": "draft",
17
17
  "experimental": false,
18
- "date": "2024-03-11T12:00:00.000Z",
18
+ "date": "2025-09-18T12:00:00.000Z",
19
19
  "publisher": "Synanetics Ltd",
20
20
  "code": "-used-by",
21
21
  "base": [
22
22
  "ConceptMap",
23
- "CodeSystem"
23
+ "CodeSystem",
24
+ "Composition",
25
+ "PlanDefinition"
24
26
  ],
25
27
  "target": [
28
+ "Endpoint",
26
29
  "Organization"
27
30
  ],
28
31
  "type": "reference",
29
32
  "description": "",
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
- }
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"
33
+ "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 | Composition.extension.where(url='https://pie.synanetics.com/fhir/r4/StructureDefinition/used-by').valueReference | PlanDefinition.extension.where(url='https://pie.synanetics.com/fhir/r4/StructureDefinition/used-by').valueReference"
74
34
  }
75
35
  },
76
36
  {
@@ -113,7 +73,7 @@
113
73
  "name": "receiver",
114
74
  "status": "draft",
115
75
  "experimental": false,
116
- "date": "2024-02-23T12:00:00.000Z",
76
+ "date": "2025-09-18T12:00:00.000Z",
117
77
  "publisher": "Synanetics Ltd",
118
78
  "code": "receiver",
119
79
  "base": [
@@ -121,6 +81,7 @@
121
81
  ],
122
82
  "type": "reference",
123
83
  "target": [
84
+ "Endpoint",
124
85
  "Organization"
125
86
  ],
126
87
  "description": "",
@@ -156,7 +117,7 @@
156
117
  "name": "sender",
157
118
  "status": "draft",
158
119
  "experimental": false,
159
- "date": "2024-02-23T12:00:00.000Z",
120
+ "date": "2025-09-18T12:00:00.000Z",
160
121
  "publisher": "Synanetics Ltd",
161
122
  "code": "sender",
162
123
  "base": [
@@ -164,6 +125,7 @@
164
125
  ],
165
126
  "type": "reference",
166
127
  "target": [
128
+ "Endpoint",
167
129
  "Organization"
168
130
  ],
169
131
  "description": "",
@@ -299,7 +261,7 @@
299
261
  "name": "supplier",
300
262
  "status": "draft",
301
263
  "experimental": false,
302
- "date": "2023-11-14T12:00:00.000Z",
264
+ "date": "2025-09-18T12:00:00.000Z",
303
265
  "publisher": "Synanetics Ltd",
304
266
  "code": "supplier",
305
267
  "base": [
@@ -307,6 +269,7 @@
307
269
  ],
308
270
  "type": "reference",
309
271
  "target": [
272
+ "Endpoint",
310
273
  "Organization"
311
274
  ],
312
275
  "description": "",
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@synanetics/profiles-pie",
3
- "version": "1.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "FHIR Profiles for the Synanetics Pathology Integration Engine (PIE)",
5
5
  "author": "Lee Campbell <lee.campbell@synanetics.com>",
6
- "homepage": "https://bitbucket.org/synanetics/synanetics-common/packages/profiles-pie#readme",
6
+ "homepage": "https://github.com/SynaneticsLtd/synanetics-core-common/packages/profiles-pie#readme",
7
7
  "license": "MIT",
8
8
  "main": "./dist/index.js",
9
9
  "files": [
10
10
  "dist"
11
11
  ],
12
+ "type": "module",
12
13
  "scripts": {
13
14
  "build": "NODE_OPTIONS='--loader ts-node/esm' npx ts-node src/build && tsc src/index.ts --outDir ./dist",
14
15
  "prepublishOnly": "npm run build"
@@ -21,9 +22,8 @@
21
22
  "url": "git+ssh://git@bitbucket.org/synanetics/synanetics-common.git"
22
23
  },
23
24
  "bugs": {
24
- "url": "https://bitbucket.org/synanetics/synanetics-common/issues"
25
+ "url": "https://github.com/SynaneticsLtd/synanetics-core-common/issues"
25
26
  },
26
- "type": "module",
27
27
  "dependencies": {
28
28
  "@types/fhir": "^0.0.41"
29
29
  }