Skip to main content

A library to parse FHIR query strings.

  • Validates type and returns correct object

  • Parses modifiers and prefixes

Generally only have included Resources with maturity greater than 3. Some exceptions.

Usage

from fhir_parse_qs import Search
search = Search('Patient', 'name=bob') # Search(<endpoint>, <query_string>)

# what endpoint
print(search.endpoint) --> 'Patient'

# each parameter/value pair gets parsed into a namedtuple
search.parsed[0] --> FHIRSearch

# all the namedtuples
search.parsed --> [FHIRSearch]

# get FHIRSearch with parameter as key
search['name'] --> FHIRSearch

search.parsed[0].modifier --> None
search.parsed[0].prefix --> None
search.parsed[0].value --> 'bob'
search.parsed[0].paramater --> 'name'

# can iterate over the paramater/value pairs
for x in search:
    print(x) --> FHIRSearch

Release files for fhir-parse-qs 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fhir-parse-qs 0.1.0
File Size Uploaded
fhir_parse_qs-0.1.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fhir-parse-qs 0.1.0
File Interpreter ABI Platform
fhir_parse_qs-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 4.6 kB

Release files / fhir_parse_qs-0.1.0.tar.gz

Download URL fhir_parse_qs-0.1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f6b2cfa702a56b6c1fb06d9448ab9dce8469031dacd48941c289d866e324d936
BLAKE2b-256 checksum
How to use checksums
7956893dbef7e00242e1000c9c14e03240d6b82b7d03114055661109c4c4e030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release files / fhir_parse_qs-0.1.0-py2.py3-none-any.whl

Download URL fhir_parse_qs-0.1.0-py2.py3-none-any.whl
Size 2.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
09175b893e7572a58b810d459df023be7782b297322060eb0d07abcfbe605f1f
BLAKE2b-256 checksum
How to use checksums
b72b2690f0937483ddbe5acd42a11e81df3d091d302ed8f6854a4882a5697c87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release history Release notifications | RSS feed

0.9.0

2 release files

0.8.1

1 release file

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page