Gnumed.business.gmClinNarrative

Package Gnumed :: Package business :: Module gmClinNarrative |
[frames] | no frames]

# Module gmClinNarrative

source code

GNUmed clinical narrative business object.

Author: Carlos Moro <cfmoro1976@yahoo.es>, Karsten Hilbert <Karsten.Hilbert@gmx.net>

License: GPL v2 or later (for details see http://gnu.org)

Classes
| cNarrative Represents one clinical free text entry.

Functions
create_progress_note(soap=None, episode_id=None, encounter_id=None, link_obj=None) Create clinical narrative entries. | source code
create_narrative_item(narrative=None, soap_cat=None, episode_id=None, encounter_id=None, link_obj=None) Creates a new clinical narrative entry | source code
delete_clin_narrative(narrative=None) Deletes a clin.clin_narrative row by it's PK. | source code
get_narrative(since=None, until=None, encounters=None, episodes=None, issues=None, soap_cats=None, providers=None, patient=None, order_by=None) Get SOAP notes pertinent to this encounter. | source code
get_as_journal(since=None, until=None, encounters=None, episodes=None, issues=None, soap_cats=None, providers=None, order_by=None, time_range=None, patient=None, active_encounter=None) | source code
search_text_across_emrs(search_term=None) | source code

Imports: sys, logging, gmPG2, gmBusinessDBObject, gmTools, gmDispatcher, gmHooks, gmDateTime, gmCoding, gmSoapDefs, gmAutoHints

Function Details

### create_progress_note(soap=None, episode_id=None, encounter_id=None, link_obj=None) | source code
    Create clinical narrative entries.

    <soap>
            must be a dict, the keys being SOAP categories (including U and
            None=admin) and the values being text (possibly multi-line)

    Existing but empty ('' or None) categories are skipped.

### create_narrative_item(narrative=None, soap_cat=None, episode_id=None, encounter_id=None, link_obj=None) | source code
Creates a new clinical narrative entry narrative - free text clinical narrative soap_cat - soap category episode_id - episodes's primary key encounter_id - encounter's primary key any of the args being None (except soap_cat) will fail the SQL code

### get_narrative(since=None, until=None, encounters=None, episodes=None, issues=None, soap_cats=None, providers=None, patient=None, order_by=None) | source code
Get SOAP notes pertinent to this encounter. since initial date for narrative items until final date for narrative items encounters list of encounters whose narrative are to be retrieved episodes list of episodes whose narrative are to be retrieved issues list of health issues whose narrative are to be retrieved soap_cats list of SOAP categories of the narrative to be retrieved