parameters: (extension_list: List[message.Message],
                                   repeated_cls: Type[_T])
return_statement: return result
docstring: Extracts matching extensions from extension_list and serializes to protos.
  
    Args:
      extension_list: The list of FHIR extensions to examine.
      repeated_cls: The type of message to serialize to.
  
    Returns:
      A list of protos of instance repeated_cls representing the extensions within
      extension_list.
docstring_summary: Extracts matching extensions from extension_list and serializes to protos.
docstring_tokens: Extracts matching extensions from extension_list and serializes to protos .
function: def get_repeated_from_extensions(extension_list: List[message.Message],
                                   repeated_cls: Type[_T]) -> List[_T]:
    """Extracts matching extensions from extension_list and serializes to protos.
  
    Args:
      extension_list: The list of FHIR extensions to examine.
      repeated_cls: The type of message to serialize to.
  
    Returns:
      A list of protos of instance repeated_cls representing the extensions within
      extension_list.
    """
    result = []
    if not extension_list:
      return result  # Early-exit
  
    url = annotation_utils.get_structure_definition_url(repeated_cls.DESCRIPTOR)
    for extension in extension_list:
      if cast(Any, extension).url.value == url:
        msg = extension_to_message(extension, repeated_cls)
        result.append(msg)
  
    return result
function_tokens: def get_repeated_from_extensions ( extension_list : List [ message . Message ] , repeated_cls : Type [ _T ] ) -> List [ _T ] : result = [ ] if not extension_list : return result # Early-exit url = annotation_utils . get_structure_definition_url ( repeated_cls . DESCRIPTOR ) for extension in extension_list : if cast ( Any , extension ) . url . value == url : msg = extension_to_message ( extension , repeated_cls ) result . append ( msg ) return result