Details
-
Change Request
-
Resolution: Persuasive with Modification
-
Medium
-
FHIRPath (FHIR)
-
STU3
-
Implementable Technology Specifications
-
fluentpath
-
6.7
-
-
Bryn Rhodes/Brian Pech: 4-0-2
-
Enhancement
-
Compatible, substantive
Description
The motivation for this request is to allow the calculation of a person's current age, like "now() - Patient.birthDate". Currently section "6.7. Date/Time Arithmetic" requires that "the right operand must be a quantity". The request here is to allow the right operand to be another DateTime, if the left operand is also a DateTime. (I have not thought about and don't have an opinion about what to do for other possibile combinations of Date, Time, and DateTime).
My suggestion would be to have the result of the subtraction be a quantity with "ms" units.
Attachments
Issue Links
- relates to
-
FHIR-34417 per-1 invariant limits representation of real-world periods
- Published