Closed permafrost06 closed 1 year ago
Right now, strings cannot be auto incremented. However, we may use uuid to get a similar result. But if you need strings that goes like this, a,b,....,z,1a,......,1z,2a,..... I can try to achieve this. This might be possible using TRIGGERS. https://sqlite.org/lang_createtrigger.html
I'm sure we can find a better solution than triggers. I'll let you know.
closed by #53
Make a CRUD the same way it was done for
tests
. The properties are:(auto increment) (not sure if string can be auto incremented, let know)* Some v2 properties are mapped as follows:
* Some v2 properties are not included here (these can be calculated):
Please have a look at v2 app and code and check if anything is missing.
Possible issues:
The app will show historical financial statements. How are we going to handle the change in atest
's price? Because in the proposed shape here (the financial records will be generated on the fly fromtest
ids), changing the price will change the older financial statements.Possible solution: We may have aninvoices
table where we store the invoice properties (e.g. hardcoded test id, name, prices etc.)Fixed by #51
This table might be too complex, we might consider breaking this up into multiple tables such as: patients (will only feature patient info), invoice (will only feature invoice properties), record (will combine patient and invoice with other stuff if needed) etc.Requirements updated