SMART on FHIR Python Client  3.0.0
fhirclient.models.fhirsearch.FHIRSearch Class Reference

Create a FHIR search from NoSQL-like query structures. More...

Inheritance diagram for fhirclient.models.fhirsearch.FHIRSearch:

Public Member Functions

def __init__ (self, resource_type, struct=None)
 
def construct (self)
 Constructs the URL with query string from the receiver's params. More...
 
def perform (self, server)
 Construct the search URL and execute it against the given server. More...
 
def perform_resources (self, server)
 Performs the search by calling perform, then extracts all Bundle entries and returns a list of Resource instances. More...
 

Public Attributes

 resource_type
 
 params
 
 wants_expand
 

Detailed Description

Create a FHIR search from NoSQL-like query structures.

Constructor & Destructor Documentation

def fhirclient.models.fhirsearch.FHIRSearch.__init__ (   self,
  resource_type,
  struct = None 
)

Member Function Documentation

def fhirclient.models.fhirsearch.FHIRSearch.construct (   self)

Constructs the URL with query string from the receiver's params.

def fhirclient.models.fhirsearch.FHIRSearch.perform (   self,
  server 
)

Construct the search URL and execute it against the given server.

:param server: The server against which to perform the search :returns: A Bundle resource

def fhirclient.models.fhirsearch.FHIRSearch.perform_resources (   self,
  server 
)

Performs the search by calling perform, then extracts all Bundle entries and returns a list of Resource instances.

:param server: The server against which to perform the search :returns: A list of Resource instances

Member Data Documentation

fhirclient.models.fhirsearch.FHIRSearch.params
fhirclient.models.fhirsearch.FHIRSearch.resource_type
fhirclient.models.fhirsearch.FHIRSearch.wants_expand

The documentation for this class was generated from the following file: