@ntix/components-scorad 1.0.1 → 1.0.3
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/LICENSE.md +32 -0
- package/README.md +73 -0
- package/VALIDATION.md +39 -0
- package/dist/@ntix/components-scorad.es.js +393 -285
- package/dist/@ntix/components-scorad.umd.js +46 -42
- package/dist/component.d.ts +4 -1
- package/dist/extent/component.d.ts +7 -0
- package/dist/intensity/component.d.ts +2 -0
- package/dist/label/component.d.ts +1 -0
- package/dist/options/component.d.ts +4 -6
- package/dist/subjective/component.d.ts +1 -0
- package/dist/validateScoradData.d.ts +1 -0
- package/package.json +9 -5
- package/src/vars.css +0 -56
package/LICENSE.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# License: @ntix/components-scorad
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Antix Software Limited ([antix.co.uk](https://antix.co.uk))
|
|
4
|
+
|
|
5
|
+
## 1. PURPOSE
|
|
6
|
+
This license governs the use of the @ntix/components-scorad software package, including all source code, assets, and compiled distributions (the "Software"). The Software is owned and managed by Antix Software Limited.
|
|
7
|
+
|
|
8
|
+
## 2. EVALUATION & PERSONAL USE
|
|
9
|
+
Permission is granted to any person obtaining a copy of this Software to use it for **personal, educational, or internal evaluation purposes** only.
|
|
10
|
+
|
|
11
|
+
* This allows for local testing, prototyping, and development-environment integration.
|
|
12
|
+
* Any deployment to a production environment or use beyond evaluation requires adherence to the terms below.
|
|
13
|
+
|
|
14
|
+
## 3. COMMERCIAL USE
|
|
15
|
+
**Commercial Use requires a separate paid license agreement from Antix.** Commercial Use includes, but is not limited to:
|
|
16
|
+
* Use within a for-profit organization.
|
|
17
|
+
* Integration into revenue-generating products or services.
|
|
18
|
+
* Use within private medical systems or Electronic Health Record (EHR) platforms.
|
|
19
|
+
|
|
20
|
+
To purchase a Commercial License, please contact Antix at [hello@antix.co.uk].
|
|
21
|
+
|
|
22
|
+
## 4. NON-PROFIT, RESEARCH & PUBLIC HEALTH
|
|
23
|
+
For use by registered non-profit organizations, academic researchers, or public health bodies, you must **inform Antix prior to deployment**.
|
|
24
|
+
|
|
25
|
+
Please provide a project summary to [hello@antix.co.uk]. Antix reserves the right to grant or withhold permission based on the project's adherence to clinical safety and quality standards.
|
|
26
|
+
|
|
27
|
+
## 5. RESTRICTIONS
|
|
28
|
+
* **Redistribution:** You may not redistribute, sub-license, or sell the Software as a standalone library or part of a third-party UI kit.
|
|
29
|
+
* **Attribution:** All copies of the Software must retain the original Antix copyright notices.
|
|
30
|
+
|
|
31
|
+
## 6. LIMITATION OF LIABILITY
|
|
32
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. IN NO EVENT SHALL ANTIX BE LIABLE FOR ANY CLAIM, DAMAGES, MEDICAL INACCURACIES, OR OTHER LIABILITY ARISING FROM THE USE OF THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# @ntix/components-scorad
|
|
2
|
+
|
|
3
|
+
A professional-grade component library for calculating and visualizing SCORAD (SCORing Atopic Dermatitis) assessments. Developed by Antix Software Limited.
|
|
4
|
+
|
|
5
|
+
<a href="https://antix.co.uk/scorad">
|
|
6
|
+
<img src="https://github-production-user-asset-6210df.s3.amazonaws.com/873305/531299043-0c2a392c-f250-493f-b444-696413df6757.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20260101%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260101T004816Z&X-Amz-Expires=300&X-Amz-Signature=822cca7d3b90525f61745a99c5cc64765128ba7a59b6a3d4f43d433103748ccc&X-Amz-SignedHeaders=host" alt="SCORAD Component Preview" width="320" />
|
|
7
|
+
</a>
|
|
8
|
+
|
|
9
|
+
**View the interactive demo [antix.co.uk/scorad](https://antix.co.uk/scorad)**
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- Interactive Body Maps: High-performance SVG-based surface area selection.
|
|
14
|
+
- SCORAD Formula: Sections A (Extent), B (Intensity), and C (Subjective).
|
|
15
|
+
- Custom Elements: Easy integration with any framework or plain HTML.
|
|
16
|
+
|
|
17
|
+
## Validation & Accuracy
|
|
18
|
+
This component has been mathematically validated against the ETFAD SCORAD reference standards.
|
|
19
|
+
See [VALIDATION.md](./VALIDATION.md) for the full report and test coverage details.
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```shell
|
|
24
|
+
npm install @ntix/components-scorad
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Quick Start
|
|
28
|
+
|
|
29
|
+
### 1. Configuration (CSS Variables)
|
|
30
|
+
This library uses CSS variables for theming. Add these to your global styles:
|
|
31
|
+
|
|
32
|
+
```css
|
|
33
|
+
:root {
|
|
34
|
+
--color: #444;
|
|
35
|
+
--background-color: #eee;
|
|
36
|
+
--scorad-h: 75;
|
|
37
|
+
|
|
38
|
+
color: var(--color);
|
|
39
|
+
background-color: var(--background-color);
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### 2. Usage
|
|
44
|
+
Import the package to register the custom elements:
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
import '@ntix/components-scorad';
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Then add the component to your HTML:
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<scorad-component></scorad-component>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Licensing
|
|
57
|
+
|
|
58
|
+
This package is NOT open-source. Usage is governed by the Antix Software License.
|
|
59
|
+
For the full legal terms, please refer to the LICENSE.md file included in this package.
|
|
60
|
+
|
|
61
|
+
- Personal & Evaluation: Free for personal projects and local evaluation.
|
|
62
|
+
- Commercial Use: Requires a paid license agreement.
|
|
63
|
+
- Non-Profit & Research: Free use permitted, but you MUST inform Antix prior to deployment.
|
|
64
|
+
|
|
65
|
+
Contact: hello@antix.co.uk
|
|
66
|
+
|
|
67
|
+
## Clinical Disclaimer
|
|
68
|
+
|
|
69
|
+
The SCORAD calculation is a clinical tool intended for use by healthcare professionals. Antix Software Limited does not provide medical advice. The Software is provided "as is," and Antix is not liable for clinical decisions or diagnostic inaccuracies.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
(c) 2025 Antix Software Limited ([antix.co.uk](https://antix.co.uk)). All rights reserved.
|
package/VALIDATION.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Validation: @ntix/components-scorad
|
|
2
|
+
|
|
3
|
+
## 1. Overview
|
|
4
|
+
This document outlines the validation procedures and mathematical accuracy of the SCORAD (SCORing Atopic Dermatitis) calculation logic within this package.
|
|
5
|
+
|
|
6
|
+
## 2. Reference Standard
|
|
7
|
+
The implementation is based on the consensus report of the European Task Force on Atopic Dermatitis (ETFAD).
|
|
8
|
+
|
|
9
|
+
**Formula:** $Score = \frac{A}{5} + \frac{7B}{2} + C$
|
|
10
|
+
|
|
11
|
+
- **A (Extent):** Surface area percentage (0–100). Includes adult/child weighting adjustments for head and limbs.
|
|
12
|
+
- **B (Intensity):** Sum of 6 clinical signs (0–3 each), max 18.
|
|
13
|
+
- **C (Subjective):** Sum of Pruritus and Insomnia (0–10 each), max 20.
|
|
14
|
+
|
|
15
|
+
## 3. Automated Test Suite
|
|
16
|
+
Validation is performed using `vitest` in a `happy-dom` environment. The following critical paths are verified on every build:
|
|
17
|
+
|
|
18
|
+
### 3.1. Boundary Testing
|
|
19
|
+
- **Minimum Score:** Confirmed $0.00$ when all inputs are zero.
|
|
20
|
+
- **Maximum Score:** Confirmed $103.00$ when all inputs are at maximum capacity.
|
|
21
|
+
|
|
22
|
+
### 3.2. Weighting & Precision
|
|
23
|
+
- **Intensity Weighting:** Verifies that Intensity (Section B) contributes to the total with a multiplier of $3.5$ (e.g., an Intensity of 3 results in a sub-score of 10.5).
|
|
24
|
+
- **Rounding:** Results are rounded to 2 decimal places to ensure consistency across clinical documentation.
|
|
25
|
+
|
|
26
|
+
### 3.3. Age-Based Extent (Adult vs Child)
|
|
27
|
+
- Validates the calculation across both adult and pediatric surface area distributions.
|
|
28
|
+
|
|
29
|
+
## 4. Error Handling & Safety
|
|
30
|
+
The library implements strict validation via `@ntix/components-core`. Calculations will fail with a descriptive `Failure` object if:
|
|
31
|
+
- Extent values exceed physiological maximums.
|
|
32
|
+
- Intensity values fall outside the 0–3 range.
|
|
33
|
+
- Subjective values fall outside the 0–10 range.
|
|
34
|
+
|
|
35
|
+
## 5. Summary
|
|
36
|
+
The @ntix/components-scorad calculation logic is deemed mathematically sound and compliant with the ETFAD standard for digital SCORAD assessments.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
© 2025 Antix Software Limited ([antix.co.uk](https://antix.co.uk)). Prepared for clinical and commercial review.
|