fix typos in fhirpath error messages

This commit is contained in:
Grahame Grieve 2024-01-10 06:15:26 +11:00
parent 4fc0a78993
commit 4581849e72

View File

@ -1720,7 +1720,7 @@ public class FHIRPathEngine {
return new ArrayList<Base>(Arrays.asList(context.focusResource));
} else if (s.equals("%rootResource")) {
if (context.rootResource == null) {
throw makeException(expr, I18nConstants.FHIRPATH_CANNOT_USE, "%rootResource", "no focus resource");
throw makeException(expr, I18nConstants.FHIRPATH_CANNOT_USE, "%rootResource", "no focus rootResource");
}
return new ArrayList<Base>(Arrays.asList(context.rootResource));
} else if (s.equals("%context")) {
@ -3092,7 +3092,7 @@ public class FHIRPathEngine {
return new TypeDetails(CollectionStatus.SINGLETON, context.resource);
} else if (s.equals("%rootResource")) {
if (context.resource == null) {
throw makeException(expr, I18nConstants.FHIRPATH_CANNOT_USE, "%rootResource", "no focus resource");
throw makeException(expr, I18nConstants.FHIRPATH_CANNOT_USE, "%rootResource", "no focus rootResource");
}
return new TypeDetails(CollectionStatus.SINGLETON, context.resource);
} else if (s.equals("%context")) {