Uploaded image for project: 'Metadata Mapping Module'
  1. Metadata Mapping Module
  2. MAP-33

Add one-liner for updating/creating a mapping/set

    XMLWordPrintable

    Details

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

      Description

      Add

      metadataMappingService.mapMetadataItem(location, "emrapi", "defaultLocation");

      ,where
      location is a metadata;
      emrapi is a source and it must exist;
      defaultLocation is a code.

      metadataMappingService.mapMetadataItems(locations, "emrapi", "defaultLocations");

      ,where
      locations is a list of metadata;
      emrapi is a source and it must exist;
      defaultLocations is a code.
      If there's an existing mapping for that metadata set, the passed list should be used instead of the existing one and metadata set members, which are no longer present should be retired. If the mapping doesn't point to a metadata set, an exception should be thrown.

      Both methods should work for creating or updating mappings if they already exist.

        Attachments

          Activity

            People

            Assignee:
            mogoodrich Mark Goodrich
            Reporter:
            raff Rafal Korytkowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: