{ "info": { "author": "Jimmy Girardet", "author_email": "ijkl@netc.fr", "bugtrack_url": null, "classifiers": [], "description": "===============================\npythonthesorimed\n===============================\n\n.. image:: https://travis-ci.org/jgirardet/pythonthesorimed.svg?branch=master\n :target: https://travis-ci.org/jgirardet/pythonthesorimed\n.. image:: https://readthedocs.org/projects/pythonthesorimed/badge/?version=latest\n :target: http://pythonthesorimed.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n.. image:: https://coveralls.io/repos/github/jgirardet/pythonthesorimed/badge.svg\n :target: https://coveralls.io/github/jgirardet/pythonthesorimed\n.. image:: https://badge.fury.io/py/pythonthesorimed.svg\n :target: https://pypi.python.org/pypi/pythonthesorimed/\n :alt: Pypi package\n\n\nInterface python pour thesorimed\n\n\n* License : GNU General Public License v3 \n* Documentation: https://pythonthesorimed.readthedocs.org/en/latest/\n* Source: https://github.com/jgirardet/pythonthesorimed\n\n\nSimple Interface Python pour utiliser l'api thesorimed compatible postgresql uniquement.\n\n\nFeatures\n=========\n\n* G\u00e9n\u00e8re l'API python depuis le fichier thesormed api.sql\n* Fournit la class ThesoItem pour les appels \u00e0 la base\n\n\nInstallation\n==============\n\n.. code-block:: shell\n\n pipenv install pythonthesorimed\n ou\n pip install pythonthesorimed\n\nUsage\n======\n\nInitialisation\n----------------\n\n.. code-block:: python\n\n\tfrom pythonthesorimed.thesoitem import ThesoItem\n\tsession = ThesoItem(host, base, user, password)\n\nUtilisation des API thesorimed\n--------------------------------\n\n.. code-block:: python\n\n result = session.proc('api_name', param1, param2, param3)\n\nLe retour est un Record ou un liste de Record. Record est un object poss\u00e9dant comme attribut les colonnes associ\u00e9es \u00e0 la requ\u00e8te\n\npar exemple : \n\n.. code-block:: python\n\n >>> session.proc('get_the_gen_equiv', 3, 1)\n\t[Record(gsp_nom='RIFADINE 300MG GELULE', sp_code_equiv=4793, lib_virt='Rifampicine 300 mg gelule', sp_param='RIMACTAN 300MG GELULE', sp_code_sq_pk=3),\n \tRecord(gsp_nom='RIMACTAN 300MG GELULE', sp_code_equiv=3, lib_virt='Rifampicine 300 mg gelule', sp_param='RIMACTAN 300MG GELULE', sp_code_sq_pk=3)]\n\n \t>>> result[0].gsp_nom\n\t'RIFADINE 300MG GELULE'\n\nFuzzy Search\n-------------\nRecheche par nom de tous les groupes de sp\u00e9cialit\u00e9s (gsp) et sp\u00e9cialit\u00e9s selon le motif propos\u00e9.\nL'id\u00e9e est d'\u00e9purer un maximum les r\u00e9sutlats afin d'\u00e9viter tous les doublons dus notement aux diff\u00e9rents laboratoires de g\u00e9n\u00e9riques. le principe est les suivant :\n - Tout d'abord on r\u00e9cup\u00e8re les gsp correspondant au motif\n - Puis on r\u00e9cup\u00e8re les sp\u00e9cialit\u00e9s qui sont tri\u00e9es la manii\u00e8re suivante:\n\n + On retire les sp\u00e9cialit\u00e9s appartenant \u00e0 des gsp d\u00e9j\u00e0 s\u00e9lectionn\u00e9s.\n + Pour les sp\u00e9cialit\u00e9s restantes ayant un gsp commun, une seul est conserv\u00e9e\n + Les sp\u00e9cialit\u00e9s sans gsp sont conserv\u00e9es par d\u00e9fault pour ne pas risquer d'avoir un manque.\n\n - Le tout est retourn\u00e9e en une seule liste, d'abord les gsp puis les sp\u00e9cialit\u00e9s restantes. Le contenu de la liste est des dict au format : nom, cip, code, gsp_code.\n\nLes diff\u00e9rents \u00e9l\u00e9ments de la requ\u00e8te sont s\u00e9par\u00e9s par un espace et doivent \u00eatre l'ordre de l'appelation officiele.\nPar exemple : \"cod\u00e9ine parac\u00e9tamol\" ne retournera pas \"parac\u00e9tamol + cod\u00e9ine\".\n\nLa recherche doit s'effectuer en minuscule.\n\n.. code-block:: python\n\n session.fuzzy('chaine')\n\n\n\nParseur\n==========\n\nCloner le d\u00e9pot puis : \n\n.. code-block:: shell\n\n make dev\n pr python build.py path/to/api.sql\n\napi.py est maintenant dans pythonthesorimed\n\nTesting\n==========\n\n``make test`` : toutes les fonctionnalit\u00e9es ne n\u00e9cessitant pas le base de donn\u00e9e thesorimed.\n\n``make test-local`` : tests avec des appels \u00e0 thesorimed.\n\n``make all`` : tout.\n\nTravis utilise la version \"make test\" d'o\u00f9 le coverage plus faible\n\nCoverage\n==========\n\n``make test-coverage``\n\n``make test-coverage-all``\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jgirardet/pythonthesorimed", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pythonthesorimed", "package_url": "https://pypi.org/project/pythonthesorimed/", "platform": "", "project_url": "https://pypi.org/project/pythonthesorimed/", "project_urls": { "Homepage": "https://github.com/jgirardet/pythonthesorimed" }, "release_url": "https://pypi.org/project/pythonthesorimed/0.3.0/", "requires_dist": [ "pbr (>=3.0)", "psycopg2-binary", "yapf" ], "requires_python": "", "summary": "Une interface python avec la base m\u00e9dicamenteuse thesorimed", "version": "0.3.0" }, "last_serial": 3763931, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "36c72495acb16303aee96a5035bb33e5", "sha256": "4da3c5c6287c9e5e57496ada0b9a264160566078077ab63260290d92bc44dbc6" }, "downloads": -1, "filename": "pythonthesorimed-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "36c72495acb16303aee96a5035bb33e5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9456, "upload_time": "2018-03-12T22:46:43", "url": "https://files.pythonhosted.org/packages/f4/a0/4f1fa63bf199c8982d77a927777c7f2bc28a8a2337d5019d94cd1ac3ce6e/pythonthesorimed-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb5a9db03123af5caf532960bdc94d63", "sha256": "ba5a64f02ccbd2d02b5e4efa8edc67d9327dc09e76b636d51e35d1f5c57af708" }, "downloads": -1, "filename": "pythonthesorimed-0.1.0.tar.gz", "has_sig": false, "md5_digest": "eb5a9db03123af5caf532960bdc94d63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29882, "upload_time": "2018-03-12T22:46:45", "url": "https://files.pythonhosted.org/packages/ae/d5/f7880aac9243db262325df72dfa1cb4a52a091122e6cb779ef8e7334d9e7/pythonthesorimed-0.1.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "44d205a51f28c7bf606b01878ef4c726", "sha256": "85b974c1bce49b6d3a33cf265f0c0d3efb26e41a8d8381074df64e4a30a8dbd9" }, "downloads": -1, "filename": "pythonthesorimed-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "44d205a51f28c7bf606b01878ef4c726", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9169, "upload_time": "2018-03-14T17:26:39", "url": "https://files.pythonhosted.org/packages/e1/b9/f870103f6d2891d7b457d3de6527e3d53dadc2b18e341243b7a850c481b9/pythonthesorimed-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe2c182dd9ba6a234ee609d2570904fd", "sha256": "dd8e7ec0c994e2adb01b8c8f7991701f3f9dc27ae90145735b935a27bbe74bca" }, "downloads": -1, "filename": "pythonthesorimed-0.2.1.tar.gz", "has_sig": false, "md5_digest": "fe2c182dd9ba6a234ee609d2570904fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17449, "upload_time": "2018-03-14T17:26:40", "url": "https://files.pythonhosted.org/packages/3e/21/d99dfdc79e6dbaede86d12bad4c7e0bcccaa2c684f42d0699571f7cd2475/pythonthesorimed-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "8c8d989a0bf476623f54ac35128dd859", "sha256": "b2363155ec4f526ef5dab1c227fe87a4d28a35f4732c7e3a85562e8281de0548" }, "downloads": -1, "filename": "pythonthesorimed-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "8c8d989a0bf476623f54ac35128dd859", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9253, "upload_time": "2018-03-14T19:41:14", "url": "https://files.pythonhosted.org/packages/7a/f3/ba5beeb0254357cb8abde03bee1e8585c26c739391854d9a8c034bfc63c4/pythonthesorimed-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cdb44f327e93ce9fc42aa56aec8cd008", "sha256": "b55be4f35993ee1bd6c5e1910bb6107a17fa29d9e53ff713a0174ee2dc379ee8" }, "downloads": -1, "filename": "pythonthesorimed-0.2.2.tar.gz", "has_sig": false, "md5_digest": "cdb44f327e93ce9fc42aa56aec8cd008", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17816, "upload_time": "2018-03-14T19:41:16", "url": "https://files.pythonhosted.org/packages/db/34/922b1410d5535b4a03a7bd7f2ca014b2dec8b3a21c5c77be465c7e2db668/pythonthesorimed-0.2.2.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "192ae94d16d1776b354b6fbdb52344bb", "sha256": "2aff88ddaafd0ac04c0774b8bddc0761085c9d3371e8fad03536a8a41bc91672" }, "downloads": -1, "filename": "pythonthesorimed-0.2.5.tar.gz", "has_sig": false, "md5_digest": "192ae94d16d1776b354b6fbdb52344bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20871, "upload_time": "2018-03-31T20:07:15", "url": "https://files.pythonhosted.org/packages/66/93/6187de6d071b2152e23391894929e57348b6bb577727fb32caf14da91abb/pythonthesorimed-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "448f79d1b08b22c520d17b6a3d65c94f", "sha256": "45a2a8572315d502d2bdf85c2957c130788df725ee44c8c9a69e12cd6d61fb71" }, "downloads": -1, "filename": "pythonthesorimed-0.2.6-py3-none-any.whl", "has_sig": false, "md5_digest": "448f79d1b08b22c520d17b6a3d65c94f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12369, "upload_time": "2018-03-31T22:06:17", "url": "https://files.pythonhosted.org/packages/40/b0/91d5ef8a32afe284c259f40420bfbe92e95950045807aec8c89c28e7bf8d/pythonthesorimed-0.2.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f95b3767216dd87adb441c2baf71dec4", "sha256": "b8cbb0029f1e8d0e0f57327ab9e09484f9b0611a9ea7c6d0f0a1ba2c8392e9d1" }, "downloads": -1, "filename": "pythonthesorimed-0.2.6.tar.gz", "has_sig": false, "md5_digest": "f95b3767216dd87adb441c2baf71dec4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21551, "upload_time": "2018-03-31T22:06:19", "url": "https://files.pythonhosted.org/packages/12/d1/593753742783ad364ed426c5f9af784cc835bbb8c46115ab9fa772a12e3d/pythonthesorimed-0.2.6.tar.gz" } ], "0.2.8": [ { "comment_text": "", "digests": { "md5": "c6f180250884ceb232445d03c61385d0", "sha256": "2cadfaa91ac23541c5e6a33e507d50a28bc1bd1f63bb88f44771f775506fa25d" }, "downloads": -1, "filename": "pythonthesorimed-0.2.8-py3-none-any.whl", "has_sig": false, "md5_digest": "c6f180250884ceb232445d03c61385d0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13332, "upload_time": "2018-04-10T21:48:18", "url": "https://files.pythonhosted.org/packages/28/7b/a59ca5d5a44a494fd6fc4b760a33b01fa4ce1d3849fe45d1ee91c75dc71e/pythonthesorimed-0.2.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b40f96b3ca609a957dcc047ed9ab9897", "sha256": "8d3c3eaf83838339bef4b7b46c1e663d91e78d2b8964ed7f72d6fbf2d4b239ec" }, "downloads": -1, "filename": "pythonthesorimed-0.2.8.tar.gz", "has_sig": false, "md5_digest": "b40f96b3ca609a957dcc047ed9ab9897", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22767, "upload_time": "2018-04-10T21:48:19", "url": "https://files.pythonhosted.org/packages/1c/e1/d54044aec720ca2cea16e935e7afc3486d0f16df05797e4faf75bb395a31/pythonthesorimed-0.2.8.tar.gz" } ], "0.2.9": [ { "comment_text": "", "digests": { "md5": "3ffb430b0cf55840a8466d316de5566d", "sha256": "24fc91bd615d491fd06a7349991fbf0ee8192baa514bf7e9dcd7039cbba60f49" }, "downloads": -1, "filename": "pythonthesorimed-0.2.9-py3-none-any.whl", "has_sig": false, "md5_digest": "3ffb430b0cf55840a8466d316de5566d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10941, "upload_time": "2018-04-12T13:47:13", "url": "https://files.pythonhosted.org/packages/4c/82/e10a5120fabc93baa15fd458d6e7ac85dddba6c70bc2696be3157e2e557e/pythonthesorimed-0.2.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b349ed9f99a6af0c4767dd3f29b90134", "sha256": "c06d628a25ad19d2a909fad0a1186e499dc39836e3b85e224db2ebb4ada0e926" }, "downloads": -1, "filename": "pythonthesorimed-0.2.9.tar.gz", "has_sig": false, "md5_digest": "b349ed9f99a6af0c4767dd3f29b90134", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22964, "upload_time": "2018-04-12T13:47:14", "url": "https://files.pythonhosted.org/packages/31/a5/aaaa421e7411fb352bdaa2ba8470a5e6a8e50d91b41920801243b482103b/pythonthesorimed-0.2.9.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "97dee612b7f340d9ad502d35c39b7e4c", "sha256": "a79e7e800627e4ac5d25a149f9ef993b94a1fa65a38de7278c130529580f577e" }, "downloads": -1, "filename": "pythonthesorimed-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "97dee612b7f340d9ad502d35c39b7e4c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12069, "upload_time": "2018-04-14T06:19:18", "url": "https://files.pythonhosted.org/packages/73/87/e982209e5bacf8e1ddd6009fecae73672886e9143a63157244a6d9817d3b/pythonthesorimed-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ebae397572e6ff8efb30770477f43184", "sha256": "a277bce3d9b586dc4e4629a17722d8307a6419dc63e71315a4766af911fd302a" }, "downloads": -1, "filename": "pythonthesorimed-0.3.0.tar.gz", "has_sig": false, "md5_digest": "ebae397572e6ff8efb30770477f43184", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24349, "upload_time": "2018-04-14T06:19:19", "url": "https://files.pythonhosted.org/packages/7d/78/e9697b0d46c7e2947a63399c5c3c76607557ef0139613e0953e89fcdb850/pythonthesorimed-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "97dee612b7f340d9ad502d35c39b7e4c", "sha256": "a79e7e800627e4ac5d25a149f9ef993b94a1fa65a38de7278c130529580f577e" }, "downloads": -1, "filename": "pythonthesorimed-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "97dee612b7f340d9ad502d35c39b7e4c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12069, "upload_time": "2018-04-14T06:19:18", "url": "https://files.pythonhosted.org/packages/73/87/e982209e5bacf8e1ddd6009fecae73672886e9143a63157244a6d9817d3b/pythonthesorimed-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ebae397572e6ff8efb30770477f43184", "sha256": "a277bce3d9b586dc4e4629a17722d8307a6419dc63e71315a4766af911fd302a" }, "downloads": -1, "filename": "pythonthesorimed-0.3.0.tar.gz", "has_sig": false, "md5_digest": "ebae397572e6ff8efb30770477f43184", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24349, "upload_time": "2018-04-14T06:19:19", "url": "https://files.pythonhosted.org/packages/7d/78/e9697b0d46c7e2947a63399c5c3c76607557ef0139613e0953e89fcdb850/pythonthesorimed-0.3.0.tar.gz" } ] }