Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

difference in weeks not counting correctly #1335

Open
lukeaduncan opened this issue Mar 4, 2024 · 0 comments
Open

difference in weeks not counting correctly #1335

lukeaduncan opened this issue Mar 4, 2024 · 0 comments

Comments

@lukeaduncan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant