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
Difference in weeks looks to be working like duration in weeks instead of counting boundaries. Difference in months is working as expected. This can be replicated using the vscode plugin. The following expressions give these outputs:
For example:
define "start":
@2024-02-29
define "end":
@2024-03-04
define "weeks difference":
difference in weeks between "start" and "end"
define "weeks duration":
duration in weeks between "start" and "end"
define "months difference":
difference in months between "start" and "end"
define "months duration":
duration in months between "start" and "end"
Difference in weeks looks to be working like duration in weeks instead of counting boundaries. Difference in months is working as expected. This can be replicated using the vscode plugin. The following expressions give these outputs:
For example:
define "start":
@2024-02-29
define "end":
@2024-03-04
define "weeks difference":
difference in weeks between "start" and "end"
define "weeks duration":
duration in weeks between "start" and "end"
define "months difference":
difference in months between "start" and "end"
define "months duration":
duration in months between "start" and "end"
outputs:
start=2024-02-29
end=2024-03-04
weeks difference=0
weeks duration=0
months difference=1
months duration=0
"weeks difference" should be 1 since it crosses the Sunday boundary as defined in the specification.
See: https://chat.fhir.org/#narrow/stream/179220-cql/topic/difference.20vs.20duration.20in.20weeks.20in.20vscode.20plugin/near/423808646
The text was updated successfully, but these errors were encountered: