fhiry package

Submodules

fhiry.base_fhiry module

Copyright (c) 2020 Bell Eapen

This software is released under the MIT License. https://opensource.org/licenses/MIT

class fhiry.base_fhiry.BaseFhiry(config_json=None)[source]

Bases: object

add_patient_id()[source]

Create a patientId column with the resource.id if a Patient resource or with the resource.subject.reference if other resource type

check_subject_reference(row)[source]
convert_object_to_list()[source]

Convert object to a list of codes

property delete_col_raw_coding
delete_unwanted_cols()[source]
property df
get_info()[source]
process_bundle_dict(bundle_dict)[source]
process_df()[source]
process_list(myList)[source]

Extracts the codes from a list of objects

Parameters

myList (list) – A list of objects

Returns

A list of codes

Return type

list

read_bundle_from_bundle_dict(bundle_dict)[source]
rename_cols()[source]

fhiry.bqsearch module

Copyright (c) 2023 Bell Eapen

This software is released under the MIT License. https://opensource.org/licenses/MIT

class fhiry.bqsearch.BQsearch(config_json=None)[source]

Bases: fhiry.base_fhiry.BaseFhiry

search(query=None)[source]

fhiry.fhirndjson module

Copyright (c) 2020 Bell Eapen

This software is released under the MIT License. https://opensource.org/licenses/MIT

class fhiry.fhirndjson.Fhirndjson(config_json=None)[source]

Bases: fhiry.base_fhiry.BaseFhiry

property df
property folder
process_file(file)[source]
process_source()[source]

Read a single JSON resource or a directory full of JSON resources ONLY COMMON FIELDS IN ALL resources will be mapped

read_resource_from_line(line)[source]

fhiry.fhirsearch module

class fhiry.fhirsearch.Fhirsearch(fhir_base_url, config_json=None)[source]

Bases: fhiry.base_fhiry.BaseFhiry

search(resource_type='Patient', search_parameters={})[source]
fhiry.fhirsearch.get_next_page_url(bundle_dict)[source]

fhiry.fhiry module

Copyright (c) 2020 Bell Eapen

This software is released under the MIT License. https://opensource.org/licenses/MIT

class fhiry.fhiry.Fhiry(config_json=None)[source]

Bases: fhiry.base_fhiry.BaseFhiry

property delete_col_raw_coding
property df
property filename
property folder
process_bundle_dict(bundle_dict)[source]
process_file(filename)[source]
process_source()[source]

Read a single JSON resource or a directory full of JSON resources ONLY COMMON FIELDS IN ALL resources will be mapped

read_bundle_from_file(filename)[source]

fhiry.parallel module

Copyright (c) 2023 Bell Eapen

This software is released under the MIT License. https://opensource.org/licenses/MIT

fhiry.parallel.ndjson(folder, config_json=None)[source]
fhiry.parallel.process(folder, config_json=None)[source]

Module contents