phenopacket_mapper.mapping.mapper module

class phenopacket_mapper.mapping.mapper.PhenopacketMapper(data_model: DataModel, **kwargs)[source]

Bases: object

check_data_fields_in_model(element)[source]
map(data: DataSet) List[Phenopacket][source]

Map data from the DataModel to Phenopackets

The mapping is based on the definition of the DataModel and the parameters passed to the constructor.

If successful, a list of Phenopackets will be returned

Parameters:

data – List of DataModelInstances created from the data using the DataModel

Returns:

List of Phenopackets