def run(self): export_data = get_export_data( self.openmrs_config.case_config.person_properties, PERSON_PROPERTIES, self.info, ) if export_data: self.requests.post( '/ws/rest/v1/person/{person_uuid}'.format( person_uuid=self.person['uuid']), json=export_data, raise_for_status=True, )
def run(self): export_data = get_export_data( self.openmrs_config.case_config.person_preferred_address, ADDRESS_PROPERTIES, self.info, ) if export_data: response = self.requests.post( '/ws/rest/v1/person/{person_uuid}/address/'.format( person_uuid=self.person_uuid), json=export_data, raise_for_status=True, ) self.address_uuid = response.json()['uuid']
def run(self): export_data = get_export_data( self.openmrs_config.case_config.person_preferred_name, NAME_PROPERTIES, self.info, ) if export_data: self.requests.post( '/ws/rest/v1/person/{person_uuid}/name/{name_uuid}'.format( person_uuid=self.person_uuid, name_uuid=self.name_uuid, ), json=export_data, raise_for_status=True, )