Details
-
Change Request
-
Resolution: Persuasive with Modification
-
Medium
-
Clinical Quality Language (FHIR)
-
1.5 [deprecated]
-
Clinical Decision Support
-
Authors Guide
Logical Specification
Appendix B - Reference -
-
Clarification
-
Non-substantive
Description
Current language for tuple type equality states:
For tuple types, this means that equality returns true if and only if the tuples are of the same type, and the values for all elements that have values, by name, are equal.
The intent of the phrase "that have values" is to ensure that comparison isn't impacted by elements where both sides do not have a value, but also that if one side has a value and the other doesn't, the result is null.
The last aspect may not be clear to all readers, so we should clarify that by adding the sentence "If one tuple has a value for an element is not present in the other tuple, the result is null"
That sentence needs to be added to the Equal discussion in the reference, the author's guide, and the logical specification, as well as the actual ELM schema.
In addition, in the Author's Guide, add an example illustrating the case:
{ X: 1, Y: 1 }=
{ X: 1, Y: null }// Returns false
And this example expression should be added to the examples in the Reference and Logical specification.