Hi guys.,
For those who have had problems submitting forms in kenyaemr. and get the following error
Encounter datetime should be after the visit start date
of the form submits yet does not appear in the completed forms section.. this is how to solve that issue
Submitting a form entails filling out the encounter date and time, provider and The provider location
This are crucial to form submission as they specify the visit_Id. Without this then the form cannot be displayed in the completed section of the clinician page.
In your form set the following attributes
encounter location as;
<encounterLocation default="GlobalProperty:kenyaemr.defaultLocation" type="autocomplete" />
encounter date tag should be
<encounterDate id="encounter-date" showTime="true" />
Provider <encounterProvider default="currentUser" />
this will set the current compulsory settings to pick defaults
hence you can adjust the time section of the encounter date to reflect your system time.
when you are entering the form check at top of the page
you will see something like "Editing Outpatient visit, 28-Nov-2013 13:16"
make sure your date time of the encounter date is past that to sort out your error.
and by providing your location to be same as that which implements facility will work without even making those cahnges
but those changes are vital in that they will save you time to be fixing those things manually.
Thank you.