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

Allow two dates to be subtracted

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Medium Medium

    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

        Activity

          People

            Unassigned Unassigned
            plynch Paul Lynch
            Paul Lynch
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: