==== Versioning ==== It is still to decide if the best way of storing forms is a relational database or better a document based database, like MongoDB. Forms are constantly changing (=updated), a common problem in usual software products is that if newer forms are available and updated, the older forms are not accessible any more. So forms must be versioned as well. ==== Storage ==== [[http://www.freemedforms|FreeMedForms]] or the newer [[https://www.freehealth.io|FreeHealth]] have a way to automatically save forms from an xml file (should be ported to JSON) into a MYSQL database. This is interesting. But I still think that a Document based database would be the better way to store such data. ==== Structure ==== The forms module should provide a central API for creating forms, e.g. * prepscriptions * confirmations, attestations * reports to the health office (reporting of infectuous diseases, vaccination damages, etc.) * disability to work * death notice Form fields: * UID * Description (e.g. referral xray) * group (general, referrals) * printer (where to print out) - //uh-oh: maybe don't define this here?// * paper tray * paper format (A4, A5, prescription, etc) * orientation (portrait, landscape) * confirmation dialog to print? (bool) (wait for paper input) * resolution (dpi) * preview? (bool) * pause after each page? (bool) *