You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
define "DateTime in GMT":
DateTime(2022, 8, 8, 1, 30, 0, 0, 0)
define "FHIR DateTime in GMT":
FHIR.dateTime { value: "DateTime in GMT" }
define "To Date":
Date(year from "DateTime in GMT", month from "DateTime in GMT", day from "DateTime in GMT")
define "To Date from FHIR":
Date(year from "FHIR DateTime in GMT", month from "FHIR DateTime in GMT", day from "FHIR DateTime in GMT")
The output of this code is:
DateTime in GMT=2022-08-08T01:30:00.000
To Date=2022-08-08
FHIR DateTime in GMT=dateTime
To Date from FHIR=2022-08-07
I ran this from a computer set to EST.
It appears that when constructing the FHIR.dateTime in CQL, the evaluator is converting the GMT dateTime to EST. This is inconsistent with constructed system dateTime types.
The text was updated successfully, but these errors were encountered:
Consider this CQL:
The output of this code is:
I ran this from a computer set to EST.
It appears that when constructing the FHIR.dateTime in CQL, the evaluator is converting the GMT dateTime to EST. This is inconsistent with constructed system dateTime types.
The text was updated successfully, but these errors were encountered: