-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdriver.py
More file actions
32 lines (22 loc) · 1.11 KB
/
driver.py
File metadata and controls
32 lines (22 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# A Driver to test functionality
from fhir.client import Client
if __name__ == "__main__":
epic_url = "https://open-ic.epic.com/Argonaut-Fixed/api/FHIR/Argonaut"
allscripts_url = "https://cloud.allscriptsunity.com/FHIR"
intersys_url = "https://argonaut.intersystems.com/fhir"
client_id = ""
epic_secret = "bX8YB9sTLy3Bcc1nG50NMKcDas8MOT7efaMvqljDd9XwUz5xTbsCFkIYnOM5E2uDosnvFYGkfAaQcTFZU4To3ylrcCPj2VvSOTJ"
allscripts_secret = "6D1A05FF-4DA7-46CA-8E60-2DCD38A183B2"
intersys_secret = "L6vV9Ewd7r9M6nBXBuxtfVVdoh4lHFrDySFC/ufj8xqnAKGFbFRpdAqpXPIVXWjuElRz3atcPMz16Fhv8UL10Q==" # intersys
applied_url = 'http://fhir.appliedinformaticsinc.com'
applied_secret = 'ashf087qwb3874ch3q123d'
applied_id = '98736458'
epic_patient_id = "RVBUOyAgICAgWjU2OTI7Ozs7dGVybWluYXRl" #epic
intersys_patient_id = "pat-1" # intersystems
api_url = applied_url
client_secret = applied_secret
patient_id = applied_id
c = Client(api_url, client_id, client_secret)
patient = c.get_patient_resource()
print patient.get(patient_id=patient_id)
print patient.list(given="John")