Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
ancd_annual_screening.xml
ancd_hospitalizations.xml
ancd_mastercard.xml
ancd_quarterly_screening.xml
ancd_visit.xml
art_annual_screening.xml
art_mastercard.xml
art_visit.xml
asthma_hospital.xml
asthma_mastercard.xml
asthma_peak_flow.xml
asthma_visit.xml
blank.xml
blank_header.xml
chf_annual_screening.xml
chf_history_of_hospitalizations.xml
chf_mastercard.xml
chf_quarterly_screening.xml
chf_visit.xml
ckd_annual_screening.xml
ckd_history_of_hospitalizations.xml
ckd_imaging.xml
ckd_mastercard.xml
ckd_quarterly_screening.xml
ckd_visit.xml
eid_mastercard.xml
eid_test_results.xml
eid_visit.xml
epilepsy_mastercard.xml
epilepsy_visit.xml
htn_dm_annual_labs.xml
htn_dm_hospital.xml
htn_dm_labs.xml
htn_dm_mastercard.xml
htn_dm_visit.xml
ks_chemo.xml
ks_eval.xml
ks_header.xml
mental_health_mastercard.xml
mental_health_visit.xml
ncd_mastercard.xml
ncd_other_annual_screening.xml
ncd_other_hospitalizations.xml
ncd_other_mastercard.xml
ncd_other_quarterly_screening.xml
ncd_other_visit.xml
ncd_visit.xml
palliative_mastercard.xml
palliative_visit.xml
preart_mastercard.xml
preart_visit.xml
viral_load_test_results.xml

README.md

Mastercard Configuration

The mastercard framework expects two forms, a form representing the header, and a form representing each visit.

These forms need to be structured as follows:

  • The encounterDate element needs to have an id of "visitDate":

  • The encounterLocation element needs to have an id of "visitLocation":

  • The Next Appointment Date observation needs to have an id of "appointmentDate". This will enforce this date must be within 0-6 months of the visit date.

  • By putting the css class of 'focus-field' on an element that wraps a form field, this will ensure that this field has focus on it when the form is loaded

Example:

<tr>
	<th>Height</th>
	<td class="focus-field"><obs conceptId="$height" id="heightInput" showUnits="true" /></td>
</tr>
  • The visit form must be structured in View Mode as a single table, with the following structure and css classes. The visit date cell must have the 'visit-date' css class.

    ... ...
  • The visit form should be structured in Edit Mode (not required, but takes advantage of built in css) with the form written as a table with css class 'visit-edit-table'

    ... ...
    Visit Date
You can’t perform that action at this time.