Skip to content

Commit

Permalink
Merge branch 'master' into version2
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Goodman committed Aug 7, 2014
2 parents 36fd000 + 7dd3566 commit 635a75c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ A number of helper methods exist that abstract away the details of the Magic ope
- `get_patient(userid, patientid, includepix = nil)`
- `get_patient_activity(userid, patientid)`
- `get_patient_problems(patientid, show_by_encounter_flag = nil, assessed = nil, encounter_id = nil, medcin_id = nil)`
- `get_patient_by_mrn(userid, mrn)`
- `get_patients_by_icd9(icd9, start = nil, end_param = nil)`
- `get_provider(provider_id = nil, user_name = nil)`
- `get_providers(security_filter = nil, name_filter = nil)`
Expand Down
9 changes: 7 additions & 2 deletions lib/allscripts_unity_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,13 @@ def get_patient_activity(userid, patientid)
magic(magic_parameters)
end

def get_patient_by_mrn
raise NotImplementedError, 'GetPatientByMRN magic action not implemented'
def get_patient_by_mrn(userid, mrn)
magic_parameters = {
action: 'GetPatientByMRN',
userid: userid,
parameter1: mrn
}
magic(magic_parameters)
end

def get_patient_cda
Expand Down
2 changes: 1 addition & 1 deletion lib/allscripts_unity_client/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module AllscriptsUnityClient
VERSION = '2.1.4'
VERSION = '2.1.5'
end

0 comments on commit 635a75c

Please sign in to comment.