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

What fields are populated in a Reference

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Considered - Question answered
    • Icon: Highest Highest
    • Shorthand (FHIR)
    • 3.0.0-ballot
    • FHIR Infrastructure
    • Language Reference
    • 3.6.3.6
    • Hide

      The FSH grammar already allows the display to be set by specifying a quoted string after the reference (e.g., `Reference(Amy) "Amy P"`). This is consistent with the syntax for setting display on a code. We will document this in the specification.

      The type and identifier can be set via normal rules. E.g.:
      ```

      • subject = Reference(Amy) "Amy P"
      • subject.type = "Patient"
      • subject.identifier.system = "http://mysystem.org"
      • subject.identifier.value = "abc123"
        ```
        Note that rules for type and identifier can go before or after the reference assignment. Assigning the reference via Reference keyword does not overwrite type or identifier.

      We considered adding special syntax for setting type or identifier alongside the `Reference()` keyword, but felt that the frequency of setting these did not justify the additional complexity. Once a single syntactical statement contains more than 2 or 3 parts, it becomes difficult for users to remember the correct order of the parts.

      Show
      The FSH grammar already allows the display to be set by specifying a quoted string after the reference (e.g., `Reference(Amy) "Amy P"`). This is consistent with the syntax for setting display on a code. We will document this in the specification. The type and identifier can be set via normal rules. E.g.: ``` subject = Reference(Amy) "Amy P" subject.type = "Patient" subject.identifier.system = "http://mysystem.org" subject.identifier.value = "abc123" ``` Note that rules for type and identifier can go before or after the reference assignment. Assigning the reference via Reference keyword does not overwrite type or identifier. We considered adding special syntax for setting type or identifier alongside the `Reference()` keyword, but felt that the frequency of setting these did not justify the additional complexity. Once a single syntactical statement contains more than 2 or 3 parts, it becomes difficult for users to remember the correct order of the parts.

    Description

      When assigning a Reference using a instance indication (e.g. Reference( EveAnyPerson ) ). What fields in the resulting Reference instance are populated?

      Only Reference.reference?

      Also Reference.type and/or Reference.display

      If not, how do I populate these fields?

      Is there a way to indicate to do so in the reference without requiring an additional rule (e.g. additional parameters in the Reference( ) indication or using a RuleSet? If not we should consider adding one.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bvdh Bas van den Heuvel
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: