Package Gnumed :: Package exporters :: Module gmPatientExporter :: Class cEmrExport |
[frames] | no frames]

# Class cEmrExport

source code

Instance Methods
__init__(self, constraints=None, fileout=None, patient=None) Constructs a new instance of exporter | source code
set_constraints(self, constraints=None) Sets exporter constraints. | source code
get_constraints(self) Retrieve exporter constraints | source code
set_patient(self, patient=None) Sets exporter patient | source code
set_output_file(self, target=None) Sets exporter output file | source code
get_patient(self) Retrieves patient whose data are to be dumped | source code
cleanup(self) Exporter class cleanup code | source code
get_vacc_table(self) Iterate over patient scheduled regimes preparing vacc tables dump | source code
dump_item_fields(self, offset, item, field_list) Dump information related to the fields of a clinical item offset - Number of left blank spaces item - Item of the field to dump fields - Fields to dump | source code
get_allergy_output(self, allergy, left_margin=0) Dumps allergy item data allergy - Allergy item to dump left_margin - Number of spaces on the left margin | source code
get_vaccination_output(self, vaccination, left_margin=0) Dumps vaccination item data vaccination - Vaccination item to dump left_margin - Number of spaces on the left margin | source code
get_lab_result_output(self, lab_result, left_margin=0) Dumps lab result item data lab_request - Lab request item to dump left_margin - Number of spaces on the left margin | source code
get_item_output(self, item, left_margin=0) Obtains formatted clinical item output dump item - The clinical item to dump left_margin - Number of spaces on the left margin | source code
get_allergy_summary(self, allergy, left_margin=0) Dumps allergy item data summary allergy - Allergy item to dump left_margin - Number of spaces on the left margin | source code
get_vaccination_summary(self, vaccination, left_margin=0) Dumps vaccination item data summary vaccination - Vaccination item to dump left_margin - Number of spaces on the left margin | source code
get_lab_result_summary(self, lab_result, left_margin=0) Dumps lab result item data summary lab_request - Lab request item to dump left_margin - Number of spaces on the left margin | source code
get_item_summary(self, item, left_margin=0) Obtains formatted clinical item summary dump item - The clinical item to dump left_margin - Number of spaces on the left margin | source code
refresh_historical_tree(self, emr_tree) checks a emr_tree constructed with this.get_historical_tree() and sees if any new items need to be inserted. | source code
get_historical_tree(self, emr_tree) | source code
get_summary_info(self, left_margin=0) Dumps patient EMR summary | source code
get_episode_summary(self, episode, left_margin=0) Dumps episode specific data | source code
get_encounter_info(self, episode, encounter, left_margin=0) Dumps encounter specific data (rfe, aoe and soap) | source code
dump_historical_tree(self) Dumps patient's historical in form of a tree of health issues... | source code
dump_clinical_record(self) Dumps in ASCII format patient's clinical record | source code
dump_med_docs(self) Dumps patient stored medical documents | source code
dump_demographic_record(self, all=False) Dumps in ASCII format some basic patient's demographic data | source code
dump_constraints(self) Dumps exporter filtering constraints | source code
dump_constraints_header(self) Dumps constraints header | source code

Method Details

### __init__(self, constraints=None, fileout=None, patient=None) (Constructor) | source code
Constructs a new instance of exporter constraints - Exporter constraints for filtering clinical items fileout - File-like object as target for dumping operations

### set_constraints(self, constraints=None) | source code
Sets exporter constraints. constraints - Exporter constraints for filtering clinical items

### set_patient(self, patient=None) | source code
Sets exporter patient patient - Patient whose data are to be dumped

### set_output_file(self, target=None) | source code
Sets exporter output file @param file_name - The file to dump the EMR to @type file_name - FileType

### dump_historical_tree(self) | source code
    Dumps patient's historical in form of a tree of health issues
    -> episodes
       -> encounters
          -> clinical items