some changes in the form templates, also adding a section and som fields in patient record page, defining  methods to store some subdocuments in the DB