#1005 - fix graphql processing issue

This commit is contained in:
Grahame Grieve 2022-11-30 08:32:25 +11:00
parent adfd0d26e6
commit aaa53cdfb0
2 changed files with 2 additions and 2 deletions

View File

@ -587,7 +587,7 @@ public abstract class CanonicalResource extends DomainResource {
// Manual code (from Configuration.txt):
@Override
public String toString() {
return fhirType()+"["+getUrl()+"]";
return fhirType()+"["+getUrl()+(hasVersion() ? "|"+getVersion(): "")+"]";
}
public String present() {

View File

@ -697,7 +697,7 @@ public class GraphQLEngine implements IGraphQLEngine {
Argument arg = new Argument();
params.add(arg);
arg.setName(getSingleValue(parg));
arg.addValue(new StringValue(source.fhirType()+"/"+source.getId()));
arg.addValue(new StringValue(source.fhirType()+"/"+source.getIdPart()));
Bundle bnd = (Bundle) services.search(appInfo, field.getName().substring(0, field.getName().length()-10), params);
Base bndWrapper = new SearchWrapper(field.getName(), bnd);
arg = target.addField(field.getAlias()+suffix, listStatus(field, false));