docs: def build(self, builder):
          """Build XML by appending to builder"""
          params = {}
  
          if self.edit_point is not None:
              params["EditPoint"] = self.edit_point
  
          if self.used_imputation_method is not None:
              params['UsedImputationMethod'] = bool_to_yes_no(self.used_imputation_method)
  
          if self.audit_id is not None:
              params['ID'] = str(self.audit_id)
  
          if self.include_file_oid is not None:
              params['mdsol:IncludeFileOID'] = bool_to_yes_no(self.include_file_oid)
  
          builder.start("AuditRecord", params)
          if self.user_ref is None:
              raise ValueError("User Reference not set.")
          self.user_ref.build(builder)
  
          if self.location_ref is None:
              raise ValueError("Location Reference not set.")
          self.location_ref.build(builder)
  
          if self.date_time_stamp is None:
              raise ValueError("DateTime not set.")
  
          self.date_time_stamp.build(builder)
  
          # Optional
          if self.source_id:
              self.source_id.build(builder)
          # Optional
          if self.reason_for_change is not None:
              self.reason_for_change.build(builder)
  
          builder.end("AuditRecord")