- changed component to Interface: Data visualisation
- changed milestone to 0.8.0
Openskin: patient position incorrect if patient_orientation_modifier is missing in dataset
If patient_orientation_modifier is missing in the dataset the patient position (patPos) will end on a 'N', eg: 'HFN' or 'FFN'. This is due to the fact that the first character of none is taken instead of the first character of 'supine' or 'prone'
Suggestion for fix: in make_skin_map in make_skin_map.py change
pat_pos_source = u'assumed'
if study.projectionxrayradiationdose_set.get().irradeventxraydata_set.all()[0].patient_table_relationship_cid:
patPos = str(study.projectionxrayradiationdose_set.get().irradeventxraydata_set.all(
)[0].patient_table_relationship_cid)[0] + "f" + str(study.projectionxrayradiationdose_set.get(
).irradeventxraydata_set.all()[0].patient_orientation_modifier_cid)[0]
patPos = patPos.upper()
pat_pos_source = u'extracted'
else:
patPos = u'HFS'
to
pat_pos_source = u'assumed'
if study.projectionxrayradiationdose_set.get().irradeventxraydata_set.all()[0].patient_table_relationship_cid:
patPos = str(study.projectionxrayradiationdose_set.get().irradeventxraydata_set.all(
)[0].patient_table_relationship_cid)[0] + "f"
if study.projectionxrayradiationdose_set.get().irradeventxraydata_set.all(
)[0].patient_orientation_modifier_cid:
patPos = patPos + str(study.projectionxrayradiationdose_set.get(
).irradeventxraydata_set.all()[0].patient_orientation_modifier_cid)[0]
pat_pos_source = u'extracted'
else:
patPos = patPos + 'S'
pat_pos_source = u'partly extracted'
patPos = patPos.upper()
else:
patPos = u'HFS'
Comments (6)
-
-
reporter Refs
#557Changed make_skin_map as indicated in issue#557Added testfile missing Patient Orientation Modifier
→ <<cset 8a3ed3e3a4f7>>
-
Proposed alternative solution for this - I think it is easier for the reader to see what is happening, and provides more clues to the user too. Refs
#557→ <<cset bfe70ae3cc90>>
-
Added ref
#557to changes, deleted commented out code→ <<cset e75c4cd22980>>
-
- changed status to resolved
Merged in Issue557OpenskinMissingPatientOrientationModifier (pull request #126)
Fixes
#557Changed make_skin_map as indicated in issue#557Thanks @LuukO
→ <<cset 02e5e777be7a>>
-
-
assigned issue to
-
assigned issue to
- Log in to comment