Skip to content

Commit

Permalink
Handle timezones in bulk uploader and Fhir converter (#5985)
Browse files Browse the repository at this point in the history
* Handle timezones in bulk uploader and Fhir converter

* Handle timezones in bulk uploader and Fhir converter

* Fix intellij auto conversion to * import

* Check testResultTimeZoneInfo for null

* Use ZonedDateTime for test result date

* Use ZonedDateTime in DiagnosticReport

Use Z for system timestamps with setTimeZoneZulu

* Fix intellij wildcard import

* Handle null date tested on DiagnosticReport

* Update FhirConverter JSON test date format

* Update issued as UTC instant from zoned time

* Use UTC Date instant for DiagnosticReport

* Remove ZonedDateTime helper method

* Revert intellij wildcard import

* Test invalid address exception

* Use timezone with ET fallback for date tested

* Nullable zonedDateTime for conversion helper

* Validate and cache timezones in datetime fields

* Backend lint fixes

* Fix lints from missing lefthook run

* Remove address service from FhirConverter

* Update timezone regex for coverage and ICANN options

* Fix timezone suffix regex

* Add tests for date time utils

* Fix test mock and code smells

* Fix DateTimeUtils line separators

* Update FHIR tests with timezones

* Fill specimen received time with order test date

* Add caching test and rename service

* Fill date result released with test result date

* Fill blank ordering facility with testing lab

* Update caching mock in DateTimeUtilsTest

* Remove flaky test for not caching unique addresses

* Add sonarlint fixes

* Transform zoned datetimes for covid csv pipeline

* Use offset datetime string format
  • Loading branch information
mpbrown authored Jul 11, 2023
1 parent 68d9b84 commit f09b3ff
Show file tree
Hide file tree
Showing 35 changed files with 1,026 additions and 361 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package gov.cdc.usds.simplereport.api.converter;

import java.time.ZonedDateTime;
import lombok.Builder;
import lombok.Getter;

@Builder
@Getter
public class ConvertToSpecimenProps {
private String specimenCode;
private String specimenName;
private String collectionCode;
private String collectionName;
private String id;
private String identifier;
private ZonedDateTime collectionDate;
private ZonedDateTime receivedTime;
}
Loading

0 comments on commit f09b3ff

Please sign in to comment.