fhirpack.transformation package
Contents
fhirpack.transformation package#
Submodules#
fhirpack.transformation.base module#
- class fhirpack.transformation.base.BaseTransformerMixin[source]#
Bases:
object
- __dict__ = mappingproxy({'__module__': 'fhirpack.transformation.base', 'validate': <function BaseTransformerMixin.validate>, 'gatherSimplePaths': <function BaseTransformerMixin.gatherSimplePaths>, '_BaseTransformerMixin__gatherSimplePath': <function BaseTransformerMixin.__gatherSimplePath>, 'gatherReferences': <function BaseTransformerMixin.gatherReferences>, 'gatherText': <function BaseTransformerMixin.gatherText>, 'gatherKeys': <function BaseTransformerMixin.gatherKeys>, 'gatherValuesForKeys': <function BaseTransformerMixin.gatherValuesForKeys>, 'gatherDates': <function BaseTransformerMixin.gatherDates>, '__dict__': <attribute '__dict__' of 'BaseTransformerMixin' objects>, '__weakref__': <attribute '__weakref__' of 'BaseTransformerMixin' objects>, '__doc__': None, '__annotations__': {}})#
- __doc__ = None#
- __module__ = 'fhirpack.transformation.base'#
- __weakref__#
list of weak references to the object (if defined)
- gatherDates(recursive: bool = False, input: Optional[Union[list[str], list[fhirpy.lib.SyncFHIRReference], list[fhirpy.lib.SyncFHIRResource]]] = None, params: Optional[dict] = None)[source]#
- gatherKeys(params: Optional[dict] = None, input: Optional[Union[list[str], list[fhirpy.lib.SyncFHIRReference], list[fhirpy.lib.SyncFHIRResource]]] = None)[source]#
- gatherReferences(references: Optional[Union[list[str], list[fhirpy.lib.SyncFHIRReference], list[fhirpy.lib.SyncFHIRResource]]] = None, recursive: bool = False)[source]#
- gatherSimplePaths(paths: list[str], columns: Optional[list[str]] = None, input: Optional[Union[list[str], list[fhirpy.lib.SyncFHIRReference], list[fhirpy.lib.SyncFHIRResource]]] = None, params: dict = {})[source]#
Returns the resource elements specified by the path.
- Parameters
paths – Resource path to the desired elemnts.
input – Contains the resources to operate on. Defaults to None.
params – Additional parameters. Defaults to {}.
- Returns
FHIRPACK Frame storing the resource elemnts in the respective rows.
- Return type
Frame
- gatherText(input: Optional[Union[list[str], list[fhirpy.lib.SyncFHIRReference], list[fhirpy.lib.SyncFHIRResource]]] = None, typeLookUps: Optional[list] = None, lookUps: Optional[list] = None, mapped: bool = False, includeMeta: bool = False, includeEmpty: bool = False, defaultLookUps: bool = True, includeDuplicates: bool = False)[source]#
extract Text from resources by lookups.
- Parameters
input – Data to extract text from.
resourceType – The type is used the include type specific lookups.
lookUps (list, optional) – List of lookups to include in the text extraction.
mapped (bool, optional) – Store text labels as dictionary keys.
includeMeta (bool, optional) – Include the resource meta data.
includeEmpty (bool, optional) – Include empty Text for labels.
defaultLookUps (bool, optional) – Include the list of default Lookups.
includeDuplicates (bool, optional) – Include duplicated Test string.
fhirpack.transformation.base_test module#
fhirpack.transformation.condition module#
fhirpack.transformation.observation module#
fhirpack.transformation.patient module#
Module contents#
- class fhirpack.transformation.TransformerMixin[source]#
Bases:
fhirpack.transformation.observation.TransformerObservationMixin
,fhirpack.transformation.patient.TransformerPatientMixin
,fhirpack.transformation.condition.TransformerConditionMixin
- __doc__ = None#
- __module__ = 'fhirpack.transformation'#