Skip to content

Commit

Permalink
fix(PT Metadata): Allow for PatientWeight to be missing from the meta…
Browse files Browse the repository at this point in the history
…data (OHIF#3621)
  • Loading branch information
jbocce authored and Sofien-Sellami committed Oct 5, 2023
1 parent 591f2ba commit 83fc584
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extensions/default/src/getPTImageIdInstanceMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default function getPTImageIdInstanceMetadata(
if (
dicomMetaData.SeriesDate === undefined ||
dicomMetaData.SeriesTime === undefined ||
dicomMetaData.PatientWeight === undefined ||
dicomMetaData.CorrectedImage === undefined ||
dicomMetaData.Units === undefined ||
!dicomMetaData.RadiopharmaceuticalInformationSequence ||
Expand All @@ -38,6 +37,10 @@ export default function getPTImageIdInstanceMetadata(
throw new Error('required metadata are missing');
}

if (dicomMetaData.PatientWeight === undefined) {
console.warn('PatientWeight missing from PT instance metadata');
}

const instanceMetadata: InstanceMetadata = {
CorrectedImage: dicomMetaData.CorrectedImage,
Units: dicomMetaData.Units,
Expand Down

0 comments on commit 83fc584

Please sign in to comment.