You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added follow--up encounter type
* Updated modules to match Reference Application 2.7 release
* Added custom concepts for EMTCT module
* First draft of the follow-up form
* Updated concept IDs to start from 165100
* Merge branch 'master' of https://github.com/METS-Programme/openmrs-module-aijar into emtct_module
# Conflicts:
# api/src/main/resources/metadata/Concepts_ART-1.xml
* Concept name definitions
* Updated ordering of concept to match the existing style
* Added validations for the data capture form
* Updated pom.xml for html form entry update to 3.6.0 which fixes a javascript issue
var new_visit_date = new Date(changeFieldDateToJavascriptDate(getValue('new-visit-date.value')));
92
+
var new_followup_date = new Date(changeFieldDateToJavascriptDate(getValue('new-followup-date.value')));
93
+
var home_visit_date = new Date(changeFieldDateToJavascriptDate(getValue('home-visit-date.value')));
94
+
var encounterDate = new Date(changeFieldDateToJavascriptDate(getValue('encounterDate.value')));
95
+
96
+
<!-- if the visit was rescheduled then the new visit date has to be provided -->
97
+
if (getValue('client-visit-rescheduled.value')) {
98
+
if (getValue('new-visit-date.value') == '') {
99
+
getField('new-visit-date.error').html('The date when the client visit has been rescheduled to has to be provided').show();
100
+
return false;
101
+
} else {
102
+
if (new_visit_date <= encounterDate) {
103
+
getField('new-visit-date.error').html('The date when the client visit has been rescheduled has to be after ' + changeFieldDateToJavascriptDate(getValue('encounterDate.value'))).show();
104
+
return false;
105
+
}
106
+
}
107
+
}
108
+
<!-- if the next step is to a follow up again then a new followup date has to be provided -->
109
+
if (getValue('try-followup-again.value')) {
110
+
if (getValue('new-followup-date.value') == '') {
111
+
getField('new-followup-date.error').html('The date of the next follow up has to be provided').show();
112
+
return false;
113
+
} else {
114
+
if (new_followup_date <= encounterDate) {
115
+
getField('new-followup-date.error').html('The date of the next follow up has to be after ' + changeFieldDateToJavascriptDate(getValue('encounterDate.value'))).show();
116
+
return false;
117
+
}
118
+
}
119
+
}
120
+
<!-- if the visit was rescheduled then the new visit date has to be provided -->
121
+
if (getValue('home-visit-on.value')) {
122
+
if (getValue('home-visit-date.value') == '') {
123
+
getField('home-visit-date.error').html('The date of the home visit has to be provided ').show();
124
+
return false;
125
+
} else {
126
+
if (home_visit_date <= encounterDate) {
127
+
getField('home-visit-date.error').html('The date of the home visit has to be after ' + changeFieldDateToJavascriptDate(getValue('encounterDate.value'))).show();
128
+
return false;
129
+
}
130
+
}
131
+
}
132
+
});
133
+
});
134
+
</script>
135
+
136
+
<divclass="ai-page-frame">
137
+
<divclass="headers"style="text-align: center;">
138
+
<h3style="background: #000000; padding: 10px;color:#07c1ae">HMIS 053 Appointment Book - Followup</h3>
<obsid="client-visit-rescheduled"conceptId="165104"answerConceptId="165107"answerLabel="Client Visit Rescheduled to "class="horizontal-layout-options"/><obsid="new-visit-date"conceptId="165108"allowFutureDates="true"/>
<obsid="phone-not-answered"conceptId="165104"answerConceptId="165110"answerLabel="Telephone not answered"class="horizontal-layout-options"/><br/>
205
+
<obsid="spoke-with-patient"conceptId="165104"answerConceptId="165111"answerLabel="Spoke with patient"class="horizontal-layout-options"/><br/>
206
+
<obsid="spoke-with-someone-else"conceptId="165104"answerConceptId="165112"answerLabel="Spoke with someone else"class="horizontal-layout-options"/><br/><br/>
<obsid="try-followup-again"conceptId="165113"answerConceptId="165115"answerLabel="Try to followup patient again on "class="horizontal-layout-options"/><obsid="new-followup-date"conceptId="165116"allowFutureDates="true"/>
0 commit comments