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({
|
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',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user