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;
switch (partTypeName) {
case "Rad.Anatomic Location.Region Imaged":
switch (partTypeName.toLowerCase()) {
case "rad.anatomic location.region imaged":
loincCodePropName = "rad-anatomic-location-region-imaged";
break;
case "Rad.Anatomic Location.Imaging Focus":
case "rad.anatomic location.imaging focus":
loincCodePropName = "rad-anatomic-location-imaging-focus";
break;
case "Rad.Modality.Modality type":
case "rad.modality.modality type":
loincCodePropName = "rad-modality-modality-type";
break;
case "Rad.Modality.Modality subtype":
case "rad.modality.modality subtype":
loincCodePropName = "rad-modality-modality-subtype";
break;
case "Rad.Anatomic Location.Laterality":
case "rad.anatomic location.laterality":
loincCodePropName = "rad-anatomic-location-laterality";
break;
case "Rad.Anatomic Location.Laterality.Presence":
case "rad.anatomic location.laterality.presence":
loincCodePropName = "rad-anatomic-location-laterality-presence";
break;
case "Rad.Guidance for.Action":
case "rad.guidance for.action":
loincCodePropName = "rad-guidance-for-action";
break;
case "Rad.Guidance for.Approach":
case "rad.guidance for.approach":
loincCodePropName = "rad-guidance-for-approach";
break;
case "Rad.Guidance for.Object":
case "rad.guidance for.object":
loincCodePropName = "rad-guidance-for-object";
break;
case "Rad.Guidance for.Presence":
case "rad.guidance for.presence":
loincCodePropName = "rad-guidance-for-presence";
break;
case "Rad.Maneuver.Maneuver type":
case "rad.maneuver.maneuver type":
loincCodePropName = "rad-maneuver-maneuver-type";
break;
case "Rad.Pharmaceutical.Route":
case "rad.pharmaceutical.route":
loincCodePropName = "rad-pharmaceutical-route";
break;
case "Rad.Pharmaceutical.Substance Given":
case "rad.pharmaceutical.substance given":
loincCodePropName = "rad-pharmaceutical-substance-given";
break;
case "Rad.Reason for Exam":
case "rad.reason for exam":
loincCodePropName = "rad-reason-for-exam";
break;
case "Rad.Subject":
case "rad.subject":
loincCodePropName = "rad-subject";
break;
case "Rad.Timing":
case "rad.timing":
loincCodePropName = "rad-timing";
break;
case "Rad.View.Aggregation":
case "rad.view.aggregation":
loincCodePropName = "rad-view-view-aggregation";
break;
case "Rad.View.View type":
case "rad.view.view type":
loincCodePropName = "rad-view-view-type";
break;
default:

View File

@ -96,6 +96,10 @@
<![CDATA[<code>$subsumes</code>]]>
operation.
</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 version="3.8.0" date="2019-05-30" description="Hippo">
<action type="fix">