Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4279

Add DrugValidator and validate drugReferenceMaps from it

    XMLWordPrintable

    Details

      Description

      We added a new fields for drug reference mappings that need to be looped through and validated in DrugValidator, below are the validation rules.

      • Drug, reference term are required on a reference map If a mapping is associated to a concept map type that is new (no conceptMapTypeId), then invoke the ConceptMapTypeValidator for that map type.
      • If a mapping is associated to reference term that is new (no conceptReferenceTermId), then invoke the ConceptReferenceTermValidator for that term see ConceptValidator for an example
      • If a mapping is associated a concept map type that is new (no conceptMapTypeId), then invoke the ConceptMapTypeValidator for that map type.
      • A drug cannot be mapped to the same term multiple times

      Dev Notes:

      Can a drug be mapped to the same term multiple times?

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              kkaczmarczyk Krzysztof Kaczmarczyk
              Reporter:
              wyclif Wyclif Luyima
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 7 hours
                  1d 7h