Skip to content

added tests for timezone offset tests#88

Open
bryantaustin13 wants to merge 1 commit intocqframework:mainfrom
bryantaustin13:issue81_Timezoneoffset-policy-tests
Open

added tests for timezone offset tests#88
bryantaustin13 wants to merge 1 commit intocqframework:mainfrom
bryantaustin13:issue81_Timezoneoffset-policy-tests

Conversation

@bryantaustin13
Copy link
Contributor

uses codes from HL7/cql#103 (comment)

Answers this issue
#81 -- Timezoneoffset policy tests

Copy link
Contributor

@raleigh-g-thompson raleigh-g-thompson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Incorrect outputs on the three "NullWhen..." tests in the "No default offset" group — shouldn't these be null rather than true?
  2. Missing version attribute — why is there no version attribute on the Policy: Default to server offset (normalize offset-less to server) group?
  3. {{SERVER_OFFSET_ISO}} placeholder — could you add a comment explaining the runtime substitution mechanism to help future maintainers?
  4. New capability codes — are timezone-offset-policy.no-default-offset and timezone-offset-policy.default-server-offset documented somewhere, or is that planned as a follow-up?

<test name="DateTimeEquality_DefaultServerOffset_EqualsWhenExplicitServerOffsetGiven" version="1.5">
<capability code="timezone-offset"/>
<capability code="timezone-offset-policy.default-server-offset"/>
<expression>@2012-04-01T00:00 = @2012-04-01T00:00{{SERVER_OFFSET_ISO}}</expression>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we include a comment that describes how to use {{SERVER_OFFSET_ISO}}?
Is there documentation describing timezone-offset capabilities?

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

Successfully merging this pull request may close these issues.

2 participants