fhirpath_guillotina package

Submodules

fhirpath_guillotina.engine module

class fhirpath_guillotina.engine.ElasticsearchConnection(conn)[source]

Bases: fhirpath.connectors.factory.es.ElasticsearchConnection

Elasticsearch Connection

async count(index, compiled_query)[source]
async fetch(index, compiled_query)[source]

xxx: must have use scroll+slice https://stackoverflow.com/questions/43211387/what-does-elasticsearch-automatic-slicing-do https://stackoverflow.com/questions/50376713/elasticsearch-scroll-api-with-multi-threading

classmethod from_url(url: str)[source]
async scroll(scroll_id, scroll='30s')[source]
async server_info()[source]
class fhirpath_guillotina.engine.ElasticsearchEngine(fhir_release, conn_factory, dialect_factory)[source]

Bases: fhirpath.engine.es.ElasticsearchEngine

Elasticsearch Engine

build_security_query(query)[source]
calculate_field_index_name(resource_type=None, index_config=None)[source]

1.) xxx: should be cached

async execute(query, unrestricted=False, query_type=<EngineQueryType.DML: 'DML'>)[source]
extract_hits(selects, hits, container)[source]
static field_index_config_from_factory(factory, resource_type=None)[source]
async get_index_name(container=None)[source]
get_mapping(resource_type=None, index_config=None)[source]
async process_raw_result(rawresult, selects)[source]
wrapped_with_bundle(result)[source]

fhirpath_guillotina.field module

class fhirpath_guillotina.field.DefaultFhirFieldSchemaSerializer(field, schema, request)[source]

Bases: guillotina.json.serialize_schema_field.DefaultSchemaFieldSerializer

property field_type
class fhirpath_guillotina.field.FhirField(resource_class=None, resource_interface=None, resource_type=None, fhir_version=None, **kw)[source]

Bases: guillotina.schema._field.Object

FhirResource also known as FHIR field is the schema field derrived from z3c.form’s field.

It takes all initilial arguments those are derrived from standard schema field, with additionally model, resource_type and resource_interface

Note

field name must be start with lowercase name of FHIR Resource.

ensure_fhir_abstract(klass)[source]
from_dict(dict_value)[source]
from_unicode(str_val)[source]
class fhirpath_guillotina.field.FhirFieldValue(obj: NewType.<locals>.new_type = None)[source]

Bases: object

FhirResourceValue is a proxy class for holding any object derrived from fhir.resources.resource.Resource

foreground_origin()[source]

Return the original object of FHIR model that is proxied!

patch(patch_data)[source]
stringify(prettify=False)[source]
fhirpath_guillotina.field.fhir_field_deserializer(fhirfield, value, context=None)[source]
fhirpath_guillotina.field.fhir_field_from_resource_type(resource_type: str, cache: bool = True) → Optional[dict][source]
fhirpath_guillotina.field.fhir_field_from_schema(schema: <InterfaceClass zope.interface.Interface>, resource_type: str = None) → Optional[fhirpath_guillotina.field.FhirField][source]
fhirpath_guillotina.field.fhir_field_value_serializer(value)[source]

fhirpath_guillotina.helpers module

fhirpath_guillotina.helpers.parse_json_str(str_val: str, encoding: str = 'utf-8') → Optional[dict][source]

fhirpath_guillotina.interfaces module

Module where all interfaces, events and exceptions live.

fhirpath_guillotina.utilities module

class fhirpath_guillotina.utilities.ElasticsearchEngineFactory[source]

Bases: object

get(fhir_version=None)[source]
class fhirpath_guillotina.utilities.FhirSearch[source]

Bases: object

create_context(resource_type, fhir_version=None, unrestricted=False)[source]
class fhirpath_guillotina.utilities.SearchContextFactory[source]

Bases: object

get(resource_type, fhir_version=None, unrestricted=False)[source]
fhirpath_guillotina.utilities.create_engine(fhir_version=None)[source]
fhirpath_guillotina.utilities.default_settings()[source]

Module contents

fhirpath_guillotina.includeme(root)[source]