@synanetics/profiles-pie 4.0.0 → 5.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.
Files changed (211) hide show
  1. package/README.md +25 -7
  2. package/dist/codesystems/RoutingRule-status.cjs +45 -0
  3. package/dist/codesystems/RoutingRule-status.cjs.map +1 -0
  4. package/dist/codesystems/RoutingRule-status.d.cts +24 -0
  5. package/dist/codesystems/RoutingRule-status.d.cts.map +1 -0
  6. package/dist/codesystems/RoutingRule-status.d.mts +24 -0
  7. package/dist/codesystems/RoutingRule-status.d.mts.map +1 -0
  8. package/dist/codesystems/RoutingRule-status.mjs +43 -0
  9. package/dist/codesystems/RoutingRule-status.mjs.map +1 -0
  10. package/dist/codesystems/ServiceRequest-error-status.cjs +33 -0
  11. package/dist/codesystems/ServiceRequest-error-status.cjs.map +1 -0
  12. package/dist/codesystems/ServiceRequest-error-status.d.cts +18 -0
  13. package/dist/codesystems/ServiceRequest-error-status.d.cts.map +1 -0
  14. package/dist/codesystems/ServiceRequest-error-status.d.mts +18 -0
  15. package/dist/codesystems/ServiceRequest-error-status.d.mts.map +1 -0
  16. package/dist/codesystems/ServiceRequest-error-status.mjs +31 -0
  17. package/dist/codesystems/ServiceRequest-error-status.mjs.map +1 -0
  18. package/dist/codesystems/ServiceRequest-post-dispatch-status.cjs +70 -0
  19. package/dist/codesystems/ServiceRequest-post-dispatch-status.cjs.map +1 -0
  20. package/dist/codesystems/ServiceRequest-post-dispatch-status.d.cts +36 -0
  21. package/dist/codesystems/ServiceRequest-post-dispatch-status.d.cts.map +1 -0
  22. package/dist/codesystems/ServiceRequest-post-dispatch-status.d.mts +36 -0
  23. package/dist/codesystems/ServiceRequest-post-dispatch-status.d.mts.map +1 -0
  24. package/dist/codesystems/ServiceRequest-post-dispatch-status.mjs +68 -0
  25. package/dist/codesystems/ServiceRequest-post-dispatch-status.mjs.map +1 -0
  26. package/dist/codesystems/ServiceRequest-pre-dispatch-status.cjs +70 -0
  27. package/dist/codesystems/ServiceRequest-pre-dispatch-status.cjs.map +1 -0
  28. package/dist/codesystems/ServiceRequest-pre-dispatch-status.d.cts +36 -0
  29. package/dist/codesystems/ServiceRequest-pre-dispatch-status.d.cts.map +1 -0
  30. package/dist/codesystems/ServiceRequest-pre-dispatch-status.d.mts +36 -0
  31. package/dist/codesystems/ServiceRequest-pre-dispatch-status.d.mts.map +1 -0
  32. package/dist/codesystems/ServiceRequest-pre-dispatch-status.mjs +68 -0
  33. package/dist/codesystems/ServiceRequest-pre-dispatch-status.mjs.map +1 -0
  34. package/dist/codesystems/index.cjs +5 -0
  35. package/dist/codesystems/index.mjs +7 -0
  36. package/dist/codesystems/pieOutcome.cjs +63 -0
  37. package/dist/codesystems/pieOutcome.cjs.map +1 -0
  38. package/dist/codesystems/pieOutcome.d.cts +17 -0
  39. package/dist/codesystems/pieOutcome.d.cts.map +1 -0
  40. package/dist/codesystems/pieOutcome.d.mts +17 -0
  41. package/dist/codesystems/pieOutcome.d.mts.map +1 -0
  42. package/dist/codesystems/pieOutcome.mjs +62 -0
  43. package/dist/codesystems/pieOutcome.mjs.map +1 -0
  44. package/dist/codesystems.json +89 -21
  45. package/dist/constants.cjs +103 -0
  46. package/dist/constants.cjs.map +1 -0
  47. package/dist/constants.d.cts +79 -0
  48. package/dist/constants.d.cts.map +1 -0
  49. package/dist/constants.d.mts +79 -0
  50. package/dist/constants.d.mts.map +1 -0
  51. package/dist/constants.mjs +88 -0
  52. package/dist/constants.mjs.map +1 -0
  53. package/dist/index.cjs +74 -0
  54. package/dist/index.d.cts +26 -0
  55. package/dist/index.d.mts +26 -0
  56. package/dist/index.mjs +29 -0
  57. package/dist/profiles-resources/RoutingRule.cjs +359 -0
  58. package/dist/profiles-resources/RoutingRule.cjs.map +1 -0
  59. package/dist/profiles-resources/RoutingRule.d.cts +7 -0
  60. package/dist/profiles-resources/RoutingRule.d.cts.map +1 -0
  61. package/dist/profiles-resources/RoutingRule.d.mts +7 -0
  62. package/dist/profiles-resources/RoutingRule.d.mts.map +1 -0
  63. package/dist/profiles-resources/RoutingRule.mjs +359 -0
  64. package/dist/profiles-resources/RoutingRule.mjs.map +1 -0
  65. package/dist/profiles-resources/ServiceRequest-filler-group-number.cjs +58 -0
  66. package/dist/profiles-resources/ServiceRequest-filler-group-number.cjs.map +1 -0
  67. package/dist/profiles-resources/ServiceRequest-filler-group-number.d.cts +7 -0
  68. package/dist/profiles-resources/ServiceRequest-filler-group-number.d.cts.map +1 -0
  69. package/dist/profiles-resources/ServiceRequest-filler-group-number.d.mts +7 -0
  70. package/dist/profiles-resources/ServiceRequest-filler-group-number.d.mts.map +1 -0
  71. package/dist/profiles-resources/ServiceRequest-filler-group-number.mjs +58 -0
  72. package/dist/profiles-resources/ServiceRequest-filler-group-number.mjs.map +1 -0
  73. package/dist/profiles-resources/ServiceRequest-placer-group-number.cjs +58 -0
  74. package/dist/profiles-resources/ServiceRequest-placer-group-number.cjs.map +1 -0
  75. package/dist/profiles-resources/ServiceRequest-placer-group-number.d.cts +7 -0
  76. package/dist/profiles-resources/ServiceRequest-placer-group-number.d.cts.map +1 -0
  77. package/dist/profiles-resources/ServiceRequest-placer-group-number.d.mts +7 -0
  78. package/dist/profiles-resources/ServiceRequest-placer-group-number.d.mts.map +1 -0
  79. package/dist/profiles-resources/ServiceRequest-placer-group-number.mjs +58 -0
  80. package/dist/profiles-resources/ServiceRequest-placer-group-number.mjs.map +1 -0
  81. package/dist/profiles-resources/ServiceRequest-status-detail.cjs +95 -0
  82. package/dist/profiles-resources/ServiceRequest-status-detail.cjs.map +1 -0
  83. package/dist/profiles-resources/ServiceRequest-status-detail.d.cts +7 -0
  84. package/dist/profiles-resources/ServiceRequest-status-detail.d.cts.map +1 -0
  85. package/dist/profiles-resources/ServiceRequest-status-detail.d.mts +7 -0
  86. package/dist/profiles-resources/ServiceRequest-status-detail.d.mts.map +1 -0
  87. package/dist/profiles-resources/ServiceRequest-status-detail.mjs +95 -0
  88. package/dist/profiles-resources/ServiceRequest-status-detail.mjs.map +1 -0
  89. package/dist/profiles-resources/index.cjs +5 -0
  90. package/dist/profiles-resources/index.mjs +7 -0
  91. package/dist/profiles-resources/used-by.cjs +64 -0
  92. package/dist/profiles-resources/used-by.cjs.map +1 -0
  93. package/dist/profiles-resources/used-by.d.cts +7 -0
  94. package/dist/profiles-resources/used-by.d.cts.map +1 -0
  95. package/dist/profiles-resources/used-by.d.mts +7 -0
  96. package/dist/profiles-resources/used-by.d.mts.map +1 -0
  97. package/dist/profiles-resources/used-by.mjs +64 -0
  98. package/dist/profiles-resources/used-by.mjs.map +1 -0
  99. package/dist/profiles-resources.json +138 -323
  100. package/dist/search-parameters/RoutingRule-name.cjs +22 -0
  101. package/dist/search-parameters/RoutingRule-name.cjs.map +1 -0
  102. package/dist/search-parameters/RoutingRule-name.d.cts +7 -0
  103. package/dist/search-parameters/RoutingRule-name.d.cts.map +1 -0
  104. package/dist/search-parameters/RoutingRule-name.d.mts +7 -0
  105. package/dist/search-parameters/RoutingRule-name.d.mts.map +1 -0
  106. package/dist/search-parameters/RoutingRule-name.mjs +22 -0
  107. package/dist/search-parameters/RoutingRule-name.mjs.map +1 -0
  108. package/dist/search-parameters/RoutingRule-period.cjs +33 -0
  109. package/dist/search-parameters/RoutingRule-period.cjs.map +1 -0
  110. package/dist/search-parameters/RoutingRule-period.d.cts +7 -0
  111. package/dist/search-parameters/RoutingRule-period.d.cts.map +1 -0
  112. package/dist/search-parameters/RoutingRule-period.d.mts +7 -0
  113. package/dist/search-parameters/RoutingRule-period.d.mts.map +1 -0
  114. package/dist/search-parameters/RoutingRule-period.mjs +33 -0
  115. package/dist/search-parameters/RoutingRule-period.mjs.map +1 -0
  116. package/dist/search-parameters/RoutingRule-process.cjs +23 -0
  117. package/dist/search-parameters/RoutingRule-process.cjs.map +1 -0
  118. package/dist/search-parameters/RoutingRule-process.d.cts +7 -0
  119. package/dist/search-parameters/RoutingRule-process.d.cts.map +1 -0
  120. package/dist/search-parameters/RoutingRule-process.d.mts +7 -0
  121. package/dist/search-parameters/RoutingRule-process.d.mts.map +1 -0
  122. package/dist/search-parameters/RoutingRule-process.mjs +23 -0
  123. package/dist/search-parameters/RoutingRule-process.mjs.map +1 -0
  124. package/dist/search-parameters/RoutingRule-receiver.cjs +23 -0
  125. package/dist/search-parameters/RoutingRule-receiver.cjs.map +1 -0
  126. package/dist/search-parameters/RoutingRule-receiver.d.cts +7 -0
  127. package/dist/search-parameters/RoutingRule-receiver.d.cts.map +1 -0
  128. package/dist/search-parameters/RoutingRule-receiver.d.mts +7 -0
  129. package/dist/search-parameters/RoutingRule-receiver.d.mts.map +1 -0
  130. package/dist/search-parameters/RoutingRule-receiver.mjs +23 -0
  131. package/dist/search-parameters/RoutingRule-receiver.mjs.map +1 -0
  132. package/dist/search-parameters/RoutingRule-sender.cjs +23 -0
  133. package/dist/search-parameters/RoutingRule-sender.cjs.map +1 -0
  134. package/dist/search-parameters/RoutingRule-sender.d.cts +7 -0
  135. package/dist/search-parameters/RoutingRule-sender.d.cts.map +1 -0
  136. package/dist/search-parameters/RoutingRule-sender.d.mts +7 -0
  137. package/dist/search-parameters/RoutingRule-sender.d.mts.map +1 -0
  138. package/dist/search-parameters/RoutingRule-sender.mjs +23 -0
  139. package/dist/search-parameters/RoutingRule-sender.mjs.map +1 -0
  140. package/dist/search-parameters/RoutingRule-status.cjs +22 -0
  141. package/dist/search-parameters/RoutingRule-status.cjs.map +1 -0
  142. package/dist/search-parameters/RoutingRule-status.d.cts +7 -0
  143. package/dist/search-parameters/RoutingRule-status.d.cts.map +1 -0
  144. package/dist/search-parameters/RoutingRule-status.d.mts +7 -0
  145. package/dist/search-parameters/RoutingRule-status.d.mts.map +1 -0
  146. package/dist/search-parameters/RoutingRule-status.mjs +22 -0
  147. package/dist/search-parameters/RoutingRule-status.mjs.map +1 -0
  148. package/dist/search-parameters/RoutingRule-title.cjs +22 -0
  149. package/dist/search-parameters/RoutingRule-title.cjs.map +1 -0
  150. package/dist/search-parameters/RoutingRule-title.d.cts +7 -0
  151. package/dist/search-parameters/RoutingRule-title.d.cts.map +1 -0
  152. package/dist/search-parameters/RoutingRule-title.d.mts +7 -0
  153. package/dist/search-parameters/RoutingRule-title.d.mts.map +1 -0
  154. package/dist/search-parameters/RoutingRule-title.mjs +22 -0
  155. package/dist/search-parameters/RoutingRule-title.mjs.map +1 -0
  156. package/dist/search-parameters/ServiceRequest-filler-group-number.cjs +22 -0
  157. package/dist/search-parameters/ServiceRequest-filler-group-number.cjs.map +1 -0
  158. package/dist/search-parameters/ServiceRequest-filler-group-number.d.cts +7 -0
  159. package/dist/search-parameters/ServiceRequest-filler-group-number.d.cts.map +1 -0
  160. package/dist/search-parameters/ServiceRequest-filler-group-number.d.mts +7 -0
  161. package/dist/search-parameters/ServiceRequest-filler-group-number.d.mts.map +1 -0
  162. package/dist/search-parameters/ServiceRequest-filler-group-number.mjs +22 -0
  163. package/dist/search-parameters/ServiceRequest-filler-group-number.mjs.map +1 -0
  164. package/dist/search-parameters/ServiceRequest-placer-group-number.cjs +22 -0
  165. package/dist/search-parameters/ServiceRequest-placer-group-number.cjs.map +1 -0
  166. package/dist/search-parameters/ServiceRequest-placer-group-number.d.cts +7 -0
  167. package/dist/search-parameters/ServiceRequest-placer-group-number.d.cts.map +1 -0
  168. package/dist/search-parameters/ServiceRequest-placer-group-number.d.mts +7 -0
  169. package/dist/search-parameters/ServiceRequest-placer-group-number.d.mts.map +1 -0
  170. package/dist/search-parameters/ServiceRequest-placer-group-number.mjs +22 -0
  171. package/dist/search-parameters/ServiceRequest-placer-group-number.mjs.map +1 -0
  172. package/dist/search-parameters/index.cjs +10 -0
  173. package/dist/search-parameters/index.mjs +12 -0
  174. package/dist/search-parameters/mapping-used-by.cjs +28 -0
  175. package/dist/search-parameters/mapping-used-by.cjs.map +1 -0
  176. package/dist/search-parameters/mapping-used-by.d.cts +7 -0
  177. package/dist/search-parameters/mapping-used-by.d.cts.map +1 -0
  178. package/dist/search-parameters/mapping-used-by.d.mts +7 -0
  179. package/dist/search-parameters/mapping-used-by.d.mts.map +1 -0
  180. package/dist/search-parameters/mapping-used-by.mjs +28 -0
  181. package/dist/search-parameters/mapping-used-by.mjs.map +1 -0
  182. package/dist/search-parameters.json +62 -127
  183. package/dist/types/pieResource.d.cts +15 -0
  184. package/dist/types/pieResource.d.cts.map +1 -0
  185. package/dist/types/pieResource.d.mts +15 -0
  186. package/dist/types/pieResource.d.mts.map +1 -0
  187. package/dist/types/routingRule.d.cts +88 -0
  188. package/dist/types/routingRule.d.cts.map +1 -0
  189. package/dist/types/routingRule.d.mts +88 -0
  190. package/dist/types/routingRule.d.mts.map +1 -0
  191. package/dist/valuesets/RoutingRule-status.cjs +17 -0
  192. package/dist/valuesets/RoutingRule-status.cjs.map +1 -0
  193. package/dist/valuesets/RoutingRule-status.d.cts +7 -0
  194. package/dist/valuesets/RoutingRule-status.d.cts.map +1 -0
  195. package/dist/valuesets/RoutingRule-status.d.mts +7 -0
  196. package/dist/valuesets/RoutingRule-status.d.mts.map +1 -0
  197. package/dist/valuesets/RoutingRule-status.mjs +17 -0
  198. package/dist/valuesets/RoutingRule-status.mjs.map +1 -0
  199. package/dist/valuesets/ServiceRequest-status-detail.cjs +21 -0
  200. package/dist/valuesets/ServiceRequest-status-detail.cjs.map +1 -0
  201. package/dist/valuesets/ServiceRequest-status-detail.d.cts +7 -0
  202. package/dist/valuesets/ServiceRequest-status-detail.d.cts.map +1 -0
  203. package/dist/valuesets/ServiceRequest-status-detail.d.mts +7 -0
  204. package/dist/valuesets/ServiceRequest-status-detail.d.mts.map +1 -0
  205. package/dist/valuesets/ServiceRequest-status-detail.mjs +21 -0
  206. package/dist/valuesets/ServiceRequest-status-detail.mjs.map +1 -0
  207. package/dist/valuesets/index.cjs +2 -0
  208. package/dist/valuesets/index.mjs +4 -0
  209. package/dist/valuesets.json +19 -12
  210. package/package.json +3 -3
  211. package/dist/index.js +0 -14
