Skip to content

Test 10.13.03 fails due to le date comparison boundary condition issue #747

@daniel-alistar

Description

@daniel-alistar

Summary

The test case 10.13.03 (Encounter search by date + patient) is currently failing because of a strict string comparison or parsing mismatch between the expected timezone offset format and the actual response received from the server.

Image

Details

During the execution of the test, inferno performs a search using a timestamp formatted with a numerical offset (+00:00), but the server returns a period object where the start date uses the Z (Zulu) suffix.

  • Expected format (sent/expected): 2025-12-10T14:00:00+00:00
  • Actual format (received): 2025-12-10T14:00:00Z

While both are valid ISO 8601 representations of UTC, the test fails to recognize them as equivalent, leading to an assertion error.

Potential impact

This issue may not be isolated to the Encounter resource. Any resource utilizing date-based searches might encounter the same failure if the server defaults to Z notation while the test expects +00:00.

Proposed fix

The validation logic should be updated to treat Z and +00:00 as identical UTC indicators by parsing both strings into date objects before comparison, rather than performing a direct string match. (This can be extend as well as when searching for other timezones and the server defaults all dates to UTC).

Metadata

Metadata

Assignees

No one assigned

    Labels

    question answeredThis issue has been investigated and replied by Inferno team. No further action needed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions