Skip to content

Instantly share code, notes, and snippets.

View dwroe-nmdp's full-sized avatar

David Wroe dwroe-nmdp

View GitHub Profile
import requests
#Patient id
id= '12984'
#Now Searching the procedures for the patient
urlEndpoint='http://fhirserver.hl7fundamentals.org/fhir'
urlProcedures =urlEndpoint+'/Procedure?patient='+id +"&_sort=date,code"
print('Now Searching for Procedures...@'+urlProcedures)
procedure_response = requests.get(urlProcedures).json()
key='entry'
EntryArray=procedure_response[key]