parse and display correct time, if value is set
This commit is contained in:
parent
2ed1071956
commit
1cd643314f
@ -47,6 +47,7 @@ function processResults(qidoStudies) {
|
||||
studies.push({
|
||||
studyInstanceUid: getString(qidoStudy['0020000D']),
|
||||
studyDate: getString(qidoStudy['00080020']),
|
||||
// HHmmss.SSS (24-hour, minutes, seconds, fractional seconds)
|
||||
studyTime: getString(qidoStudy['00080030']),
|
||||
accessionNumber: getString(qidoStudy['00080050']),
|
||||
// referringPhysicianName: getString(qidoStudy['00080090']),
|
||||
|
||||
@ -183,7 +183,7 @@ function StudyListContainer({ history, data: studies }) {
|
||||
<span className="mr-4">
|
||||
{moment(studyDate).format('MMM-DD-YYYY')}
|
||||
</span>
|
||||
<span>{moment(studyTime).format('hh:mm A')}</span>
|
||||
{studyTime && (<span>{moment(studyTime, 'HHmmss.SSS').format('hh:mm A')}</span>)}
|
||||
</div>
|
||||
),
|
||||
title: 'time',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user