messagefoundry 0.1.0rc1__py3-none-any.whl

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 (136) hide show
  1. messagefoundry/__init__.py +106 -0
  2. messagefoundry/__main__.py +1070 -0
  3. messagefoundry/api/__init__.py +25 -0
  4. messagefoundry/api/app.py +1511 -0
  5. messagefoundry/api/approvals.py +182 -0
  6. messagefoundry/api/auth_models.py +167 -0
  7. messagefoundry/api/auth_routes.py +526 -0
  8. messagefoundry/api/field_authz.py +94 -0
  9. messagefoundry/api/models.py +350 -0
  10. messagefoundry/api/security.py +192 -0
  11. messagefoundry/api/tls.py +44 -0
  12. messagefoundry/auth/__init__.py +37 -0
  13. messagefoundry/auth/data/common_passwords.NOTICE +13 -0
  14. messagefoundry/auth/data/common_passwords.txt +10000 -0
  15. messagefoundry/auth/identity.py +69 -0
  16. messagefoundry/auth/ldap.py +262 -0
  17. messagefoundry/auth/notifications.py +59 -0
  18. messagefoundry/auth/passwords.py +51 -0
  19. messagefoundry/auth/permissions.py +118 -0
  20. messagefoundry/auth/policy.py +151 -0
  21. messagefoundry/auth/ratelimit.py +53 -0
  22. messagefoundry/auth/service.py +987 -0
  23. messagefoundry/auth/tokens.py +24 -0
  24. messagefoundry/checks.py +159 -0
  25. messagefoundry/config/__init__.py +28 -0
  26. messagefoundry/config/active_environment.py +78 -0
  27. messagefoundry/config/ai_policy.py +138 -0
  28. messagefoundry/config/code_sets.py +258 -0
  29. messagefoundry/config/connections_edit.py +197 -0
  30. messagefoundry/config/connections_file.py +283 -0
  31. messagefoundry/config/db_lookup.py +115 -0
  32. messagefoundry/config/environments.py +114 -0
  33. messagefoundry/config/ingest_time.py +81 -0
  34. messagefoundry/config/models.py +162 -0
  35. messagefoundry/config/reference.py +156 -0
  36. messagefoundry/config/response.py +81 -0
  37. messagefoundry/config/run_context.py +151 -0
  38. messagefoundry/config/settings.py +1185 -0
  39. messagefoundry/config/state.py +97 -0
  40. messagefoundry/config/tls_policy.py +81 -0
  41. messagefoundry/config/wiring.py +1883 -0
  42. messagefoundry/console/__init__.py +18 -0
  43. messagefoundry/console/__main__.py +227 -0
  44. messagefoundry/console/_async.py +105 -0
  45. messagefoundry/console/change_password.py +109 -0
  46. messagefoundry/console/client.py +452 -0
  47. messagefoundry/console/connections.py +259 -0
  48. messagefoundry/console/login.py +100 -0
  49. messagefoundry/console/reauth.py +92 -0
  50. messagefoundry/console/search.py +50 -0
  51. messagefoundry/console/service_control.py +135 -0
  52. messagefoundry/console/sessions.py +120 -0
  53. messagefoundry/console/shell.py +390 -0
  54. messagefoundry/console/status.py +369 -0
  55. messagefoundry/console/users_page.py +242 -0
  56. messagefoundry/console/widgets.py +442 -0
  57. messagefoundry/generators/README.md +27 -0
  58. messagefoundry/generators/__init__.py +13 -0
  59. messagefoundry/generators/_core.py +587 -0
  60. messagefoundry/generators/_hl7data.py +426 -0
  61. messagefoundry/generators/adt.py +284 -0
  62. messagefoundry/generators/all_types.py +22 -0
  63. messagefoundry/generators/bar.py +26 -0
  64. messagefoundry/generators/dft.py +18 -0
  65. messagefoundry/generators/mdm.py +37 -0
  66. messagefoundry/generators/mfn.py +44 -0
  67. messagefoundry/generators/oml.py +30 -0
  68. messagefoundry/generators/orl.py +28 -0
  69. messagefoundry/generators/orm.py +21 -0
  70. messagefoundry/generators/oru.py +19 -0
  71. messagefoundry/generators/ras.py +18 -0
  72. messagefoundry/generators/rde.py +52 -0
  73. messagefoundry/generators/siu.py +62 -0
  74. messagefoundry/generators/vxu.py +18 -0
  75. messagefoundry/hl7schema.py +73 -0
  76. messagefoundry/last_resort.py +53 -0
  77. messagefoundry/logging_setup.py +172 -0
  78. messagefoundry/parsing/__init__.py +62 -0
  79. messagefoundry/parsing/consistency.py +164 -0
  80. messagefoundry/parsing/groups.py +226 -0
  81. messagefoundry/parsing/message.py +451 -0
  82. messagefoundry/parsing/peek.py +235 -0
  83. messagefoundry/parsing/split.py +118 -0
  84. messagefoundry/parsing/summary.py +44 -0
  85. messagefoundry/parsing/tree.py +126 -0
  86. messagefoundry/parsing/validate.py +93 -0
  87. messagefoundry/parsing/x12/__init__.py +44 -0
  88. messagefoundry/parsing/x12/delimiters.py +138 -0
  89. messagefoundry/parsing/x12/errors.py +28 -0
  90. messagefoundry/parsing/x12/interchange.py +230 -0
  91. messagefoundry/parsing/x12/message.py +198 -0
  92. messagefoundry/parsing/x12/peek.py +205 -0
  93. messagefoundry/pipeline/__init__.py +19 -0
  94. messagefoundry/pipeline/alert_sinks.py +458 -0
  95. messagefoundry/pipeline/alerts.py +98 -0
  96. messagefoundry/pipeline/cert_expiry.py +217 -0
  97. messagefoundry/pipeline/cluster.py +953 -0
  98. messagefoundry/pipeline/cluster_sqlserver.py +442 -0
  99. messagefoundry/pipeline/config_convergence.py +135 -0
  100. messagefoundry/pipeline/dryrun.py +410 -0
  101. messagefoundry/pipeline/engine.py +745 -0
  102. messagefoundry/pipeline/leader_tasks.py +156 -0
  103. messagefoundry/pipeline/reference_sync.py +360 -0
  104. messagefoundry/pipeline/retention.py +287 -0
  105. messagefoundry/pipeline/security_notify.py +153 -0
  106. messagefoundry/pipeline/state_convergence.py +141 -0
  107. messagefoundry/pipeline/wiring_runner.py +1668 -0
  108. messagefoundry/py.typed +0 -0
  109. messagefoundry/redaction.py +69 -0
  110. messagefoundry/scaffold.py +285 -0
  111. messagefoundry/secrets_dpapi.py +127 -0
  112. messagefoundry/store/__init__.py +44 -0
  113. messagefoundry/store/base.py +717 -0
  114. messagefoundry/store/crypto.py +164 -0
  115. messagefoundry/store/postgres.py +3287 -0
  116. messagefoundry/store/sqlserver.py +2850 -0
  117. messagefoundry/store/store.py +3497 -0
  118. messagefoundry/timezone.py +205 -0
  119. messagefoundry/transports/__init__.py +48 -0
  120. messagefoundry/transports/base.py +267 -0
  121. messagefoundry/transports/database.py +691 -0
  122. messagefoundry/transports/file.py +498 -0
  123. messagefoundry/transports/framing.py +162 -0
  124. messagefoundry/transports/loopback.py +51 -0
  125. messagefoundry/transports/mllp.py +639 -0
  126. messagefoundry/transports/remotefile.py +643 -0
  127. messagefoundry/transports/rest.py +267 -0
  128. messagefoundry/transports/soap.py +492 -0
  129. messagefoundry/transports/tcp.py +305 -0
  130. messagefoundry/transports/timer.py +144 -0
  131. messagefoundry/transports/x12.py +321 -0
  132. messagefoundry-0.1.0rc1.dist-info/METADATA +197 -0
  133. messagefoundry-0.1.0rc1.dist-info/RECORD +136 -0
  134. messagefoundry-0.1.0rc1.dist-info/WHEEL +4 -0
  135. messagefoundry-0.1.0rc1.dist-info/entry_points.txt +2 -0
  136. messagefoundry-0.1.0rc1.dist-info/licenses/LICENSE +662 -0
@@ -0,0 +1,106 @@
1
+ """messagefoundry — an open-source integration engine for healthcare.
2
+
3
+ The engine is an importable library. The PySide6 console (and any other client)
4
+ drives it over a localhost HTTP + WebSocket API, so the same code path serves
5
+ in-process, local-daemon, and remote deployments.
6
+
7
+ Config modules define the message graph against this surface::
8
+
9
+ from messagefoundry import inbound, outbound, router, handler, Send, MLLP, File, Message
10
+ """
11
+
12
+ from messagefoundry.config.models import (
13
+ AckMode,
14
+ BuildupThreshold,
15
+ ContentType,
16
+ InternalErrorPolicy,
17
+ OrderingMode,
18
+ RetryPolicy,
19
+ )
20
+ from messagefoundry.config.active_environment import current_environment
21
+ from messagefoundry.config.db_lookup import DbLookupError, db_lookup
22
+ from messagefoundry.config.ingest_time import current_ingest_time
23
+ from messagefoundry.config.reference import reference
24
+ from messagefoundry.config.response import response_get
25
+ from messagefoundry.config.state import state_get
26
+ from messagefoundry.config.wiring import (
27
+ CodeSet,
28
+ Database,
29
+ DatabaseLookup,
30
+ DatabasePoll,
31
+ DatabaseRef,
32
+ File,
33
+ FileRef,
34
+ Ftp,
35
+ Loopback,
36
+ MLLP,
37
+ Reference,
38
+ Rest,
39
+ Sftp,
40
+ Soap,
41
+ Tcp,
42
+ Timer,
43
+ X12,
44
+ Send,
45
+ SetState,
46
+ code_set,
47
+ env,
48
+ handler,
49
+ inbound,
50
+ outbound,
51
+ router,
52
+ )
53
+ from messagefoundry.parsing.groups import SegmentGroup
54
+ from messagefoundry.parsing.message import Message, RawMessage
55
+ from messagefoundry.parsing.split import split_by_obr
56
+ from messagefoundry.timezone import convert_hl7_timestamp, to_zone
57
+
58
+ __version__ = "0.1.0-rc1"
59
+
60
+ __all__ = [
61
+ "Message",
62
+ "RawMessage",
63
+ "SegmentGroup",
64
+ "split_by_obr",
65
+ "Send",
66
+ "SetState",
67
+ "state_get",
68
+ "response_get",
69
+ "MLLP",
70
+ "Tcp",
71
+ "X12",
72
+ "File",
73
+ "Timer",
74
+ "Loopback",
75
+ "Rest",
76
+ "Database",
77
+ "DatabaseLookup",
78
+ "DatabasePoll",
79
+ "Soap",
80
+ "Sftp",
81
+ "Ftp",
82
+ "env",
83
+ "code_set",
84
+ "CodeSet",
85
+ "reference",
86
+ "Reference",
87
+ "FileRef",
88
+ "DatabaseRef",
89
+ "db_lookup",
90
+ "DbLookupError",
91
+ "current_ingest_time",
92
+ "current_environment",
93
+ "AckMode",
94
+ "RetryPolicy",
95
+ "OrderingMode",
96
+ "InternalErrorPolicy",
97
+ "BuildupThreshold",
98
+ "ContentType",
99
+ "inbound",
100
+ "outbound",
101
+ "router",
102
+ "handler",
103
+ "convert_hl7_timestamp",
104
+ "to_zone",
105
+ "__version__",
106
+ ]