patient age

This commit is contained in:
Dr Masroor Ehsan 2025-01-19 10:10:25 +06:00
parent 8e45f17f10
commit bef01c0408
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,7 @@ enum DicomTags: string
case BodyPartExamined = 'BodyPartExamined'; case BodyPartExamined = 'BodyPartExamined';
case Modality = 'Modality'; case Modality = 'Modality';
case SoftwareVersions = 'SoftwareVersions'; case SoftwareVersions = 'SoftwareVersions';
case PatientAge = 'PatientAge';
case ProtocolName = 'ProtocolName'; case ProtocolName = 'ProtocolName';
case StationName = 'StationName'; case StationName = 'StationName';
case InstitutionAddress = 'InstitutionAddress'; case InstitutionAddress = 'InstitutionAddress';

View File

@ -122,6 +122,7 @@ public function transformData(mixed $orthanc_src): array
'patient_id' => data_get($orthanc_src, 'PatientMainDicomTags.PatientID'), 'patient_id' => data_get($orthanc_src, 'PatientMainDicomTags.PatientID'),
'patient_name' => $patient_name, 'patient_name' => $patient_name,
'patient_sex' => data_get($orthanc_src, 'PatientMainDicomTags.PatientSex'), 'patient_sex' => data_get($orthanc_src, 'PatientMainDicomTags.PatientSex'),
'patient_age' => data_get($orthanc_src, 'RequestedTags.PatientAge'),
'accession_number' => data_get($orthanc_src, 'MainDicomTags.AccessionNumber'), 'accession_number' => data_get($orthanc_src, 'MainDicomTags.AccessionNumber'),
'referring_physician_name' => data_get($orthanc_src, 'MainDicomTags.ReferringPhysicianName'), 'referring_physician_name' => data_get($orthanc_src, 'MainDicomTags.ReferringPhysicianName'),
@ -228,6 +229,7 @@ public function transformData(mixed $orthanc_src): array
'patient_id' => $study['patient_id'], 'patient_id' => $study['patient_id'],
'patient_name' => $study['patient_name'], 'patient_name' => $study['patient_name'],
'patient_birthdate' => $study['patient_birthdate'], 'patient_birthdate' => $study['patient_birthdate'],
'patient_age' => $study['patient_age'],
'patient_sex' => $study['patient_sex'], 'patient_sex' => $study['patient_sex'],
'accession_number' => $study['accession_number'], 'accession_number' => $study['accession_number'],
'referring_physician_name' => $study['referring_physician_name'], 'referring_physician_name' => $study['referring_physician_name'],
@ -237,8 +239,7 @@ public function transformData(mixed $orthanc_src): array
'study_description' => $study['study_description'], 'study_description' => $study['study_description'],
]); ]);
$details = compact('properties', 'series', 'dicom_properties'); $details = array_purge(compact('properties', 'series', 'dicom_properties'));
$details = array_purge($details);
$study = array_purge($study); $study = array_purge($study);
return compact('study', 'details'); return compact('study', 'details');