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

Module gmDocuments

source code

This module encapsulates a document stored in a GNUmed database.


Copyright: GPL

Version: $Revision: 1.118 $

Author: Karsten Hilbert <Karsten.Hilbert@gmx.net>

Classes
  cDocumentFolder
Represents a folder with medical documents for a single patient.
  cMedDocPart
Represents one part of a medical document.
  cMedDoc
Represents one medical document.
  cDocumentType
Represents a document type.
Functions
 
create_document(document_type=None, encounter=None, episode=None)
Returns new document instance or raises an exception.
source code
 
search_for_document(patient_id=None, type_id=None)
Searches for documents with the given patient and type ID.
source code
 
delete_document(document_id=None, encounter_id=None) source code
 
reclassify_documents_by_type(original_type=None, target_type=None) source code
 
get_document_types() source code
 
create_document_type(document_type=None) source code
 
delete_document_type(document_type=None) source code
 
get_ext_ref()
This needs *considerably* more smarts.
source code
Variables
  MUGSHOT = 26
  DOCUMENT_TYPE_VISUAL_PROGRESS_NOTE = u'visual progress note'

Imports: sys, shutil, os, types, time, logging, StringIO, pprint, gmExceptions, gmBusinessDBObject, gmPG2, gmTools, gmMimeLib


Function Details

search_for_document(patient_id=None, type_id=None)

source code 

Searches for documents with the given patient and type ID.

No type ID returns all documents for the patient.