(self)
Reset person properties back to their original values, which
        are taken from the patient details that OpenMRS returned at the
        start of the workflow.
Reset person properties back to their original values, which
        are taken from the patient details that OpenMRS returned at the
        start of the workflow.
Reset person properties back to their original values which are taken from the patient details that OpenMRS returned at the start of the workflow .
def rollback(self):
        """
        Reset person properties back to their original values, which
        are taken from the patient details that OpenMRS returned at the
        start of the workflow.
        """
        properties = {
            property_: self.person.get(property_)
            for property_ in self.openmrs_config.case_config.person_properties.keys()
            if property_ in PERSON_PROPERTIES
        }
        if properties:
            self.requests.post(
                '/ws/rest/v1/person/{person_uuid}'.format(person_uuid=self.person['uuid']),
                json=properties,
                raise_for_status=True,
            )
def rollback ( self ) : properties = { property_ : self . person . get ( property_ ) for property_ in self . openmrs_config . case_config . person_properties . keys ( ) if property_ in PERSON_PROPERTIES } if properties : self . requests . post ( '/ws/rest/v1/person/{person_uuid}' . format ( person_uuid = self . person [ 'uuid' ] ) , json = properties , raise_for_status = True , )