@synanetics/profiles-pie 1.0.0-beta.1
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 +17 -0
- package/dist/codesystems.json +104 -0
- package/dist/index.js +14 -0
- package/dist/profiles-resources.json +941 -0
- package/dist/search-parameters.json +273 -0
- package/dist/valuesets.json +47 -0
- package/package.json +29 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# `@synanetics/profiles-pie`
|
|
2
|
+
|
|
3
|
+
> A set of FHIR profiles that supports GCPIE.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Simply import the profiles into the custom schema directory of your Connect appliance/adapter.
|
|
8
|
+
|
|
9
|
+
## Contributing
|
|
10
|
+
|
|
11
|
+
The profiles have been defined using TypeScript types and the `@types/fhir` package. If you wish to modify the profiles, modify the underlying types and run:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm run build
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
to regenerate the JSON profiles in the "dist" folder for exporting.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType": "Bundle",
|
|
3
|
+
"id": "codesystems",
|
|
4
|
+
"meta": {
|
|
5
|
+
"lastUpdated": "2025-02-07T08:00:00.000Z"
|
|
6
|
+
},
|
|
7
|
+
"type": "collection",
|
|
8
|
+
"entry": [
|
|
9
|
+
{
|
|
10
|
+
"fullUrl": "https://pie.synanetics.com/fhir/r4/CodeSystem/RoutingRule-status",
|
|
11
|
+
"resource": {
|
|
12
|
+
"resourceType": "CodeSystem",
|
|
13
|
+
"url": "https://pie.synanetics.com/fhir/r4/CodeSystem/RoutingRule-status",
|
|
14
|
+
"status": "active",
|
|
15
|
+
"date": "2024-02-27T15:00:00.000Z",
|
|
16
|
+
"content": "complete",
|
|
17
|
+
"valueSet": "https://pie.synanetics.com/fhir/r4/ValueSet/RoutingRule-status",
|
|
18
|
+
"concept": [
|
|
19
|
+
{
|
|
20
|
+
"code": "active",
|
|
21
|
+
"display": "Active",
|
|
22
|
+
"definition": "The routing rule is currently active, and will be evaluated if the current instant is within its defined active period."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"code": "inactive",
|
|
26
|
+
"display": "Inactive",
|
|
27
|
+
"definition": "The routing rule is currently inactive, and will NOT be evaluated, even if the current instant is within its defined active period."
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"fullUrl": "https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-status-detail",
|
|
34
|
+
"resource": {
|
|
35
|
+
"resourceType": "CodeSystem",
|
|
36
|
+
"url": "https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-status-detail",
|
|
37
|
+
"status": "active",
|
|
38
|
+
"date": "2025-02-06T17:00:00.000Z",
|
|
39
|
+
"content": "complete",
|
|
40
|
+
"valueSet": "https://pie.synanetics.com/fhir/r4/ValueSet/ServiceRequest-status-detail",
|
|
41
|
+
"concept": [
|
|
42
|
+
{
|
|
43
|
+
"code": "ORDER_RECEIVED",
|
|
44
|
+
"display": "Order Received",
|
|
45
|
+
"definition": "The order has been received but not yet processed."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"code": "ORDER_UPDATE_RECEIVED",
|
|
49
|
+
"display": "Order Update Received",
|
|
50
|
+
"definition": "An update to the order has been received but processing may not yet be complete."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"code": "SAMPLE_SCANNED",
|
|
54
|
+
"display": "Sample Scanned (not yet accepted)",
|
|
55
|
+
"definition": "The sample has been scanned into the lab system but has not yet been accepted for processing."
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"code": "SAMPLE_RECEIVED",
|
|
59
|
+
"display": "Sample Received By Lab",
|
|
60
|
+
"definition": "The lab has received the sample."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"code": "ERROR",
|
|
64
|
+
"display": "Error processing PIE order",
|
|
65
|
+
"definition": "An error occurred while processing the order."
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"fullUrl": "https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-order-status",
|
|
72
|
+
"resource": {
|
|
73
|
+
"resourceType": "CodeSystem",
|
|
74
|
+
"url": "https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-order-status",
|
|
75
|
+
"status": "active",
|
|
76
|
+
"date": "2025-02-06T17:00:00.000Z",
|
|
77
|
+
"content": "complete",
|
|
78
|
+
"valueSet": "https://pie.synanetics.com/fhir/r4/ValueSet/ServiceRequest-order-status",
|
|
79
|
+
"concept": [
|
|
80
|
+
{
|
|
81
|
+
"code": "ORDER_RELEASED",
|
|
82
|
+
"display": "Order Released To Lab",
|
|
83
|
+
"definition": "The order has been released to the lab for processing."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"code": "ORDER_ACCEPTED",
|
|
87
|
+
"display": "Order Accepted By Lab",
|
|
88
|
+
"definition": "The lab has accepted the order and is processing it."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"code": "ORDER_REJECTED",
|
|
92
|
+
"display": "Order Rejected By Lab",
|
|
93
|
+
"definition": "The lab has rejected the order and will not process it."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"code": "OBSERVATION_RECEIVED",
|
|
97
|
+
"display": "Observation(s) Received",
|
|
98
|
+
"definition": "The lab has released some but not necessarily all of the result(s)/observation(s)."
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var fs = require("fs");
|
|
4
|
+
var path = require("path");
|
|
5
|
+
var profilesDir = __dirname;
|
|
6
|
+
// Read all JSON files in the directory
|
|
7
|
+
var files = fs.readdirSync(profilesDir)
|
|
8
|
+
.filter(function (file) { return file.endsWith('.json'); })
|
|
9
|
+
.reduce(function (acc, file) {
|
|
10
|
+
var fileName = file.replace('.json', '');
|
|
11
|
+
acc[fileName] = JSON.parse(fs.readFileSync(path.join(profilesDir, file), 'utf-8'));
|
|
12
|
+
return acc;
|
|
13
|
+
}, {});
|
|
14
|
+
exports.default = files;
|