This commit is contained in:
Grahame Grieve 2025-01-14 15:10:31 +11:00
parent 769fe6cb31
commit c9082f37d3
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public class ObjectConverter {
ByteArrayInputStream bi = new ByteArrayInputStream(bs.toByteArray());
List<NamedElement> list = new JsonParser(context).parse(bi);
if (list.size() != 1) {
throw new FHIRException("Unable to convert because the source contains multieple resources");
throw new FHIRException("Unable to convert because the source contains multiple resources");
}
return list.get(0).getElement();
}

View File

@ -73,7 +73,7 @@ public class ObjectConverter {
ByteArrayInputStream bi = new ByteArrayInputStream(bs.toByteArray());
List<ValidatedFragment> list = new JsonParser(context).parse(bi);
if (list.size() != 1) {
throw new FHIRException("Unable to convert because the source contains multieple resources");
throw new FHIRException("Unable to convert because the source contains multiple resources");
}
return list.get(0).getElement();
}