Skip to content

Commit

Permalink
Refactor to open_ortho_terminology.
Browse files Browse the repository at this point in the history
  • Loading branch information
zgypa committed Aug 14, 2024
1 parent 08c9065 commit 9bdc22d
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NAME = ortho_codes
NAME = open_ortho_terminology

.PHONY: clean deploy

Expand Down
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@
<!-- PROJECT LOGO -->
<br />
<p align="center">
<a href="https://github.com/open-ortho/codes">
<a href="https://github.com/open-ortho/terminology">
<img src="https://raw.githubusercontent.com/open-ortho/dicom4ortho/master/images/open-ortho.png" alt="Logo" width="80" height="80">
</a>

<h3 align="center">open-ortho codes</h3>
<h3 align="center">open-ortho terminology</h3>

<p align="center">
A collection of codes and terms from various terminologies, specifically tailored for software development within the orthodontic domain.
<br />
<a href="https://open-ortho.github.io/codes/"><strong>Explore the docs »</strong></a>
<a href="https://open-ortho.github.io/terminology/"><strong>Explore the docs »</strong></a>
<br />
<br />
<a href="https://github.com/open-ortho/codes">View Demo</a>
<a href="https://github.com/open-ortho/terminology">View Demo</a>
·
<a href="https://github.com/open-ortho/codes/issues">Report Bug</a>
<a href="https://github.com/open-ortho/terminology/issues">Report Bug</a>
·
<a href="https://github.com/open-ortho/codes/issues">Request Feature</a>
<a href="https://github.com/open-ortho/terminology/issues">Request Feature</a>
</p>
</p>

Expand All @@ -38,19 +38,19 @@ This project serves as a centralized repository for orthodontic software develop

If you want to use the codes directly in your Python project:

pip install open-ortho-codes
pip install open-ortho-terminology

Then

from ortho_codes import hl7 as codes_hl7
from open_ortho_terminology import hl7 as codes_hl7

print(f"{codes_hl7.orthodontic.system}")
print(codes_hl7.orthodontic.code)
print(codes_hl7.orthodontic.display)

Convert codes to JSON

from ortho_codes import hl7 as codes_hl7
from open_ortho_terminology import hl7 as codes_hl7

print(f"{codes_hl7.orthodontic.to_json()}")

Expand All @@ -66,16 +66,16 @@ Just point your code to any of the following:

<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[contributors-shield]: https://img.shields.io/github/contributors/open-ortho/codes.svg?style=for-the-badge
[contributors-url]: https://github.com/open-ortho/codes/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/open-ortho/codes.svg?style=for-the-badge
[forks-url]: https://github.com/open-ortho/codes/network/members
[stars-shield]: https://img.shields.io/github/stars/open-ortho/codes.svg?style=for-the-badge
[stars-url]: https://github.com/open-ortho/codes/stargazers
[issues-shield]: https://img.shields.io/github/issues/open-ortho/codes.svg?style=for-the-badge
[issues-url]: https://github.com/open-ortho/codes/issues
[license-shield]: https://img.shields.io/github/license/open-ortho/codes.svg?style=for-the-badge
[license-url]: https://github.com/open-ortho/codes/blob/master/LICENSE
[contributors-shield]: https://img.shields.io/github/contributors/open-ortho/terminology.svg?style=for-the-badge
[contributors-url]: https://github.com/open-ortho/terminology/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/open-ortho/terminology.svg?style=for-the-badge
[forks-url]: https://github.com/open-ortho/terminology/network/members
[stars-shield]: https://img.shields.io/github/stars/open-ortho/terminology.svg?style=for-the-badge
[stars-url]: https://github.com/open-ortho/terminology/stargazers
[issues-shield]: https://img.shields.io/github/issues/open-ortho/terminology.svg?style=for-the-badge
[issues-url]: https://github.com/open-ortho/terminology/issues
[license-shield]: https://img.shields.io/github/license/open-ortho/terminology.svg?style=for-the-badge
[license-url]: https://github.com/open-ortho/terminology/blob/master/LICENSE
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/open-ortho
[product-screenshot]: images/screenshot.png
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions ortho_codes/main.py → open_ortho_terminology/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import csv
from pathlib import Path

from ortho_codes.terminology import hl7, open_ortho, snomed, vendors
from ortho_codes.terminology import Code
from open_ortho_terminology.terminology import hl7, open_ortho, snomed, vendors
from open_ortho_terminology.terminology import Code


build_path = Path('.', 'build')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from setuptools import setup, find_packages

setup(
name='open-ortho-codes', # Package name, should be unique on PyPI
version='0.2.0', # Package version
name='open-ortho-terminology', # Package name, should be unique on PyPI
version='0.3.0', # Package version
author='Toni Magni', # Your name or your organization's name
author_email='[email protected]', # Your contact email
description='A package for managing orthodontic codes and namespaces.', # Short description
Expand Down Expand Up @@ -31,7 +31,7 @@
# package_data={'yourpackage': ['data/*.dat']}, # Include specific package data
entry_points={ # Allows you to create command-line scripts
'console_scripts': [
'oo-codes=ortho_codes.main:main',
'oo-codes=open_ortho_terminology.main:main',
],
},
)

0 comments on commit 9bdc22d

Please sign in to comment.