Non-representative examples and descriptions

XMLWordPrintableJSON

    • Type: Change Request
    • Resolution: Persuasive with Modification
    • Priority: Medium
    • Shorthand (FHIR)
    • 0.12.0 [deprecated]
    • FHIR Infrastructure
    • Language Reference
    • 3.2.4
    • Hide

      Although the examples are valid, adding more explanation of value[x] versus valueString or valueCodeableConcept etc could improve the description.

      The description has been clarified as:

       
      FHIR represents a choice of data types using `foo[x]` notation. To address a single data type, replace the `[x]` with the data type name (also capitalizing the first letter). To illustrate, Condition.onset[x], with choices dateTime, Age, Period, Range or string would have paths onsetDateTime, onsetAge, onsetPeriod, etc. This follows the approach used in FHIR JSON and XML serialization and is customary in FHIR.

      > *Note:* foo[x] choices are NOT addressed as foo[boolean], foo[Quantity], etc.

      Show
      Although the examples are valid, adding more explanation of value [x] versus valueString or valueCodeableConcept etc could improve the description. The description has been clarified as:   FHIR represents a choice of data types using `foo [x] ` notation. To address a single data type, replace the ` [x] ` with the data type name (also capitalizing the first letter). To illustrate, Condition.onset [x] , with choices dateTime, Age, Period, Range or string would have paths onsetDateTime, onsetAge, onsetPeriod, etc. This follows the approach used in FHIR JSON and XML serialization and is customary in FHIR. > * Note: * foo [x]  choices are NOT addressed as foo [boolean] , foo [Quantity] , etc.
    • Moesel/Rhodes 11-0-1
    • Clarification
    • Non-substantive

      Section 3.2.4 is about [x] and setting things for the values of particular properties.
      The examples are NOT using value[x] at all so they are not representative. Also, the first sentence of the section is not very clear. I guess you mean that instead of doing:
      _* valueString\.value[String] = "Hello World"
      * valueReference\.value[Patient] = Reference(EveAnyperson)_
      one can simply do:
      * valueString\.value[x] = "Hello World"
      * valueReference\.value[x] = Reference(EveAnyperson)
      or even simpler:
      _* valueString = "Hello World"
      * valueReference = Reference(EveAnyperson)_

      Existing Wording:

      Data Type Choice [x] Paths

            Assignee:
            Unassigned
            Reporter:
            ivan_zapreev
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: