medorqis 2.1.1__tar.gz
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.
- medorqis-2.1.1/LICENSE +128 -0
- medorqis-2.1.1/PKG-INFO +268 -0
- medorqis-2.1.1/README.md +235 -0
- medorqis-2.1.1/adapters/build_adapters.py +146 -0
- medorqis-2.1.1/adapters/claude/claude-skill-package.json +16 -0
- medorqis-2.1.1/adapters/gemini/GEMINI.md +8 -0
- medorqis-2.1.1/adapters/gemini/gemini-extension.json +24 -0
- medorqis-2.1.1/adapters/openai/assistant_configs/medorqis_assistant.json +198 -0
- medorqis-2.1.1/adapters/openai/openai_functions.json +194 -0
- medorqis-2.1.1/core/__init__.py +6 -0
- medorqis-2.1.1/core/citation_validator.py +86 -0
- medorqis-2.1.1/core/claim_entailment_verifier.py +122 -0
- medorqis-2.1.1/core/clinical_calculators.py +1038 -0
- medorqis-2.1.1/core/context_validator.py +143 -0
- medorqis-2.1.1/core/integrity_manifest.py +159 -0
- medorqis-2.1.1/core/phi_deidentifier.py +90 -0
- medorqis-2.1.1/core/prompt_security_guard.py +46 -0
- medorqis-2.1.1/core/safety_guardrails.py +301 -0
- medorqis-2.1.1/core/terminology_connectors.py +74 -0
- medorqis-2.1.1/core/terminology_normalizer.py +171 -0
- medorqis-2.1.1/mcp_server/medorqis_mcp_server.py +401 -0
- medorqis-2.1.1/medorqis.egg-info/PKG-INFO +268 -0
- medorqis-2.1.1/medorqis.egg-info/SOURCES.txt +27 -0
- medorqis-2.1.1/medorqis.egg-info/dependency_links.txt +1 -0
- medorqis-2.1.1/medorqis.egg-info/entry_points.txt +2 -0
- medorqis-2.1.1/medorqis.egg-info/requires.txt +8 -0
- medorqis-2.1.1/medorqis.egg-info/top_level.txt +3 -0
- medorqis-2.1.1/pyproject.toml +53 -0
- medorqis-2.1.1/setup.cfg +4 -0
medorqis-2.1.1/LICENSE
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work.
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean any work of authorship, including
|
|
48
|
+
the original version of the Work and any modifications or additions
|
|
49
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
50
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
51
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
52
|
+
the copyright owner.
|
|
53
|
+
|
|
54
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
55
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
56
|
+
subsequently incorporated within the Work.
|
|
57
|
+
|
|
58
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
59
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
60
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
61
|
+
copyright license to use, reproduce, prepare Derivative Works of,
|
|
62
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
63
|
+
Work and such Derivative Works in Source or Object form.
|
|
64
|
+
|
|
65
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
66
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
67
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
68
|
+
(except as stated in this section) patent license to make, have made,
|
|
69
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
70
|
+
where such license applies only to those patent claims licensable
|
|
71
|
+
by such Contributor that are necessarily infringed by their
|
|
72
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
73
|
+
with the Work to which such Contribution(s) was submitted.
|
|
74
|
+
|
|
75
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
76
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
77
|
+
modifications, and in Source or Object form, provided that You
|
|
78
|
+
meet the following conditions:
|
|
79
|
+
|
|
80
|
+
(a) You must give any other recipients of the Work or
|
|
81
|
+
Derivative Works a copy of this License; and
|
|
82
|
+
|
|
83
|
+
(b) You must cause any modified files to carry prominent notices
|
|
84
|
+
stating that You changed the files; and
|
|
85
|
+
|
|
86
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
87
|
+
that You distribute, all copyright, patent, trademark, and
|
|
88
|
+
attribution notices from the Source form of the Work; and
|
|
89
|
+
|
|
90
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
91
|
+
distribution, then any Derivative Works that You distribute must
|
|
92
|
+
include a readable copy of the attribution notices contained
|
|
93
|
+
within such NOTICE file.
|
|
94
|
+
|
|
95
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
96
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
97
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
98
|
+
this License, without any additional terms or conditions.
|
|
99
|
+
|
|
100
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
101
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
102
|
+
except as required for reasonable and customary use in describing the
|
|
103
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
104
|
+
|
|
105
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
106
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
107
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
108
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
109
|
+
implied, including, without limitation, any warranties or conditions
|
|
110
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
111
|
+
PARTICULAR PURPOSE.
|
|
112
|
+
|
|
113
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
114
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
115
|
+
unless required by applicable law (such as deliberate and grossly
|
|
116
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
117
|
+
liable to You for damages, including any direct, indirect, special,
|
|
118
|
+
incidental, or exemplary damages of any character arising as a
|
|
119
|
+
result of this License or out of the use or inability to use the
|
|
120
|
+
Work.
|
|
121
|
+
|
|
122
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
123
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
124
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
125
|
+
or other liability obligations and/or rights consistent with this
|
|
126
|
+
License.
|
|
127
|
+
|
|
128
|
+
END OF TERMS AND CONDITIONS
|
medorqis-2.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: medorqis
|
|
3
|
+
Version: 2.1.1
|
|
4
|
+
Summary: MedOrqis โ Medical AI Skills Ecosystem: 24 Specialized Clinical AI Skills, Deterministic Safety Guardrails & Zero-Token Calculators.
|
|
5
|
+
Author-email: Tarek Mohamed <seotarek@gmail.com>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://seotarek.github.io/MedOrqis/
|
|
8
|
+
Project-URL: Repository, https://github.com/seotarek/MedOrqis
|
|
9
|
+
Project-URL: Documentation, https://seotarek.github.io/MedOrqis/
|
|
10
|
+
Project-URL: Zenodo_DOI, https://doi.org/10.5281/zenodo.23937802
|
|
11
|
+
Keywords: medical-ai,clinical-decision-support,mcp,claude-skills,gemini-extensions,patient-safety,zero-token
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Healthcare Industry
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
|
|
23
|
+
Requires-Python: >=3.10
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: jsonschema>=4.20.0
|
|
27
|
+
Provides-Extra: mcp
|
|
28
|
+
Requires-Dist: mcp>=1.0.0; extra == "mcp"
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
31
|
+
Requires-Dist: pydantic>=2.0.0; extra == "dev"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# MedOrqis โ Medical AI Skills Ecosystem (v2.1.1)
|
|
35
|
+
|
|
36
|
+
[](https://seotarek.github.io/MedOrqis/)
|
|
37
|
+
[](https://doi.org/10.5281/zenodo.23937802)
|
|
38
|
+
[](https://github.com/vercel-labs/skills)
|
|
39
|
+
[](https://www.npmjs.com/package/medorqis)
|
|
40
|
+
[-brightgreen.svg?style=for-the-badge)](tests/reports/VERIFICATION_REPORT.md)
|
|
41
|
+
[](https://github.com/seotarek/MedOrqis/actions)
|
|
42
|
+
[](LICENSE)
|
|
43
|
+
|
|
44
|
+
**MedOrqis** is an open-source, evidence-grounded, cross-platform ecosystem of **24 specialized clinical AI skills**, **12 deterministic zero-token clinical calculators & safety engines**, and multi-platform adapters (Skills CLI, Claude Code, Gemini CLI, Model Context Protocol, and OpenAI).
|
|
45
|
+
|
|
46
|
+
> [!TIP]
|
|
47
|
+
> ๐ **Interactive Web Hub & Live Zero-Token Calculators**:
|
|
48
|
+
> Explore the live searchable 24-skill catalog, test interactive clinical calculators (ESC 2024 CHAโDSโ-VA, CKD-EPI 2021, Bedside Schwartz, HAS-BLED, NEWS2, DDI Checker), and inspect dialect benchmarks directly in your browser at **[https://seotarek.github.io/MedOrqis/](https://seotarek.github.io/MedOrqis/)**.
|
|
49
|
+
>
|
|
50
|
+
> โก **Fleet Install in 1-Second (Claude Code, Cursor, Codex, Antigravity, OpenCode)**:
|
|
51
|
+
> ```bash
|
|
52
|
+
> npx skills add seotarek/MedOrqis
|
|
53
|
+
> ```
|
|
54
|
+
|
|
55
|
+
Built with an **evidence-first, patient-safety-first architecture**, MedOrqis eliminates medical hallucination risks in high-stakes clinical calculations by executing arithmetic, unit conversions, PHI scrubbing, negation parsing, and drug interaction screenings through a **local, deterministic Python core with zero LLM API token overhead**.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## โก 1-Minute Quick Start & Integration Options
|
|
60
|
+
|
|
61
|
+
### ๐ ๏ธ Option 1: One-Command Fleet Install (Skills CLI)
|
|
62
|
+
Install all 24 skills directly into your active coding agent workspace (Claude Code, Cursor, Antigravity, OpenCode, Codex):
|
|
63
|
+
```bash
|
|
64
|
+
# Install the complete MedOrqis ecosystem (all 24 skills)
|
|
65
|
+
npx skills add seotarek/MedOrqis
|
|
66
|
+
|
|
67
|
+
# Or install specific clinical skills:
|
|
68
|
+
npx skills add seotarek/MedOrqis --skill emergency-triage-redflags
|
|
69
|
+
npx skills add seotarek/MedOrqis --skill pharmacology-dosing-interactions
|
|
70
|
+
npx skills add seotarek/MedOrqis --skill pediatrics-neonatology
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
> โญ **Support Open-Source Clinical AI**: If MedOrqis helps your workflow or coding agents, please give the repo a **[Star on GitHub](https://github.com/seotarek/MedOrqis)** โ it helps the project reach more clinicians and medical AI engineers!
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
### ๐ฆ Option 2: NPX & NPM Interactive Terminal Package (`medorqis`)
|
|
78
|
+
Explore the catalog and copy prompts directly in your terminal:
|
|
79
|
+
```bash
|
|
80
|
+
# Run interactive CLI browser
|
|
81
|
+
npx medorqis
|
|
82
|
+
|
|
83
|
+
# List all 24 skills grouped by safety tier
|
|
84
|
+
npx medorqis list
|
|
85
|
+
|
|
86
|
+
# Print copyable Universal AI Prompt for web chat models
|
|
87
|
+
npx medorqis prompt
|
|
88
|
+
|
|
89
|
+
# Print MCP configuration JSON block
|
|
90
|
+
npx medorqis mcp
|
|
91
|
+
```
|
|
92
|
+
Or install globally or as a project dependency:
|
|
93
|
+
```bash
|
|
94
|
+
npm install -g medorqis
|
|
95
|
+
# or in Node.js apps:
|
|
96
|
+
npm install medorqis
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
### โก Option 3: Universal AI Model Prompting (Zero Install โ Any Model)
|
|
102
|
+
You do not need to install anything or run code to use MedOrqis with LLMs! You can send the repository link and prompt directly to **ChatGPT (with web access), Claude 3.5 Sonnet, Google Gemini, Cursor, Grok, or Antigravity**:
|
|
103
|
+
|
|
104
|
+
> **Copy & Paste into any AI model:**
|
|
105
|
+
> ```text
|
|
106
|
+
> Read the open-source clinical AI skills ecosystem MedOrqis at:
|
|
107
|
+
> https://github.com/seotarek/MedOrqis (Web catalog: https://seotarek.github.io/MedOrqis/)
|
|
108
|
+
>
|
|
109
|
+
> You are now operating under MedOrqis clinical governance rules (v2.1.1):
|
|
110
|
+
> 1. Enforce zero-hallucination deterministic standards for all medical risk scores and formulas (CHA2DS2-VA ESC 2024, CKD-EPI 2021, Bedside Schwartz, Cockcroft-Gault, Wells DVT/PE, CURB-65, HAS-BLED, NEWS2, Pediatric Dose Capping).
|
|
111
|
+
> 2. Epistemic provenance: Never recommend high-risk interventions based on unconfirmed model hypotheses.
|
|
112
|
+
> 3. Missing Age Gatekeeper: If patient age is unrecorded, do NOT assume a default adult age (30); immediately flag SAFE_ABSTENTION_DATA_DEFICIT.
|
|
113
|
+
> 4. Sentinel Emergency Red Flags: Immediate emergency redirection on acute stroke (FAST), ACS crushing chest pain, anaphylaxis, septic shock, or anticoagulation + active bleeding.
|
|
114
|
+
> 5. Provide evidence-grounded differential diagnosis, drug interaction screening, and red-flag triage across all 24 MedOrqis clinical domains.
|
|
115
|
+
>
|
|
116
|
+
> Please summarize your activated clinical skills and await clinical input.
|
|
117
|
+
> ```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
### ๐ Option 4: Model Context Protocol (MCP Server)
|
|
122
|
+
Run the local MCP stdio server:
|
|
123
|
+
```bash
|
|
124
|
+
python3 mcp_server/medorqis_mcp_server.py
|
|
125
|
+
```
|
|
126
|
+
Add to your Claude Desktop configuration (`claude_desktop_config.json`):
|
|
127
|
+
```json
|
|
128
|
+
{
|
|
129
|
+
"mcpServers": {
|
|
130
|
+
"medorqis": {
|
|
131
|
+
"command": "python3",
|
|
132
|
+
"args": ["/path/to/MedOrqis/mcp_server/medorqis_mcp_server.py"]
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
### ๐ Option 5: Local Python Developer Setup
|
|
141
|
+
```bash
|
|
142
|
+
git clone https://github.com/seotarek/MedOrqis.git
|
|
143
|
+
cd MedOrqis
|
|
144
|
+
python3 -m pip install -e .
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## ๐งฎ Pure Deterministic Clinical Calculators (`core/clinical_calculators.py`)
|
|
150
|
+
|
|
151
|
+
All medical calculations in MedOrqis execute with **zero LLM API token overhead and strict mathematical determinism** via pure Python functions in [`core/clinical_calculators.py`](core/clinical_calculators.py):
|
|
152
|
+
|
|
153
|
+
| # | Clinical Calculator | Function Name | Clinical Guideline & Standard | Target Population | Safety Gate & Boundary Enforcement |
|
|
154
|
+
|---|---|---|---|---|---|
|
|
155
|
+
| **1** | **CHAโDSโ-VA** | `calculate_cha2ds2_va_esc2024` | ESC Guidelines 2024 (Sex-Neutral) | Adults ($\ge 18\text{y}$) with AF | Refuses if Age missing (`SAFE_ABSTENTION_DATA_DEFICIT`). Removes 1-point female bias. |
|
|
156
|
+
| **2** | **CHAโDSโ-VASc** | `calculate_cha2ds2_vasc_aha2023` | ACC/AHA/ACCP/HRS 2023 | Adults ($\ge 18\text{y}$) with AF | Historical comparative baseline for US guidelines ($+1$ for female sex). |
|
|
157
|
+
| **3** | **CKD-EPI 2021** | `calculate_ckd_epi_2021_egfr` | NKF-ASN Task Force / NEJM 2021 | Adults ($\ge 18\text{y}$) | Race-free adult eGFR formula. **Hard Refusal** if Age $< 18$ years (`SAFE_REFUSAL_PEDIATRIC`). |
|
|
158
|
+
| **4** | **Bedside Schwartz** | `calculate_bedside_schwartz_egfr` | Schwartz GJ et al. (JASN 2009) | Pediatrics ($< 18\text{y}$) | Height-based eGFR ($0.413 \times \text{Ht}/\text{SCr}$). **Hard Refusal** if Age $\ge 18$ years (`SAFE_REFUSAL_ADULT`). |
|
|
159
|
+
| **5** | **Cockcroft-Gault** | `calculate_cockcroft_gault_crcl` | FDA Renal Dosing Standards | Adults ($\ge 18\text{y}$) | Automatically calculates IBW and Adjusted Body Weight (AdjBW $0.4$) if BMI $\ge 30$. |
|
|
160
|
+
| **6** | **HAS-BLED** | `calculate_has_bled_score` | Pisters R et al. (Chest 2010) | Adults on Anticoagulation | Flags High Bleeding Risk ($\ge 3$); warns against unmonitored DOAC initiation. |
|
|
161
|
+
| **7** | **CURB-65** | `calculate_curb65_score` | British Thoracic Society (BTS) | Adults with CAP | Stratifies 30-day mortality risk (Outpatient vs Inpatient vs ICU admission). |
|
|
162
|
+
| **8** | **NEWS2** | `calculate_news2_score` | Royal College of Physicians (2017) | Acute Inpatient Care | Physiological aggregate triage across 6 vital signs; automated sepsis escalation. |
|
|
163
|
+
| **9** | **Wells DVT Criteria** | `calculate_wells_dvt_score` | Wells PS et al. (NEJM 2003) | Suspected DVT | Pre-test probability (Unlikely vs Likely); dictates D-dimer vs Compression Ultrasound. |
|
|
164
|
+
| **10** | **Wells PE Criteria** | `calculate_wells_pe_score` | Wells PS et al. (Ann Intern Med 2001) | Suspected PE | Pre-test probability (Unlikely vs Likely); dictates D-dimer vs CT Pulmonary Angiography. |
|
|
165
|
+
|
|
166
|
+
*(Auxiliary dosing & safety engines: `calculate_pediatric_weight_dose` & `calculate_mosteller_bsa` in `core/clinical_calculators.py`, and Contraindicated DDI Screening in `core/safety_guardrails.py`)*.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## ๐ฅ The 24-Skill Risk-Stratified Taxonomy
|
|
171
|
+
|
|
172
|
+
### Tier 1: Governance, Research & Operations (Class A)
|
|
173
|
+
- `medorqis-orchestrator`: Context envelope routing and conflict resolution.
|
|
174
|
+
- `ebm-research-biostatistics`: PICO, CASP, RoB-2 appraisal, and GRADE certainty.
|
|
175
|
+
- `medical-documentation-translation`: SOAP, SBAR, and BiDi multilingual medical translation.
|
|
176
|
+
- `healthcare-ops-telemedicine-ehr`: HL7 FHIR mapping and telemedicine intake.
|
|
177
|
+
- `health-cybersecurity-privacy`: PHI scrubbing and prompt injection defense.
|
|
178
|
+
- `public-health-epidemiology`: Screening metrics (sens/spec) and IPC protocols.
|
|
179
|
+
|
|
180
|
+
### Tier 2: Diagnostic & Chronic Care Support (Class B)
|
|
181
|
+
- `differential-diagnosis-cds`: VINDICATE differential framework.
|
|
182
|
+
- `laboratory-medicine-pathology`: Critical panic values and LOINC mapping.
|
|
183
|
+
- `radiology-medical-imaging`: ACR Appropriateness Criteria and radiation safety.
|
|
184
|
+
- `internal-medicine-chronic`: Multi-morbidity chronic disease care plans.
|
|
185
|
+
- `infectious-diseases-stewardship`: Antimicrobial stewardship and resistance awareness.
|
|
186
|
+
- `nursing-clinical-care`: NEWS2 early warning score and Braden scale.
|
|
187
|
+
- `clinical-nutrition-dietetics`: Caloric requirements and food-drug interactions.
|
|
188
|
+
- `rehabilitation-physical-therapy`: Post-op and stroke rehab protocols.
|
|
189
|
+
|
|
190
|
+
### Tier 3: High-Risk, Emergency & Vulnerable Populations (Class C)
|
|
191
|
+
- `emergency-triage-redflags`: ABCDE primary survey and emergency redirection.
|
|
192
|
+
- `clinical-safety-auditor`: Pre-output verification and safety gate check.
|
|
193
|
+
- `pharmacology-dosing-interactions`: Renal/hepatic adjustments and DDI checks.
|
|
194
|
+
- `clinical-toxicology-overdose`: Toxidromes, antidotes, and Poison Control escalation.
|
|
195
|
+
- `pediatrics-neonatology`: Weight-based dose capping and pediatric safety.
|
|
196
|
+
- `obstetrics-gynecology`: Maternal-fetal safety and pre-eclampsia triage.
|
|
197
|
+
- `geriatrics-polypharmacy`: 2023 Beers Criteria and STOPP/START.
|
|
198
|
+
- `mental-health-psychiatry`: Suicide crisis escalation and psychotropic monitoring.
|
|
199
|
+
- `perioperative-surgical-care`: RCRI pre-op risk and anticoagulation bridging.
|
|
200
|
+
- `oncology-palliative-care`: Oncologic emergencies and palliative pain control.
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## ๐ Multilingual & Dialect Regression Benchmark
|
|
205
|
+
|
|
206
|
+
MedOrqis includes a deterministic natural language processing normalizer verified across **126 curated synthetic test fixtures**:
|
|
207
|
+
- **100 Syntactic Negation Sentences**: Handcrafted fixtures verifying regex boundary detection and clause-stop logic across 8 dialects and languages: Modern Standard Arabic (`ar-MSA`), Egyptian (`ar-EG`), Gulf (`ar-GULF`), Levantine (`ar-LEV`), Maghrebi (`ar-MAG`), English (`en-US/GB`), French (`fr-FR`), and Spanish (`es-ES`).
|
|
208
|
+
- **10 BiDi & Unit Token Strings**: Numerical and unit strings verifying bidirectional layout preservation (e.g. Arabic RTL mixing English numbers/units like "500 mg").
|
|
209
|
+
- **16 Trade Brand-to-INN Mappings**: Lookup fixtures mapping regional commercial trade brand names to generic International Nonproprietary Names (e.g. Panadol $\to$ Paracetamol).
|
|
210
|
+
|
|
211
|
+
> [!CAUTION]
|
|
212
|
+
> **Two-Axis Governance Separation**:
|
|
213
|
+
> - **Automated Syntactic Unit-Test Pass Rate**: **100.0% (126/126 passed)**.
|
|
214
|
+
> - **Bedside Real-World Clinical Validation**: **0.0% (UNVALIDATED IN-VIVO / PENDING CLINICAL TRIALS)**.
|
|
215
|
+
>
|
|
216
|
+
> See full breakdown and statistical caveats in [LANGUAGE_COVERAGE_MATRIX.md](LANGUAGE_COVERAGE_MATRIX.md).
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## ๐งช Automated Verification & Provenance
|
|
221
|
+
|
|
222
|
+
Execute cryptographic file integrity verification and the harmonized clinical test suite (all 36 unit, safety, multilingual, and adapter tests):
|
|
223
|
+
```bash
|
|
224
|
+
# 1. Verify SHA-256 cryptographic fingerprints across all 45 modules
|
|
225
|
+
python3 core/integrity_manifest.py --verify
|
|
226
|
+
|
|
227
|
+
# 2. Execute the harmonized clinical test suite
|
|
228
|
+
python3 tests/run_all_tests.py
|
|
229
|
+
```
|
|
230
|
+
This automatically verifies:
|
|
231
|
+
1. `tests/unit/test_clinical_calculators.py`: Boundary and formula correctness for all 12 clinical engines.
|
|
232
|
+
2. `tests/safety/test_safety_and_provenance.py`: Epistemic provenance gates, missing age gatekeeper, sentinel emergency red-flags, and contraindicated DDIs.
|
|
233
|
+
3. `tests/multilingual/test_multilingual_benchmark.py`: Negation preservation, BiDi unit fidelity, and brand-to-INN mapping across 126 test cases.
|
|
234
|
+
4. `tests/platform_adapters/test_security_and_adapters.py`: SHA-256 cryptographic file integrity manifest, PHI scrubbing, prompt injection defense, and MCP JSON-RPC protocol.
|
|
235
|
+
|
|
236
|
+
Artifacts generated:
|
|
237
|
+
- [VERIFICATION_REPORT.md](tests/reports/VERIFICATION_REPORT.md)
|
|
238
|
+
- [LANGUAGE_COVERAGE_MATRIX.md](LANGUAGE_COVERAGE_MATRIX.md)
|
|
239
|
+
- [file_integrity_manifest.json](governance/file_integrity_manifest.json)
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## โ๏ธ Governance & Regulatory Disclaimer
|
|
244
|
+
MedOrqis is an open-source clinical reference architecture and research framework. It is **NOT** a certified Medical Device (SaMD) and does not autonomously diagnose or prescribe. Clinical Decision Support outputs must always be reviewed by a licensed healthcare professional. See [MEDICAL_DISCLAIMER.md](MEDICAL_DISCLAIMER.md) and [SAFETY_AND_GOVERNANCE.md](SAFETY_AND_GOVERNANCE.md).
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## ๐ Academic Citation & Persistent DOI
|
|
249
|
+
If you use MedOrqis in clinical informatics, medical AI research, or clinical decision support development, please cite our persistent Zenodo repository DOI:
|
|
250
|
+
|
|
251
|
+
```bibtex
|
|
252
|
+
@software{mohamed_2026_medorqis,
|
|
253
|
+
author = {Mohamed, Tarek},
|
|
254
|
+
title = {MedOrqis: Medical AI Skills Ecosystem with Deterministic Safety Guardrails & Zero-Token Calculators},
|
|
255
|
+
month = nov,
|
|
256
|
+
year = 2026,
|
|
257
|
+
publisher = {Zenodo},
|
|
258
|
+
version = {v2.1.1},
|
|
259
|
+
doi = {10.5281/zenodo.23937802},
|
|
260
|
+
url = {https://doi.org/10.5281/zenodo.23937802}
|
|
261
|
+
}
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## ๐ License
|
|
267
|
+
Licensed under the [Apache License, Version 2.0](LICENSE).
|
|
268
|
+
Medical vocabularies and guidelines are attributed in [DATA_LICENSES_AND_ATTRIBUTIONS.md](DATA_LICENSES_AND_ATTRIBUTIONS.md).
|
medorqis-2.1.1/README.md
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
# MedOrqis โ Medical AI Skills Ecosystem (v2.1.1)
|
|
2
|
+
|
|
3
|
+
[](https://seotarek.github.io/MedOrqis/)
|
|
4
|
+
[](https://doi.org/10.5281/zenodo.23937802)
|
|
5
|
+
[](https://github.com/vercel-labs/skills)
|
|
6
|
+
[](https://www.npmjs.com/package/medorqis)
|
|
7
|
+
[-brightgreen.svg?style=for-the-badge)](tests/reports/VERIFICATION_REPORT.md)
|
|
8
|
+
[](https://github.com/seotarek/MedOrqis/actions)
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
|
|
11
|
+
**MedOrqis** is an open-source, evidence-grounded, cross-platform ecosystem of **24 specialized clinical AI skills**, **12 deterministic zero-token clinical calculators & safety engines**, and multi-platform adapters (Skills CLI, Claude Code, Gemini CLI, Model Context Protocol, and OpenAI).
|
|
12
|
+
|
|
13
|
+
> [!TIP]
|
|
14
|
+
> ๐ **Interactive Web Hub & Live Zero-Token Calculators**:
|
|
15
|
+
> Explore the live searchable 24-skill catalog, test interactive clinical calculators (ESC 2024 CHAโDSโ-VA, CKD-EPI 2021, Bedside Schwartz, HAS-BLED, NEWS2, DDI Checker), and inspect dialect benchmarks directly in your browser at **[https://seotarek.github.io/MedOrqis/](https://seotarek.github.io/MedOrqis/)**.
|
|
16
|
+
>
|
|
17
|
+
> โก **Fleet Install in 1-Second (Claude Code, Cursor, Codex, Antigravity, OpenCode)**:
|
|
18
|
+
> ```bash
|
|
19
|
+
> npx skills add seotarek/MedOrqis
|
|
20
|
+
> ```
|
|
21
|
+
|
|
22
|
+
Built with an **evidence-first, patient-safety-first architecture**, MedOrqis eliminates medical hallucination risks in high-stakes clinical calculations by executing arithmetic, unit conversions, PHI scrubbing, negation parsing, and drug interaction screenings through a **local, deterministic Python core with zero LLM API token overhead**.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## โก 1-Minute Quick Start & Integration Options
|
|
27
|
+
|
|
28
|
+
### ๐ ๏ธ Option 1: One-Command Fleet Install (Skills CLI)
|
|
29
|
+
Install all 24 skills directly into your active coding agent workspace (Claude Code, Cursor, Antigravity, OpenCode, Codex):
|
|
30
|
+
```bash
|
|
31
|
+
# Install the complete MedOrqis ecosystem (all 24 skills)
|
|
32
|
+
npx skills add seotarek/MedOrqis
|
|
33
|
+
|
|
34
|
+
# Or install specific clinical skills:
|
|
35
|
+
npx skills add seotarek/MedOrqis --skill emergency-triage-redflags
|
|
36
|
+
npx skills add seotarek/MedOrqis --skill pharmacology-dosing-interactions
|
|
37
|
+
npx skills add seotarek/MedOrqis --skill pediatrics-neonatology
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
> โญ **Support Open-Source Clinical AI**: If MedOrqis helps your workflow or coding agents, please give the repo a **[Star on GitHub](https://github.com/seotarek/MedOrqis)** โ it helps the project reach more clinicians and medical AI engineers!
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
### ๐ฆ Option 2: NPX & NPM Interactive Terminal Package (`medorqis`)
|
|
45
|
+
Explore the catalog and copy prompts directly in your terminal:
|
|
46
|
+
```bash
|
|
47
|
+
# Run interactive CLI browser
|
|
48
|
+
npx medorqis
|
|
49
|
+
|
|
50
|
+
# List all 24 skills grouped by safety tier
|
|
51
|
+
npx medorqis list
|
|
52
|
+
|
|
53
|
+
# Print copyable Universal AI Prompt for web chat models
|
|
54
|
+
npx medorqis prompt
|
|
55
|
+
|
|
56
|
+
# Print MCP configuration JSON block
|
|
57
|
+
npx medorqis mcp
|
|
58
|
+
```
|
|
59
|
+
Or install globally or as a project dependency:
|
|
60
|
+
```bash
|
|
61
|
+
npm install -g medorqis
|
|
62
|
+
# or in Node.js apps:
|
|
63
|
+
npm install medorqis
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
### โก Option 3: Universal AI Model Prompting (Zero Install โ Any Model)
|
|
69
|
+
You do not need to install anything or run code to use MedOrqis with LLMs! You can send the repository link and prompt directly to **ChatGPT (with web access), Claude 3.5 Sonnet, Google Gemini, Cursor, Grok, or Antigravity**:
|
|
70
|
+
|
|
71
|
+
> **Copy & Paste into any AI model:**
|
|
72
|
+
> ```text
|
|
73
|
+
> Read the open-source clinical AI skills ecosystem MedOrqis at:
|
|
74
|
+
> https://github.com/seotarek/MedOrqis (Web catalog: https://seotarek.github.io/MedOrqis/)
|
|
75
|
+
>
|
|
76
|
+
> You are now operating under MedOrqis clinical governance rules (v2.1.1):
|
|
77
|
+
> 1. Enforce zero-hallucination deterministic standards for all medical risk scores and formulas (CHA2DS2-VA ESC 2024, CKD-EPI 2021, Bedside Schwartz, Cockcroft-Gault, Wells DVT/PE, CURB-65, HAS-BLED, NEWS2, Pediatric Dose Capping).
|
|
78
|
+
> 2. Epistemic provenance: Never recommend high-risk interventions based on unconfirmed model hypotheses.
|
|
79
|
+
> 3. Missing Age Gatekeeper: If patient age is unrecorded, do NOT assume a default adult age (30); immediately flag SAFE_ABSTENTION_DATA_DEFICIT.
|
|
80
|
+
> 4. Sentinel Emergency Red Flags: Immediate emergency redirection on acute stroke (FAST), ACS crushing chest pain, anaphylaxis, septic shock, or anticoagulation + active bleeding.
|
|
81
|
+
> 5. Provide evidence-grounded differential diagnosis, drug interaction screening, and red-flag triage across all 24 MedOrqis clinical domains.
|
|
82
|
+
>
|
|
83
|
+
> Please summarize your activated clinical skills and await clinical input.
|
|
84
|
+
> ```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
### ๐ Option 4: Model Context Protocol (MCP Server)
|
|
89
|
+
Run the local MCP stdio server:
|
|
90
|
+
```bash
|
|
91
|
+
python3 mcp_server/medorqis_mcp_server.py
|
|
92
|
+
```
|
|
93
|
+
Add to your Claude Desktop configuration (`claude_desktop_config.json`):
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
"mcpServers": {
|
|
97
|
+
"medorqis": {
|
|
98
|
+
"command": "python3",
|
|
99
|
+
"args": ["/path/to/MedOrqis/mcp_server/medorqis_mcp_server.py"]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
### ๐ Option 5: Local Python Developer Setup
|
|
108
|
+
```bash
|
|
109
|
+
git clone https://github.com/seotarek/MedOrqis.git
|
|
110
|
+
cd MedOrqis
|
|
111
|
+
python3 -m pip install -e .
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## ๐งฎ Pure Deterministic Clinical Calculators (`core/clinical_calculators.py`)
|
|
117
|
+
|
|
118
|
+
All medical calculations in MedOrqis execute with **zero LLM API token overhead and strict mathematical determinism** via pure Python functions in [`core/clinical_calculators.py`](core/clinical_calculators.py):
|
|
119
|
+
|
|
120
|
+
| # | Clinical Calculator | Function Name | Clinical Guideline & Standard | Target Population | Safety Gate & Boundary Enforcement |
|
|
121
|
+
|---|---|---|---|---|---|
|
|
122
|
+
| **1** | **CHAโDSโ-VA** | `calculate_cha2ds2_va_esc2024` | ESC Guidelines 2024 (Sex-Neutral) | Adults ($\ge 18\text{y}$) with AF | Refuses if Age missing (`SAFE_ABSTENTION_DATA_DEFICIT`). Removes 1-point female bias. |
|
|
123
|
+
| **2** | **CHAโDSโ-VASc** | `calculate_cha2ds2_vasc_aha2023` | ACC/AHA/ACCP/HRS 2023 | Adults ($\ge 18\text{y}$) with AF | Historical comparative baseline for US guidelines ($+1$ for female sex). |
|
|
124
|
+
| **3** | **CKD-EPI 2021** | `calculate_ckd_epi_2021_egfr` | NKF-ASN Task Force / NEJM 2021 | Adults ($\ge 18\text{y}$) | Race-free adult eGFR formula. **Hard Refusal** if Age $< 18$ years (`SAFE_REFUSAL_PEDIATRIC`). |
|
|
125
|
+
| **4** | **Bedside Schwartz** | `calculate_bedside_schwartz_egfr` | Schwartz GJ et al. (JASN 2009) | Pediatrics ($< 18\text{y}$) | Height-based eGFR ($0.413 \times \text{Ht}/\text{SCr}$). **Hard Refusal** if Age $\ge 18$ years (`SAFE_REFUSAL_ADULT`). |
|
|
126
|
+
| **5** | **Cockcroft-Gault** | `calculate_cockcroft_gault_crcl` | FDA Renal Dosing Standards | Adults ($\ge 18\text{y}$) | Automatically calculates IBW and Adjusted Body Weight (AdjBW $0.4$) if BMI $\ge 30$. |
|
|
127
|
+
| **6** | **HAS-BLED** | `calculate_has_bled_score` | Pisters R et al. (Chest 2010) | Adults on Anticoagulation | Flags High Bleeding Risk ($\ge 3$); warns against unmonitored DOAC initiation. |
|
|
128
|
+
| **7** | **CURB-65** | `calculate_curb65_score` | British Thoracic Society (BTS) | Adults with CAP | Stratifies 30-day mortality risk (Outpatient vs Inpatient vs ICU admission). |
|
|
129
|
+
| **8** | **NEWS2** | `calculate_news2_score` | Royal College of Physicians (2017) | Acute Inpatient Care | Physiological aggregate triage across 6 vital signs; automated sepsis escalation. |
|
|
130
|
+
| **9** | **Wells DVT Criteria** | `calculate_wells_dvt_score` | Wells PS et al. (NEJM 2003) | Suspected DVT | Pre-test probability (Unlikely vs Likely); dictates D-dimer vs Compression Ultrasound. |
|
|
131
|
+
| **10** | **Wells PE Criteria** | `calculate_wells_pe_score` | Wells PS et al. (Ann Intern Med 2001) | Suspected PE | Pre-test probability (Unlikely vs Likely); dictates D-dimer vs CT Pulmonary Angiography. |
|
|
132
|
+
|
|
133
|
+
*(Auxiliary dosing & safety engines: `calculate_pediatric_weight_dose` & `calculate_mosteller_bsa` in `core/clinical_calculators.py`, and Contraindicated DDI Screening in `core/safety_guardrails.py`)*.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## ๐ฅ The 24-Skill Risk-Stratified Taxonomy
|
|
138
|
+
|
|
139
|
+
### Tier 1: Governance, Research & Operations (Class A)
|
|
140
|
+
- `medorqis-orchestrator`: Context envelope routing and conflict resolution.
|
|
141
|
+
- `ebm-research-biostatistics`: PICO, CASP, RoB-2 appraisal, and GRADE certainty.
|
|
142
|
+
- `medical-documentation-translation`: SOAP, SBAR, and BiDi multilingual medical translation.
|
|
143
|
+
- `healthcare-ops-telemedicine-ehr`: HL7 FHIR mapping and telemedicine intake.
|
|
144
|
+
- `health-cybersecurity-privacy`: PHI scrubbing and prompt injection defense.
|
|
145
|
+
- `public-health-epidemiology`: Screening metrics (sens/spec) and IPC protocols.
|
|
146
|
+
|
|
147
|
+
### Tier 2: Diagnostic & Chronic Care Support (Class B)
|
|
148
|
+
- `differential-diagnosis-cds`: VINDICATE differential framework.
|
|
149
|
+
- `laboratory-medicine-pathology`: Critical panic values and LOINC mapping.
|
|
150
|
+
- `radiology-medical-imaging`: ACR Appropriateness Criteria and radiation safety.
|
|
151
|
+
- `internal-medicine-chronic`: Multi-morbidity chronic disease care plans.
|
|
152
|
+
- `infectious-diseases-stewardship`: Antimicrobial stewardship and resistance awareness.
|
|
153
|
+
- `nursing-clinical-care`: NEWS2 early warning score and Braden scale.
|
|
154
|
+
- `clinical-nutrition-dietetics`: Caloric requirements and food-drug interactions.
|
|
155
|
+
- `rehabilitation-physical-therapy`: Post-op and stroke rehab protocols.
|
|
156
|
+
|
|
157
|
+
### Tier 3: High-Risk, Emergency & Vulnerable Populations (Class C)
|
|
158
|
+
- `emergency-triage-redflags`: ABCDE primary survey and emergency redirection.
|
|
159
|
+
- `clinical-safety-auditor`: Pre-output verification and safety gate check.
|
|
160
|
+
- `pharmacology-dosing-interactions`: Renal/hepatic adjustments and DDI checks.
|
|
161
|
+
- `clinical-toxicology-overdose`: Toxidromes, antidotes, and Poison Control escalation.
|
|
162
|
+
- `pediatrics-neonatology`: Weight-based dose capping and pediatric safety.
|
|
163
|
+
- `obstetrics-gynecology`: Maternal-fetal safety and pre-eclampsia triage.
|
|
164
|
+
- `geriatrics-polypharmacy`: 2023 Beers Criteria and STOPP/START.
|
|
165
|
+
- `mental-health-psychiatry`: Suicide crisis escalation and psychotropic monitoring.
|
|
166
|
+
- `perioperative-surgical-care`: RCRI pre-op risk and anticoagulation bridging.
|
|
167
|
+
- `oncology-palliative-care`: Oncologic emergencies and palliative pain control.
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## ๐ Multilingual & Dialect Regression Benchmark
|
|
172
|
+
|
|
173
|
+
MedOrqis includes a deterministic natural language processing normalizer verified across **126 curated synthetic test fixtures**:
|
|
174
|
+
- **100 Syntactic Negation Sentences**: Handcrafted fixtures verifying regex boundary detection and clause-stop logic across 8 dialects and languages: Modern Standard Arabic (`ar-MSA`), Egyptian (`ar-EG`), Gulf (`ar-GULF`), Levantine (`ar-LEV`), Maghrebi (`ar-MAG`), English (`en-US/GB`), French (`fr-FR`), and Spanish (`es-ES`).
|
|
175
|
+
- **10 BiDi & Unit Token Strings**: Numerical and unit strings verifying bidirectional layout preservation (e.g. Arabic RTL mixing English numbers/units like "500 mg").
|
|
176
|
+
- **16 Trade Brand-to-INN Mappings**: Lookup fixtures mapping regional commercial trade brand names to generic International Nonproprietary Names (e.g. Panadol $\to$ Paracetamol).
|
|
177
|
+
|
|
178
|
+
> [!CAUTION]
|
|
179
|
+
> **Two-Axis Governance Separation**:
|
|
180
|
+
> - **Automated Syntactic Unit-Test Pass Rate**: **100.0% (126/126 passed)**.
|
|
181
|
+
> - **Bedside Real-World Clinical Validation**: **0.0% (UNVALIDATED IN-VIVO / PENDING CLINICAL TRIALS)**.
|
|
182
|
+
>
|
|
183
|
+
> See full breakdown and statistical caveats in [LANGUAGE_COVERAGE_MATRIX.md](LANGUAGE_COVERAGE_MATRIX.md).
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## ๐งช Automated Verification & Provenance
|
|
188
|
+
|
|
189
|
+
Execute cryptographic file integrity verification and the harmonized clinical test suite (all 36 unit, safety, multilingual, and adapter tests):
|
|
190
|
+
```bash
|
|
191
|
+
# 1. Verify SHA-256 cryptographic fingerprints across all 45 modules
|
|
192
|
+
python3 core/integrity_manifest.py --verify
|
|
193
|
+
|
|
194
|
+
# 2. Execute the harmonized clinical test suite
|
|
195
|
+
python3 tests/run_all_tests.py
|
|
196
|
+
```
|
|
197
|
+
This automatically verifies:
|
|
198
|
+
1. `tests/unit/test_clinical_calculators.py`: Boundary and formula correctness for all 12 clinical engines.
|
|
199
|
+
2. `tests/safety/test_safety_and_provenance.py`: Epistemic provenance gates, missing age gatekeeper, sentinel emergency red-flags, and contraindicated DDIs.
|
|
200
|
+
3. `tests/multilingual/test_multilingual_benchmark.py`: Negation preservation, BiDi unit fidelity, and brand-to-INN mapping across 126 test cases.
|
|
201
|
+
4. `tests/platform_adapters/test_security_and_adapters.py`: SHA-256 cryptographic file integrity manifest, PHI scrubbing, prompt injection defense, and MCP JSON-RPC protocol.
|
|
202
|
+
|
|
203
|
+
Artifacts generated:
|
|
204
|
+
- [VERIFICATION_REPORT.md](tests/reports/VERIFICATION_REPORT.md)
|
|
205
|
+
- [LANGUAGE_COVERAGE_MATRIX.md](LANGUAGE_COVERAGE_MATRIX.md)
|
|
206
|
+
- [file_integrity_manifest.json](governance/file_integrity_manifest.json)
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## โ๏ธ Governance & Regulatory Disclaimer
|
|
211
|
+
MedOrqis is an open-source clinical reference architecture and research framework. It is **NOT** a certified Medical Device (SaMD) and does not autonomously diagnose or prescribe. Clinical Decision Support outputs must always be reviewed by a licensed healthcare professional. See [MEDICAL_DISCLAIMER.md](MEDICAL_DISCLAIMER.md) and [SAFETY_AND_GOVERNANCE.md](SAFETY_AND_GOVERNANCE.md).
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## ๐ Academic Citation & Persistent DOI
|
|
216
|
+
If you use MedOrqis in clinical informatics, medical AI research, or clinical decision support development, please cite our persistent Zenodo repository DOI:
|
|
217
|
+
|
|
218
|
+
```bibtex
|
|
219
|
+
@software{mohamed_2026_medorqis,
|
|
220
|
+
author = {Mohamed, Tarek},
|
|
221
|
+
title = {MedOrqis: Medical AI Skills Ecosystem with Deterministic Safety Guardrails & Zero-Token Calculators},
|
|
222
|
+
month = nov,
|
|
223
|
+
year = 2026,
|
|
224
|
+
publisher = {Zenodo},
|
|
225
|
+
version = {v2.1.1},
|
|
226
|
+
doi = {10.5281/zenodo.23937802},
|
|
227
|
+
url = {https://doi.org/10.5281/zenodo.23937802}
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## ๐ License
|
|
234
|
+
Licensed under the [Apache License, Version 2.0](LICENSE).
|
|
235
|
+
Medical vocabularies and guidelines are attributed in [DATA_LICENSES_AND_ATTRIBUTIONS.md](DATA_LICENSES_AND_ATTRIBUTIONS.md).
|