-
Notifications
You must be signed in to change notification settings - Fork 123
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
OH2-418 | Orthanc Integration #1466
base: develop
Are you sure you want to change the base?
Conversation
…way for ORTHANC resources consuming
OH2-419 - Add endpoints to map ORTHANC APIs | OH2-420 - Add Gateway for ORTHANC resources consuming
…-core into integrations/orthanc
…openhospital-core into integrations/orthanc
chore:migration scripts for radiology permissions
chore:refactor date parser methods
*/ | ||
public LocalDate creationDateToLocalDate() { | ||
if (creationDate == null || creationDate.isEmpty()) { | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return null; | |
return null; |
*/ | ||
public LocalTime creationTimeToLocalTime() { | ||
if (creationTime == null || creationTime.isEmpty()) { | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return null; | |
return null; |
*/ | ||
public LocalDate birthDateToLocalDate() { | ||
if (birthDate == null || birthDate.isEmpty()) { | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return null; | |
return null; |
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Project standards use braces even for single statement bodies.
*/ | ||
public LocalTime timeToLocalTime() { | ||
if (time == null || time.isEmpty()) { | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return null; | |
return null; |
*/ | ||
public LocalDate dateToLocalDate() { | ||
if (date == null || date.isEmpty()) { | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return null; | |
return null; |
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, please use braces
public boolean testConnection() throws OHServiceException, OHRestClientException { | ||
String time = feignClientFactory.createClient(true).testConnection(); | ||
|
||
return time != null && !time.isEmpty() ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return time != null && !time.isEmpty() ; | |
return time != null && !time.isEmpty(); |
See OH2-418