Git Product home page Git Product logo

calendula-france's Introduction

Calendula for France

This project contains a script used to transform the french medicine database into a set of SQL statements able to fill a calendula instance with french medicines.

It is built in conjunction with a Calendula PrescriptionDBMgr that will be built as soon as this transformer works.

Getting Started

Just run docker-compose up in project root directory to spin a groovy container that will get the data from public health website

Prerequisites

You should have docker and docker-compose installed.

Mapping HAS database to calendula format

I will try to explain how I choose to map french medicine database to calendula format. For each file provided in french medicine database, I will give for each field how I plan to map it to calendula. Information for field usage is obtained from http://base-donnees-publique.medicaments.gouv.fr/docs/Contenu_et_format_des_fichiers_telechargeables_dans_la_BDM_v1.pdf

According to calendula issue https://github.com/citiususc/calendula/issues/103#issuecomment-434270205[#103],
there is a `_id` field in each table, wich is used by http://ormlite.com/[ORMLite].
As this script is mainly a insert into generator, it does not need tha value, which will be left empty.

CIS_bdpm.txt

According to documentation, this is the master file, containing essential informations

  • Code CIS (Code Identifiant de Spécialité) mapped to Prescription#code

  • Dénomination du médicament mapped to Prescription#name. BEWARE The denomination contains far more than name. As a consequence, a part of its name will be used to generate HomogenousGroup.

  • Forme pharmaceutique mapped to Prescription#presentationForm

  • Voies d’administration (avec un séparateur « ; » entre chaque valeur quand il y en a plusieurs) unmapped

  • Statut administratif de l’autorisation de mise sur le marché (AMM) unmapped

  • Type de procédure d’autorisation de mise sur le marché (AMM) unmapped

  • Etat de commercialisation unmapped

  • Date d’AMM (format JJ/MM/AAAA) unmapped

  • StatutBdm : valeurs possibles : « Alerte » (icône rouge) ou « Warning disponibilité » (icône grise) unmapped

  • Numéro de l’autorisation européenne unmapped

  • Titulaire(s) : S’il y a plusieurs titulaires, les valeurs seront séparées par des « ; » unmapped

  • Surveillance renforcée (triangle noir) : valeurs « Oui » ou « Non » unmapped

CIS_CIP_bdpm.txt

Contains presentations infos. Unfortunatly, french presentations are associated with medicines, which spanish presentation aren’t.

  • Code CIS unmapped

  • Code CIP7 (Code Identifiant de Présentation à 7 chiffres) unmapped

  • Libellé de la présentation mapped to PresentationForm#name

  • Statut administratif de la présentation unmapped

  • Etat de commercialisation de la présentation tel que déclaré par le titulaire de l’AMM unmapped

  • Date de la déclaration de commercialisation (format JJ/MM/AAAA) unmapped

  • Code CIP13 (Code Identifiant de Présentation à 13 chiffres) PresentationForm#PresentationFormId

  • Agrément aux collectivités ("oui", "non" ou « inconnu ») unmapped

  • Taux de remboursement (avec un séparateur « ; » entre chaque valeur quand il y en a plusieurs) unmapped

  • Prix du médicament en euro unmapped

  • Texte présentant les indications ouvrant droit au remboursement par l’assurance maladie s’il y a plusieurs taux de remboursement pour la même présentation unmapped

CIS_COMPO_bdpm.txt

  • Code CIS mapped to PrescriptionActiveIngredient#PrescriptionCode

  • Désignation de l’élément pharmaceutique unmapped (for now) it is a packaging description

  • Code de la substance mapped to ActiveIngredient#ActiveIngredientID and PrescriptionActiveIngredient#ActiveIngredientID

  • Dénomination de la substance mapped to ActiveIngredient#name

  • Dosage de la substance

  • Référence de ce dosage (exemple : "[pour] un comprimé")

  • Nature du composant (principe actif : « SA » ou fraction thérapeutique : « ST »)

  • Numéro permettant de lier, le cas échéant, substances actives et fractions thérapeutiques

CIS_HAS_SMR_bdpm.txt

  • Code CIS

  • Code de dossier HA

  • Motif d’évaluation

  • Date de l’avis de la Commission de la transparence (format AAAAMMJJ)

  • Valeur du SMR

  • Libellé du SM

CIS_HAS_ASMR_bdpm.txt

  • Code CIS

  • Code de dossier HAS

  • Motif d’évaluation

  • Date de l’avis de la Commission de la transparence (format AAAAMMJJ)

  • Valeur de l’ASMR

  • Libellé de l’ASMR

HAS_LiensPageCT_bdpm.txt

  • Code de dossier HAS

  • Lien vers les pages d’avis de la CT

CIS_GENER_bdpm.txt

This mapping will be complex !

  • Identifiant du groupe générique mapped to HomogeneousGroup#HomogeneousGroupID

  • Libellé du groupe générique mapped to HomogeneousGroup#Name

  • Code CIS the prescription having this name will have its homogenousGroup set to this identifier

  • Type de générique, avec les valeurs suivantes when this value is set to 0, the prescription will have its generic field set to true :

    • 0 : « princeps »

    • 1 : « générique »

    • 2 : « génériques par complémentarité posologique »

    • 4 : « générique substituable »

  • Numéro permettant de trier les éléments d’un groupe

CIS_CPD_bdpm.txt

  • Code CIS

  • Condition de prescription ou de délivrance

CIS_InfoImportantes_AAAAMMJJhhmiss_bdpm.txt

This file is used to check wether the others should be downloaded, according to

  • Code CIS

  • Date de début de l’information de sécurité (format JJ/MM/AAAA)

  • Date de fin de l’information de sécurité (format JJ/MM/AAAA)

  • Texte à afficher et lien vers l’information de sécurité

Built With

Contributing

Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

Authors

  • Nicolas Delsaux - Initial work

See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project.

License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

Acknowledgments

  • Thanks to Calendula team. This tool is awesome !

  • Obviously, what would I have done without Groovy ?

calendula-france's People

Contributors

riduidel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

angelpinheiro

calendula-france's Issues

Export data to .sqlite or/and .csv files

I think that Calendula integration for the two files formats above will be easier. They already wrote a CSV adapter for US medicine databases => https://github.com/citiususc/calendula/blob/master/Calendula/src/main/java/es/usc/citius/servando/calendula/drugdb/USPrescriptionDBMgr.java

Android manage very well SQlite databases, so it could be a better solution for mapping than a simple CSV file => https://developer.android.com/training/data-storage/sqlite

Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.