@@ -0,0 +1,88 @@
1
+ import { DomainResource, Period, Reference } from "fhir/r4.js";
2
+
3
+ //#region src/types/routingRule.d.ts
4
+
5
+ /**
6
+ * Receiver system and process(es) mapping
7
+ */
8
+ interface RoutingRuleTargetMapping {
9
+ /**
10
+ * A reference to the receiving Organization/Endpoint
11
+ */
12
+ receiver: Reference;
13
+ /**
14
+ * References to resources, created by the receiver,
15
+ * which define the processes to be performed (e.g. PlanDefinition)
16
+ */
17
+ processDefinition: Reference[];
18
+ }
19
+ /**
20
+ * A collection of target mappings grouped by id
21
+ */
22
+ interface RoutingRuleTarget {
23
+ /**
24
+ * Unique id for inter-element referencing
25
+ */
26
+ targetId: string;
27
+ /**
28
+ * Mappings for the receiver system(s) and process(es)
29
+ */
30
+ mapping: RoutingRuleTargetMapping[];
31
+ }
32
+ /**
33
+ * The receiver details to which the sender message should be
34
+ * routed and mapped to for a defined period
35
+ */
36
+ interface RoutingRuleRule {
37
+ /**
38
+ * Unique id for inter-element referencing
39
+ */
40
+ ruleId: string;
41
+ /**
42
+ * The time period for which the routing rule is valid
43
+ */
44
+ period: Period;
45
+ /**
46
+ * The internal element id for the rule's target
47
+ */
48
+ targetId: string;
49
+ }
50
+ /**
51
+ * RoutingRule defines rules for routing messages and mapping
52
+ * values between a sender and 0 to many receivers.
53
+ * The definition includes the sender's local name and title for a process,
54
+ * and a number of rules which contain:
55
+ * a reference to the action as defined by a receiver,
56
+ * and the time period for which the rule is valid.
57
+ */
58
+ interface RoutingRule extends DomainResource {
59
+ /**
60
+ * The resourceType, always RoutingRule
61
+ */
62
+ readonly resourceType: 'RoutingRule';
63
+ /**
64
+ * The status of the routing rule: active | inactive
65
+ */
66
+ status: 'active' | 'inactive';
67
+ /**
68
+ * A reference to the sending Organization/Endpoint
69
+ */
70
+ sender: Reference;
71
+ /**
72
+ * Computer friendly name, chosen by the sender, for this process
73
+ */
74
+ name: string;
75
+ /**
76
+ * Human friendly title, chosen by the sender, for this process
77
+ */
78
+ title: string;
79
+ /**
80
+ * The receiver details to which the sender message should be
81
+ * routed and mapped to for a defined period
82
+ */
83
+ rule?: RoutingRuleRule[];
84
+ target?: RoutingRuleTarget[];
85
+ }
86
+ //#endregion
87
+ export { RoutingRule, RoutingRuleRule, RoutingRuleTarget, RoutingRuleTargetMapping };
88
+ //# sourceMappingURL=routingRule.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routingRule.d.cts","names":[],"sources":["../../src/types/routingRule.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;AAeiB,UAfA,wBAAA,CAuBN;EAOM;AAuBjB;;EAyBS,QAAA,EA1EG,SA0EH;EACE;;;;qBAtEU;;;;;UAMJ,iBAAA;;;;;;;;WAQN;;;;;;UAOM,eAAA;;;;;;;;UAQP;;;;;;;;;;;;;;UAeO,WAAA,SAAoB;;;;;;;;;;;;UAY3B;;;;;;;;;;;;;SAaD;WACE"}
@@ -0,0 +1,88 @@
1
+ import { DomainResource, Period, Reference } from "fhir/r4.js";
2
+
3
+ //#region src/types/routingRule.d.ts
4
+
5
+ /**
6
+ * Receiver system and process(es) mapping
7
+ */
8
+ interface RoutingRuleTargetMapping {
9
+ /**
10
+ * A reference to the receiving Organization/Endpoint
11
+ */
12
+ receiver: Reference;
13
+ /**
14
+ * References to resources, created by the receiver,
15
+ * which define the processes to be performed (e.g. PlanDefinition)
16
+ */
17
+ processDefinition: Reference[];
18
+ }
19
+ /**
20
+ * A collection of target mappings grouped by id
21
+ */
22
+ interface RoutingRuleTarget {
23
+ /**
24
+ * Unique id for inter-element referencing
25
+ */
26
+ targetId: string;
27
+ /**
28
+ * Mappings for the receiver system(s) and process(es)
29
+ */
30
+ mapping: RoutingRuleTargetMapping[];
31
+ }
32
+ /**
33
+ * The receiver details to which the sender message should be
34
+ * routed and mapped to for a defined period
35
+ */
36
+ interface RoutingRuleRule {
37
+ /**
38
+ * Unique id for inter-element referencing
39
+ */
40
+ ruleId: string;
41
+ /**
42
+ * The time period for which the routing rule is valid
43
+ */
44
+ period: Period;
45
+ /**
46
+ * The internal element id for the rule's target
47
+ */
48
+ targetId: string;
49
+ }
50
+ /**
51
+ * RoutingRule defines rules for routing messages and mapping
52
+ * values between a sender and 0 to many receivers.
53
+ * The definition includes the sender's local name and title for a process,
54
+ * and a number of rules which contain:
55
+ * a reference to the action as defined by a receiver,
56
+ * and the time period for which the rule is valid.
57
+ */
58
+ interface RoutingRule extends DomainResource {
59
+ /**
60
+ * The resourceType, always RoutingRule
61
+ */
62
+ readonly resourceType: 'RoutingRule';
63
+ /**
64
+ * The status of the routing rule: active | inactive
65
+ */
66
+ status: 'active' | 'inactive';
67
+ /**
68
+ * A reference to the sending Organization/Endpoint
69
+ */
70
+ sender: Reference;
71
+ /**
72
+ * Computer friendly name, chosen by the sender, for this process
73
+ */
74
+ name: string;
75
+ /**
76
+ * Human friendly title, chosen by the sender, for this process
77
+ */
78
+ title: string;
79
+ /**
80
+ * The receiver details to which the sender message should be
81
+ * routed and mapped to for a defined period
82
+ */
83
+ rule?: RoutingRuleRule[];
84
+ target?: RoutingRuleTarget[];
85
+ }
86
+ //#endregion
87
+ export { RoutingRule, RoutingRuleRule, RoutingRuleTarget, RoutingRuleTargetMapping };
88
+ //# sourceMappingURL=routingRule.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routingRule.d.mts","names":[],"sources":["../../src/types/routingRule.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;AAeiB,UAfA,wBAAA,CAuBN;EAOM;AAuBjB;;EAyBS,QAAA,EA1EG,SA0EH;EACE;;;;qBAtEU;;;;;UAMJ,iBAAA;;;;;;;;WAQN;;;;;;UAOM,eAAA;;;;;;;;UAQP;;;;;;;;;;;;;;UAeO,WAAA,SAAoB;;;;;;;;;;;;UAY3B;;;;;;;;;;;;;SAaD;WACE"}
@@ -0,0 +1,17 @@
1
+ const require_constants = require('../constants.cjs');
2
+
3
+ //#region src/valuesets/RoutingRule-status.ts
4
+ const routingRuleStatusVs = {
5
+ id: require_constants.ValueSetId.RR_STATUS,
6
+ resourceType: "ValueSet",
7
+ url: require_constants.ValueSetURL.RR_STATUS,
8
+ status: "active",
9
+ date: "2025-11-20T10:00:00.000Z",
10
+ publisher: require_constants.publisher,
11
+ description: `All of the values from the CodeSystem: ${require_constants.CodeSystemURL.RR_STATUS}. These define the allowed RoutingRule active/inactive status.`,
12
+ compose: { include: [{ system: require_constants.CodeSystemURL.RR_STATUS }] }
13
+ };
14
+
15
+ //#endregion
16
+ exports.routingRuleStatusVs = routingRuleStatusVs;
17
+ //# sourceMappingURL=RoutingRule-status.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoutingRule-status.cjs","names":["routingRuleStatusVs: ValueSet","ValueSetId","ValueSetURL","CodeSystemURL"],"sources":["../../src/valuesets/RoutingRule-status.ts"],"sourcesContent":["import { ValueSet } from 'fhir/r4.js';\nimport {\n CodeSystemURL, publisher, ValueSetId, ValueSetURL,\n} from '../constants.js';\n\nexport const routingRuleStatusVs: ValueSet = {\n id: ValueSetId.RR_STATUS,\n resourceType: 'ValueSet',\n url: ValueSetURL.RR_STATUS,\n status: 'active',\n date: '2025-11-20T10:00:00.000Z',\n publisher,\n description: `All of the values from the CodeSystem: ${CodeSystemURL.RR_STATUS}. These define the allowed RoutingRule active/inactive status.`,\n compose: {\n include: [\n {\n system: CodeSystemURL.RR_STATUS,\n },\n ],\n },\n};\n"],"mappings":";;;AAKA,MAAaA,sBAAgC;CAC3C,IAAIC,6BAAW;CACf,cAAc;CACd,KAAKC,8BAAY;CACjB,QAAQ;CACR,MAAM;CACN;CACA,aAAa,0CAA0CC,gCAAc,UAAU;CAC/E,SAAS,EACP,SAAS,CACP,EACE,QAAQA,gCAAc,WACvB,CACF,EACF;CACF"}
@@ -0,0 +1,7 @@
1
+ import { ValueSet } from "fhir/r4.js";
2
+
3
+ //#region src/valuesets/RoutingRule-status.d.ts
4
+ declare const routingRuleStatusVs: ValueSet;
5
+ //#endregion
6
+ export { routingRuleStatusVs };
7
+ //# sourceMappingURL=RoutingRule-status.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoutingRule-status.d.cts","names":[],"sources":["../../src/valuesets/RoutingRule-status.ts"],"sourcesContent":[],"mappings":";;;cAKa,qBAAqB"}
@@ -0,0 +1,7 @@
1
+ import { ValueSet } from "fhir/r4.js";
2
+
3
+ //#region src/valuesets/RoutingRule-status.d.ts
4
+ declare const routingRuleStatusVs: ValueSet;
5
+ //#endregion
6
+ export { routingRuleStatusVs };
7
+ //# sourceMappingURL=RoutingRule-status.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoutingRule-status.d.mts","names":[],"sources":["../../src/valuesets/RoutingRule-status.ts"],"sourcesContent":[],"mappings":";;;cAKa,qBAAqB"}
@@ -0,0 +1,17 @@
1
+ import { CodeSystemURL, ValueSetId, ValueSetURL, publisher } from "../constants.mjs";
2
+
3
+ //#region src/valuesets/RoutingRule-status.ts
4
+ const routingRuleStatusVs = {
5
+ id: ValueSetId.RR_STATUS,
6
+ resourceType: "ValueSet",
7
+ url: ValueSetURL.RR_STATUS,
8
+ status: "active",
9
+ date: "2025-11-20T10:00:00.000Z",
10
+ publisher,
11
+ description: `All of the values from the CodeSystem: ${CodeSystemURL.RR_STATUS}. These define the allowed RoutingRule active/inactive status.`,
12
+ compose: { include: [{ system: CodeSystemURL.RR_STATUS }] }
13
+ };
14
+
15
+ //#endregion
16
+ export { routingRuleStatusVs };
17
+ //# sourceMappingURL=RoutingRule-status.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoutingRule-status.mjs","names":["routingRuleStatusVs: ValueSet"],"sources":["../../src/valuesets/RoutingRule-status.ts"],"sourcesContent":["import { ValueSet } from 'fhir/r4.js';\nimport {\n CodeSystemURL, publisher, ValueSetId, ValueSetURL,\n} from '../constants.js';\n\nexport const routingRuleStatusVs: ValueSet = {\n id: ValueSetId.RR_STATUS,\n resourceType: 'ValueSet',\n url: ValueSetURL.RR_STATUS,\n status: 'active',\n date: '2025-11-20T10:00:00.000Z',\n publisher,\n description: `All of the values from the CodeSystem: ${CodeSystemURL.RR_STATUS}. These define the allowed RoutingRule active/inactive status.`,\n compose: {\n include: [\n {\n system: CodeSystemURL.RR_STATUS,\n },\n ],\n },\n};\n"],"mappings":";;;AAKA,MAAaA,sBAAgC;CAC3C,IAAI,WAAW;CACf,cAAc;CACd,KAAK,YAAY;CACjB,QAAQ;CACR,MAAM;CACN;CACA,aAAa,0CAA0C,cAAc,UAAU;CAC/E,SAAS,EACP,SAAS,CACP,EACE,QAAQ,cAAc,WACvB,CACF,EACF;CACF"}
@@ -0,0 +1,21 @@
1
+ const require_constants = require('../constants.cjs');
2
+
3
+ //#region src/valuesets/ServiceRequest-status-detail.ts
4
+ const srStatusDetailVs = {
5
+ id: require_constants.ValueSetId.SR_STATUS_DETAIL,
6
+ resourceType: "ValueSet",
7
+ url: require_constants.ValueSetURL.SR_STATUS_DETAIL,
8
+ status: "active",
9
+ date: "2025-11-20T10:00:00.000Z",
10
+ publisher: require_constants.publisher,
11
+ description: `All of the values from the CodeSystems "${require_constants.CodeSystemURL.SR_PRE_DISPATCH_STATUS}" and "${require_constants.CodeSystemURL.SR_POST_DISPATCH_STATUS}". These provide a detailed PIE-specific status for the ServiceRequest.`,
12
+ compose: { include: [
13
+ { system: require_constants.CodeSystemURL.SR_PRE_DISPATCH_STATUS },
14
+ { system: require_constants.CodeSystemURL.SR_POST_DISPATCH_STATUS },
15
+ { system: require_constants.CodeSystemURL.SR_ERROR_STATUS }
16
+ ] }
17
+ };
18
+
19
+ //#endregion
20
+ exports.srStatusDetailVs = srStatusDetailVs;
21
+ //# sourceMappingURL=ServiceRequest-status-detail.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceRequest-status-detail.cjs","names":["srStatusDetailVs: ValueSet","ValueSetId","ValueSetURL","CodeSystemURL"],"sources":["../../src/valuesets/ServiceRequest-status-detail.ts"],"sourcesContent":["import { ValueSet } from 'fhir/r4.js';\nimport {\n CodeSystemURL, publisher, ValueSetId, ValueSetURL,\n} from '../constants.js';\n\nexport const srStatusDetailVs: ValueSet = {\n id: ValueSetId.SR_STATUS_DETAIL,\n resourceType: 'ValueSet',\n url: ValueSetURL.SR_STATUS_DETAIL,\n status: 'active',\n date: '2025-11-20T10:00:00.000Z',\n publisher,\n description: `All of the values from the CodeSystems \"${CodeSystemURL.SR_PRE_DISPATCH_STATUS}\" and \"${CodeSystemURL.SR_POST_DISPATCH_STATUS}\". These provide a detailed PIE-specific status for the ServiceRequest.`,\n compose: {\n include: [\n {\n system: CodeSystemURL.SR_PRE_DISPATCH_STATUS,\n },\n {\n system: CodeSystemURL.SR_POST_DISPATCH_STATUS,\n },\n {\n system: CodeSystemURL.SR_ERROR_STATUS,\n },\n ],\n },\n};\n"],"mappings":";;;AAKA,MAAaA,mBAA6B;CACxC,IAAIC,6BAAW;CACf,cAAc;CACd,KAAKC,8BAAY;CACjB,QAAQ;CACR,MAAM;CACN;CACA,aAAa,2CAA2CC,gCAAc,uBAAuB,SAASA,gCAAc,wBAAwB;CAC5I,SAAS,EACP,SAAS;EACP,EACE,QAAQA,gCAAc,wBACvB;EACD,EACE,QAAQA,gCAAc,yBACvB;EACD,EACE,QAAQA,gCAAc,iBACvB;EACF,EACF;CACF"}
@@ -0,0 +1,7 @@
1
+ import { ValueSet } from "fhir/r4.js";
2
+
3
+ //#region src/valuesets/ServiceRequest-status-detail.d.ts
4
+ declare const srStatusDetailVs: ValueSet;
5
+ //#endregion
6
+ export { srStatusDetailVs };
7
+ //# sourceMappingURL=ServiceRequest-status-detail.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceRequest-status-detail.d.cts","names":[],"sources":["../../src/valuesets/ServiceRequest-status-detail.ts"],"sourcesContent":[],"mappings":";;;cAKa,kBAAkB"}
@@ -0,0 +1,7 @@
1
+ import { ValueSet } from "fhir/r4.js";
2
+
3
+ //#region src/valuesets/ServiceRequest-status-detail.d.ts
4
+ declare const srStatusDetailVs: ValueSet;
5
+ //#endregion
6
+ export { srStatusDetailVs };
7
+ //# sourceMappingURL=ServiceRequest-status-detail.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceRequest-status-detail.d.mts","names":[],"sources":["../../src/valuesets/ServiceRequest-status-detail.ts"],"sourcesContent":[],"mappings":";;;cAKa,kBAAkB"}
@@ -0,0 +1,21 @@
1
+ import { CodeSystemURL, ValueSetId, ValueSetURL, publisher } from "../constants.mjs";
2
+
3
+ //#region src/valuesets/ServiceRequest-status-detail.ts
4
+ const srStatusDetailVs = {
5
+ id: ValueSetId.SR_STATUS_DETAIL,
6
+ resourceType: "ValueSet",
7
+ url: ValueSetURL.SR_STATUS_DETAIL,
8
+ status: "active",
9
+ date: "2025-11-20T10:00:00.000Z",
10
+ publisher,
11
+ description: `All of the values from the CodeSystems "${CodeSystemURL.SR_PRE_DISPATCH_STATUS}" and "${CodeSystemURL.SR_POST_DISPATCH_STATUS}". These provide a detailed PIE-specific status for the ServiceRequest.`,
12
+ compose: { include: [
13
+ { system: CodeSystemURL.SR_PRE_DISPATCH_STATUS },
14
+ { system: CodeSystemURL.SR_POST_DISPATCH_STATUS },
15
+ { system: CodeSystemURL.SR_ERROR_STATUS }
16
+ ] }
17
+ };
18
+
19
+ //#endregion
20
+ export { srStatusDetailVs };
21
+ //# sourceMappingURL=ServiceRequest-status-detail.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceRequest-status-detail.mjs","names":["srStatusDetailVs: ValueSet"],"sources":["../../src/valuesets/ServiceRequest-status-detail.ts"],"sourcesContent":["import { ValueSet } from 'fhir/r4.js';\nimport {\n CodeSystemURL, publisher, ValueSetId, ValueSetURL,\n} from '../constants.js';\n\nexport const srStatusDetailVs: ValueSet = {\n id: ValueSetId.SR_STATUS_DETAIL,\n resourceType: 'ValueSet',\n url: ValueSetURL.SR_STATUS_DETAIL,\n status: 'active',\n date: '2025-11-20T10:00:00.000Z',\n publisher,\n description: `All of the values from the CodeSystems \"${CodeSystemURL.SR_PRE_DISPATCH_STATUS}\" and \"${CodeSystemURL.SR_POST_DISPATCH_STATUS}\". These provide a detailed PIE-specific status for the ServiceRequest.`,\n compose: {\n include: [\n {\n system: CodeSystemURL.SR_PRE_DISPATCH_STATUS,\n },\n {\n system: CodeSystemURL.SR_POST_DISPATCH_STATUS,\n },\n {\n system: CodeSystemURL.SR_ERROR_STATUS,\n },\n ],\n },\n};\n"],"mappings":";;;AAKA,MAAaA,mBAA6B;CACxC,IAAI,WAAW;CACf,cAAc;CACd,KAAK,YAAY;CACjB,QAAQ;CACR,MAAM;CACN;CACA,aAAa,2CAA2C,cAAc,uBAAuB,SAAS,cAAc,wBAAwB;CAC5I,SAAS,EACP,SAAS;EACP,EACE,QAAQ,cAAc,wBACvB;EACD,EACE,QAAQ,cAAc,yBACvB;EACD,EACE,QAAQ,cAAc,iBACvB;EACF,EACF;CACF"}
@@ -0,0 +1,2 @@
1
+ const require_RoutingRule_status = require('./RoutingRule-status.cjs');
2
+ const require_ServiceRequest_status_detail = require('./ServiceRequest-status-detail.cjs');
@@ -0,0 +1,4 @@
1
+ import { routingRuleStatusVs } from "./RoutingRule-status.mjs";
2
+ import { srStatusDetailVs } from "./ServiceRequest-status-detail.mjs";
3
+
4
+ export { };
@@ -1,18 +1,17 @@
1
1
  {
2
- "resourceType": "Bundle",
3
2
  "id": "valuesets",
4
- "meta": {
5
- "lastUpdated": "2025-02-07T08:00:00.000Z"
6
- },
3
+ "resourceType": "Bundle",
7
4
  "type": "collection",
8
5
  "entry": [
9
6
  {
10
7
  "fullUrl": "https://pie.synanetics.com/fhir/r4/ValueSet/RoutingRule-status",
11
8
  "resource": {
9
+ "id": "RoutingRule-status",
12
10
  "resourceType": "ValueSet",
13
11
  "url": "https://pie.synanetics.com/fhir/r4/ValueSet/RoutingRule-status",
14
12
  "status": "active",
15
- "date": "2024-02-27T15:00:00.000Z",
13
+ "date": "2025-11-20T10:00:00.000Z",
14
+ "publisher": "Synanetics Ltd",
16
15
  "description": "All of the values from the CodeSystem: https://pie.synanetics.com/fhir/r4/CodeSystem/RoutingRule-status. These define the allowed RoutingRule active/inactive status.",
17
16
  "compose": {
18
17
  "include": [
@@ -24,24 +23,32 @@
24
23
  }
25
24
  },
26
25
  {
27
- "fullUrl": "https://pie.synanetics.com/fhir/r4/ServiceRequest-detailed-status",
26
+ "fullUrl": "https://pie.synanetics.com/fhir/r4/ValueSet/ServiceRequest-status-detail",
28
27
  "resource": {
28
+ "id": "ServiceRequest-status-detail",
29
29
  "resourceType": "ValueSet",
30
- "url": "https://pie.synanetics.com/fhir/r4/ServiceRequest-detailed-status",
30
+ "url": "https://pie.synanetics.com/fhir/r4/ValueSet/ServiceRequest-status-detail",
31
31
  "status": "active",
32
- "date": "2025-02-06T17:00:00.000Z",
33
- "description": "All of the values from the CodeSystems \"https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-status-detail\" and \"https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-order-release\". These provide a detailed PIE-specific status for the ServiceRequest.",
32
+ "date": "2025-11-20T10:00:00.000Z",
33
+ "publisher": "Synanetics Ltd",
34
+ "description": "All of the values from the CodeSystems \"https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-pre-dispatch-status\" and \"https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-post-dispatch-status\". These provide a detailed PIE-specific status for the ServiceRequest.",
34
35
  "compose": {
35
36
  "include": [
36
37
  {
37
- "system": "https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-status-detail"
38
+ "system": "https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-pre-dispatch-status"
38
39
  },
39
40
  {
40
- "system": "https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-order-release"
41
+ "system": "https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-post-dispatch-status"
42
+ },
43
+ {
44
+ "system": "https://pie.synanetics.com/fhir/r4/CodeSystem/ServiceRequest-error-status"
41
45
  }
42
46
  ]
43
47
  }
44
48
  }
45
49
  }
46
- ]
50
+ ],
51
+ "meta": {
52
+ "lastUpdated": "2025-11-14T17:00:00.000Z"
53
+ }
47
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synanetics/profiles-pie",
3
- "version": "4.0.0",
3
+ "version": "5.0.0-beta.1",
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://github.com/SynaneticsLtd/synanetics-core-common/packages/profiles-pie#readme",
@@ -11,8 +11,7 @@
11
11
  ],
12
12
  "type": "module",
13
13
  "scripts": {
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
+ "prepare": "tsdown --config ../../tsdown.config.ts && tsx src/build"
16
15
  },
17
16
  "publishConfig": {
18
17
  "access": "public"
@@ -24,6 +23,7 @@
24
23
  "bugs": {
25
24
  "url": "https://github.com/SynaneticsLtd/synanetics-core-common/issues"
26
25
  },
26
+ "types": "./dist/index.d.cts",
27
27
  "dependencies": {
28
28
  "@types/fhir": "^0.0.41"
29
29
  }
package/dist/index.js DELETED
@@ -1,14 +0,0 @@
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;