patient age
This commit is contained in:
parent
8e45f17f10
commit
bef01c0408
@ -12,6 +12,7 @@ enum DicomTags: string
|
||||
case BodyPartExamined = 'BodyPartExamined';
|
||||
case Modality = 'Modality';
|
||||
case SoftwareVersions = 'SoftwareVersions';
|
||||
case PatientAge = 'PatientAge';
|
||||
case ProtocolName = 'ProtocolName';
|
||||
case StationName = 'StationName';
|
||||
case InstitutionAddress = 'InstitutionAddress';
|
||||
|
@ -122,6 +122,7 @@ public function transformData(mixed $orthanc_src): array
|
||||
'patient_id' => data_get($orthanc_src, 'PatientMainDicomTags.PatientID'),
|
||||
'patient_name' => $patient_name,
|
||||
'patient_sex' => data_get($orthanc_src, 'PatientMainDicomTags.PatientSex'),
|
||||
'patient_age' => data_get($orthanc_src, 'RequestedTags.PatientAge'),
|
||||
|
||||
'accession_number' => data_get($orthanc_src, 'MainDicomTags.AccessionNumber'),
|
||||
'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_name' => $study['patient_name'],
|
||||
'patient_birthdate' => $study['patient_birthdate'],
|
||||
'patient_age' => $study['patient_age'],
|
||||
'patient_sex' => $study['patient_sex'],
|
||||
'accession_number' => $study['accession_number'],
|
||||
'referring_physician_name' => $study['referring_physician_name'],
|
||||
@ -237,8 +239,7 @@ public function transformData(mixed $orthanc_src): array
|
||||
'study_description' => $study['study_description'],
|
||||
]);
|
||||
|
||||
$details = compact('properties', 'series', 'dicom_properties');
|
||||
$details = array_purge($details);
|
||||
$details = array_purge(compact('properties', 'series', 'dicom_properties'));
|
||||
$study = array_purge($study);
|
||||
|
||||
return compact('study', 'details');
|
||||
|
Loading…
Reference in New Issue
Block a user