parse and display correct time, if value is set

This commit is contained in:
dannyrb authored and James A. Petts committed 2020-05-15 14:01:59 +02:00
1 parent 2ed1071956
commit 1cd643314f
2 files changed
+2 -1

No files matched your search

@@ -47,6 +47,7 @@ function processResults(qidoStudies) {
studies.push({ studies.push({
studyInstanceUid: getString(qidoStudy['0020000D']), studyInstanceUid: getString(qidoStudy['0020000D']),
studyDate: getString(qidoStudy['00080020']), studyDate: getString(qidoStudy['00080020']),
// HHmmss.SSS (24-hour, minutes, seconds, fractional seconds)
studyTime: getString(qidoStudy['00080030']), studyTime: getString(qidoStudy['00080030']),
accessionNumber: getString(qidoStudy['00080050']), accessionNumber: getString(qidoStudy['00080050']),
// referringPhysicianName: getString(qidoStudy['00080090']), // referringPhysicianName: getString(qidoStudy['00080090']),
@@ -183,7 +183,7 @@ function StudyListContainer({ history, data: studies }) {
<span className="mr-4"> <span className="mr-4">
{moment(studyDate).format('MMM-DD-YYYY')} {moment(studyDate).format('MMM-DD-YYYY')}
</span> </span>
<span>{moment(studyTime).format('hh:mm A')}</span> {studyTime && (<span>{moment(studyTime, 'HHmmss.SSS').format('hh:mm A')}</span>)}
</div> </div>
), ),
title: 'time', title: 'time',