Skip to content

Commit

Permalink
delete instanceof
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg3lopez committed Oct 5, 2023
1 parent 4549f2a commit 2b81282
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.CodeableConcept;
import org.hl7.fhir.r4.model.Coding;
import org.hl7.fhir.r4.model.HumanName;
import org.hl7.fhir.r4.model.Identifier;
import org.hl7.fhir.r4.model.MessageHeader;
import org.hl7.fhir.r4.model.Meta;
Expand Down Expand Up @@ -130,8 +129,7 @@ public Order<?> addContactSectionToPatientResource(Order<?> order) {
var mothersMaidenNameExtension =
p.getExtensionByUrl(
"http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName");
if (mothersMaidenNameExtension != null
&& mothersMaidenNameExtension.getValue() instanceof HumanName) {
if (mothersMaidenNameExtension != null) {
myContact.setName(
p.castToHumanName(mothersMaidenNameExtension.getValue()));
}
Expand Down

0 comments on commit 2b81282

Please sign in to comment.