Uploaded image for project: 'Form Entry Module'
  1. Form Entry Module
  2. FORM-107

Widget lookup in infopath forms not working in OpenMRS 1.7

    Details

    • Complexity:
      Undetermined

      Description

      We are testing OpenMRS 1.7. After rebuilding all the xsns and trying to open the infopath forms under Form Entry, most of the widgets don't work. The only widgets which work are the Relationship widgets such as:

      function AddMotherRelationship::OnClick(eventObj)

      { var patientId = XDocument.DOM.selectSingleNode("//patient/patient.patient_id"); if (patientId) patientId = patientId.text; taskPaneNavigateTo("/relationship.htm?patientId=" + patientId); }

      Here are a few examples of the widgets which don't work (After clicking the buttons, there is no search box on the task pane):

      function SelectLocation::OnClick(eventObj)

      { selectLocation(); }

      function selectAnswer::OnClick(eventObj)

      { nodeName = '/form/obs/peds_cdc_specific_condition_query'; XDocument.DOM.selectSingleNode(nodeName).selectSingleNode('value').text=''; selectAnswer(nodeName); }

      function btnChooseAdmissionDiagnosis::OnClick(eventObj)

      { taskPaneNavigateTo('/concept.htm?className=Diagnosis&includeDiagnosisConcepts=true&title=Choose%20Admission%20Diagnosis&createConceptList=true&nodePath=//obs/hospitalization_since_last_visit/admission_diagnosis&nodeHasSiblings=true'); }

      function btnChooseMissedMedicationinPastMonth::OnClick(eventObj)

      { taskPaneNavigateTo('/concept.htm?className=Drug&includeDrugConcepts=true&title=Choose%20Missed%20Medication%20inPast%20Month&createConceptList=true&nodePath=//obs/missed_medication_for_past_month/missed_medication_added&nodeHasSiblings=true'); }

      function btnChooseMissedMedicationinPastWeek::OnClick(eventObj)

      { taskPaneNavigateTo('/concept.htm?className=Drug&includeDrugConcepts=true&title=Choose%20Missed%20Medications%20in%20Past%20Week&createConceptList=true&nodePath=//obs/missed_medication_for_past_week/missed_medication_added&nodeHasSiblings=true'); }

      function selectWHOCriteria::OnClick(eventObj)

      {selectWHOCriteria nodeName = '/form/obs/peds_who_specific_condition_query'; XDocument.DOM.selectSingleNode(nodeName).selectSingleNode('value').text=''; selectAnswer(nodeName); }

      function btnChooseAdditionalMedications::OnClick(eventObj)

      { taskPaneNavigateTo('/concept.htm?className=Drug&includeDrugConcepts=true&title=Choose%20Additional%20Medications&createConceptList=true&nodePath=//obs/other_medication_order/medication_added&nodeHasSiblings=true'); }

      function btnChooseOtherCurrentMedications::OnClick(eventObj)

      { taskPaneNavigateTo('/concept.htm?className=Drug&includeDrugConcepts=true&title=Choose%20Other%20Current%20Medications&createConceptList=true&nodePath=//obs/patient_reported_current_other_treatment/medication_added&nodeHasSiblings=false'); }

      function AddOtherInterveralComplaints::OnClick(eventObj)

      { taskPaneNavigateTo('/concept.htm?className=Diagnosis&includeDiagnosisConcepts=true&title=Choose%20Other%20Interval%20Complaints&createConceptList=true&nodePath=//obs/other_interval_complaint_duration_detailed/freetext_general&nodeHasSiblings=false'); }

        Gliffy Diagrams

          Attachments

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  jeremy Jeremy Keiper
                  Reporter:
                  ayeung Ada Yeung
                  Watchers:
                  Ben Wolfe, Burke Mamlin, Jeremy Keiper, Nyoman Ribeka, Paul Biondich, Sy Haas
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: