Add patient age into the metadata provider
This commit is contained in:
1 parent
6d2c324c8f
commit
1a0cd03abd
1 file changed
+4
-1
@@ -71,7 +71,8 @@ export class MetadataProvider {
|
||||
name: studyMetadata.patientName,
|
||||
id: studyMetadata.patientId,
|
||||
birthDate: studyMetadata.patientBirthDate,
|
||||
sex: studyMetadata.patientSex
|
||||
sex: studyMetadata.patientSex,
|
||||
age: studyMetadata.patientAge
|
||||
};
|
||||
|
||||
// If there is sufficient information, populate
|
||||
@@ -193,6 +194,8 @@ export class MetadataProvider {
|
||||
return;
|
||||
}
|
||||
|
||||
imageMetadata.patient.age = imageMetadata.patient.age || this.getFromDataSet(image.data, 'string', 'x00101010');
|
||||
|
||||
imageMetadata.instance.rows = imageMetadata.instance.rows || image.rows;
|
||||
imageMetadata.instance.columns = imageMetadata.instance.columns || image.columns;
|
||||
|
||||
|
||||
Reference in new issue
Block a user