PulseTile / PulseTile-React-Core

PulseTile framework - developed with ReactJS
Apache License 2.0
10 stars 12 forks source link

Updates of RecordsOfTable #245

Closed kuvakina closed 5 years ago

kuvakina commented 6 years ago

This component is located in PROMs plugin: https://github.com/PulseTile-Plugins/Plugin-PROMS/tree/master/RecordsOfTable

During installation, it is moved in the Core to src/components/form-fields/

RecordsOfTable is used in two plugins: PROMs and TransfersOfCare. But it uses information from the plugins Diagnosis, Medications, Events, Referrals, Vitals, Procedures.

We should do the following: 1) Move RecordsOfTable in the Core to src/components/form-fields; 2) Update RecordsOfTable. It is necessary to provide the possibility to use RecordsOfTable independently from non-core plugins set. Installing of plugins shouldn't change Core.

BogdanScherban commented 6 years ago

This task was done.

RecordsOfTable is a component, which used in create/edit form in two plugins: TransfersOfCare and PROMs.

It uses info about core-plugins Diagnosis and Medications and non-core plugins Events, Vitals, Procedures, Referrals.

History of changes: 1) When we start work on PulseTile, RecordsOfTable were located in Core. 2) When we created Core-version, we disabled all rows in RecordsOfTable, which were necessary for link with non-core plugins Events, Vitals, Procedures, Referrals. 3) When we worked on Showcase-version, we moved RecordsOfTable to PROMs plugin. Generator extracted it from PROMs and installed in Core

After this we decided to change generation principle. Generators can't change Core.

For this reason we updated RecordsOfTable: