Module: AllscriptsApi::Patients::PatientMethods
- Included in:
- Client
- Defined in:
- lib/allscripts_api/patients/patient_methods.rb
Overview
A collection convenience methods for ordering that map to Allscripts magic actions related to patients. These methods are included in Client and can be accessed from instances of that class.
Instance Method Summary collapse
-
#get_changed_patients(patient_id, since, clinical_data_only = "Y", verbose = "Y", quick_scan = "N") ⇒ String, AllscriptsApi::MagicError
Returns a list of Patient IDs whose information has been modified since a timestamp.
-
#get_clinical_summary(patient_id, section = nil, encounter_id = nil, verbose = nil) ⇒ String, AllscriptsApi::MagicError
gets data elements of a patient’s history.
Instance Method Details
#get_changed_patients(patient_id, since, clinical_data_only = "Y", verbose = "Y", quick_scan = "N") ⇒ String, AllscriptsApi::MagicError
Returns a list of Patient IDs whose information has been
modified since a
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/allscripts_api/patients/patient_methods.rb', line 49 def get_changed_patients(patient_id, since, clinical_data_only = "Y", verbose = "Y", quick_scan = "N") params = MagicParams.format( user_id: @allscripts_username, patient_id: patient_id, parameter1: since.strftime("%m/%d/%Y"), parameter2: clinical_data_only, parameter3: verbose, parameter4: quick_scan ) results = magic("GetChangedPatients", magic_params: params) results["getchangedpatientsinfo"] end |
#get_clinical_summary(patient_id, section = nil, encounter_id = nil, verbose = nil) ⇒ String, AllscriptsApi::MagicError
gets data elements of a patient’s history
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/allscripts_api/patients/patient_methods.rb', line 22 def get_clinical_summary(patient_id, section = nil, encounter_id = nil, verbose = nil) params = MagicParams.format( user_id: @allscripts_username, patient_id: patient_id, parameter1: section, parameter2: encounter_id, parameter3: verbose ) results = magic("GetClinicalSummary", magic_params: params) results["getclinicalsummaryinfo"] end |