fhirpath.fql package

Submodules

fhirpath.fql.expressions module

fhirpath.fql.expressions.G_(*terms, path=None, type_=None)[source]
fhirpath.fql.expressions.T_(path, value=<NO_VALUE>, match_type=None, non_fhir=False)[source]
fhirpath.fql.expressions.V_(value)[source]
fhirpath.fql.expressions.and_(path, value=<NO_VALUE>)[source]
fhirpath.fql.expressions.exists_(path)[source]
fhirpath.fql.expressions.exists_group_(*terms, type_=None)[source]
fhirpath.fql.expressions.fql(obj)[source]
fhirpath.fql.expressions.in_(path, values)[source]
fhirpath.fql.expressions.not_(path, value=<NO_VALUE>)[source]
fhirpath.fql.expressions.not_exists_(path)[source]
fhirpath.fql.expressions.or_(path, value=<NO_VALUE>)[source]
fhirpath.fql.expressions.sort_(path, order=<NO_VALUE>)[source]
fhirpath.fql.expressions.xor_(path, value=<NO_VALUE>)[source]

fhirpath.fql.types module

class fhirpath.fql.types.BaseTerm(path, value=<NO_VALUE>, match_type=None)[source]

Bases: abc.ABC

clone()[source]
ensure_term_value(value)[source]
finalize(context)[source]
get_real_value()[source]
set_match_type(type_)[source]
validate()[source]
class fhirpath.fql.types.ElementClause[source]

Bases: fhirpath.fql.types.FqlClause

class fhirpath.fql.types.ElementPath(dotted_path: str, non_fhir: bool = False)[source]

Bases: object

FHIR Resource path (dotted) 1. Normalize any condition, casting, logic check

clone()[source]
finalize(context)[source]
classmethod from_el_path(el_path)[source]
is_finalized()[source]
property non_fhir
parse()[source]
property path
property star
validate(fhir_release)[source]
class fhirpath.fql.types.ExistsGroupTerm(*terms)[source]

Bases: object

clone()[source]
finalize(context)[source]
match_all()[source]
match_any()[source]
match_no_one()[source]
match_one()[source]
class fhirpath.fql.types.ExistsTerm(path)[source]

Bases: object

clone()[source]
finalize(context)[source]
class fhirpath.fql.types.FqlClause[source]

Bases: collections.deque

property empty
class fhirpath.fql.types.FromClause[source]

Bases: fhirpath.fql.types.FqlClause

class fhirpath.fql.types.GroupTerm(*terms, path=None)[source]

Bases: object

clone()[source]
finalize(context)[source]
match_all()[source]
match_any()[source]
match_no_one()[source]
match_one()[source]
class fhirpath.fql.types.InTerm(path, value=<NO_VALUE>)[source]

Bases: fhirpath.fql.types.Term

The InTerm never influences by TermValue unary_operator!

create_term(value)[source]

finalize(context)[source]
class fhirpath.fql.types.LimitClause[source]

Bases: abc.ABC

property empty
property limit
property offset
class fhirpath.fql.types.NonFhirTerm(path, value=<NO_VALUE>, match_type=None)[source]

Bases: fhirpath.fql.types.BaseTerm

ensure_term_value(value)[source]
finalize(context)[source]
get_real_value()[source]
validate()[source]
class fhirpath.fql.types.PathWhereConstraint(type_, name=None, value=None, subpath=None)[source]

Bases: object

classmethod from_expression(expression)[source]
class fhirpath.fql.types.SelectClause[source]

Bases: fhirpath.fql.types.FqlClause

class fhirpath.fql.types.SortClause[source]

Bases: fhirpath.fql.types.FqlClause

class fhirpath.fql.types.SortTerm(path, order=<SortOrderType.ASC: 'asc'>)[source]

Bases: object

finalize(context)[source]
order = None
path = None
class fhirpath.fql.types.Term(path, value=<NO_VALUE>, match_type=None)[source]

Bases: fhirpath.fql.types.BaseTerm

ensure_term_value(value)[source]
finalize(context)[source]
get_real_value()[source]
validate()[source]
class fhirpath.fql.types.TermValue(value)[source]

Bases: object

clone()[source]
finalize(path)[source]

context: PathInfoContext

is_finalized()[source]
class fhirpath.fql.types.WhereClause[source]

Bases: fhirpath.fql.types.FqlClause

Module contents

FHIR Query Language

class fhirpath.fql.ElementPath(dotted_path: str, non_fhir: bool = False)[source]

Bases: object

FHIR Resource path (dotted) 1. Normalize any condition, casting, logic check

clone()[source]
finalize(context)[source]
classmethod from_el_path(el_path)[source]
is_finalized()[source]
property non_fhir
parse()[source]
property path
property star
validate(fhir_release)[source]
fhirpath.fql.G_(*terms, path=None, type_=None)[source]
fhirpath.fql.T_(path, value=<NO_VALUE>, match_type=None, non_fhir=False)[source]
fhirpath.fql.V_(value)[source]
fhirpath.fql.and_(path, value=<NO_VALUE>)[source]
fhirpath.fql.contains_(path, value=<NO_VALUE>)[source]
fhirpath.fql.eb_(path, value=<NO_VALUE>)[source]
fhirpath.fql.exact_(path, value=<NO_VALUE>)[source]
fhirpath.fql.exists_(path)[source]
fhirpath.fql.in_(path, values)[source]
fhirpath.fql.not_(path, value=<NO_VALUE>)[source]
fhirpath.fql.not_exists_(path)[source]
fhirpath.fql.not_in_(path, values)[source]
fhirpath.fql.or_(path, value=<NO_VALUE>)[source]
fhirpath.fql.sa_(path, value=<NO_VALUE>)[source]
fhirpath.fql.sort_(path, order=<NO_VALUE>)[source]