(self, repeat_record, payload)
return response
Generates FHIR resources from ``payload``, and sends them as a
        FHIR transaction bundle. If there are patients that need to be
        registered, that is done first.

        Returns an HTTP response-like object. If the payload has nothing
        to send, returns True.
Generates FHIR resources from ``payload``, and sends them as a
        FHIR transaction bundle. If there are patients that need to be
        registered, that is done first.
Generates FHIR resources from payload and sends them as a FHIR transaction bundle . If there are patients that need to be registered that is done first .
def send_request(self, repeat_record, payload):
        """
        Generates FHIR resources from ``payload``, and sends them as a
        FHIR transaction bundle. If there are patients that need to be
        registered, that is done first.

        Returns an HTTP response-like object. If the payload has nothing
        to send, returns True.
        """
        requests = self.connection_settings.get_requests(repeat_record.payload_id)
        infos, resource_types = self.get_infos_resource_types(
            payload,
            self.fhir_version,
        )
        try:
            resources = get_info_resource_list(infos, resource_types)
            resources = register_patients(
                requests,
                resources,
                self.patient_registration_enabled,
                self.patient_search_enabled,
                self._id,
            )
            response = send_resources(
                requests,
                resources,
                self.fhir_version,
                self._id,
            )
        except Exception as err:
            requests.notify_exception(str(err))
            return RepeaterResponse(400, 'Bad Request', pformat_json(str(err)))
        return response
def send_request ( self , repeat_record , payload ) : requests = self . connection_settings . get_requests ( repeat_record . payload_id ) infos , resource_types = self . get_infos_resource_types ( payload , self . fhir_version , ) try : resources = get_info_resource_list ( infos , resource_types ) resources = register_patients ( requests , resources , self . patient_registration_enabled , self . patient_search_enabled , self . _id , ) response = send_resources ( requests , resources , self . fhir_version , self . _id , ) except Exception as err : requests . notify_exception ( str ( err ) ) return RepeaterResponse ( 400 , 'Bad Request' , pformat_json ( str ( err ) ) ) return response