Evaluation of PartTypeName in LoincRsnaPlaybookHandler is not case insensitive.

This commit is contained in:
Diederik Muylwyk 2019-06-21 15:36:51 -04:00
parent c7798fee48
commit 266384b536
2 changed files with 23 additions and 19 deletions

View File

@ -106,59 +106,59 @@ public class LoincRsnaPlaybookHandler extends BaseLoincHandler implements IRecor
} }
String loincCodePropName; String loincCodePropName;
switch (partTypeName) { switch (partTypeName.toLowerCase()) {
case "Rad.Anatomic Location.Region Imaged": case "rad.anatomic location.region imaged":
loincCodePropName = "rad-anatomic-location-region-imaged"; loincCodePropName = "rad-anatomic-location-region-imaged";
break; break;
case "Rad.Anatomic Location.Imaging Focus": case "rad.anatomic location.imaging focus":
loincCodePropName = "rad-anatomic-location-imaging-focus"; loincCodePropName = "rad-anatomic-location-imaging-focus";
break; break;
case "Rad.Modality.Modality type": case "rad.modality.modality type":
loincCodePropName = "rad-modality-modality-type"; loincCodePropName = "rad-modality-modality-type";
break; break;
case "Rad.Modality.Modality subtype": case "rad.modality.modality subtype":
loincCodePropName = "rad-modality-modality-subtype"; loincCodePropName = "rad-modality-modality-subtype";
break; break;
case "Rad.Anatomic Location.Laterality": case "rad.anatomic location.laterality":
loincCodePropName = "rad-anatomic-location-laterality"; loincCodePropName = "rad-anatomic-location-laterality";
break; break;
case "Rad.Anatomic Location.Laterality.Presence": case "rad.anatomic location.laterality.presence":
loincCodePropName = "rad-anatomic-location-laterality-presence"; loincCodePropName = "rad-anatomic-location-laterality-presence";
break; break;
case "Rad.Guidance for.Action": case "rad.guidance for.action":
loincCodePropName = "rad-guidance-for-action"; loincCodePropName = "rad-guidance-for-action";
break; break;
case "Rad.Guidance for.Approach": case "rad.guidance for.approach":
loincCodePropName = "rad-guidance-for-approach"; loincCodePropName = "rad-guidance-for-approach";
break; break;
case "Rad.Guidance for.Object": case "rad.guidance for.object":
loincCodePropName = "rad-guidance-for-object"; loincCodePropName = "rad-guidance-for-object";
break; break;
case "Rad.Guidance for.Presence": case "rad.guidance for.presence":
loincCodePropName = "rad-guidance-for-presence"; loincCodePropName = "rad-guidance-for-presence";
break; break;
case "Rad.Maneuver.Maneuver type": case "rad.maneuver.maneuver type":
loincCodePropName = "rad-maneuver-maneuver-type"; loincCodePropName = "rad-maneuver-maneuver-type";
break; break;
case "Rad.Pharmaceutical.Route": case "rad.pharmaceutical.route":
loincCodePropName = "rad-pharmaceutical-route"; loincCodePropName = "rad-pharmaceutical-route";
break; break;
case "Rad.Pharmaceutical.Substance Given": case "rad.pharmaceutical.substance given":
loincCodePropName = "rad-pharmaceutical-substance-given"; loincCodePropName = "rad-pharmaceutical-substance-given";
break; break;
case "Rad.Reason for Exam": case "rad.reason for exam":
loincCodePropName = "rad-reason-for-exam"; loincCodePropName = "rad-reason-for-exam";
break; break;
case "Rad.Subject": case "rad.subject":
loincCodePropName = "rad-subject"; loincCodePropName = "rad-subject";
break; break;
case "Rad.Timing": case "rad.timing":
loincCodePropName = "rad-timing"; loincCodePropName = "rad-timing";
break; break;
case "Rad.View.Aggregation": case "rad.view.aggregation":
loincCodePropName = "rad-view-view-aggregation"; loincCodePropName = "rad-view-view-aggregation";
break; break;
case "Rad.View.View type": case "rad.view.view type":
loincCodePropName = "rad-view-view-type"; loincCodePropName = "rad-view-view-type";
break; break;
default: default:

View File

@ -96,6 +96,10 @@
<![CDATA[<code>$subsumes</code>]]> <![CDATA[<code>$subsumes</code>]]>
operation. operation.
</action> </action>
<action type="fix">
Uploading the LOINC/RSNA Radiology Playbook would occasionally fail when evaluating part type names
due to case sensitivity. This has been corrected.
</action>
</release> </release>
<release version="3.8.0" date="2019-05-30" description="Hippo"> <release version="3.8.0" date="2019-05-30" description="Hippo">
<action type="fix"> <action type="fix">