text: const {
  	GraphQLString,
  	GraphQLList,
  	GraphQLNonNull,
  	GraphQLUnionType,
  	GraphQLObjectType,
  } = require('graphql');
  const DateScalar = require('../scalars/date.scalar.js');
  
  /**
   * @name exports
   * @summary PaymentReconciliationdetail Schema
   */
  module.exports = new GraphQLObjectType({
  	name: 'PaymentReconciliationdetail',
  	description: '',
  	fields: () => ({
  		_id: {
  			type: require('./element.schema.js'),
  			description:
  				'unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.',
  		},
  		id: {
  			type: GraphQLString,
  			description:
  				'unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.',
  		},
  		extension: {
  			type: new GraphQLList(require('./extension.schema.js')),
  			description:
  				'May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.',
  		},
  		modifierExtension: {
  			type: new GraphQLList(require('./extension.schema.js')),
  			description:
  				'May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.',
  		},
  		// valueSetReference: http://hl7.org/fhir/ValueSet/payment-type
  		type: {
  			type: new GraphQLNonNull(require('./codeableconcept.schema.js')),
  			description:
  				'Code to indicate the nature of the payment, adjustment, funds advance, etc.',
  		},
  		request: {
  			type: new GraphQLUnionType({
  				name: 'PaymentReconciliationdetailrequest_request_Union',
  				description: 'The claim or financial resource.',
  				types: () => [require('./resource.schema.js')],
  				resolveType(data) {
  					if (data && data.resourceType === 'Resource') {
  						return require('./resource.schema.js');
  					}
  				},
  			}),
  			description: 'The claim or financial resource.',
  		},
  		response: {
  			type: new GraphQLUnionType({
  				name: 'PaymentReconciliationdetailresponse_response_Union',
  				description: 'The claim response resource.',
  				types: () => [require('./resource.schema.js')],
  				resolveType(data) {
  					if (data && data.resourceType === 'Resource') {
  						return require('./resource.schema.js');
  					}
  				},
  			}),
  			description: 'The claim response resource.',
  		},
  		submitter: {
  			type: new GraphQLUnionType({
  				name: 'PaymentReconciliationdetailsubmitter_submitter_Union',
  				description:
  					'The Organization which submitted the claim or financial transaction.',
  				types: () => [require('./organization.schema.js')],
  				resolveType(data) {
  					if (data && data.resourceType === 'Organization') {
  						return require('./organization.schema.js');
  					}
  				},
  			}),
  			description:
  				'The Organization which submitted the claim or financial transaction.',
  		},
  		payee: {
  			type: new GraphQLUnionType({
  				name: 'PaymentReconciliationdetailpayee_payee_Union',
  				description: 'The organization which is receiving the payment.',
  				types: () => [require('./organization.schema.js')],
  				resolveType(data) {
  					if (data && data.resourceType === 'Organization') {
  						return require('./organization.schema.js');
  					}
  				},
  			}),
  			description: 'The organization which is receiving the payment.',
  		},
  		_date: {
  			type: require('./element.schema.js'),
  			description: 'The date of the invoice or financial resource.',
  		},
  		date: {
  			type: DateScalar,
  			description: 'The date of the invoice or financial resource.',
  		},
  		amount: {
  			type: require('./money.schema.js'),
  			description: 'Amount paid for this detail.',
  		},
  	}),
  });
  