From 991dcb656c0d6069cf9e5ee87025188b1cb7330a Mon Sep 17 00:00:00 2001 From: Jens Kristian Villadsen Date: Wed, 10 Apr 2019 22:50:21 +0200 Subject: [PATCH] Update InstanceValidator.java Corrected spelling --- .../org/hl7/fhir/r4/validation/InstanceValidator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r4/validation/InstanceValidator.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r4/validation/InstanceValidator.java index 532942f94..f5046303d 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r4/validation/InstanceValidator.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r4/validation/InstanceValidator.java @@ -2564,14 +2564,14 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat expression.append(" and " + discriminator + " is " + type); } else if (s.getType() == DiscriminatorType.PROFILE) { if (criteriaElement.getType().size() == 0) - throw new DefinitionException("Profile based discriminators nust have a type ("+criteriaElement.getId()+")"); + throw new DefinitionException("Profile based discriminators must have a type ("+criteriaElement.getId()+")"); if (criteriaElement.getType().size() != 1) - throw new DefinitionException("Profile based discriminators nust have only one type ("+criteriaElement.getId()+")"); + throw new DefinitionException("Profile based discriminators must have only one type ("+criteriaElement.getId()+")"); List list = discriminator.endsWith(".resolve()") || discriminator.equals("resolve()") ? criteriaElement.getType().get(0).getTargetProfile() : criteriaElement.getType().get(0).getProfile(); if (list.size() == 0) - throw new DefinitionException("Profile based discriminators nust have a type with a profile ("+criteriaElement.getId()+")"); + throw new DefinitionException("Profile based discriminators must have a type with a profile ("+criteriaElement.getId()+")"); if (list.size() > 1) - throw new DefinitionException("Profile based discriminators nust have a type with only one profile ("+criteriaElement.getId()+")"); + throw new DefinitionException("Profile based discriminators must have a type with only one profile ("+criteriaElement.getId()+")"); expression.append(" and "+discriminator+".conformsTo('"+list.get(0).getValue()+"')"); } else if (s.getType() == DiscriminatorType.EXISTS) { if (criteriaElement.hasMin() && criteriaElement.getMin()>=1)