def _get_record_id(self):
        if self.record_id:
            return self.record_id

        (response, body, tree) = self._build_and_send_request("GetPersonInfo", "<info/>", use_record_id=False)

        record_id_elt = tree.find('{urn:com.microsoft.wc.methods.response.GetPersonInfo}info/person-info/selected-record-id')
        if record_id_elt is None:
            logger.error("No record ID in response.  response=%s" % body)
            raise HealthVaultException("selected record ID not found in HV response (%s)" % body)

        return record_id_elt.text
Calls GetPersonInfo, returns selected_record_id
dataset/ETHPy150Open orcasgit/python-healthvault/healthvaultlib/healthvault.py/HealthVaultConn._get_record_id