Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-40836

Conditional XPaths would be easier to read

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive
    • Icon: Medium Medium
    • US C-CDA on FHIR (FHIR)
    • 1.2.0-ballot
    • Cross-Group Projects
    • STU
    • (many)
    • Hide

      Will apply

      Show
      Will apply
    • Jay Lyle/John D'Amore: 16-0-6
    • Clarification
    • Non-substantive

    Description

      In most places throughout the mappings, we reference C-CDA entries like this (to pick on Comment Activity):

      entryRelationship/act/code@code="48767-8"
      /entryRelationship/act/text

      This does more or less get the point across, but it would be much cleaner to write this using XPath's semantics for "find the act that has this code, and then get its text":

      entryRelationship/act[code/@code="48767-8"]/text

      Most complex XPath snippets for C-CDA entries in the mapping tables could be similarly cleaned up.

      Attachments

        Activity

          People

            jdamore John D'Amore
            mszczepa Matt Szczepankiewicz
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: