code: def update_udi(self):
          
          self.chain.connection.log("Parsing inventory")
          # TODO: Maybe validate if udi is complete
          self.udi = parse_inventory(self.inventory_text)
docs: Update udi.