text: // This code is generated by a code generator.  Do not edit.
  /*eslint no-unused-vars: "off"*/
  const {resolveType, findResourcesByReference, findResourceByReference, getResources} = require('../../common');
  
  // noinspection JSUnusedLocalSymbols
  module.exports = {
      Query: {
          // noinspection JSUnusedLocalSymbols
          // eslint-disable-next-line no-unused-vars
          encounter: async (parent, args, context, info) => {
              return await getResources(
                  parent,
                  args,
                  context,
                  info,
                  'Encounter'
              );
          }
      },
      EncounterSubject: {
          __resolveType(obj, context, info) {
              return resolveType(obj, context, info);
          },
      },
      EncounterReasonReference: {
          __resolveType(obj, context, info) {
              return resolveType(obj, context, info);
          },
      },
      Encounter: {
          // noinspection JSUnusedLocalSymbols
          // eslint-disable-next-line no-unused-vars
          subject: async (parent, args, context, info) => {
              return await findResourceByReference(
                  parent,
                  args,
                  context,
                  info,
                  parent.subject);
          },
          // noinspection JSUnusedLocalSymbols
          // eslint-disable-next-line no-unused-vars
          episodeOfCare: async (parent, args, context, info) => {
              return await findResourcesByReference(
                  parent,
                  args,
                  context,
                  info,
                  parent.episodeOfCare);
          },
          // noinspection JSUnusedLocalSymbols
          // eslint-disable-next-line no-unused-vars
          basedOn: async (parent, args, context, info) => {
              return await findResourcesByReference(
                  parent,
                  args,
                  context,
                  info,
                  parent.basedOn);
          },
          // noinspection JSUnusedLocalSymbols
          // eslint-disable-next-line no-unused-vars
          appointment: async (parent, args, context, info) => {
              return await findResourcesByReference(
                  parent,
                  args,
                  context,
                  info,
                  parent.appointment);
          },
          // noinspection JSUnusedLocalSymbols
          // eslint-disable-next-line no-unused-vars
          reasonReference: async (parent, args, context, info) => {
              return await findResourcesByReference(
                  parent,
                  args,
                  context,
                  info,
                  parent.reasonReference);
          },
          // noinspection JSUnusedLocalSymbols
          // eslint-disable-next-line no-unused-vars
          account: async (parent, args, context, info) => {
              return await findResourcesByReference(
                  parent,
                  args,
                  context,
                  info,
                  parent.account);
          },
          // noinspection JSUnusedLocalSymbols
          // eslint-disable-next-line no-unused-vars
          serviceProvider: async (parent, args, context, info) => {
              return await findResourceByReference(
                  parent,
                  args,
                  context,
                  info,
                  parent.serviceProvider);
          },
          // noinspection JSUnusedLocalSymbols
          // eslint-disable-next-line no-unused-vars
          partOf: async (parent, args, context, info) => {
              return await findResourceByReference(
                  parent,
                  args,
                  context,
                  info,
                  parent.partOf);
          },
      }
  };
  
  