Closed shlomgad closed 1 year ago
every instance must add patientid,patientname,patientname
@kongzhonglei Thanks for the suggestion, I added the PatientName and PatientID keys to each instance's metadata but still the patient details are not displayed.
Here is the metadata json for a single CT slice:
{
"studies": [
{
"StudyInstanceUID": "1.2.826.0.1.3680043.9.7521.0.20230107141234896752.42566",
"StudyDescription": "CT-ABDOMEN",
"StudyDate": "20230107",
"StudyTime": "151053",
"PatientName": "Some^Test",
"PatientId": "999018815",
"AccessionNumber": "sb23010714123489",
"PatientAge": "063Y",
"PatientSex": "F",
"series": [
{
"SeriesDescription": "Spiral 2.5mm",
"SeriesInstanceUID": "1.2.826.0.1.3680043.9.7521.0.20230107141234896752.42566.2.25.2.25.2094101151415792423159151014075132971491264.1.2.840.113619.2.55.3.346831625.507.1209877797.132",
"SeriesNumber": 2,
"SeriesDate": "20230107",
"SeriesTime": "151053",
"Modality": "CT",
"SliceThickness": 2.5,
"instances": [
{
"metadata": {
"PatientName": "Some^Test",
"PatientId": "999018815",
"Columns": 512,
"Rows": 512,
"InstanceNumber": 1,
"SOPClassUID": "1.2.840.10008.5.1.4.1.1.2",
"AcquisitionNumber": 1,
"PhotometricInterpretation": "MONOCHROME2",
"BitsAllocated": 16,
"BitsStored": 16,
"PixelRepresentation": 1,
"SamplesPerPixel": 1,
"PixelSpacing": [
0.976562,
0.976562
],
"HighBit": 15,
"ImageOrientationPatient": [
1.0,
0.0,
0.0,
0.0,
1.0,
0.0
],
"ImagePositionPatient": [
-250.0,
-250.0,
-0.5
],
"FrameOfReferenceUID": "1.2.840.113619.2.55.3.346831625.507.1209877797.129.19530.5",
"ImageType": [
"ORIGINAL",
"PRIMARY",
"AXIAL"
],
"Modality": "CT",
"SOPInstanceUID": "1.2.840.113619.2.55.3.346831625.507.1209877797.133.1.1484769166391.1673106895909",
"SeriesInstanceUID": "1.2.826.0.1.3680043.9.7521.0.20230107141234896752.42566.2.25.2.25.2094101151415792423159151014075132971491264.1.2.840.113619.2.55.3.346831625.507.1209877797.132",
"WindowCenter": 40,
"WindowWidth": 400,
"StudyInstanceUID": "1.2.826.0.1.3680043.9.7521.0.20230107141234896752.42566"
},
"url": "dicomweb:https://localhost:3000/pacs/images/?i=1.2.826.0.1.3680043.9.7521.0.20230107141234896752.42566~1.2.840.113619.2.55.3.346831625.507.1209877797.133.1.1484769166391.1673106895909"
}
]
}
],
"NumInstances": 1,
"Modalities": "CT"
}
]
}
Isn't it more simple and logical to have the viewer get all the required metadata directly from the dicom instance headers ? All we actually need to provide is the URL for the dicom instance, all metadata is contained in the DICOM headers anyway whether we provide it or not. It's not clear to me why all these metadata fields (which repeat thousands of times in case of a large study) have to be computed in advance.
Hello, I am having the same issue. Anyone has the answer?
Can you still see this issue in the latest master?
@jbocce ditto
Both the patient name and MRN are now displayed.
@jbocce This is still not completely solved:
@shlomgad , the latest dev version does NOT display the problem. You can try it here. Which version are you experiencing the problem with?
With regards to not requiring a click to display the patient name and MRN, that is something we are considering changing.
FYI @sedghi, @dan-rukas and @james-hanks
Re: displaying Patient info: @shlomgad – I just added a note to a similar issue about displaying patient information. I'm currently looking at a few design options to show patient information at all times. I'll add a new comment to this post when we share on this soon.
This still doesn't seem to work @sedghi @jbocce
Also the .scripts/convertDicomToJson -> generates the patient's name as an array
"StudyTime": "165246.000",
"PatientName": [
{
"Alphabetic": "Jane Doe"
}
],
"PatientID": "0060",
"AccessionNumber": "",
"PatientSex": "F",
if I keep the PatientName as a string, then it shows up in the Dicom Tag browser , but is still not visible in the top right in OHIF v3.8
Patient name is visible in OHIF v3.7 - provided PatientName is a string
So,
When launching the viewer (V3) with a JSON data source which includes 'PatientID' and 'PatientName', these are not displayed anywhere in the viewer, and neither other demographic patient data such as age, gender.