Uploaded image for project: 'Logic Module'
  1. Logic Module
  2. LOGIC-52

Register Default Logic Rules does not register any concept tokens

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Ready for Work
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Logic 0.5.3
    • Labels:
      None
    • Complexity:
      Low

      Description

      When you run the Register Default Logic Rules against trunk code, it registers tokens for the person, encounter, and program data sources, but it doesn't register anything for the Obs data source.

      This is because in the dictionary I'm using now (AMPATH, upgraded to the latest data model) there are only a handful of concept with names marked as locale_preferred = true (and those are all answers, not questions). Logic does this, which always returns null, because none of these concepts have locale-preferred names, even though they have names that are marked as FULLY_SPECIFIED:

      ConceptName conceptName = c.getPreferredName(conceptNameLocale);
      

      I don't know what the right fix is off the top of my head.

      I have verified this bug against trunk. I suspect it also holds against 1.7, since that includes concept name refactoring, but I haven't checked. It ran fine in 1.6 as I recall.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned
                Reporter:
                darius Darius Jazayeri
                Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated: