react-advanced-odontogram 2.5.0 β†’ 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  <p align="center">
2
- <img src="https://raw.githubusercontent.com/ZoliQua/React-Odontogram-Modul/main/src/assets/react-module-logo.png" alt="React Advanced Odontogram logo" width="160" />
2
+ <img src="https://raw.githubusercontent.com/ZoliQua/React-Advanced-Odontogram/main/src/assets/react-module-logo.png" alt="React Advanced Odontogram logo" width="160" />
3
3
  </p>
4
4
 
5
5
  # 🦷 React Advanced Odontogram
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/react-advanced-odontogram?style=for-the-badge&logo=npm&color=CB3837)](https://www.npmjs.com/package/react-advanced-odontogram)
8
- [![Version](https://img.shields.io/badge/version-2.5.0-green?style=for-the-badge)](https://github.com/ZoliQua/React-Odontogram-Modul/releases)
9
- [![License](https://img.shields.io/badge/license-MIT-orange?style=for-the-badge)](https://github.com/ZoliQua/React-Odontogram-Modul/blob/main/LICENSE)
10
- [![DOI](https://raw.githubusercontent.com/ZoliQua/React-Odontogram-Modul/main/src/assets/zenodo.21156787.svg)](https://doi.org/10.5281/zenodo.21156787)
8
+ [![Version](https://img.shields.io/badge/version-2.7.0-green?style=for-the-badge)](https://github.com/ZoliQua/React-Advanced-Odontogram/releases)
9
+ [![License](https://img.shields.io/badge/license-MIT-orange?style=for-the-badge)](https://github.com/ZoliQua/React-Advanced-Odontogram/blob/main/LICENSE)
10
+ [![DOI](https://raw.githubusercontent.com/ZoliQua/React-Advanced-Odontogram/main/src/assets/zenodo.21156787.svg)](https://doi.org/10.5281/zenodo.21156787)
11
11
 
12
12
  [![React](https://img.shields.io/badge/React-18%20%7C%2019-61DAFB?style=for-the-badge&logo=react)](https://reactjs.org/)
13
13
  [![TypeScript](https://img.shields.io/badge/TypeScript-5-3178C6?style=for-the-badge&logo=typescript)](https://www.typescriptlang.org/)
@@ -18,11 +18,11 @@
18
18
 
19
19
  An interactive, SVG-based **dental odontogram (dental chart) editor** for **React + TypeScript** β€” with a full **periodontal charting module**, multi-surface caries/restorations, endodontic/prosthetic states, FDI/Universal/Palmer numbering, **HL7 FHIR R4** export/import, optional ICDAS scoring, and a 12-language UI.
20
20
 
21
- πŸ”— **Live demo:** https://react-odontogram-modul.vercel.app/ \
22
- πŸ“š **API docs:** https://zoliqua.github.io/React-Odontogram-Modul/ \
21
+ πŸ”— **Live demo:** https://react-advanced-odontogram.vercel.app/ \
22
+ πŸ“š **API docs:** https://zoliqua.github.io/React-Advanced-Odontogram/ \
23
23
  πŸ…°οΈ **Angular version:** an official Angular port, [Angular Advanced Odontogram](https://github.com/ZoliQua/Angular-Advanced-Odontogram) (`angular-advanced-odontogram` on npm), is available β€” JSON and FHIR R4 exports round-trip between the two libraries.
24
24
 
25
- ![Odontogram editor preview](https://raw.githubusercontent.com/ZoliQua/React-Odontogram-Modul/main/lang/screenshot_en_odontogram.png)
25
+ ![Odontogram editor preview](https://raw.githubusercontent.com/ZoliQua/React-Advanced-Odontogram/main/lang/screenshot_en_odontogram.png)
26
26
 
27
27
  ---
28
28
 
@@ -53,6 +53,7 @@ The imperative state API, the standalone `PerioChart` component, the guided tour
53
53
  import {
54
54
  OdontogramShell, // also the default export
55
55
  PerioChart, // standalone periodontal chart
56
+ PerioSidebar, // its patient-data / classification / summary sidebar
56
57
  getOdontogramSummary,
57
58
  exportStatus, importStatus, // JSON state serialization / hydration
58
59
  exportFhir, exportSvg, exportImage,
@@ -66,13 +67,15 @@ import {
66
67
 
67
68
  ## 🦷 Periodontal charting
68
69
 
69
- ![Full-mouth periodontal chart](https://raw.githubusercontent.com/ZoliQua/React-Odontogram-Modul/main/lang/screenshot_en_perio.png)
70
+ ![Full-mouth periodontal chart](https://raw.githubusercontent.com/ZoliQua/React-Advanced-Odontogram/main/lang/screenshot_en_perio.png)
70
71
 
71
- Per-site probing depth, gingival margin, bleeding on probing (+ suppuration) at the six standard sites, with derived CAL, recession and whole-mouth %BOP; a graphical full-mouth perio chart (CEJ line, mm guide grid, pocket/margin curve, anatomical diamond index tiles), 2017 staging/grading, and per-site FHIR export (LOINC periodontal panel `74029-0`). Available as an `Odontogram | Periodontal Status` view toggle and as a separately-invocable `PerioChart` component.
72
+ Per-site probing depth, gingival margin, bleeding on probing (+ suppuration) at the six standard sites, with derived CAL, recession and whole-mouth %BOP; a graphical full-mouth perio chart (CEJ line, mm guide grid, pocket/margin curve, anatomical diamond index tiles), 2017 staging/grading, and per-site FHIR export (LOINC periodontal panel `74029-0`). Available as an `Odontogram | Periodontal Status` view toggle and as a separately-invocable `PerioChart` component. Periodontal data now round-trips through FHIR import too, not only through the JSON payload β€” suppuration is the one exception and stays JSON-only.
72
73
 
73
74
  ## ✨ Highlights
74
75
 
75
76
  - 🦷 Permanent / primary / implant / missing teeth; substrate, restorations (crown/inlay/onlay/veneer/bridge Γ— materials), removable & implant prosthetics
77
+ - πŸ“ **Two anatomy profiles.** The schematic `classic` set, or `measured` β€” one literature-measured template per clinically distinct position, permanent and deciduous, generated from a millimetre specification. In `measured` the crown and root carry a **dentin core**, so enamel and dentin can be coloured apart.
78
+ - 🎨 **Themable tooth artwork.** Every colour in the drawings is a CSS custom property with the shipped colour as its fallback, set through `themeConfig.tooth` / `themeConfig.tokens`; a dark palette ships with it, and an export resolves the tokens before the file leaves the page.
76
79
  - πŸ” Multi-surface caries & fillings (ICDAS / CARS severity, root & radiographic caries), endo & AAE pulp diagnosis, apical diagnosis, peri-implant status, wear, discoloration, orthodontics
77
80
  - 🩺 Full periodontal module (see above) + 2017 classification
78
81
  - πŸ”— **HL7 FHIR R4** export/import; JSON export/import with migrations
@@ -81,6 +84,10 @@ Per-site probing depth, gingival margin, bleeding on probing (+ suppuration) at
81
84
  - πŸ—‚οΈ **Case / regional diagnoses pop-up:** the whole-mouth and regional diagnoses (jaw anomalies, cysts, salivary and mucosal conditions…) moved out of the periodontal sidebar into their own dialog, opened from the **Diagnoses** button beside the Odontogram / Periodontal-status toggle; its picker is code-first and code-sorted.
82
85
  - πŸ‡­πŸ‡Ί **BNO-10 pack:** the Hungarian display strings are now the official NEAK BNO-10 titles, and the pack uses the standard ICD-10 system URI (BNO-X is identical to WHO ICD-10).
83
86
  - βœ… **HL7-validator-clean FHIR export:** every Bundle entry carries a deterministic `id` and an absolute `fullUrl` (no `urn:uuid` placeholders), and the Bundle embeds the engine's own **CodeSystem** so its local codes resolve during validation; the same CodeSystem is published in the repository as `fhir/CodeSystem-odontogram.json` (pass `includeCodeSystem: false` in the FHIR export options to omit it).
87
+ - 🎯 **ICD codes that follow the chart (data-driven specificity).** Caries depth comes from the radiographic depth when it is charted (E1/E2 β†’ enamel, D1–D3 β†’ dentine) and falls back to the ICDAS severity (1–3 β†’ enamel, 4–6 β†’ dentine), refining WHO `K02` to `K02.0` / `K02.1` and ICD-10-CM `K02.9` to `K02.51/.52` (pit-and-fissure) or `K02.61/.62` (smooth surface) by surface Γ— depth. Chronic periodontitis takes its ICD-10-CM code from the 2017 stage and extent (`K05.311`–`K05.329`). One Condition per tooth, carrying the deepest involvement.
88
+ - πŸ”„ **Periodontal data round-trips through FHIR.** The importer reads the LOINC 74029-0 periodontal panels back into each tooth β€” probing depth, gingival margin (reconstructed from CAL, so pseudopocket values survive), BOP, furcation, O'Leary plaque, the PI/GI and implant mPI/mBI indices and keratinized-gingiva width β€” plus the smoking-status and HbA1c evidence Observations. Conditions coded only in ICD-10-CM or SNOMED CT are recognised too, so a foreign bundle imports what it can.
89
+ - 🧬 **SNOMED CT for the whole diagnosis catalog.** 48 of the 50 slots now carry a verified SNOMED CT International concept (active, core module, matching FSN). Two stay deliberately unset because SNOMED International has no umbrella concept for them: jaw-size anomaly (K07.0) and dentofacial functional abnormalities (K07.5). The SNOMED overlay remains opt-in in Settings.
90
+ - πŸ“¦ **A loadable FHIR terminology package.** The repository's `fhir/` folder is a FHIR NPM package (`react-advanced-odontogram.fhir`, FHIR 4.0.1) holding the engine CodeSystem plus generated ValueSets β€” one per clinical-axis value group, one for the finding types and an all-codes set. Point a validator at it with `-ig ./fhir`.
84
91
  - πŸ–ΌοΈ PNG / JPG / SVG chart export and a customizable, **multilingual PDF report** (jsPDF, lazy-loaded) β€” colour themes, a grouped dentition-summary table, a periodontal chart/description, and bundled Unicode fonts so every UI language (incl. Hungarian accents, Cyrillic, Arabic RTL and Chinese) renders correctly
85
92
  - πŸ”’ FDI / Universal / Palmer numbering Β· 🌐 12 UI languages (HU/EN/DE/ES/IT/SK/PL/RU/PT-BR/AR/ZH/FR, Arabic RTL) Β· 🎨 theming via `--odon-*` CSS variables Β· 🧩 plugin system Β· ⌨️ keyboard accessibility
86
93
 
@@ -88,8 +95,10 @@ Per-site probing depth, gingival margin, bleeding on probing (+ suppuration) at
88
95
 
89
96
  Per-language guides are linked at the top of this file. Full API reference (TypeDoc):
90
97
 
91
- πŸ“š **https://zoliqua.github.io/React-Odontogram-Modul/**
98
+ πŸ“š **https://zoliqua.github.io/React-Advanced-Odontogram/**
92
99
 
93
100
  ## πŸ“„ License & citation
94
101
 
95
102
  MIT Β© [ZoltΓ‘n Dul](https://www.linkedin.com/in/zoltandul/). If you use this software in research, please cite it β€” see [`CITATION.cff`](CITATION.cff) and the [Zenodo record](https://doi.org/10.5281/zenodo.21156787).
103
+
104
+ Commercial use is included, and that covers the tooth drawings β€” they are original work, not third-party assets. The embedded PDF fonts (Roboto, Noto Naskh Arabic, Noto Sans SC) and the runtime dependencies keep their own, also permissive, terms: see [`THIRD-PARTY-NOTICES.md`](THIRD-PARTY-NOTICES.md). Redistributing the library? Ship that file alongside `LICENSE` and you have covered them.
@@ -0,0 +1,211 @@
1
+ # Third-party notices
2
+
3
+ React Advanced Odontogram is released under the MIT License (see [`LICENSE`](./LICENSE)).
4
+ Everything in this repository is covered by it **except** the third-party components
5
+ listed below, which keep their own terms.
6
+
7
+ All of them permit commercial use and redistribution. Each one only asks that its
8
+ notice travel with it β€” which is what this file is for: if you redistribute this
9
+ library, ship this file too and you have covered them.
10
+
11
+ > This is an engineering inventory, not legal advice. If you are shipping a
12
+ > commercial product, have your own counsel confirm it.
13
+
14
+ ---
15
+
16
+ ## 1. What is NOT third party
17
+
18
+ The point most often asked about: **the tooth drawings are not third-party assets.**
19
+
20
+ - Every SVG in `src/assets/teeth-svgs/` (classic and `measured/`) and
21
+ `src/assets/icon-svgs/` is original work by ZoltΓ‘n Dul, and each file carries
22
+ its own in-file notice: `Created by Zoltan Dul in 2026 - free to use with MIT
23
+ license`. They are covered by the MIT License, commercial use included.
24
+ - The `measured` profile's templates are **generated** by `tools/toothgen` from
25
+ six hand-drawn donor SVGs in `tools/toothgen/source/`, which are likewise
26
+ original work in this repository.
27
+ - `tools/toothgen/spec.py` cites published anatomy figures (`Fig. 32a (p. 49)`,
28
+ `Bild 91 (p. 113)`, Wheeler / Ash & Nelson means, and the *Odontographie*
29
+ plate grid). These are cited as the source of **measurements** β€” mesiodistal
30
+ dimensions, crown/root proportions, root counts, furcation positions. No
31
+ external illustration is traced or reproduced; the drawn geometry is generated
32
+ over this repository's own donors. See
33
+ [`tools/toothgen/README.md`](./tools/toothgen/README.md) Β§ "Evidence and
34
+ display choices".
35
+ - Parts of the `measured` anatomy originated in third-party **forks of this
36
+ MIT-licensed project** (see the contributor list in the README). Those forks
37
+ carry this repository's unchanged MIT License and copyright notice; no separate
38
+ or additional rights are asserted over them.
39
+
40
+ ---
41
+
42
+ ## 2. Fonts embedded in the published package
43
+
44
+ These are base64-embedded in the library so that PDF export works fully offline.
45
+ They are **subsets** β€” reduced to the glyphs the report needs β€” which counts as a
46
+ modification under their licenses.
47
+
48
+ ### Roboto (subset)
49
+
50
+ - **File:** `src/fonts/roboto.ts` (Regular + Bold)
51
+ - **Upstream:** Roboto, by Google Inc. β€” https://fonts.google.com/specimen/Roboto
52
+ - **License:** Apache License 2.0 β€” https://www.apache.org/licenses/LICENSE-2.0
53
+ - **Notice:** `Copyright Google Inc., licensed under the Apache License, Version 2.0.`
54
+
55
+ Used for every Latin and Cyrillic UI language in the PDF report, because jsPDF's
56
+ built-in Helvetica cannot encode Hungarian double-acute accents or Cyrillic.
57
+
58
+ ### Noto Naskh Arabic (subset)
59
+
60
+ - **File:** `src/fonts/notoArabic.ts` (Regular + Bold), lazy-loaded
61
+ - **Upstream:** Noto Naskh Arabic, by The Noto Project Authors β€”
62
+ https://fonts.google.com/noto/specimen/Noto+Naskh+Arabic
63
+ - **License:** SIL Open Font License, Version 1.1 (full text in Β§ 4)
64
+
65
+ ### Noto Sans SC (subset)
66
+
67
+ - **File:** `src/fonts/notoSC.ts` (Regular), lazy-loaded
68
+ - **Upstream:** Noto Sans Simplified Chinese, by The Noto Project Authors β€”
69
+ https://fonts.google.com/noto/specimen/Noto+Sans+SC
70
+ - **License:** SIL Open Font License, Version 1.1 (full text in Β§ 4)
71
+
72
+ > **Note on the OFL and modified versions.** Both Noto subsets are modified
73
+ > (subsetted) versions. The OFL permits this, and permits selling the result
74
+ > *bundled in* software β€” it only forbids selling the font software on its own.
75
+ > If you subset or re-generate these fonts yourself, confirm the exact copyright
76
+ > line and any Reserved Font Name declaration in the specific upstream font files
77
+ > you start from, and carry them forward.
78
+
79
+ `src/fonts/arabicShaper.ts` is original work in this repository (MIT), not a
80
+ third-party shaping library.
81
+
82
+ ---
83
+
84
+ ## 3. Runtime dependencies
85
+
86
+ Declared in `package.json` and installed from npm β€” not vendored into this
87
+ repository, but they do end up in a consuming application's bundle.
88
+
89
+ | Package | Version range | License |
90
+ | --- | --- | --- |
91
+ | [jspdf](https://github.com/parallax/jsPDF) | `^4.2.1` | MIT |
92
+ | [DOMPurify](https://github.com/cure53/DOMPurify) | `^3.4.13` | MPL-2.0 **OR** Apache-2.0 (your choice) |
93
+
94
+ `react` and `react-dom` are **peer** dependencies (MIT) β€” supplied by the host
95
+ application, not bundled here.
96
+
97
+ Each package ships its own license file in `node_modules/<name>/`; consult those
98
+ for the authoritative text.
99
+
100
+ ---
101
+
102
+ ## 4. SIL Open Font License, Version 1.1
103
+
104
+ Applies to the Noto Naskh Arabic and Noto Sans SC subsets listed in Β§ 2.
105
+
106
+ ```
107
+ Copyright (c) The Noto Project Authors
108
+
109
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
110
+ This license is available with a FAQ at: https://openfontlicense.org
111
+
112
+ -----------------------------------------------------------
113
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
114
+ -----------------------------------------------------------
115
+
116
+ PREAMBLE
117
+ The goals of the Open Font License (OFL) are to stimulate worldwide
118
+ development of collaborative font projects, to support the font creation
119
+ efforts of academic and linguistic communities, and to provide a free and
120
+ open framework in which fonts may be shared and improved in partnership
121
+ with others.
122
+
123
+ The OFL allows the licensed fonts to be used, studied, modified and
124
+ redistributed freely as long as they are not sold by themselves. The
125
+ fonts, including any derivative works, can be bundled, embedded,
126
+ redistributed and/or sold with any software provided that any reserved
127
+ names are not used by derivative works. The fonts and derivatives,
128
+ however, cannot be released under any other type of license. The
129
+ requirement for fonts to remain under this license does not apply
130
+ to any document created using the fonts or their derivatives.
131
+
132
+ DEFINITIONS
133
+ "Font Software" refers to the set of files released by the Copyright
134
+ Holder(s) under this license and clearly marked as such. This may
135
+ include source files, build scripts and documentation.
136
+
137
+ "Reserved Font Name" refers to any names specified as such after the
138
+ copyright statement(s).
139
+
140
+ "Original Version" refers to the collection of Font Software components as
141
+ distributed by the Copyright Holder(s).
142
+
143
+ "Modified Version" refers to any derivative made by adding to, deleting,
144
+ or substituting -- in part or in whole -- any of the components of the
145
+ Original Version, by changing formats or by porting the Font Software to a
146
+ new environment.
147
+
148
+ "Author" refers to any designer, engineer, programmer, technical writer
149
+ or other person who contributed to the Font Software.
150
+
151
+ PERMISSION & CONDITIONS
152
+ Permission is hereby granted, free of charge, to any person obtaining
153
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
154
+ redistribute, and sell modified and unmodified copies of the Font
155
+ Software, subject to the following conditions:
156
+
157
+ 1) Neither the Font Software nor any of its individual components,
158
+ in Original or Modified Versions, may be sold by itself.
159
+
160
+ 2) Original or Modified Versions of the Font Software may be bundled,
161
+ redistributed and/or sold with any software, provided that each copy
162
+ contains the above copyright notice and this license. These can be
163
+ included either as stand-alone text files, human-readable headers or
164
+ in the appropriate machine-readable metadata fields within text or
165
+ binary files as long as those fields can be easily viewed by the user.
166
+
167
+ 3) No Modified Version of the Font Software may use the Reserved Font
168
+ Name(s) unless explicit written permission is granted by the corresponding
169
+ Copyright Holder. This restriction only applies to the primary font name as
170
+ presented to the users.
171
+
172
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
173
+ Software shall not be used to promote, endorse or advertise any
174
+ Modified Version, except to acknowledge the contribution(s) of the
175
+ Copyright Holder(s) and the Author(s) or with their explicit written
176
+ permission.
177
+
178
+ 5) The Font Software, modified or unmodified, in part or in whole,
179
+ must be distributed entirely under this license, and must not be
180
+ distributed under any other license. The requirement for fonts to
181
+ remain under this license does not apply to any document created
182
+ using the Font Software.
183
+
184
+ TERMINATION
185
+ This license becomes null and void if any of the above conditions are
186
+ not met.
187
+
188
+ DISCLAIMER
189
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
190
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
191
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
192
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
193
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
194
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
195
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
196
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
197
+ OTHER DEALINGS IN THE FONT SOFTWARE.
198
+ ```
199
+
200
+ ---
201
+
202
+ ## 5. If you redistribute this library
203
+
204
+ The short version:
205
+
206
+ 1. Keep [`LICENSE`](./LICENSE) and its copyright notice (MIT requires this).
207
+ 2. Ship this file alongside it β€” that carries the Apache-2.0 and OFL notices.
208
+ 3. If you modify the tooth drawings, nothing further is required by the MIT
209
+ License, though noting your changes is good practice.
210
+ 4. If you strip the PDF export and its fonts from your build, Β§ 2 no longer
211
+ applies to you.