Uploaded image for project: 'Reporting Module'
  1. Reporting Module
  2. REPORT-799

Add personWithAttribute to BuiltInCohortDefinitionLibrary

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Details: Add a new definition to the BuiltInChortDefinitionLibrary that makes use of the PersonAttributCohortDefinition. This will make it possible to be able to search for patients with certain attributes in the cohort builder. The post made to the /reportingrest/adhocquery resource can then look like this
      {
      "type": "org.openmrs.module.reporting.dataset.definition.PatientDataSetDefinition",
      "customRowFilterCombination": "1",
      "rowFilters": [
      {
      "type": "org.openmrs.module.reporting.cohort.definition.CohortDefinition",
      "key": "reporting.library.cohortDefinition.builtIn.personWithAttribute",
      "parameterValues":

      { "attributeType": "Birthplace", "values": ["Berlin, Germany"] }

      }
      ]
      }

        Attachments

          Activity

            People

            • Assignee:
              femi Femi Oladeji
              Reporter:
              femi Femi Oladeji
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified