phenopacket_mapper.utils.parsing.parse_value_set module

phenopacket_mapper.utils.parsing.parse_value_set.parse_value_set(value_set_str: str, value_set_name: str = '', value_set_description: str = '', resources: Tuple[CodeSystem, ...] = None, compliance: Literal['strict', 'lenient'] = 'lenient') ValueSet[source]

Parses a value set from a string representation

Parameters:
  • value_set_str – String representation of the value set

  • value_set_name – Name of the value set

  • value_set_description – Description of the value set

  • resources – List of CodeSystems to use for parsing the value set

  • compliance – Compliance level for parsing the value set

Returns:

A ValueSet object as defined by the string representation